A linter and auto-formatter for SQLFluff, a popular linting tool for SQL and dbt.
You can run Format Document to fix the linting violations. You cannot run Format Selection. Please note that not all linting violations are automatically fixable.
The extension expects sqlfluff to be installed and already added to the path. If it is installed but cannot be found, add the path to your preferences as seen below. Find the path by typing
Edit your VS Code
If you want to manually update the
By default the linter will lint on the fly
By default you will be able use SQLFluff fix your file by formatting. Same as calling
The extension is based off of the ruby linter extension.