This repository was archived by the owner on Sep 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ if has('reltime')
1919 lockvar ! g: _SYNTASTIC_START
2020endif
2121
22- let g: _SYNTASTIC_VERSION = ' 3.6.0-80 '
22+ let g: _SYNTASTIC_VERSION = ' 3.6.0-81 '
2323lockvar g: _SYNTASTIC_VERSION
2424
2525" Sanity checks {{{1
Original file line number Diff line number Diff line change @@ -22,14 +22,17 @@ function! SyntaxCheckers_puppet_puppetlint_IsAvailable() dict
2222 if ! executable (self .getExec ())
2323 return 0
2424 endif
25+ let s: puppetlint_new = syntastic#util#versionIsAtLeast (self .getVersion (), [1 ])
2526 return syntastic#util#versionIsAtLeast (self .getVersion (), [0 , 2 ])
2627endfunction
2728
2829function ! SyntaxCheckers_puppet_puppetlint_GetLocList () dict
2930 call syntastic#log#deprecationWarn (' puppet_lint_arguments' , ' puppet_puppetlint_args' )
3031
3132 let makeprg = self .makeprgBuild ({
32- \ ' args_after' : ' --log-format "%{KIND} [%{check}] %{message} at %{fullpath}:%{linenumber}"' })
33+ \ ' args_after' :
34+ \ ' --log-format "%{KIND} [%{check}] %{message} at %{fullpath}:' .
35+ \ (s: puppetlint_new ? ' %{line}' : ' %{linenumber}' ) . ' "' })
3336
3437 let errorformat = ' %t%*[a-zA-Z] %m at %f:%l'
3538
You can’t perform that action at this time.
0 commit comments