CheckOps
SQLFluff
SQLFluff is an MIT dialect-flexible SQL linter and auto-formatter with Jinja and dbt templating support.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
SQLFluff is a dialect-flexible, configurable SQL linter designed with ELT applications in mind. It works with Jinja templating and dbt, and auto-fixes most linting errors.
It supports many dialects, including ANSI, BigQuery, Databricks, PostgreSQL, Snowflake, Spark SQL and T-SQL, with rules for layout, capitalisation, aliasing, references and more, configured in .sqlfluff. It runs from the command line or in CI.
In the quality loop SQLFluff enforces SQL quality in pull requests.
The source code is at sqlfluff/sqlfluff on GitHub under the MIT licence, with about 10,000 stars; the most recent commit was on 11 November 2026.
Features
- Many dialects: Warehouses and databases.
- Auto-fix: sqlfluff fix.
- Templating: Jinja and dbt.
- Configurable rules: Per project.
- CI output: Annotations formats.
- VS Code extension: Editor integration.
Pros
- dbt-friendly: Handles templated SQL.
- Free to use: Open source under the MIT licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 11 November 2026.
- Community: About 10,000 GitHub stars.
Cons
- Speed: Large projects can be slow.
- Dialect gaps: Some syntax unsupported.
- Rule tuning: Defaults may be noisy.
Usage and Links (Example)
pip install sqlfluff
sqlfluff lint models/ --dialect snowflake
sqlfluff fix models/ --dialect snowflake
Resources:
Pricing
SQLFluff is free and open source under the MIT licence.
Recommended for?
- Analytics engineers and dbt users.
Conclusion
SQLFluff is the standard SQL linter for data teams.
Agree on rules before enabling fix.
On CheckOps, SQLFluff is filed under the Release & CI gates stage. Related tools listed here include pgTAP, utPLSQL, Atlas, Squawk, Database Lab Engine and dbt tests. Before standardising on one, compare recent maintenance activity, the pricing model as your usage grows, and the integrations you rely on today. Information on this page was verified against the official website, documentation and repository on 11 November 2026.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with SQLFluff side by side.
- PpgTAPpgTAP is a unit testing framework for PostgreSQL written in PL/pgSQL and PL/SQL, providing TAP-emitting assertions for schema, data and functions, run with pg_prove.Compare with SQLFluff
UutPLSQLutPLSQL is an Apache-2.0 unit testing framework for Oracle PL/SQL and SQL, with annotations, rich expectations and reporters for SonarQube, Jenkins and TeamCity.Compare with SQLFluff
AAtlasAtlas is an Apache-2.0 schema-as-code tool from Ariga for declarative and versioned database migrations, with migration linting and schema tests in CI.Compare with SQLFluff
SSquawkSquawk is an Apache-2.0 linter for PostgreSQL migrations that flags changes likely to cause downtime, with a CLI, Docker image, GitHub Action and browser playground.Compare with SQLFluff
DDatabase Lab EngineDatabase Lab Engine (DBLab) is Postgres.ai's Apache-2.0 tool for thin cloning and branching of large PostgreSQL databases in seconds for development and testing.Compare with SQLFluff
Ddbt testsdbt tests are the built-in data tests and unit tests of dbt, the Apache-2.0 data transformation framework, used to validate models with unique, not_null, accepted_values and relationships checks.Compare with SQLFluff