summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-26 23:31:07 +0100
committerw0rp <devw0rp@gmail.com>2017-10-26 23:31:07 +0100
commitd4d939bea9a51f13fb78a5ab1d7367866a180768 (patch)
tree0b9f444245d62e29caecdb0e47cd22a8d6385b48 /ale_linters
parent6490d3a5e69c188cbd2b2206916f98409cfb230c (diff)
downloadale-d4d939bea9a51f13fb78a5ab1d7367866a180768.zip
Fix #1039 - Only check the file on disk for dartanalyzer
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/dart/dartanalyzer.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/dart/dartanalyzer.vim b/ale_linters/dart/dartanalyzer.vim
index f7b82c4b..ef33c9d4 100644
--- a/ale_linters/dart/dartanalyzer.vim
+++ b/ale_linters/dart/dartanalyzer.vim
@@ -13,7 +13,7 @@ function! ale_linters#dart#dartanalyzer#GetCommand(buffer) abort
return ale#Escape(l:executable)
\ . (!empty(l:path) ? ' --packages ' . ale#Escape(l:path) : '')
- \ . ' %t'
+ \ . ' %s'
endfunction
function! ale_linters#dart#dartanalyzer#Handle(buffer, lines) abort
@@ -37,4 +37,5 @@ call ale#linter#Define('dart', {
\ 'executable_callback': 'ale_linters#dart#dartanalyzer#GetExecutable',
\ 'command_callback': 'ale_linters#dart#dartanalyzer#GetCommand',
\ 'callback': 'ale_linters#dart#dartanalyzer#Handle',
+\ 'lint_file': 1,
\})