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.
This commit is contained in:
Marco Minerva
2025-09-19 10:26:37 +02:00
parent a80e132f8f
commit 13c08c1752
+5 -1
View File
@@ -82,6 +82,7 @@ csharp_style_prefer_local_over_anonymous_function = true:silent
csharp_style_prefer_extended_property_pattern = true:suggestion
csharp_style_implicit_object_creation_when_type_is_apparent = true:silent
csharp_style_prefer_tuple_swap = true:silent
csharp_style_prefer_simple_property_accessors = true:suggestion
# Field preferences
dotnet_style_readonly_field = true:suggestion
@@ -299,4 +300,7 @@ dotnet_diagnostic.IDE0010.severity = none
dotnet_diagnostic.IDE0072.severity = none
# IDE0305: Simplify collection initialization
dotnet_diagnostic.IDE0305.severity = none
dotnet_diagnostic.IDE0305.severity = none
# CA1873: Avoid potentially expensive logging
dotnet_diagnostic.CA1873.severity = none