---
title: "Linter rules | Grafana Cloud documentation"
description: "Built-in gcx lint rules and the restrictions on custom rules."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Linter rules

Run `gcx dev lint list-rules` to list the rules bundled with your installed version.

- [Panel title and description](https://grafana.com/docs/grafana-cloud/ai-tools/gcx/resources/linter-rules/dashboard/panel-title-description)
- [Panel units](https://grafana.com/docs/grafana-cloud/ai-tools/gcx/resources/linter-rules/dashboard/panel-units)
- [Valid PromQL targets](https://grafana.com/docs/grafana-cloud/ai-tools/gcx/resources/linter-rules/dashboard/target-valid-promql)
- [Uneditable dashboards](https://grafana.com/docs/grafana-cloud/ai-tools/gcx/resources/linter-rules/dashboard/uneditable-dashboard)

## Custom rules

Custom rules are loaded via `gcx dev lint run --rules <path>`. They run inside a restricted OPA capabilities sandbox. The following built-in OPA functions are **not available** in custom rules:

Expand table

| Disallowed builtin                     | Reason                                         |
|----------------------------------------|------------------------------------------------|
| `http.send`                            | Network exfiltration vector                    |
| `net.*` (all `net.` prefixed builtins) | Network exfiltration vector                    |
| `opa.runtime`                          | Runtime introspection / environment disclosure |

No flag is provided to re-enable these functions. Bundled rules are unaffected.
