---
name: regal
description: "Use when adopting Regal to assess this standard: Keep Rego policies readable and consistent"
---

# Apply Regal

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

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by Regal.
2. 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.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://www.openpolicyagent.org/projects/regal) for configuration and prerequisites.

## Tool invocation

```
regal lint .
```
