From d0ecb7b1aa80659d9282c6416499b2e29b0ee260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Barr=C3=A9?= Date: Tue, 12 Nov 2024 20:15:36 -0500 Subject: [PATCH] Change IDE0301-IDE0305 to suggestion --- src/configuration/Analyzers.editorconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/configuration/Analyzers.editorconfig b/src/configuration/Analyzers.editorconfig index 7ae5098..7b30d47 100644 --- a/src/configuration/Analyzers.editorconfig +++ b/src/configuration/Analyzers.editorconfig @@ -149,6 +149,21 @@ dotnet_diagnostic.IDE0270.severity = silent # Use primary constructor dotnet_diagnostic.IDE0290.severity = silent +# Collection expression can be simplified +dotnet_diagnostic.IDE0301.severity = suggestion + +# Use collection expression for stackalloc +dotnet_diagnostic.IDE0302.severity = suggestion + +# Use collection expression for Create() +dotnet_diagnostic.IDE0303.severity = suggestion + +# Use collection expression for builder +dotnet_diagnostic.IDE0304.severity = suggestion + +# Use collection expression for fluent +dotnet_diagnostic.IDE0305.severity = suggestion + # Use conditional delegate call dotnet_diagnostic.IDE1005.severity = suggestion