GS/BS
← Standards directory
Code quality

Regal.

Keep Rego policies readable and consistent

Lint policy modules for bugs and unclear rule structure. Configure the supported Rego version and verify rule behavior with the project's policy tests.

Rego

Community rubric · v1

The evidence

Evidence coverage3 / 8
3 supported · 5 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Verified

    The avoid-get-and-list-prefix convention flags redundant prefixes in Rego rule names; the upstream rule shows preferred forms.

    Cited source ↗
  • Measurement

    Verified

    regal lint reports violations in formats including JSON and SARIF.

    Cited source ↗
  • Conformance

    Unknown

    No reviewed evidence is recorded for this dimension.

    What would demonstrate a violation? Contribute evidence ↗

  • CI enforcement

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a change trigger a useful check? Contribute evidence ↗

  • Getting started

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a newcomer complete a first run? Contribute evidence ↗

  • Real-world adoption

    Verified

    CodeRabbit applies Regal to .rego files under repository .regal/config.yaml or profile defaults.

    Cited source ↗
  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Run the check with the tool installed and configured for your project.

regal lint .

Agent prompt

Use Regal in this repository to meet this standard: Keep Rego policies readable and consistent. Lint policy modules for bugs and unclear rule structure. Configure the supported Rego version and verify rule behavior with the project's policy tests. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
Read the agent skill ↗

Primary source

Regal documentation ↗