Always use --color=false when validating puppet

Colorized output is difficult for ALE to parse.
This commit is contained in:
Tim Byrne 2018-08-29 07:11:51 -05:00
parent 6212d9a515
commit ed26ddc09c
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
" Author: Alexander Olofsson <alexander.olofsson@liu.se> " Author: Alexander Olofsson <alexander.olofsson@liu.se>
call ale#Set('puppet_puppet_executable', 'puppet') call ale#Set('puppet_puppet_executable', 'puppet')
call ale#Set('puppet_puppet_options', '--color=false') call ale#Set('puppet_puppet_options', '')
function! ale_linters#puppet#puppet#Handle(buffer, lines) abort function! ale_linters#puppet#puppet#Handle(buffer, lines) abort
" Matches patterns like the following: " Matches patterns like the following:
@ -24,7 +24,7 @@ function! ale_linters#puppet#puppet#Handle(buffer, lines) abort
endfunction endfunction
function! ale_linters#puppet#puppet#GetCommand(buffer) abort function! ale_linters#puppet#puppet#GetCommand(buffer) abort
return '%e parser validate ' return '%e parser validate --color=false '
\ . ale#Pad(ale#Var(a:buffer, 'puppet_puppet_options')) \ . ale#Pad(ale#Var(a:buffer, 'puppet_puppet_options'))
\ . ' %t' \ . ' %t'
endfunction endfunction

View file

@ -16,7 +16,7 @@ g:ale_puppet_puppet_executable *g:ale_puppet_puppet_executable*
g:ale_puppet_puppet_options *g:ale_puppet_puppet_options* g:ale_puppet_puppet_options *g:ale_puppet_puppet_options*
*b:ale_puppet_puppet_options* *b:ale_puppet_puppet_options*
Type: |String| Type: |String|
Default: `'--color=false'` Default: `''`
This variable can be changed to add command-line arguments to the This variable can be changed to add command-line arguments to the
puppet parser validate invocation. puppet parser validate invocation.