|
| 1 | +[*.cs] |
| 2 | + |
| 3 | +#### Sonar rules #### |
| 4 | + |
| 5 | +# S125: Sections of code should not be commented out |
| 6 | +https://rules.sonarsource.com/csharp/RSPEC-125/ |
| 7 | +dotnet_diagnostic.S125.severity = suggestion |
| 8 | + |
| 9 | +# S1118: Utility classes should not have public constructors |
| 10 | +# https://rules.sonarsource.com/csharp/RSPEC-1118/ |
| 11 | +dotnet_diagnostic.S1118.severity = suggestion |
| 12 | + |
| 13 | +# S1450: Private fields only used as local variables in methods should become local variables |
| 14 | +# https://rules.sonarsource.com/csharp/RSPEC-1450/ |
| 15 | +dotnet_diagnostic.S1450.severity = suggestion |
| 16 | + |
| 17 | +# S4144: Methods should not have identical implementations |
| 18 | +# https://rules.sonarsource.com/csharp/RSPEC-4144/ |
| 19 | +dotnet_diagnostic.S4144.severity = suggestion |
| 20 | + |
| 21 | +#### SYSLIB diagnostics #### |
| 22 | + |
| 23 | + |
| 24 | +#### StyleCop Analyzers rules #### |
| 25 | + |
| 26 | +# SA1028: Code must not contain trailing whitespace |
| 27 | +# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md |
| 28 | +dotnet_diagnostic.SA1028.severity = suggestion |
| 29 | + |
| 30 | +# SA1414: Tuple types in signatures should have element names |
| 31 | +https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1414.md |
| 32 | +dotnet_diagnostic.SA1414.severity = suggestion |
| 33 | + |
| 34 | +# SA1400: Access modifier must be declared |
| 35 | +# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1400.md |
| 36 | +dotnet_diagnostic.SA1400.severity = suggestion |
| 37 | + |
| 38 | +# SA1401: Fields must be private |
| 39 | +# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1401.md |
| 40 | +dotnet_diagnostic.SA1401.severity = suggestion |
| 41 | + |
| 42 | +# SA1411: Attribute constructor must not use unnecessary parenthesis |
| 43 | +# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1411.md |
| 44 | +dotnet_diagnostic.SA1411.severity = suggestion |
| 45 | + |
| 46 | +# SA1505: Opening braces must not be followed by blank line |
| 47 | +# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1505.md |
| 48 | +dotnet_diagnostic.SA1505.severity = suggestion |
| 49 | + |
| 50 | +# SA1512: Single line comments must not be followed by blank line |
| 51 | +# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1512.md |
| 52 | +dotnet_diagnostic.SA1512.severity = suggestion |
| 53 | + |
| 54 | +# SA1513: Closing brace must be followed by blank line |
| 55 | +# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1513.md |
| 56 | +dotnet_diagnostic.SA1513.severity = suggestion |
| 57 | + |
| 58 | +#### Meziantou.Analyzer rules #### |
| 59 | + |
| 60 | +# MA0003: Add parameter name to improve readability |
| 61 | +# https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0003.md |
| 62 | +dotnet_diagnostic.MA0003.severity = suggestion |
| 63 | + |
| 64 | +# MA0053: Make class sealed |
| 65 | +# https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0053.md |
| 66 | +dotnet_diagnostic.MA0053.severity = suggestion |
| 67 | + |
| 68 | +#### .NET Compiler Platform analysers rules #### |
| 69 | + |
| 70 | +# CA2000: Dispose objects before losing scope |
| 71 | +# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2000 |
| 72 | +dotnet_diagnostic.CA2000.severity = suggestion |
0 commit comments