-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: support Rust #256
Comments
just added a pull request for support for rust_analyzer |
I use format from rust-lang/rust.vim. Support both local MOD = require('lint')
MOD.linters_by_ft = {
rust = {'rust_lint'},
}
-- rust: rust_lint
local format = '%E%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}'
.. 'error:%.%\\{-} %m,%W%f:%l:%c: %\\d%#:%\\d%# %.%\\{-}'
.. 'warning:%.%\\{-} %m,%C%f:%l %m,%-G,%-G'
.. 'error: aborting %.%#,%-G'
.. 'error: Could not compile %.%#,%E'
.. 'error: %m,%Eerror[E%n]: %m,%-G'
.. 'warning: the option `Z` is unstable %.%#,%W'
.. 'warning: %m,%Inote: %m,%C %#--> %f:%l:%c'
MOD.linters.rust_lint = {
cmd = 'rust-vim-lint',
stdin = false,
append_fname = true,
args = {},
stream = 'both',
ignore_exitcode = false,
env = nil,
parser = require('lint.parser').from_errorformat(format)
} And #!/usr/bin/env sh
test "$1" || exit 1
d=$(dirname "$(realpath "$1")")
while test "$(echo "$d" | grep -o '/' | wc -l)" -ge 1
do
test -f "$d/Cargo.toml" && {
cd "$d" || exit 1
exec cargo check
}
d=$(echo "$d" | sed s/'\/[^\/]*$'//)
done
exec clippy-driver "$1" |
|
Anyone working on cargo implementation? |
Supporting messages from:
cargo
clippy
The text was updated successfully, but these errors were encountered: