Merge pull request #439 from peterkh/master

Fixing puppet-lint syntax check when using syntastic_puppet_lint_arguments variable
This commit is contained in:
Martin Grenfell 2013-01-08 01:40:38 -08:00
commit 857758b5e8

View File

@ -57,7 +57,7 @@ function! s:getPuppetLintErrors()
let g:syntastic_puppet_lint_arguments = '' let g:syntastic_puppet_lint_arguments = ''
endif endif
let makeprg = 'puppet-lint --log-format "\%{KIND} [\%{check}] \%{message} at \%{fullpath}:\%{linenumber}" '.g:syntastic_puppet_lint_arguments.shellescape(expand('%')) let makeprg = 'puppet-lint --log-format "\%{KIND} [\%{check}] \%{message} at \%{fullpath}:\%{linenumber}" '.g:syntastic_puppet_lint_arguments.' '.shellescape(expand('%'))
let errorformat = '%t%*[a-zA-Z] %m at %f:%l' let errorformat = '%t%*[a-zA-Z] %m at %f:%l'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'subtype': 'Style' }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'subtype': 'Style' })
endfunction endfunction