Guest User

Untitled

a guest
Dec 12th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. diff --git a/syntax_checkers/puppet.vim b/syntax_checkers/puppet.vim
  2. index 28c9e33..ca891f6 100644
  3. --- a/syntax_checkers/puppet.vim
  4. +++ b/syntax_checkers/puppet.vim
  5. @@ -41,11 +41,13 @@ function! s:PuppetLintExtractVersion()
  6. endfunction
  7.  
  8. let s:puppetVersion = s:PuppetExtractVersion()
  9. -let s:lintVersion = s:PuppetLintExtractVersion()
  10. +if !g:syntastic_puppet_lint_disable
  11. + let s:lintVersion = s:PuppetLintExtractVersion()
  12.  
  13. -if !(s:lintVersion[0] >= '0' && s:lintVersion[1] >= '1' && s:lintVersion[2] >= '10')
  14. - let g:syntastic_puppet_lint_disable = 1
  15. -endif
  16. + if !(s:lintVersion[0] >= '0' && s:lintVersion[1] >= '1' && s:lintVersion[2] >= '10')
  17. + let g:syntastic_puppet_lint_disable = 1
  18. + endif
  19. +end
  20.  
  21. function! s:getPuppetLintErrors()
  22. if !exists("g:syntastic_puppet_lint_arguments")
Add Comment
Please, Sign In to add comment