lint: yamllint relaxed config
This commit is contained in:
parent
5630e3909e
commit
0f1fd7eded
1 changed files with 7 additions and 0 deletions
7
init.lua
7
init.lua
|
|
@ -189,6 +189,7 @@ local clippy_format = "%E%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}"
|
||||||
.. "warning: the option `Z` is unstable %.%#,%W"
|
.. "warning: the option `Z` is unstable %.%#,%W"
|
||||||
.. "warning: %m,%Inote: %m,%C %#--> %f:%l:%c"
|
.. "warning: %m,%Inote: %m,%C %#--> %f:%l:%c"
|
||||||
|
|
||||||
|
-- clippy --
|
||||||
lint.linters.clippy = {
|
lint.linters.clippy = {
|
||||||
cmd = "cargo clippy",
|
cmd = "cargo clippy",
|
||||||
stdin = false,
|
stdin = false,
|
||||||
|
|
@ -200,6 +201,7 @@ lint.linters.clippy = {
|
||||||
parser = require("lint.parser").from_errorformat(clippy_format),
|
parser = require("lint.parser").from_errorformat(clippy_format),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- sqlfluff --
|
||||||
lint.linters.sqlfluff.args = {
|
lint.linters.sqlfluff.args = {
|
||||||
"lint",
|
"lint",
|
||||||
"--format=json",
|
"--format=json",
|
||||||
|
|
@ -208,6 +210,11 @@ lint.linters.sqlfluff.args = {
|
||||||
"-",
|
"-",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- yamllint --
|
||||||
|
lint.linters.yamllint.args = {
|
||||||
|
args = { "--format=parsable", "-d relaxed" },
|
||||||
|
}
|
||||||
|
|
||||||
linters = {
|
linters = {
|
||||||
bash = { "shellcheck" },
|
bash = { "shellcheck" },
|
||||||
dockerfile = { "hadolint" },
|
dockerfile = { "hadolint" },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue