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.
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.

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.

Search help

Tab to a result. Enter to open. Escape to close.