From e29aa30ebd3c9f40639b09829bc238b47daccc7a Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Fri, 31 May 2024 11:35:31 +1000 Subject: [PATCH] Hide IDE0305 (offers to replace `expr.ToArray()` with `[..expr]`) --- .editorconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.editorconfig b/.editorconfig index dc501fa7b9..25222e51eb 100644 --- a/.editorconfig +++ b/.editorconfig @@ -108,6 +108,8 @@ dotnet_diagnostic.IDE0250.severity = suggestion dotnet_diagnostic.IDE0260.severity = suggestion # Use nameof dotnet_diagnostic.IDE0280.severity = error +# Collection initialization can be simplified +dotnet_diagnostic.IDE0305.severity = silent csharp_style_var_when_type_is_apparent = true csharp_style_var_elsewhere = true