Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/syntax_checkers/puppet.vim b/syntax_checkers/puppet.vim
- index 28c9e33..ca891f6 100644
- --- a/syntax_checkers/puppet.vim
- +++ b/syntax_checkers/puppet.vim
- @@ -41,11 +41,13 @@ function! s:PuppetLintExtractVersion()
- endfunction
- let s:puppetVersion = s:PuppetExtractVersion()
- -let s:lintVersion = s:PuppetLintExtractVersion()
- +if !g:syntastic_puppet_lint_disable
- + let s:lintVersion = s:PuppetLintExtractVersion()
- -if !(s:lintVersion[0] >= '0' && s:lintVersion[1] >= '1' && s:lintVersion[2] >= '10')
- - let g:syntastic_puppet_lint_disable = 1
- -endif
- + if !(s:lintVersion[0] >= '0' && s:lintVersion[1] >= '1' && s:lintVersion[2] >= '10')
- + let g:syntastic_puppet_lint_disable = 1
- + endif
- +end
- function! s:getPuppetLintErrors()
- if !exists("g:syntastic_puppet_lint_arguments")
Add Comment
Please, Sign In to add comment