From 84acffb4e891e9c56f95249c6345affac6a1697e Mon Sep 17 00:00:00 2001 From: Kjetil Haugland Date: Wed, 30 Oct 2024 10:25:31 +0100 Subject: [PATCH] Update editorconfig rules --- .editorconfig | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index f8c32678..d617e816 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,7 +8,6 @@ indent_style = space # ReSharper inspection severities resharper_arrange_constructor_or_destructor_body_highlighting = hint resharper_arrange_method_or_operator_body_highlighting = hint -resharper_convert_to_primary_constructor_highlighting = hint # (Please don't specify an indent_size here; that has too many unintended consequences.) # Code files @@ -227,4 +226,11 @@ csharp_style_prefer_tuple_swap = true:suggestion csharp_style_deconstructed_variable_declaration = true:suggestion csharp_style_unused_value_assignment_preference = discard_variable:suggestion csharp_style_unused_value_expression_statement_preference = discard_variable:silent -csharp_style_prefer_primary_constructors = false:silent \ No newline at end of file + +[*.cs] +# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0290 +csharp_style_prefer_primary_constructors = false +dotnet_diagnostic.IDE0290.severity = warning + +# https://www.jetbrains.com/help/rider/ConvertToPrimaryConstructor.html +resharper_convert_to_primary_constructor_highlighting = none