diff options
author | w0rp <w0rp@users.noreply.github.com> | 2020-09-09 20:15:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 20:15:54 +0100 |
commit | 62fd83f1dde8474921695ac0b27f8c1af720a6df (patch) | |
tree | a8b1d383fa0c719ad58d9984bb0eb26a7ff3b11a /ale_linters/vim | |
parent | 6a367e44aa0feddd63b0e6d9505e21ca4442247e (diff) | |
parent | b800d24212d4c34b42dd388b8cab120b39893866 (diff) | |
download | ale-62fd83f1dde8474921695ac0b27f8c1af720a6df.zip |
Merge pull request #3108 from timbedard/vint-add-stdin
Add stdin option for supported vint versions
Diffstat (limited to 'ale_linters/vim')
-rw-r--r-- | ale_linters/vim/vint.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ale_linters/vim/vint.vim b/ale_linters/vim/vint.vim index c7461bc8..f7054ffb 100644 --- a/ale_linters/vim/vint.vim +++ b/ale_linters/vim/vint.vim @@ -13,12 +13,17 @@ function! ale_linters#vim#vint#GetCommand(buffer, version) abort let l:warning_flag = ale#Var(a:buffer, 'vim_vint_show_style_issues') ? '-s' : '-w' + " Use the --stdin-display-name argument if supported, temp file otherwise. + let l:stdin_or_temp = ale#semver#GTE(a:version, [0, 4, 0]) + \ ? ' --stdin-display-name %s -' + \ : ' %t' + return '%e' \ . ' ' . l:warning_flag \ . (l:can_use_no_color_flag ? ' --no-color' : '') \ . s:enable_neovim \ . ' ' . s:format - \ . ' %t' + \ . l:stdin_or_temp endfunction let s:word_regex_list = [ |