From 2a6f4cb2c7285256baf5eed4427567f84224d68c Mon Sep 17 00:00:00 2001 From: Fatih Mar Date: Sat, 25 Mar 2023 13:31:03 +0300 Subject: [PATCH] style: add braces --- .editorconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index f0c1a901e..0b23b9c6f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -22,7 +22,6 @@ dotnet_diagnostic.IDE0043.severity = error # Format string contains invalid plac dotnet_diagnostic.IDE0063.severity = error # Use simple 'using' statement csharp_style_var_when_type_is_apparent = true:error dotnet_style_require_accessibility_modifiers = always:error -csharp_prefer_braces = true:error # Sort using directives with System.* appearing first dotnet_sort_system_directives_first = true:error @@ -33,6 +32,10 @@ csharp_using_directive_placement = outside_namespace:error dotnet_diagnostic.IDE0036.severity = error csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:error +# Add braces +dotnet_diagnostic.IDE0011.severity = error +csharp_prefer_braces = true:error + # Avoid "this." if not necessary dotnet_style_qualification_for_field = false:error dotnet_style_qualification_for_property = false:error