Skip to content

Commit

Permalink
style: add braces
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFA11 committed Mar 25, 2023
1 parent 8149385 commit 2a6f4cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2a6f4cb

Please sign in to comment.