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

# SQLFluff

> CodeRabbit's guide to SQLFluff.

[SQLFluff](https://github.com/sqlfluff/sqlfluff) is a SQL linter and auto-formatter for standardizing SQL code.

## Files

SQLFluff will run on files with the following extensions:

* `.sql`

## Configuration

SQLFluff supports the following config files:

* User-defined config file set at `reviews.tools.sqlfluff.config_file` in your project's `.coderabbit.yaml` file or setting the "Reviews → Tools → SQLFluff → Config File" field in CodeRabbit's settings page.
* `setup.cfg`
* `tox.ini`
* `pep8.ini`
* `.sqlfluff`
* `pyproject.toml`

<Info>
  If no SQLFluff config file is found, CodeRabbit writes a temporary config based on the selected review profile and detected SQL dialect.
</Info>

## When we skip SQLFluff

CodeRabbit will skip running SQLFluff when:

* SQLFluff is already running in GitHub workflows.

## Links

* [SQLFluff Configuration](https://docs.sqlfluff.com/en/stable/configuration/index.html)
* [SQLFluff Rules Reference](https://docs.sqlfluff.com/en/stable/rules.html)
