summaryrefslogtreecommitdiff
path: root/ale_linters/javascript
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-01-12 13:08:52 +0000
committerw0rp <devw0rp@gmail.com>2019-01-12 13:14:29 +0000
commit6644563949299ce60aadf338103d50315a034a6a (patch)
treeb3ba8e44183af915c5c9b7378bbe40dc6862aa60 /ale_linters/javascript
parentd8a53cc7a5c86cea4480b264eef4778ba16e4454 (diff)
downloadale-6644563949299ce60aadf338103d50315a034a6a.zip
#2132 Remove the need for the hidden add_newline option by tweaking the flow command
Diffstat (limited to 'ale_linters/javascript')
-rwxr-xr-xale_linters/javascript/flow.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/ale_linters/javascript/flow.vim b/ale_linters/javascript/flow.vim
index cdb289c7..a4664fda 100755
--- a/ale_linters/javascript/flow.vim
+++ b/ale_linters/javascript/flow.vim
@@ -54,7 +54,8 @@ function! ale_linters#javascript#flow#GetCommand(buffer, version_lines) abort
return ale#Escape(l:executable)
\ . ' check-contents'
\ . (l:use_respect_pragma ? ' --respect-pragma': '')
- \ . ' --json --from ale %s'
+ \ . ' --json --from ale %s < %t'
+ \ . (!has('win32') ? '; echo' : '')
endfunction
" Filter lines of flow output until we find the first line where the JSON
@@ -172,5 +173,5 @@ call ale#linter#Define('javascript', {
\ {'callback': 'ale_linters#javascript#flow#GetCommand'},
\ ],
\ 'callback': 'ale_linters#javascript#flow#Handle',
-\ 'add_newline': !has('win32'),
+\ 'read_buffer': 0,
\})