mirror of
https://github.com/dense-analysis/ale
synced 2024-12-12 17:37:22 +00:00
056fbd08f6
* 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
23 lines
912 B
Plaintext
23 lines
912 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('ansible', 'ansible_lint')
|
|
let b:bin_dir = has('win32') ? 'Scripts' : 'bin'
|
|
|
|
After:
|
|
unlet! b:bin_dir
|
|
unlet! b:executable
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The ansible_lint version <5.0.0 command callback should return default string):
|
|
GivenCommandOutput ['v4.1.2']
|
|
AssertLinter 'ansible-lint', ale#Escape('ansible-lint') . ' --nocolor -p %t'
|
|
|
|
Execute(The ansible_lint version >=5.0.0 command callback should return default string):
|
|
GivenCommandOutput ['v5.1.2']
|
|
AssertLinter 'ansible-lint', ale#Escape('ansible-lint') . ' --nocolor --parseable-severity -x yaml %s'
|
|
|
|
Execute(The ansible_lint executable should be configurable):
|
|
let g:ale_ansible_ansible_lint_executable = '~/.local/bin/ansible-lint'
|
|
GivenCommandOutput ['v4.1.2']
|
|
AssertLinter '~/.local/bin/ansible-lint',
|
|
\ ale#Escape('~/.local/bin/ansible-lint') . ' --nocolor -p %t'
|