---
description: opa is a linter for Rego
---

# opa

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

You can enable the opa linter with:

```shell
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)
