Skip to content

Commit 13c08c1

Browse files
committed
Update .editorconfig with new style and diagnostic rules
Added `csharp_style_prefer_simple_property_accessors` to promote simple property accessors with suggestion severity. Disabled CA1873 warnings for potentially expensive logging. Retained IDE0305 rule for simplifying collection initialization for clarity. These changes enhance code style consistency and suppress irrelevant diagnostics.
1 parent a80e132 commit 13c08c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.editorconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ csharp_style_prefer_local_over_anonymous_function = true:silent
8282
csharp_style_prefer_extended_property_pattern = true:suggestion
8383
csharp_style_implicit_object_creation_when_type_is_apparent = true:silent
8484
csharp_style_prefer_tuple_swap = true:silent
85+
csharp_style_prefer_simple_property_accessors = true:suggestion
8586

8687
# Field preferences
8788
dotnet_style_readonly_field = true:suggestion
@@ -299,4 +300,7 @@ dotnet_diagnostic.IDE0010.severity = none
299300
dotnet_diagnostic.IDE0072.severity = none
300301

301302
# IDE0305: Simplify collection initialization
302-
dotnet_diagnostic.IDE0305.severity = none
303+
dotnet_diagnostic.IDE0305.severity = none
304+
305+
# CA1873: Avoid potentially expensive logging
306+
dotnet_diagnostic.CA1873.severity = none

0 commit comments

Comments
 (0)