Compare commits
2 commits
d6de981fae
...
0f1fd7eded
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f1fd7eded | |||
| 5630e3909e |
1 changed files with 15 additions and 0 deletions
15
init.lua
15
init.lua
|
|
@ -189,6 +189,7 @@ local clippy_format = "%E%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}"
|
|||
.. "warning: the option `Z` is unstable %.%#,%W"
|
||||
.. "warning: %m,%Inote: %m,%C %#--> %f:%l:%c"
|
||||
|
||||
-- clippy --
|
||||
lint.linters.clippy = {
|
||||
cmd = "cargo clippy",
|
||||
stdin = false,
|
||||
|
|
@ -200,6 +201,20 @@ lint.linters.clippy = {
|
|||
parser = require("lint.parser").from_errorformat(clippy_format),
|
||||
}
|
||||
|
||||
-- sqlfluff --
|
||||
lint.linters.sqlfluff.args = {
|
||||
"lint",
|
||||
"--format=json",
|
||||
-- note: users will have to replace the --dialect argument accordingly
|
||||
"--dialect=sqlite",
|
||||
"-",
|
||||
}
|
||||
|
||||
-- yamllint --
|
||||
lint.linters.yamllint.args = {
|
||||
args = { "--format=parsable", "-d relaxed" },
|
||||
}
|
||||
|
||||
linters = {
|
||||
bash = { "shellcheck" },
|
||||
dockerfile = { "hadolint" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue