@@ -464,11 +464,13 @@ dotnet_diagnostic.MA0048.severity = error # https://github.com/atc-net
464
464
dotnet_diagnostic.CA1014.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1014.md
465
465
dotnet_diagnostic.CA1068.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1068.md
466
466
dotnet_diagnostic.CA1305.severity = error
467
+ dotnet_diagnostic.CA1308.severity = suggestion # Normalize strings to uppercase
467
468
dotnet_diagnostic.CA1510.severity = suggestion # Use ArgumentNullException throw helper
468
469
dotnet_diagnostic.CA1511.severity = suggestion # Use ArgumentException throw helper
469
470
dotnet_diagnostic.CA1512.severity = suggestion # Use ArgumentOutOfRangeException throw helper
470
471
dotnet_diagnostic.CA1513.severity = suggestion # Use ObjectDisposedException throw helper
471
472
dotnet_diagnostic.CA1514.severity = error # Avoid redundant length argument
473
+ 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)
472
474
dotnet_diagnostic.CA1707.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1707.md
473
475
dotnet_diagnostic.CA1812.severity = none
474
476
dotnet_diagnostic.CA1822.severity = suggestion
@@ -504,7 +506,16 @@ dotnet_diagnostic.CA2259.severity = error # Ensure ThreadStatic is onl
504
506
dotnet_diagnostic.CA2260.severity = error # Implement generic math interfaces correctly
505
507
dotnet_diagnostic.CA2261.severity = error # Do not use ConfigureAwaitOptions.SuppressThrowing with Task<TResult>
506
508
dotnet_diagnostic.IDE0005.severity = warning # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0005.md
509
+ dotnet_diagnostic.IDE0010.severity = suggestion # Populate switch
510
+ dotnet_diagnostic.IDE0028.severity = suggestion # Collection initialization can be simplified
511
+ dotnet_diagnostic.IDE0021.severity = suggestion # Use expression body for constructor
512
+ dotnet_diagnostic.IDE0055.severity = none # Fix formatting
507
513
dotnet_diagnostic.IDE0058.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0058.md
514
+ dotnet_diagnostic.IDE0061.severity = suggestion # Use expression body for local function
515
+ dotnet_diagnostic.IDE0130.severity = suggestion # Namespace does not match folder structure
516
+ dotnet_diagnostic.IDE0290.severity = none # Use primary constructor
517
+ dotnet_diagnostic.IDE0301.severity = suggestion # Use collection expression for empty
518
+ dotnet_diagnostic.IDE0305.severity = suggestion # Collection initialization can be simplified
508
519
509
520
510
521
# Microsoft - Compiler Errors
@@ -541,6 +552,7 @@ dotnet_diagnostic.SA1649.severity = error # https://github.com/atc-net
541
552
# https://rules.sonarsource.com/csharp
542
553
dotnet_diagnostic.S1135.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/SonarAnalyzerCSharp/S1135.md
543
554
dotnet_diagnostic.S2629.severity = none # Don't use string interpolation in logging message templates.
555
+ dotnet_diagnostic.S3358.severity = none # Extract this nested ternary operation into an independent statement.
544
556
dotnet_diagnostic.S6602.severity = none # " Find" method should be used instead of the " FirstOrDefault"
545
557
dotnet_diagnostic.S6603.severity = none # The collection-specific " TrueForAll" method should be used instead of the " All"
546
558
dotnet_diagnostic.S6605.severity = none # Collection-specific " Exists" method should be used instead of the " Any"
@@ -584,9 +596,19 @@ dotnet_diagnostic.CA1822.Severity = none
584
596
dotnet_diagnostic.CA1859.Severity = none
585
597
dotnet_diagnostic.CA1860.Severity = none
586
598
dotnet_diagnostic.CA1861.Severity = none
599
+
587
600
dotnet_diagnostic.S125.Severity = none
588
601
dotnet_diagnostic.S1481.Severity = none
589
602
dotnet_diagnostic.SA1512.Severity = none
590
603
dotnet_diagnostic.SA1513.Severity = none
591
604
592
- dotnet_diagnostic.AsyncFixer02.Severity = none # ToListAsync should be used instead of xxx
605
+ dotnet_diagnostic.AsyncFixer02.Severity = none # ToListAsync should be used instead of xxx
606
+
607
+ dotnet_diagnostic.IDE0022.Severity = none # Use expression body for method
608
+ dotnet_diagnostic.IDE0045.Severity = none # ' if' statement can be simplified
609
+ dotnet_diagnostic.IDE0046.Severity = none # ' if' statement can be simplified
610
+ dotnet_diagnostic.IDE0052.Severity = none # Private member
611
+ dotnet_diagnostic.IDE0059.Severity = none # Unnecessary assignment of a value
612
+ dotnet_diagnostic.IDE0060.Severity = none # Remove unused parameter
613
+ dotnet_diagnostic.IDE0270.Severity = none # Null check can be simplified
614
+ dotnet_diagnostic.IDE0300.Severity = none # Collection initialization can be simplified
0 commit comments