summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorHenrik Farre <henrik-farre@users.noreply.github.com>2021-07-31 05:35:43 +0200
committerGitHub <noreply@github.com>2021-07-31 12:35:43 +0900
commit056fbd08f653dbf7a66d4e73f7b68646c697583f (patch)
tree47aef047861a239b5c256dd0bc90672d725096d9 /ale_linters
parentdce088a4f07c55f7cff4eef90224fa85aa402877 (diff)
downloadale-056fbd08f653dbf7a66d4e73f7b68646c697583f.zip
Do not use tempfiles for ansible lint (#3846)
* Used %s instead of std in * Set lint_file to 1 for ansible-lint so it does not use temp files * Fix test for ansible-lint
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/ansible/ansible_lint.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/ansible/ansible_lint.vim b/ale_linters/ansible/ansible_lint.vim
index e1b123ab..3b443369 100644
--- a/ale_linters/ansible/ansible_lint.vim
+++ b/ale_linters/ansible/ansible_lint.vim
@@ -73,7 +73,7 @@ endfunction
function! ale_linters#ansible#ansible_lint#GetCommand(buffer, version) abort
let l:commands = {
- \ '>=5.0.0': '%e --nocolor --parseable-severity -x yaml -',
+ \ '>=5.0.0': '%e --nocolor --parseable-severity -x yaml %s',
\ '<5.0.0': '%e --nocolor -p %t'
\}
let l:command = ale#semver#GTE(a:version, [5, 0]) ? l:commands['>=5.0.0'] : l:commands['<5.0.0']
@@ -91,6 +91,7 @@ call ale#linter#Define('ansible', {
\ '%e --version',
\ function('ale_linters#ansible#ansible_lint#GetCommand'),
\ )},
+\ 'lint_file': 1,
\ 'callback': {buffer, lines -> ale#semver#RunWithVersionCheck(
\ buffer,
\ ale_linters#ansible#ansible_lint#GetExecutable(buffer),