1
0
Fork 0

lint: set sqlfluff dialect

This commit is contained in:
Felipe 2023-04-17 23:10:56 -04:00
parent d6de981fae
commit 5630e3909e
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -200,6 +200,14 @@ lint.linters.clippy = {
parser = require("lint.parser").from_errorformat(clippy_format), parser = require("lint.parser").from_errorformat(clippy_format),
} }
lint.linters.sqlfluff.args = {
"lint",
"--format=json",
-- note: users will have to replace the --dialect argument accordingly
"--dialect=sqlite",
"-",
}
linters = { linters = {
bash = { "shellcheck" }, bash = { "shellcheck" },
dockerfile = { "hadolint" }, dockerfile = { "hadolint" },