11# ATC coding rules - https://github.com/atc-net/atc-coding-rules
2- # Version: 1.0.9
3- # Updated: 31-03 -2023
2+ # Version: 1.0.0
3+ # Updated: 25-09 -2023
44# Location: Root
5- # Distribution: DotNet7
5+ # Distribution: DotNet8
66# Inspired by: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options
77
88# #########################################
@@ -201,8 +201,8 @@ csharp_style_unused_value_assignment_preference = discard_variable
201201
202202# Index and range preferences
203203# 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
206206
207207# Miscellaneous preferences
208208# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#miscellaneous-preferences
@@ -450,18 +450,23 @@ dotnet_naming_rule.parameters_rule.severity = warning
450450dotnet_diagnostic.MA0003.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0003.md
451451dotnet_diagnostic.MA0004.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0004.md
452452dotnet_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
453454dotnet_diagnostic.MA0016.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0016.md
454455dotnet_diagnostic.MA0025.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0025.md
455456dotnet_diagnostic.MA0026.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0026.md
456457dotnet_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
457459dotnet_diagnostic.MA0048.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0048.md
458460
459461
460462# Microsoft - Code Analysis
461463# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
462464dotnet_diagnostic.CA1014.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1014.md
463465dotnet_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
464467dotnet_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
465470dotnet_diagnostic.CA2007.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md
466471dotnet_diagnostic.IDE0005.severity = warning # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0005.md
467472dotnet_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
488493dotnet_diagnostic.SA1204.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1204.md
489494dotnet_diagnostic.SA1413.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1413.md
490495dotnet_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
491497dotnet_diagnostic.SA1602.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1602.md
492498dotnet_diagnostic.SA1604.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1604.md
493499dotnet_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
499505# SonarAnalyzer.CSharp
500506# https://rules.sonarsource.com/csharp
501507dotnet_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"
502512
503513
504514# #########################################
@@ -514,10 +524,10 @@ dotnet_diagnostic.S1135.severity = suggestion # https://github.com/atc-net
514524dotnet_diagnostic.SA1615.severity = none # Element return value should be documented
515525
516526dotnet_diagnostic.CA1056.severity = none # URI properties should not be strings
517- dotnet_diagnostic.CA1812.severity = none # Internal class that is apparently never instantiated.
518527dotnet_diagnostic.CA2007.severity = none # Consider calling ConfigureAwait on the awaited task
519528dotnet_diagnostic.CA2227.severity = none # Collection properties should be read only
520529
521530dotnet_diagnostic.MA0004.severity = none # Use Task.ConfigureAwait(false) as the current SynchronizationContext is not needed
522531
523532dotnet_diagnostic.S1172.severity = suggestion # Temporary, due to false positive in latest version of the analyzer package
533+ dotnet_diagnostic.S6672.severity = suggestion # Intended the logger is generic
0 commit comments