Skip to content

Commit 7965b5a

Browse files
committed
refactor: update .editorconfig with revised code style rules
1 parent b31a2e0 commit 7965b5a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.editorconfig

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,18 @@ dotnet_style_qualification_for_method = false:suggestion
101101
# Avoid requiring explicit qualifiers (e.g., `this.`) when accessing properties.
102102
dotnet_style_qualification_for_property = false:suggestion
103103

104-
csharp_format_keep_blank_lines_between_declarations = true
105-
csharp_format_keep_blank_lines_between_members = true
106-
107104
# StyleCop Diagnostic Rules =================
108105

109-
dotnet_diagnostic.IDE0055.severity = warning
110-
dotnet_diagnostic.IDE0017.severity = warning
111-
dotnet_diagnostic.IDE0028.severity = none
112-
dotnet_diagnostic.IDE0049.severity = warning
113-
114-
115106
# Add braces (`{}`) to if or while statements
116107
dotnet_diagnostic.IDE0011.severity = warning
108+
# Object initializer can be simplified.
109+
dotnet_diagnostic.IDE0017.severity = none
110+
# Collection initialization can be simplified.
111+
dotnet_diagnostic.IDE0028.severity = none
112+
# Simplify built-in type names.
113+
dotnet_diagnostic.IDE0049.severity = warning
114+
# Format code consistently.
115+
dotnet_diagnostic.IDE0055.severity = none
117116
# Naming rule violation
118117
dotnet_diagnostic.IDE1006.severity = error
119118
# Keywords must be spaced correctly.

0 commit comments

Comments
 (0)