---
title: "Manage review rules | Proofline Help"
description: "Review rules tell Proofline what to check. Scope a rule to an organization, environment, team, or repository, then choose which files it applies to."
url: https://proofline.sh/help/review-rules/
---

[Help center](/help/)

# Manage review rules

Review rules tell Proofline what to check. Scope a rule to an organization, environment, team, or repository, then choose which files it applies to.

[![Review rules for the Northstar Demo organization.](/help-images/rules-light.png)](/help-images/rules-light.png)

Rules add your team’s instructions to the review. Fictional demo workspace.

## Write a rule

1.  Open **Settings → Review policy → Review rules** and select **Add rule**.
2.  Enter a **Rule key** and choose its scope.
3.  If **Rule type** appears, choose **Text guidance** for an instruction or **AST rule** for a structural code pattern.
4.  For text guidance, describe what the reviewer should check in **Rule text**. For an AST rule, follow the procedure below.
5.  For text guidance, open **Matching files** if the instruction applies to specific paths or languages.
6.  Select **Save rule**.

Write a focused instruction with enough context to assess it. For example: “Check that changes to database pool size fit the connection budget of the linked environment.”

## Choose a team match

**Team match** can use the pull request author, CODEOWNERS paths or either signal. [Apply a review rule to team authors or owned files](/help/scope-rule-to-team/).

## Choose matching files

Both the path and the language must match when a rule sets both restrictions. [Apply a review instruction to particular paths and languages](/help/scope-rule-to-files/).

## Write and test an AST rule

Test the draft against named files at a full commit SHA before saving it. [Test an AST review rule against a pinned commit](/help/test-ast-review-rule/).

## Manage inheritance

Overrides share the parent rule's key. Organization administrators can prevent lower scopes from overriding it. [Override an inherited review rule or prevent overrides](/help/override-inherited-review-rule/).

## Related guides

-   [Configure review automation](/help/review-automation/)
-   [Configure deployment protection](/help/deployment-protection/)
-   [Manage roles and grants](/help/roles/)
