.editorconfig 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. [*.cs]
  2. #### Sonar rules ####
  3. # S1264: A "while" loop should be used instead of a "for" loop
  4. # https://rules.sonarsource.com/csharp/RSPEC-1264
  5. dotnet_diagnostic.S1264.severity = none
  6. # S1450: Private fields only used as local variables in methods should become local variables
  7. # https://rules.sonarsource.com/csharp/RSPEC-1450
  8. #
  9. # TODO: Re-enable when the following issue is resolved:
  10. # https://github.com/SonarSource/sonar-dotnet/issues/8239
  11. dotnet_diagnostic.S1450.severity = none
  12. # S2372: Exceptions should not be thrown from property getters
  13. # https://rules.sonarsource.com/csharp/RSPEC-2372/
  14. dotnet_diagnostic.S2372.severity = none
  15. # S2583: Conditionally executed code should be reachable
  16. # https://rules.sonarsource.com/csharp/RSPEC-2583/
  17. #
  18. # TODO: Re-enable when the following issue is resolved:
  19. # https://github.com/SonarSource/sonar-dotnet/issues/8264
  20. dotnet_diagnostic.S2583.severity = none
  21. # S2589: Boolean expressions should not be gratuitous
  22. # https://rules.sonarsource.com/csharp/RSPEC-2589/
  23. #
  24. # TODO: Re-enable when the following issue is resolved:
  25. # https://github.com/SonarSource/sonar-dotnet/issues/8262
  26. dotnet_diagnostic.S2589.severity = none
  27. dotnet_diagnostic.S2372.severity = none
  28. #### StyleCop Analyzers rules ####
  29. # SA1123: Do not place regions within elements
  30. # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1123.md
  31. dotnet_diagnostic.SA1123.severity = none
  32. # SA1124: Do not use regions
  33. # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1124.md
  34. dotnet_diagnostic.SA1124.severity = none
  35. # SA1202: Elements must be ordered by access
  36. # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1202.md
  37. dotnet_diagnostic.SA1202.severity = none
  38. # SA1204: Static elements must appear before instance elements
  39. # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1204.md
  40. dotnet_diagnostic.SA1204.severity = none
  41. # SA1310: Field names must not contain underscore
  42. # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1310.md
  43. #dotnet_diagnostic.SA1310.severity = none
  44. # SA1312: Variable names should begin with lower-case letter
  45. # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1312.md
  46. dotnet_diagnostic.SA1312.severity = none
  47. # SA1636: File header copyright text should match
  48. # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1636.md
  49. dotnet_diagnostic.SA1636.severity = none
  50. # SA1643: Destructor summary documentation must begin with standard text
  51. # https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1643.md
  52. dotnet_diagnostic.SA1643.severity = none
  53. #### Meziantou.Analyzer rules ####
  54. # MA0001: StringComparison is missing
  55. # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0001.md
  56. dotnet_diagnostic.MA0001.severity = none
  57. # MA0011: IFormatProvider is missing
  58. # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0011.md
  59. #
  60. # TODO: Remove exclusion when issues are fixed
  61. dotnet_diagnostic.MA0011.severity = none
  62. # MA0015: Specify the parameter name in ArgumentException
  63. # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0015.md
  64. #
  65. # TODO: Remove exclusion when issues are fixed
  66. dotnet_diagnostic.MA0015.severity = none
  67. # MA0050: Validate arguments correctly in iterator methods
  68. # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0050.md
  69. #
  70. # TODO: Re-enable when https://github.com/meziantou/Meziantou.Analyzer/issues/617 is fixed
  71. dotnet_diagnostic.MA0050.severity = none
  72. # MA0053: Make class sealed
  73. # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0053.md
  74. MA0053.public_class_should_be_sealed = false
  75. # MA0055: Do not use finalizer
  76. # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0055.md
  77. #
  78. # TODO: Remove exclusion when issues are fixed
  79. dotnet_diagnostic.MA0055.severity = none
  80. # MA0089: Optimize string method usage
  81. # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0089.md
  82. dotnet_diagnostic.MA0089.severity = none
  83. # MA0110: Use the Regex source generator
  84. # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0110.md
  85. dotnet_diagnostic.MA0110.severity = none
  86. # MA0026: Fix TODO comment
  87. # https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md
  88. dotnet_diagnostic.MA0026.severity = none
  89. #### .NET Compiler Platform analysers rules ####
  90. # CA1030: Use events where appropriate
  91. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1030
  92. dotnet_diagnostic.CA1030.severity = none
  93. # CA1031: Do not catch general exception types
  94. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1031
  95. dotnet_diagnostic.CA1031.severity = none
  96. # CA1062: Validate arguments of public methods
  97. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1062
  98. #
  99. # TODO: Remove exclusion when issues are fixed
  100. dotnet_diagnostic.CA1062.severity = none
  101. # CA1307: Specify StringComparison for clarity
  102. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1307
  103. dotnet_diagnostic.CA1307.severity = none
  104. # CA1716: Identifiers should not match keywords
  105. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1716
  106. dotnet_diagnostic.CA1716.severity = none
  107. # CA1822: Mark members as static
  108. # https://learn.microsoft.com/en-US/dotnet/fundamentals/code-analysis/quality-rules/ca1822
  109. dotnet_code_quality.CA1822.api_surface = private,internal
  110. # CA2213: Disposable fields should be disposed
  111. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2213
  112. dotnet_diagnostic.CA2213.severity = none
  113. # CA3075: Insecure DTD Processing
  114. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca3075
  115. dotnet_diagnostic.CA3075.severity = none
  116. # IDE0004: Types that own disposable fields should be disposable
  117. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0004
  118. dotnet_diagnostic.IDE0004.severity = none
  119. # IDE0047: Remove unnecessary parentheses
  120. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0047-ide0048
  121. dotnet_diagnostic.IDE0047.severity = none
  122. # IDE0048: Add parentheses for clarity
  123. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0047-ide0048
  124. dotnet_diagnostic.IDE0048.severity = none
  125. # IDE0305: Collection initialization can be simplified
  126. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0305
  127. dotnet_diagnostic.IDE0305.severity = none
  128. # IDE0046: Use conditional expression for return
  129. # https://learn.microsoft.com/en-ca/dotnet/fundamentals/code-analysis/style-rules/ide0046
  130. dotnet_diagnostic.IDE0046.severity = none
  131. # IDE0032: Use auto-implemented property
  132. # https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0032
  133. dotnet_diagnostic.IDE0032.severity = none
  134. # CA5350: Do Not Use Weak Cryptographic Algorithms
  135. # https://learn.microsoft.com/en-ca/dotnet/fundamentals/code-analysis/quality-rules/ca5350
  136. dotnet_diagnostic.CA5350.severity = none
  137. # CA5351: Do Not Use Broken Cryptographic Algorithms
  138. # https://learn.microsoft.com/en-ca/dotnet/fundamentals/code-analysis/quality-rules/ca5351
  139. dotnet_diagnostic.CA5351.severity = none