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

# lint

> Report native SQL lint diagnostics.

# sqb lint

Runs SQLBuild's native, dialect-aware lint rules without changing files.

```bash theme={null}
sqb lint [flags]
```

| Flag             | Description                            |
| ---------------- | -------------------------------------- |
| `--json`         | Print structured diagnostics           |
| `--select`, `-s` | Lint selected models                   |
| `--select-file`  | Read selectors from a file             |
| `--exclude`      | Exclude models from the selected scope |

```bash theme={null}
sqb lint
sqb lint --select tag:marts
sqb lint --json
```

Lint exits nonzero when active diagnostics remain. See [SQL Linting and Formatting](/concepts/sql-linting)
for rule selection, suppressions, and the boundary between lint, fix, format, and Kata.
