CorrectnessRulesDefault.ruleset 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0"?>
  2. <RuleSet Name="Correctness Rules with default severity" Description="All Correctness Rules with default severity. Rules with IsEnabledByDefault = false or from a different category are disabled." ToolsVersion="15.0">
  3. <!-- Correctness Rules -->
  4. <Rules AnalyzerId="Microsoft.CodeAnalysis.Analyzers" RuleNamespace="Microsoft.CodeAnalysis.Analyzers">
  5. <Rule Id="RS1010" Action="Warning" /> <!-- Create code actions should have a unique EquivalenceKey for FixAll occurrences support -->
  6. <Rule Id="RS1011" Action="Warning" /> <!-- Use code actions that have a unique EquivalenceKey for FixAll occurrences support -->
  7. <Rule Id="RS1016" Action="Warning" /> <!-- Code fix providers should provide FixAll support -->
  8. </Rules>
  9. <!-- Other Rules -->
  10. <Rules AnalyzerId="Microsoft.CodeAnalysis.Analyzers" RuleNamespace="Microsoft.CodeAnalysis.Analyzers">
  11. <Rule Id="RS1001" Action="None" /> <!-- Missing diagnostic analyzer attribute -->
  12. <Rule Id="RS1002" Action="None" /> <!-- Missing kind argument when registering an analyzer action -->
  13. <Rule Id="RS1003" Action="None" /> <!-- Unsupported SymbolKind argument when registering a symbol analyzer action -->
  14. <Rule Id="RS1004" Action="None" /> <!-- Recommend adding language support to diagnostic analyzer -->
  15. <Rule Id="RS1005" Action="None" /> <!-- ReportDiagnostic invoked with an unsupported DiagnosticDescriptor -->
  16. <Rule Id="RS1006" Action="None" /> <!-- Invalid type argument for DiagnosticAnalyzer's Register method -->
  17. <Rule Id="RS1007" Action="None" /> <!-- Provide localizable arguments to diagnostic descriptor constructor -->
  18. <Rule Id="RS1008" Action="None" /> <!-- Avoid storing per-compilation data into the fields of a diagnostic analyzer -->
  19. <Rule Id="RS1009" Action="None" /> <!-- Only internal implementations of this interface are allowed -->
  20. <Rule Id="RS1012" Action="None" /> <!-- Start action has no registered actions -->
  21. <Rule Id="RS1013" Action="None" /> <!-- Start action has no registered non-end actions -->
  22. <Rule Id="RS1014" Action="None" /> <!-- Do not ignore values returned by methods on immutable objects -->
  23. <Rule Id="RS1015" Action="None" /> <!-- Provide non-null 'helpLinkUri' value to diagnostic descriptor constructor -->
  24. <Rule Id="RS1017" Action="None" /> <!-- DiagnosticId for analyzers must be a non-null constant -->
  25. <Rule Id="RS1018" Action="None" /> <!-- DiagnosticId for analyzers must be in specified format -->
  26. <Rule Id="RS1019" Action="None" /> <!-- DiagnosticId must be unique across analyzers -->
  27. <Rule Id="RS1020" Action="None" /> <!-- Category for analyzers must be from the specified values -->
  28. <Rule Id="RS1021" Action="None" /> <!-- Invalid entry in analyzer category and diagnostic ID range specification file -->
  29. <Rule Id="RS1022" Action="None" /> <!-- Do not use types from Workspaces assembly in an analyzer -->
  30. <Rule Id="RS1023" Action="None" /> <!-- Upgrade MSBuildWorkspace -->
  31. <Rule Id="RS1024" Action="None" /> <!-- Symbols should be compared for equality -->
  32. <Rule Id="RS1025" Action="None" /> <!-- Configure generated code analysis -->
  33. <Rule Id="RS1026" Action="None" /> <!-- Enable concurrent execution -->
  34. <Rule Id="RS1027" Action="None" /> <!-- Types marked with DiagnosticAnalyzerAttribute(s) should inherit from DiagnosticAnalyzer -->
  35. <Rule Id="RS1028" Action="None" /> <!-- Provide non-null 'customTags' value to diagnostic descriptor constructor -->
  36. <Rule Id="RS1029" Action="None" /> <!-- Do not use reserved diagnostic IDs -->
  37. <Rule Id="RS1030" Action="None" /> <!-- Do not invoke Compilation.GetSemanticModel() method within a diagnostic analyzer -->
  38. <Rule Id="RS1031" Action="None" /> <!-- Define diagnostic title correctly -->
  39. <Rule Id="RS1032" Action="None" /> <!-- Define diagnostic message correctly -->
  40. <Rule Id="RS1033" Action="None" /> <!-- Define diagnostic description correctly -->
  41. <Rule Id="RS1034" Action="None" /> <!-- Prefer 'IsKind' for checking syntax kinds -->
  42. <Rule Id="RS1035" Action="None" /> <!-- Do not use APIs banned for analyzers -->
  43. <Rule Id="RS1036" Action="None" /> <!-- Specify analyzer banned API enforcement setting -->
  44. <Rule Id="RS1037" Action="None" /> <!-- Add "CompilationEnd" custom tag to compilation end diagnostic descriptor -->
  45. <Rule Id="RS1038" Action="None" /> <!-- Compiler extensions should be implemented in assemblies with compiler-provided references -->
  46. <Rule Id="RS1039" Action="None" /> <!-- This call to 'SemanticModel.GetDeclaredSymbol()' will always return 'null' -->
  47. <Rule Id="RS1040" Action="None" /> <!-- This call to 'SemanticModel.GetDeclaredSymbol()' will always return 'null' -->
  48. <Rule Id="RS1041" Action="None" /> <!-- Compiler extensions should be implemented in assemblies targeting netstandard2.0 -->
  49. <Rule Id="RS1042" Action="None" /> <!-- Implementations of this interface are not allowed -->
  50. <Rule Id="RS2000" Action="None" /> <!-- Add analyzer diagnostic IDs to analyzer release -->
  51. <Rule Id="RS2001" Action="None" /> <!-- Ensure up-to-date entry for analyzer diagnostic IDs are added to analyzer release -->
  52. <Rule Id="RS2002" Action="None" /> <!-- Do not add removed analyzer diagnostic IDs to unshipped analyzer release -->
  53. <Rule Id="RS2003" Action="None" /> <!-- Shipped diagnostic IDs that are no longer reported should have an entry in the 'Removed Rules' table in unshipped file -->
  54. <Rule Id="RS2004" Action="None" /> <!-- Diagnostic IDs marked as removed in analyzer release file should not be reported by analyzers -->
  55. <Rule Id="RS2005" Action="None" /> <!-- Remove duplicate entries for diagnostic ID in the same analyzer release -->
  56. <Rule Id="RS2006" Action="None" /> <!-- Remove duplicate entries for diagnostic ID between analyzer releases -->
  57. <Rule Id="RS2007" Action="None" /> <!-- Invalid entry in analyzer release file -->
  58. <Rule Id="RS2008" Action="None" /> <!-- Enable analyzer release tracking -->
  59. </Rules>
  60. </RuleSet>