.editorconfig 3.8 KB

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