---
name: sqlfluff
description: "Use when adopting SQLFluff to assess this standard: Lint SQL in its actual dialect"
---

# Apply SQLFluff

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

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by SQLFluff.
2. 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.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://docs.sqlfluff.com/) for configuration and prerequisites.

## Tool invocation

```
sqlfluff lint .
```
