lint: set sqlfluff dialect
This commit is contained in:
parent
d6de981fae
commit
5630e3909e
1 changed files with 8 additions and 0 deletions
8
init.lua
8
init.lua
|
|
@ -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" },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue