Skip to content

Commit 2a6f4cb

Browse files
committed
style: add braces
1 parent 8149385 commit 2a6f4cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.editorconfig

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ dotnet_diagnostic.IDE0043.severity = error # Format string contains invalid plac
2222
dotnet_diagnostic.IDE0063.severity = error # Use simple 'using' statement
2323
csharp_style_var_when_type_is_apparent = true:error
2424
dotnet_style_require_accessibility_modifiers = always:error
25-
csharp_prefer_braces = true:error
2625

2726
# Sort using directives with System.* appearing first
2827
dotnet_sort_system_directives_first = true:error
@@ -33,6 +32,10 @@ csharp_using_directive_placement = outside_namespace:error
3332
dotnet_diagnostic.IDE0036.severity = error
3433
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:error
3534

35+
# Add braces
36+
dotnet_diagnostic.IDE0011.severity = error
37+
csharp_prefer_braces = true:error
38+
3639
# Avoid "this." if not necessary
3740
dotnet_style_qualification_for_field = false:error
3841
dotnet_style_qualification_for_property = false:error

0 commit comments

Comments
 (0)