1
1
# ATC coding rules - https://github.com/atc-net/atc-coding-rules
2
- # Version: 1.0.9
3
- # Updated: 24-11-2022
2
+ # Version: 1.0.0
3
+ # Updated: 25-09-2023
4
4
# Location: Root
5
- # Distribution: DotNet7
5
+ # Distribution: DotNet8
6
6
# Inspired by: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options
7
7
8
8
# #########################################
@@ -87,6 +87,7 @@ dotnet_separate_import_directive_groups = false
87
87
# .NET Code Style Settings
88
88
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#net-code-style-settings
89
89
[* .{cs,csx,cake} ]
90
+
90
91
# "this." and "Me." qualifiers
91
92
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#this-and-me
92
93
dotnet_style_qualification_for_field = false
@@ -146,6 +147,7 @@ dotnet_style_operator_placement_when_wrapping = end_of_line
146
147
# C# Code Style Settings
147
148
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#c-code-style-settings
148
149
[* .{cs,csx,cake} ]
150
+
149
151
# Implicit and explicit types
150
152
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#implicit-and-explicit-types
151
153
csharp_style_var_for_built_in_types = true # IDE0007 and IDE0008
@@ -199,8 +201,8 @@ csharp_style_unused_value_assignment_preference = discard_variable
199
201
200
202
# Index and range preferences
201
203
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#index-and-range-preferences
202
- csharp_style_prefer_index_operator = true # IDE0056
203
- 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
204
206
205
207
# Miscellaneous preferences
206
208
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#miscellaneous-preferences
@@ -448,19 +450,25 @@ dotnet_naming_rule.parameters_rule.severity = warning
448
450
dotnet_diagnostic.MA0003.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0003.md
449
451
dotnet_diagnostic.MA0004.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0004.md
450
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
451
454
dotnet_diagnostic.MA0016.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0016.md
452
455
dotnet_diagnostic.MA0025.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0025.md
453
456
dotnet_diagnostic.MA0026.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0026.md
454
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
455
459
dotnet_diagnostic.MA0048.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/Meziantou/MA0048.md
456
460
457
461
458
462
# Microsoft - Code Analysis
459
463
# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
460
464
dotnet_diagnostic.CA1014.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA1014.md
461
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
462
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
463
470
dotnet_diagnostic.CA2007.severity = suggestion # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/CA2007.md
471
+ dotnet_diagnostic.IDE0005.severity = warning # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0005.md
464
472
dotnet_diagnostic.IDE0058.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/MicrosoftCodeAnalysis/IDE0058.md
465
473
466
474
@@ -485,6 +493,7 @@ dotnet_diagnostic.SA1202.severity = none # https://github.com/atc-net
485
493
dotnet_diagnostic.SA1204.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1204.md
486
494
dotnet_diagnostic.SA1413.severity = error # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1413.md
487
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
488
497
dotnet_diagnostic.SA1602.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1602.md
489
498
dotnet_diagnostic.SA1604.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1604.md
490
499
dotnet_diagnostic.SA1623.severity = none # https://github.com/atc-net/atc-coding-rules/blob/main/documentation/CodeAnalyzersRules/StyleCop/SA1623.md
@@ -511,6 +520,8 @@ dotnet_diagnostic.IDE0057.severity = none # Substring can be simplifie
511
520
512
521
dotnet_diagnostic.CA1054.severity = none # URI parameters should not be strings
513
522
dotnet_diagnostic.CA1848.severity = none # For improved performance, use the LoggerMessage delegates instead of calling ' LoggerExtensions.LogTrace(ILogger, string, params object[])'
523
+ dotnet_diagnostic.CA1859.severity = none #
524
+ dotnet_diagnostic.CA1860.severity = none #
514
525
dotnet_diagnostic.CA2007.severity = none # Consider calling ConfigureAwait on the awaited task
515
526
dotnet_diagnostic.CA2254.severity = none # For improved performance, use the LoggerMessage delegates instead of calling ' LoggerExtensions.LogTrace(ILogger, string, params object[])'
516
527
@@ -520,4 +531,13 @@ dotnet_diagnostic.MA0075.severity = none # Do not use implicit cultur
520
531
dotnet_diagnostic.MA0076.severity = none # Do not use implicit culture-sensitive ToString in interpolated strings
521
532
522
533
dotnet_diagnostic.S1172.severity = none # False positive
523
- dotnet_diagnostic.S4457.severity = none # Split this method into two, one handling parameters check and the other handling the asynchronous code
534
+ dotnet_diagnostic.S2589.severity = none #
535
+ dotnet_diagnostic.S2629.severity = none #
536
+ dotnet_diagnostic.S3267.severity = none #
537
+ dotnet_diagnostic.S3878.severity = none #
538
+ dotnet_diagnostic.S4457.severity = none # Split this method into two, one handling parameters check and the other handling the asynchronous code
539
+ dotnet_diagnostic.S6602.severity = none #
540
+ dotnet_diagnostic.S6605.severity = none #
541
+ dotnet_diagnostic.S6618.severity = none #
542
+ dotnet_diagnostic.S6667.severity = none #
543
+ dotnet_diagnostic.S6608.severity = none #
0 commit comments