From 4b14a253b2c958991861c054e9b442c43ba1ec68 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Sat, 25 Dec 2021 17:00:33 -0800 Subject: [PATCH] Add 'allowDoWhileOnClosingBrace' configuration to the JSON schema Closes #3422 --- .../StyleCop.Analyzers/Settings/stylecop.schema.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json b/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json index 34c319a7b0..f7fda85074 100644 --- a/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json +++ b/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json @@ -197,6 +197,11 @@ "type": "boolean", "description": "Specifies if SA1519 will allow consecutive using statements without braces", "default": true + }, + "allowDoWhileOnClosingBrace": { + "type": "boolean", + "description": "Specifies if SA1500 will allow the 'while' expression of a 'do'/'while' loop to be on the same line as the closing brace.", + "default": false } } },