Skip to content

Commit 041dab7

Browse files
author
Per Kops
committed
build: add new rules to root .editorconfig
1 parent 365e630 commit 041dab7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,20 @@ dotnet_diagnostic.S1135.severity = suggestion # https://github.com/atc-net
516516
# Custom - Code Analyzers Rules
517517
##########################################
518518

519+
dotnet_diagnostic.IDE0010.severity = suggestion # Populate switch
520+
dotnet_diagnostic.IDE0021.severity = suggestion # Use expression body for constructor
521+
dotnet_diagnostic.IDE0046.severity = suggestion # If statement can be simplified
522+
dotnet_diagnostic.IDE0055.severity = none # Fix formatting
519523
dotnet_diagnostic.IDE0057.severity = none # Substring can be simplified
524+
dotnet_diagnostic.IDE0072.severity = suggestion # Populate switch
525+
dotnet_diagnostic.IDE0130.severity = suggestion # Namespace does not match folder structure
526+
dotnet_diagnostic.IDE0290.severity = none # Use primary constructor
527+
dotnet_diagnostic.IDE0305.severity = suggestion # Collection initialization can be simplified
520528

521529
dotnet_diagnostic.SA1010.severity = none #
522530

523531
dotnet_diagnostic.CA1054.severity = none # URI parameters should not be strings
532+
dotnet_diagnostic.CA1515.severity = suggestion # Because an application's API isn't typically referenced from outside the assembly, types can be made internal (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1515)
524533
dotnet_diagnostic.CA1848.severity = none # For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogTrace(ILogger, string, params object[])'
525534
dotnet_diagnostic.CA1859.severity = none #
526535
dotnet_diagnostic.CA1860.severity = none #
@@ -536,6 +545,7 @@ dotnet_diagnostic.S1172.severity = none # False positive
536545
dotnet_diagnostic.S2589.severity = none #
537546
dotnet_diagnostic.S2629.severity = none #
538547
dotnet_diagnostic.S3267.severity = none #
548+
dotnet_diagnostic.S3358.severity = none #
539549
dotnet_diagnostic.S3878.severity = none #
540550
dotnet_diagnostic.S4457.severity = none # Split this method into two, one handling parameters check and the other handling the asynchronous code
541551
dotnet_diagnostic.S6602.severity = none #

0 commit comments

Comments
 (0)