summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-03-29 00:34:03 +0100
committerw0rp <devw0rp@gmail.com>2017-03-29 00:34:03 +0100
commit8e71f233da6c45c03c216b7fab2919d1c512c6dc (patch)
treec2cad28e8255f8b6ac57156ea8a1394f04971d5d /ale_linters
parent3f5cb55e737ab314b62bc21ff41fd6b052d92068 (diff)
downloadale-8e71f233da6c45c03c216b7fab2919d1c512c6dc.zip
Use the lint_file option so the Cargo linter will only be run against files on disk
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/rust/cargo.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/ale_linters/rust/cargo.vim b/ale_linters/rust/cargo.vim
index 30600cf8..84e4be74 100644
--- a/ale_linters/rust/cargo.vim
+++ b/ale_linters/rust/cargo.vim
@@ -27,4 +27,5 @@ call ale#linter#Define('rust', {
\ 'command_callback': 'ale_linters#rust#cargo#GetCommand',
\ 'callback': 'ale#handlers#rust#HandleRustErrors',
\ 'output_stream': 'stdout',
+\ 'lint_file': 1,
\})