Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit a8771fe

Browse files
committed
Puppet-lint checker: --log-format now expects %{line}.
1 parent 24bb293 commit a8771fe

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

plugin/syntastic.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if has('reltime')
1919
lockvar! g:_SYNTASTIC_START
2020
endif
2121

22-
let g:_SYNTASTIC_VERSION = '3.6.0-80'
22+
let g:_SYNTASTIC_VERSION = '3.6.0-81'
2323
lockvar g:_SYNTASTIC_VERSION
2424

2525
" Sanity checks {{{1

syntax_checkers/puppet/puppetlint.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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])
2627
endfunction
2728

2829
function! 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

0 commit comments

Comments
 (0)