@@ -201,8 +201,8 @@ csharp_style_unused_value_assignment_preference = discard_variable
201
201
202
202
# Index and range preferences
203
203
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#index-and-range-preferences
204
- csharp_style_prefer_index_operator = true # IDE0056
205
- csharp_style_prefer_range_operator = true # IDE0057
204
+ csharp_style_prefer_index_operator = true : suggestion # IDE0056
205
+ csharp_style_prefer_range_operator = true : suggestion # IDE0057
206
206
207
207
# Miscellaneous preferences
208
208
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#miscellaneous-preferences
@@ -450,18 +450,23 @@ dotnet_naming_rule.parameters_rule.severity = warning
450
450
dotnet_diagnostic.MA0003.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0003.md
451
451
dotnet_diagnostic.MA0004.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0004.md
452
452
dotnet_diagnostic.MA0006.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0006.md
453
+ dotnet_diagnostic.MA0011.severity = none # Duplicate of CA1305
453
454
dotnet_diagnostic.MA0016.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0016.md
454
455
dotnet_diagnostic.MA0025.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0025.md
455
456
dotnet_diagnostic.MA0026.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0026.md
456
457
dotnet_diagnostic.MA0028.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0028.md
458
+ dotnet_diagnostic.MA0038.severity = none # Duplicate of CA1822
457
459
dotnet_diagnostic.MA0048.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0048.md
458
460
459
461
460
462
# Microsoft - Code Analysis
461
463
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
462
464
dotnet_diagnostic.CA1014.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1014.md
463
465
dotnet_diagnostic.CA1068.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1068.md
466
+ dotnet_diagnostic.CA1305.severity = error
464
467
dotnet_diagnostic.CA1707.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1707.md
468
+ dotnet_diagnostic.CA1812.severity = none
469
+ dotnet_diagnostic.CA1822.severity = suggestion
465
470
dotnet_diagnostic.CA2007.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md
466
471
dotnet_diagnostic.IDE0005.severity = warning # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0005.md
467
472
dotnet_diagnostic.IDE0058.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0058.md
@@ -488,6 +493,7 @@ dotnet_diagnostic.SA1202.severity = none # https://github.com/atc-net
488
493
dotnet_diagnostic.SA1204.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1204.md
489
494
dotnet_diagnostic.SA1413.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1413.md
490
495
dotnet_diagnostic.SA1600.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1600.md
496
+ dotnet_diagnostic.SA1601.severity = none
491
497
dotnet_diagnostic.SA1602.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1602.md
492
498
dotnet_diagnostic.SA1604.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1604.md
493
499
dotnet_diagnostic.SA1623.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1623.md
@@ -499,6 +505,10 @@ dotnet_diagnostic.SA1649.severity = error # https://github.com/atc-net
499
505
# SonarAnalyzer.CSharp
500
506
# https://rules.sonarsource.com/csharp
501
507
dotnet_diagnostic.S1135.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/SonarAnalyzerCSharp/S1135.md
508
+ dotnet_diagnostic.S2629.severity = none # Don't use string interpolation in logging message templates.
509
+ dotnet_diagnostic.S6602.severity = none # " Find" method should be used instead of the " FirstOrDefault"
510
+ dotnet_diagnostic.S6603.severity = none # The collection-specific " TrueForAll" method should be used instead of the " All"
511
+ dotnet_diagnostic.S6605.severity = none # Collection-specific " Exists" method should be used instead of the " Any"
502
512
503
513
504
514
# #########################################
@@ -525,11 +535,8 @@ dotnet_diagnostic.IDE0079.severity = none # dotnet_remove_unnecessary_
525
535
526
536
dotnet_diagnostic.MA0134.severity = none # Observe result of async calls
527
537
528
- dotnet_diagnostic.S2629.severity = none # Don't use string interpolation in logging message templates.
529
538
dotnet_diagnostic.S3267.severity = none # Loops should be simplified with ' LINQ' expressions
530
539
dotnet_diagnostic.S4487.severity = none # Remove this unread private field
531
- dotnet_diagnostic.S6602.severity = none # " Find" method should be used instead of the " FirstOrDefault"
532
- dotnet_diagnostic.S6605.severity = none # Collection-specific " Exists" method should be used instead of the " Any"
533
540
dotnet_diagnostic.S6667.severity = none # Logging in a catch clause should pass the caught exception as a parameter.
534
541
535
542
dotnet_diagnostic.SCS0006.severity = none # Do Not Use Broken Cryptographic Algorithms - Its ok, only using to calculate a file-hash
0 commit comments