Skip to content

SQL

Linters

Linter Additional
sql-lint
SQL_SQL_LINT
GitHub stars
sqlfluff
SQL_SQLFLUFF
GitHub stars
tsqllint
SQL_TSQLLINT
GitHub stars

Linted files

  • File extensions:
    • .sql

Configuration in MegaLinter

Variable Description Default value
SQL_PRE_COMMANDS List of bash commands to run before the linters None
SQL_POST_COMMANDS List of bash commands to run after the linters None
SQL_FILTER_REGEX_INCLUDE Custom regex including filter
SQL_FILTER_REGEX_EXCLUDE Custom regex excluding filter