Skip to content

Commit 1d76952

Browse files
author
duende-github-bot
committed
Update .editorconfig
1 parent 1901382 commit 1d76952

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ indent_style = space
77
insert_final_newline = true
88

99
[*.cs]
10+
csharp_prefer_braces = true
1011
csharp_style_expression_bodied_accessors = true
1112
csharp_style_expression_bodied_constructors = true
1213
csharp_style_expression_bodied_indexers = true
@@ -23,6 +24,7 @@ csharp_style_var_when_type_is_apparent = true
2324
dotnet_diagnostic.IDE0003.severity = error # Remove this or Me qualification
2425
dotnet_diagnostic.IDE0005.severity = error # Remove unnecessary using directives
2526
dotnet_diagnostic.IDE0007.severity = error # Use var instead of explicit type
27+
dotnet_diagnostic.IDE0011.severity = error # Add braces
2628
dotnet_diagnostic.IDE0021.severity = error # Use expression body for constructors
2729
dotnet_diagnostic.IDE0022.severity = error # Use expression body for methods
2830
dotnet_diagnostic.IDE0023.severity = error # Use expression body for conversion operators

0 commit comments

Comments
 (0)