152 lines
5.5 KiB
INI
152 lines
5.5 KiB
INI
# NOTE: Requires **VS2019 16.3** or later
|
|
|
|
# MicrosoftCodeAnalysisLocalization Rules Enabled as build warnings
|
|
# Description: All MicrosoftCodeAnalysisLocalization Rules are enabled as build warnings. MicrosoftCodeAnalysisLocalization Rules with IsEnabledByDefault = false are force enabled as build warnings. Rules from a different category are disabled.
|
|
|
|
# Code files
|
|
[*.{cs,vb}]
|
|
|
|
# MicrosoftCodeAnalysisLocalization Rules
|
|
|
|
# RS1007: Provide localizable arguments to diagnostic descriptor constructor
|
|
dotnet_diagnostic.RS1007.severity = warning
|
|
|
|
|
|
|
|
# Other Rules
|
|
|
|
# RS1001: Missing diagnostic analyzer attribute
|
|
dotnet_diagnostic.RS1001.severity = none
|
|
|
|
# RS1002: Missing kind argument when registering an analyzer action
|
|
dotnet_diagnostic.RS1002.severity = none
|
|
|
|
# RS1003: Unsupported SymbolKind argument when registering a symbol analyzer action
|
|
dotnet_diagnostic.RS1003.severity = none
|
|
|
|
# RS1004: Recommend adding language support to diagnostic analyzer
|
|
dotnet_diagnostic.RS1004.severity = none
|
|
|
|
# RS1005: ReportDiagnostic invoked with an unsupported DiagnosticDescriptor
|
|
dotnet_diagnostic.RS1005.severity = none
|
|
|
|
# RS1006: Invalid type argument for DiagnosticAnalyzer's Register method
|
|
dotnet_diagnostic.RS1006.severity = none
|
|
|
|
# RS1008: Avoid storing per-compilation data into the fields of a diagnostic analyzer
|
|
dotnet_diagnostic.RS1008.severity = none
|
|
|
|
# RS1009: Only internal implementations of this interface are allowed
|
|
dotnet_diagnostic.RS1009.severity = none
|
|
|
|
# RS1010: Create code actions should have a unique EquivalenceKey for FixAll occurrences support
|
|
dotnet_diagnostic.RS1010.severity = none
|
|
|
|
# RS1011: Use code actions that have a unique EquivalenceKey for FixAll occurrences support
|
|
dotnet_diagnostic.RS1011.severity = none
|
|
|
|
# RS1012: Start action has no registered actions
|
|
dotnet_diagnostic.RS1012.severity = none
|
|
|
|
# RS1013: Start action has no registered non-end actions
|
|
dotnet_diagnostic.RS1013.severity = none
|
|
|
|
# RS1014: Do not ignore values returned by methods on immutable objects
|
|
dotnet_diagnostic.RS1014.severity = none
|
|
|
|
# RS1015: Provide non-null 'helpLinkUri' value to diagnostic descriptor constructor
|
|
dotnet_diagnostic.RS1015.severity = none
|
|
|
|
# RS1016: Code fix providers should provide FixAll support
|
|
dotnet_diagnostic.RS1016.severity = none
|
|
|
|
# RS1017: DiagnosticId for analyzers must be a non-null constant
|
|
dotnet_diagnostic.RS1017.severity = none
|
|
|
|
# RS1018: DiagnosticId for analyzers must be in specified format
|
|
dotnet_diagnostic.RS1018.severity = none
|
|
|
|
# RS1019: DiagnosticId must be unique across analyzers
|
|
dotnet_diagnostic.RS1019.severity = none
|
|
|
|
# RS1020: Category for analyzers must be from the specified values
|
|
dotnet_diagnostic.RS1020.severity = none
|
|
|
|
# RS1021: Invalid entry in analyzer category and diagnostic ID range specification file
|
|
dotnet_diagnostic.RS1021.severity = none
|
|
|
|
# RS1022: Do not use types from Workspaces assembly in an analyzer
|
|
dotnet_diagnostic.RS1022.severity = none
|
|
|
|
# RS1023: Upgrade MSBuildWorkspace
|
|
dotnet_diagnostic.RS1023.severity = none
|
|
|
|
# RS1024: Symbols should be compared for equality
|
|
dotnet_diagnostic.RS1024.severity = none
|
|
|
|
# RS1025: Configure generated code analysis
|
|
dotnet_diagnostic.RS1025.severity = none
|
|
|
|
# RS1026: Enable concurrent execution
|
|
dotnet_diagnostic.RS1026.severity = none
|
|
|
|
# RS1027: Types marked with DiagnosticAnalyzerAttribute(s) should inherit from DiagnosticAnalyzer
|
|
dotnet_diagnostic.RS1027.severity = none
|
|
|
|
# RS1028: Provide non-null 'customTags' value to diagnostic descriptor constructor
|
|
dotnet_diagnostic.RS1028.severity = none
|
|
|
|
# RS1029: Do not use reserved diagnostic IDs
|
|
dotnet_diagnostic.RS1029.severity = none
|
|
|
|
# RS1030: Do not invoke Compilation.GetSemanticModel() method within a diagnostic analyzer
|
|
dotnet_diagnostic.RS1030.severity = none
|
|
|
|
# RS1031: Define diagnostic title correctly
|
|
dotnet_diagnostic.RS1031.severity = none
|
|
|
|
# RS1032: Define diagnostic message correctly
|
|
dotnet_diagnostic.RS1032.severity = none
|
|
|
|
# RS1033: Define diagnostic description correctly
|
|
dotnet_diagnostic.RS1033.severity = none
|
|
|
|
# RS1034: Prefer 'IsKind' for checking syntax kinds
|
|
dotnet_diagnostic.RS1034.severity = none
|
|
|
|
# RS1035: Do not use APIs banned for analyzers
|
|
dotnet_diagnostic.RS1035.severity = none
|
|
|
|
# RS1036: Specify analyzer banned API enforcement setting
|
|
dotnet_diagnostic.RS1036.severity = none
|
|
|
|
# RS1037: Add "CompilationEnd" custom tag to compilation end diagnostic descriptor
|
|
dotnet_diagnostic.RS1037.severity = none
|
|
|
|
# RS2000: Add analyzer diagnostic IDs to analyzer release
|
|
dotnet_diagnostic.RS2000.severity = none
|
|
|
|
# RS2001: Ensure up-to-date entry for analyzer diagnostic IDs are added to analyzer release
|
|
dotnet_diagnostic.RS2001.severity = none
|
|
|
|
# RS2002: Do not add removed analyzer diagnostic IDs to unshipped analyzer release
|
|
dotnet_diagnostic.RS2002.severity = none
|
|
|
|
# RS2003: Shipped diagnostic IDs that are no longer reported should have an entry in the 'Removed Rules' table in unshipped file
|
|
dotnet_diagnostic.RS2003.severity = none
|
|
|
|
# RS2004: Diagnostic IDs marked as removed in analyzer release file should not be reported by analyzers
|
|
dotnet_diagnostic.RS2004.severity = none
|
|
|
|
# RS2005: Remove duplicate entries for diagnostic ID in the same analyzer release
|
|
dotnet_diagnostic.RS2005.severity = none
|
|
|
|
# RS2006: Remove duplicate entries for diagnostic ID between analyzer releases
|
|
dotnet_diagnostic.RS2006.severity = none
|
|
|
|
# RS2007: Invalid entry in analyzer release file
|
|
dotnet_diagnostic.RS2007.severity = none
|
|
|
|
# RS2008: Enable analyzer release tracking
|
|
dotnet_diagnostic.RS2008.severity = none
|