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.

Write a rule#
- Open Settings → Review policy → Review rules and select Add rule.
- Enter a Rule key and choose its scope.
- If Rule type appears, choose Text guidance for an instruction or AST rule for a structural code pattern.
- For text guidance, describe what the reviewer should check in Rule text. For an AST rule, follow the procedure below.
- For text guidance, open Matching files if the instruction applies to specific paths or languages.
- 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.
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.
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.
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.