> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# opa

> opa is a linter for Rego

[**opa**](https://www.openpolicyagent.org/docs/latest/cli/#opa-fmt) is a linter for Rego.

You can enable the opa linter with:

```shell theme={null}
trunk check enable opa
```

## Auto Enabling

opa will never be auto-enabled. It must be enabled manually.

## Links

* [opa site](https://www.openpolicyagent.org/docs/latest/cli/#opa-fmt)
* opa Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/opa)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
