sqlfluff
Lint and auto-format SQL files across multiple dialects. tldr-pages
On several platforms
Several platforms
Lint an SQL file or directory with a specific dialect
sqlfluff lint --dialect dialect path/to/file_or_directoryIdentifyAuto-format an SQL file or directory with a specific dialect
sqlfluff format --dialect dialect path/to/file_or_directoryIdentifyAutomatically fix linting violations in an SQL file or directory
sqlfluff fix --dialect dialect --rules rule1,rule2,... path/to/file_or_directoryIdentifyParse an SQL file or directory and display the parse tree
sqlfluff parse --dialect dialect path/to/file_or_directoryIdentifyShow all supported SQL dialects
sqlfluff dialectsIdentify