From 8a9aa0cb4d5d22c1e494afa3b7f22507f4ab3ebc Mon Sep 17 00:00:00 2001 From: Stefan Nikolei Date: Sun, 6 Jul 2025 14:32:50 +0200 Subject: [PATCH] Add rules for collection expressions --- .editorconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.editorconfig b/.editorconfig index 74a363e..f579ff5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -177,6 +177,9 @@ csharp_using_directive_placement = outside_namespace:warning csharp_prefer_static_local_function = true:warning # Primary constructor preferences csharp_style_prefer_primary_constructors = false:none +# Collection preferences +dotnet_style_prefer_collection_expression = true:error +resharper_use_collection_expression_highlighting =true:error ########################################## # Unnecessary Code Rules