# SQLFluff

Lint SQL in its actual dialect

Configure the database dialect and templater before enabling rules. Check parse errors, ambiguous references and layout against representative queries.

Category: Code quality
Languages: SQL

## Standard evidence

Rubric v1 · 3/8 verified · 5 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — SQLFluff organizes policy into named rules including layout, references and structure. The selected dialect and rules scope each run. Reviewed 2026-11-28. [Source](https://docs.sqlfluff.com/en/stable/reference/rules.html)
- **Measurement** (verified) — The CLI documents linting a SQL file, listing available dialects and distinguishing lint from fix. Reviewed 2026-11-28. [Source](https://docs.sqlfluff.com/en/stable/reference/cli.html)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
- **CI enforcement** (unknown) — No reviewed evidence is recorded for this dimension.
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
- **Real-world adoption** (verified) — CodeRabbit runs SQLFluff on changed SQL with repository configuration or a documented fallback ruleset. Its Chill fallback checks NULL comparisons and set operations. Reviewed 2026-11-28. [Source](https://docs.coderabbit.ai/tools/sqlfluff)
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use SQLFluff in this repository to meet this standard: Lint SQL in its actual dialect. Configure the database dialect and templater before enabling rules. Check parse errors, ambiguous references and layout against representative queries. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
sqlfluff lint .
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://docs.sqlfluff.com/)
- [Agent skill](/skills/sqlfluff/SKILL.md)
