Class Rule
Represents a rule which modifies the Severity of an Issue ReportItem or all of the ProjectIssues that share a Descriptor.
Inherited Members
Namespace: Unity.ProjectAuditor.Editor
Assembly: Unity.ProjectAuditor.Editor.dll
Syntax
[Serializable]
public class Rule
Fields
Filter
An optional location filter representing a ReportItem's location. If specified, this Rule applies to a single ReportItem. If the string is null or empty, this Rule applies to every ReportItem matching the Id.
Declaration
[JsonProperty("filter")]
public string Filter
Field Value
Type | Description |
---|---|
string |
Id
The Descriptor ID
Declaration
[JsonIgnore]
public DescriptorId Id
Field Value
Type | Description |
---|---|
DescriptorId |
Severity
The Severity level to apply to the issue(s) represented by this Rule
Declaration
[JsonProperty("severity")]
public Severity Severity
Field Value
Type | Description |
---|---|
Severity |
Methods
GetHashCode()
Get the hashed integer representation of the Rule.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The computed hash code. |