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