| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419 |
- [*.cs]
- spelling_languages = en-us,en-gb
- spelling_exclusion_path = ../../exclusion.dic
- spelling_checkable_types = identifiers,comments
- #### Sonar rules ####
- # S108: Nested blocks of code should not be left empty
- # https://rules.sonarsource.com/csharp/RSPEC-108/
- dotnet_diagnostic.S108.severity = silent
- # S125: Sections of code should not be commented out
- # https://rules.sonarsource.com/csharp/RSPEC-125/
- dotnet_diagnostic.S125.severity = silent
- # S1144: Unused private types or members should be removed
- # https://rules.sonarsource.com/csharp/RSPEC-1144/
- dotnet_diagnostic.S1144.severity = silent
- # S1186: Methods should not be empty
- # https://rules.sonarsource.com/csharp/RSPEC-1186/
- dotnet_diagnostic.S1186.severity = silent
- # S1607: Tests should not be ignored
- # https://rules.sonarsource.com/csharp/RSPEC-1607/
- dotnet_diagnostic.S1607.severity = silent
- # S2094: Classes should not be empty
- # https://rules.sonarsource.com/csharp/RSPEC-2094/
- dotnet_diagnostic.S2094.severity = silent
- # S2187: Test classes should contain at least one test case
- # https://rules.sonarsource.com/csharp/RSPEC-2187/
- dotnet_diagnostic.S2187.severity = silent
- # S2292: Trivial properties should be auto-implemented
- # https://rules.sonarsource.com/csharp/RSPEC-2292/
- dotnet_diagnostic.S2292.severity = silent
- # S2925: "Thread.Sleep" should not be used in tests
- # https://rules.sonarsource.com/csharp/RSPEC-2925/
- dotnet_diagnostic.S2925.severity = silent
- # S3415: Assertion arguments should be passed in the correct order
- # https://rules.sonarsource.com/csharp/RSPEC-3415/
- dotnet_diagnostic.S3415.severity = silent
- # S3881: "IDisposable" should be implemented correctly
- # https://rules.sonarsource.com/csharp/RSPEC-3881/
- dotnet_diagnostic.S3881.severity = silent
- # S4144: Methods should not have identical implementations
- # https://rules.sonarsource.com/csharp/RSPEC-4144/
- dotnet_diagnostic.S4144.severity = silent
- # S4158: Empty collections should not be accessed or iterated
- # https://rules.sonarsource.com/csharp/RSPEC-4158/
- dotnet_diagnostic.S4158.severity = silent
- #### SYSLIB diagnostics ####
- # SYSLIB1045: Use 'GeneratedRegexAttribute' to generate the regular expression implementation at compile-time
- #
- # TODO: Remove this when https://github.com/sshnet/SSH.NET/issues/1131 is implemented.
- dotnet_diagnostic.SYSLIB1045.severity = silent
- ### StyleCop Analyzers rules ###
- # SA1000: Keywords must be spaced correctly
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1000.md
- dotnet_diagnostic.SA1000.severity = silent
- # SA1001: Commas must be spaced correctly
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1001.md
- dotnet_diagnostic.SA1001.severity = silent
- # SA1002: Semicolons must be spaced correctly
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1002.md
- dotnet_diagnostic.SA1002.severity = silent
- # SA1004: Documentation lines must begin with single space
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1004.md
- dotnet_diagnostic.SA1004.severity = silent
- # SA1005: Single line comments must begin with single space
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1005.md
- dotnet_diagnostic.SA1005.severity = silent
- # SA1012: Opening braces must be spaced correctly
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1012.md
- dotnet_diagnostic.SA1012.severity = silent
- # SA1013: Closing braces must be spaced correctly
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1013.md
- dotnet_diagnostic.SA1013.severity = silent
- # SA1025: Code must not contain multiple whitespace in a row
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1025.md
- dotnet_diagnostic.SA1025.severity = silent
- # SA1026: Code must not contain space after new keyword in implicitly typed array allocation
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1026.md
- dotnet_diagnostic.SA1026.severity = silent
- # SA1028: Code must not contain trailing whitespace
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md
- dotnet_diagnostic.SA1028.severity = silent
- # SA1111: Closing parenthesis must be on line of last parameter
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1111.md
- dotnet_diagnostic.SA1111.severity = silent
- # SA1117: Parameters must be on same line or separate lines
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md
- dotnet_diagnostic.SA1117.severity = silent
- # SA1119: Statement must not use unnecessary parenthesis
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1119.md
- dotnet_diagnostic.SA1119.severity = silent
- # SA1120: Comments must contain text
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1120.md
- dotnet_diagnostic.SA1120.severity = silent
- # SA1122: Use String.Empty for empty strings
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1122.md
- dotnet_diagnostic.SA1122.severity = silent
- # SA1123:Do not place regions within elements
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1123.md
- dotnet_diagnostic.SA1123.severity = silent
- # SA1124: Do not use regions
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1124.md
- dotnet_diagnostic.SA1124.severity = silent
- # SA1128: Constructor initializer must be on own line
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1128.md
- dotnet_diagnostic.SA1128.severity = silent
- # SA1129: Do not use default value type constructor
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1129.md
- dotnet_diagnostic.SA1129.severity = silent
- # SA1133: Do not combine attributes
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1133.md
- dotnet_diagnostic.SA1133.severity = silent
- # SA1139: Use literals suffix notation instead of casting
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1139.md
- dotnet_diagnostic.SA1139.severity = silent
- # SA1204: Static elements must appear before instance elements
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1204.md
- dotnet_diagnostic.SA1204.severity = silent
- # SA1208: System using directives must be placed before other using directives
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1208.md
- dotnet_diagnostic.SA1208.severity = silent
- # SA1210: Using directives must be ordered alphabetically by namespace
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1210.md
- dotnet_diagnostic.SA1210.severity = silent
- # SA1214: Readonly elements must appear before non-readonly elements
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1214.md
- dotnet_diagnostic.SA1214.severity = silent
- # SA1306: Field names must begin with lower case letter
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1306.md
- dotnet_diagnostic.SA1306.severity = silent
- # SA1310: Field names must not contain underscore
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1310.md
- dotnet_diagnostic.SA1310.severity = silent
- # SA1400: Access modifier must be declared
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1400.md
- dotnet_diagnostic.SA1400.severity = silent
- # SA1401: Fields must be private
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1401.md
- dotnet_diagnostic.SA1401.severity = silent
- # SA1402: File may only contain a single type
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1402.md
- dotnet_diagnostic.SA1402.severity = silent
- # SA1404: Code analysis suppression must have justification
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1404.md
- dotnet_diagnostic.SA1404.severity = silent
- # SA1411: Attribute constructor must not use unnecessary parenthesis
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1411.md
- dotnet_diagnostic.SA1411.severity = silent
- # SA1500: Braces for multiline statements must not share line
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1500.md
- dotnet_diagnostic.SA1500.severity = silent
- # SA1501: Statement must not be on single line
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1501.md
- dotnet_diagnostic.SA1501.severity = silent
- # SA1505: Opening braces must not be followed by blank line
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1505.md
- dotnet_diagnostic.SA1505.severity = silent
- # SA1507: Code must not contain multiple blank lines in a row
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1507.md
- dotnet_diagnostic.SA1507.severity = silent
- # SA1508: Closing braces must not be preceded by blank line
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1508.md
- dotnet_diagnostic.SA1508.severity = silent
- # SA1512: Single line comments must not be followed by blank line
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1512.md
- dotnet_diagnostic.SA1512.severity = silent
- # SA1513: Closing brace must be followed by blank line
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1513.md
- dotnet_diagnostic.SA1513.severity = silent
- # SA1515: Single line comment must be preceded by blank line
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1515.md
- dotnet_diagnostic.SA1515.severity = silent
- # SA1518: Use line endings correctly at end of file
- https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1518.md
- dotnet_diagnostic.SA1518.severity = silent
- # SA1636: File header copyright text must match
- https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1636.md
- dotnet_diagnostic.SA1636.severity = silent
- # SA1642: Constructor summary documentation must begin with standard text
- # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1642.md
- dotnet_diagnostic.SA1642.severity = silent
- # SA1649: File name must match type name
- https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1649.md
- dotnet_diagnostic.SA1649.severity = silent
- #### Meziantou.Analyzer rules ####
- # MA0001: StringComparison is missing
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0001.md
- dotnet_diagnostic.MA0001.severity = silent
- # MA0003: Add parameter name to improve readability
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0003.md
- dotnet_diagnostic.MA0003.severity = silent
- # MA0004: Use Task.ConfigureAwait(false)
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0004.md
- dotnet_diagnostic.MA0004.severity = silent
- # MA0005: Use Array.Empty<T>()
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0005.md
- dotnet_diagnostic.MA0005.severity = silent
- # MA0011: IFormatProvider is missing
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0011.md
- dotnet_diagnostic.MA0011.severity = silent
- # MA0015: Specify the parameter name in ArgumentException
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0015.md
- dotnet_diagnostic.MA0015.severity = silent
- # MA0019: Use EventArgs.Empty
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0019.md
- dotnet_diagnostic.MA0019.severity = silent
- # MA0035: Do not use dangerous threading methods
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0035.md
- dotnet_diagnostic.MA0035.severity = silent
- # MA0040: Forward the CancellationToken parameter to methods that take one
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0040.md
- dotnet_diagnostic.MA0040.severity = silent
- # MA0046: Use EventHandler<T> to declare events
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0046.md
- dotnet_diagnostic.MA0046.severity = silent
- # MA0053: Make class sealed
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0053.md
- dotnet_diagnostic.MA0053.severity = silent
- # MA0060: The value returned by Stream.Read/Stream.ReadAsync is not used
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0060.md
- dotnet_diagnostic.MA0060.severity = silent
- # MA0075: Do not use implicit culture-sensitive ToString
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0075.md
- dotnet_diagnostic.MA0075.severity = silent
- # MA0099 - Use Explicit enum value instead of 0
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0099.md
- dotnet_diagnostic.MA0099.severity = silent
- # MA0110: Use the Regex source generator
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0110.md
- dotnet_diagnostic.MA0110.severity = silent
- # MA0026: Fix TODO comment
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md
- dotnet_diagnostic.MA0026.severity = silent
- # MA0042: Do not use blocking calls in an async method
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0042.md
- dotnet_diagnostic.MA0042.severity = silent
- # MA0160: Use ContainsKey instead of TryGetValue
- # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0160.md
- dotnet_diagnostic.MA0160.severity = silent
- #### .NET Compiler Platform analysers rules ####
- # CA1031: Do not catch general exception types
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1031
- dotnet_diagnostic.CA1031.severity = silent
- # CA1062: Validate arguments of public methods
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1062
- dotnet_diagnostic.CA1062.severity = silent
- # CA1063: Implement IDisposable correctly
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1063
- dotnet_diagnostic.CA1063.severity = silent
- # CA1307: Specify StringComparison for clarity
- https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1307
- dotnet_diagnostic.CA1307.severity = silent
- # CA1806: Do not ignore method results
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1806
- dotnet_diagnostic.CA1806.severity = silent
- # CA1515: Consider making public types internal
- # https://learn.microsoft.com/en-ca/dotnet/fundamentals/code-analysis/quality-rules/ca1515
- dotnet_diagnostic.CA1515.severity = silent
- # CA1822: Mark members as static
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1822
- dotnet_diagnostic.CA1822.severity = silent
- # CA1825: Avoid zero-length array allocations
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1825
- dotnet_diagnostic.CA1825.severity = silent
- # CA1841: Prefer Dictionary Contains methods
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1841
- dotnet_diagnostic.CA1841.severity = silent
- # CA1859: Use concrete types when possible for improved performance
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1859
- dotnet_diagnostic.CA1859.severity = silent
- # CA2000: Dispose objects before losing scope
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2000
- dotnet_diagnostic.CA2000.severity = silent
- # CA2007: Do not directly await a Task
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2007
- dotnet_diagnostic.CA2007.severity = silent
- # CA2201: Do not raise reserved exception types
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2201
- dotnet_diagnostic.CA2201.severity = silent
- # CA2213: Disposable fields should be disposed
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2213
- dotnet_diagnostic.CA2213.severity = silent
- # CA2227: Collection properties should be read only
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2227
- dotnet_diagnostic.CA2227.severity = silent
- # IDE0007: Use var instead of explicit type
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0007
- dotnet_diagnostic.IDE0007.severity = silent
- # IDE0028: Use collection initializers
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0028
- dotnet_diagnostic.IDE0028.severity = silent
- # IDE0058: Remove unnecessary expression value
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0058
- dotnet_diagnostic.IDE0058.severity = silent
- # IDE0059: Remove unnecessary value assignment
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0059
- dotnet_diagnostic.IDE0059.severity = silent
- # IDE0230: Use UTF-8 string literal
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0230
- dotnet_diagnostic.IDE0230.severity = silent
- # IDE0046: Use conditional expression for return
- # https://learn.microsoft.com/en-ca/dotnet/fundamentals/code-analysis/style-rules/ide0046
- dotnet_diagnostic.IDE0046.severity = silent
- # IDE0047: Remove unnecessary parentheses
- # https://learn.microsoft.com/en-ca/dotnet/fundamentals/code-analysis/style-rules/ide0047-ide0048
- dotnet_diagnostic.IDE0047.severity = silent
- # IDE0032: Use auto-implemented property
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0032
- dotnet_diagnostic.IDE0032.severity = silent
- # CA1812: Avoid uninstantiated internal classes
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1812
- dotnet_diagnostic.CA1812.severity = silent
- # CA1849: Call async methods when in an async method
- # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/CA1849
- dotnet_diagnostic.CA1849.severity = silent
|