API Reference
Class
AnalysisRule
Describes a single analyzer rule and its metadata.
Inheritance
- Object
- AnalysisRule
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property AnalysisCatalog.Rules
- Property AnalysisPolicyRule.Rule
Accepted by parameters 3
- Constructor AnalysisCatalog.AnalysisCatalog
- Method AnalysisCatalog.TryGetRule
- Constructor AnalysisPolicyRule.AnalysisPolicyRule
Constructors
public AnalysisRule(String id, String language, String tool, String toolRuleId, String title, String description, String category, String defaultSeverity, IReadOnlyList<String> tags, String? docs, String? sourcePath, String? type = null) #Creates a new rule description.
Parameters
- id System.String
- language System.String
- tool System.String
- toolRuleId System.String
- title System.String
- description System.String
- category System.String
- defaultSeverity System.String
- tags System.Collections.Generic.IReadOnlyList<System.String>
- docs System.String?
- sourcePath System.String?
- type System.String? = null
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public String? Type { get; } #Optional rule type classification (for example: bug, vulnerability, code-smell, security-hotspot).