From 13c08c1752d06a2c7519c0b7a6832b803b3b53da Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Fri, 19 Sep 2025 10:26:37 +0200 Subject: [PATCH] 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. --- .editorconfig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index f6b7d3a..8f8512a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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 \ No newline at end of file +dotnet_diagnostic.IDE0305.severity = none + +# CA1873: Avoid potentially expensive logging +dotnet_diagnostic.CA1873.severity = none \ No newline at end of file