.editorconfig 2.8 KB

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