# Rule

> Represents a rule which modifies the Rule.Severity of an Issue ReportItem or all of the ProjectIssues that share a Descriptor.

## Definition

* **Type:** Class
* **Namespace:** [Unity.ProjectAuditor.Editor](/engine/6000.6/script-reference/unity/projectauditor/editor.md)
* **Assembly:** UnityEditor

```csharp
public class Rule
```

## Properties

| Property                                                                                 | Description                                                                                                                                                                                                      |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Filter](/engine/6000.6/script-reference/unity/projectauditor/editor/rule/filter.md)     | 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. |
| [Id](/engine/6000.6/script-reference/unity/projectauditor/editor/rule/id.md)             | The Descriptor ID                                                                                                                                                                                                |
| [Severity](/engine/6000.6/script-reference/unity/projectauditor/editor/rule/severity.md) | The Severity level to apply to the issue(s) represented by this Rule                                                                                                                                             |

## Methods

| Method                                                                                         | Description                                        |
| ---------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [GetHashCode](/engine/6000.6/script-reference/unity/projectauditor/editor/rule/gethashcode.md) | Get the hashed integer representation of the Rule. |
