There are 2 repositories under sql-linter topic.
A modular SQL linter and auto-formatter with support for multiple dialects and templated code.
A validating SQL lexer and parser with a focus on MySQL dialect.
A SQL Linter in D Programming Language
Integrate sql-lint in github action to check .sql file.