From ed26ddc09cfa6374c460822ae30ab8a34619210a Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Wed, 29 Aug 2018 07:11:51 -0500 Subject: [PATCH] Always use --color=false when validating puppet Colorized output is difficult for ALE to parse. --- ale_linters/puppet/puppet.vim | 4 ++-- doc/ale-puppet.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ale_linters/puppet/puppet.vim b/ale_linters/puppet/puppet.vim index 1ed268d1..d44bb517 100644 --- a/ale_linters/puppet/puppet.vim +++ b/ale_linters/puppet/puppet.vim @@ -1,7 +1,7 @@ " Author: Alexander Olofsson 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 " Matches patterns like the following: @@ -24,7 +24,7 @@ function! ale_linters#puppet#puppet#Handle(buffer, lines) abort endfunction 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')) \ . ' %t' endfunction diff --git a/doc/ale-puppet.txt b/doc/ale-puppet.txt index b37a19a1..daa8c10f 100644 --- a/doc/ale-puppet.txt +++ b/doc/ale-puppet.txt @@ -16,7 +16,7 @@ g:ale_puppet_puppet_executable *g:ale_puppet_puppet_executable* g:ale_puppet_puppet_options *g:ale_puppet_puppet_options* *b:ale_puppet_puppet_options* Type: |String| - Default: `'--color=false'` + Default: `''` This variable can be changed to add command-line arguments to the puppet parser validate invocation.