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 --
|
-- clippy --
|
||||||
lint.linters.clippy = {
|
lint.linters.clippy = {
|
||||||
name = "clippy",
|
name = "clippy",
|
||||||
cmd = "cargo clippy",
|
cmd = "cargo",
|
||||||
stdin = false,
|
stdin = false,
|
||||||
append_fname = true,
|
append_fname = false,
|
||||||
args = {},
|
args = { "clippy" },
|
||||||
stream = "stdout",
|
stream = "stdout",
|
||||||
ignore_exitcode = false,
|
ignore_exitcode = false,
|
||||||
env = nil,
|
env = nil,
|
||||||
|
|
@ -353,6 +353,9 @@ for ft, ft_linters in pairs(linters) do
|
||||||
lint.try_lint(nil, { ignore_errors = true })
|
lint.try_lint(nil, { ignore_errors = true })
|
||||||
end,
|
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,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue