Skip to content

SQLFluff Rules ​

SQLFluff has 79 linting rules organized into 11 categories.

Rule Categories ​

Aliasing ​

10 rule(s) - Table and column aliasing conventions

Ambiguous ​

9 rule(s) - Potentially ambiguous SQL constructs

Capitalisation ​

5 rule(s) - Keyword and identifier capitalization

Convention ​

13 rule(s) - General SQL coding conventions

Jinja ​

1 rule(s) - Jinja templating best practices

Layout ​

15 rule(s) - Spacing, indentation, and line breaks

Oracle ​

1 rule(s) - SQL linting rules

Postgres ​

2 rule(s) - SQL linting rules

References ​

7 rule(s) - Column and table reference validation

Structure ​

12 rule(s) - SQL statement structure and organization

Tsql ​

4 rule(s) - T-SQL specific conventions

Released under the MIT License.