Fix 3673 - Add nocolor option to ansible-lint (#3811)

Co-authored-by: Horacio Sanson <horacio@allm.inc>
This commit is contained in:
Horacio SansonandHoracio Sanson authored and GitHub committed 2021-07-20 10:00:49 +09:00
1 parent f83a1f70d5
commit a6719c2d4f
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -73,8 +73,8 @@ endfunction
function! ale_linters#ansible#ansible_lint#GetCommand(buffer, version) abort
let l:commands = {
\ '>=5.0.0': '%e --parseable-severity -x yaml -',
\ '<5.0.0': '%e -p %t'
\ '>=5.0.0': '%e --nocolor --parseable-severity -x yaml -',
\ '<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']