lint: add some fixes for cargo
This commit is contained in:
parent
0b64cf2329
commit
747561bd61
1 changed files with 6 additions and 3 deletions
9
init.lua
9
init.lua
|
|
@ -287,10 +287,10 @@ local clippy_format = "%E%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}"
|
|||
-- clippy --
|
||||
lint.linters.clippy = {
|
||||
name = "clippy",
|
||||
cmd = "cargo clippy",
|
||||
cmd = "cargo",
|
||||
stdin = false,
|
||||
append_fname = true,
|
||||
args = {},
|
||||
append_fname = false,
|
||||
args = { "clippy" },
|
||||
stream = "stdout",
|
||||
ignore_exitcode = false,
|
||||
env = nil,
|
||||
|
|
@ -353,6 +353,9 @@ for ft, ft_linters in pairs(linters) do
|
|||
lint.try_lint(nil, { ignore_errors = true })
|
||||
end,
|
||||
})
|
||||
-- we want to also call linters here so we don't wait
|
||||
-- for the first write to happen
|
||||
lint.try_lint(nil, { ignore_errors = true })
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue