Auto-formatter is already built in for some simple violations: https://docs.sqlfluff.com/en/stable/cli.html#sqlfluff-fix
Re:Sqlfluff the SQL Linter for Humans
by tunetheweb on Wednesday October 06, 2021 @02:11PM
(#28776289)
There already is a VS Code extension for this:
https://marketplace.visualstudio.com/items?itemName=dorzey.v...
[1] https://github.com/sqlfluff/sqlfluff/blob/main/src/sqlfluff/...