diff --git a/.editorconfig b/.editorconfig index 3e2a062119ef..55589d0a8ed6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -230,6 +230,9 @@ dotnet_diagnostic.CA1857.severity = warning # CA1858: Use 'StartsWith' instead of 'IndexOf' dotnet_diagnostic.CA1858.severity = warning +# CA1861: Avoid constant arrays as arguments +dotnet_diagnostic.CA1861.severity = warning + # CA2007: Consider calling ConfigureAwait on the awaited task dotnet_diagnostic.CA2007.severity = warning @@ -335,6 +338,9 @@ dotnet_diagnostic.IDE0161.severity = warning # IDE0200: Lambda expression can be removed dotnet_diagnostic.IDE0200.severity = warning +# IDE0300: Use collection expression for array +dotnet_diagnostic.IDE0300.severity = warning + # IDE2000: Disallow multiple blank lines dotnet_style_allow_multiple_blank_lines_experimental = false dotnet_diagnostic.IDE2000.severity = warning @@ -404,6 +410,8 @@ dotnet_diagnostic.CA1856.severity = suggestion dotnet_diagnostic.CA1857.severity = suggestion # CA1858: Use 'StartsWith' instead of 'IndexOf' dotnet_diagnostic.CA1858.severity = suggestion +# CA1861: Avoid constant arrays as arguments +dotnet_diagnostic.CA1861.severity = suggestion # CA2007: Consider calling ConfigureAwait on the awaited task dotnet_diagnostic.CA2007.severity = suggestion # CA2008: Do not create tasks without passing a TaskScheduler @@ -440,6 +448,8 @@ dotnet_diagnostic.IDE0060.severity = suggestion dotnet_diagnostic.IDE0062.severity = suggestion # IDE0200: Lambda expression can be removed dotnet_diagnostic.IDE0200.severity = suggestion +# IDE0300: Use collection expression for array +dotnet_diagnostic.IDE0300.severity = suggestion # CA2016: Forward the 'CancellationToken' parameter to methods that take one dotnet_diagnostic.CA2016.severity = suggestion @@ -463,3 +473,5 @@ dotnet_diagnostic.IDE0161.severity = silent [{**/Shared/**.cs,**/microsoft.extensions.hostfactoryresolver.sources/**.{cs,vb}}] # IDE0005: Remove unused usings. Ignore for shared src files since imports for those depend on the projects in which they are included. dotnet_diagnostic.IDE0005.severity = silent +# IDE0300: Use collection expression for array +dotnet_diagnostic.IDE0300.severity = silent