Reek checker: update.
Option "--quiet" is gone in reek 2.0.0. Add return code checks.
This commit is contained in:
parent
157ad8d432
commit
372daff1a8
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.6.0-25'
|
let g:_SYNTASTIC_VERSION = '3.6.0-26'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -26,7 +26,7 @@ function! SyntaxCheckers_ruby_reek_IsAvailable() dict
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SyntaxCheckers_ruby_reek_GetLocList() dict
|
function! SyntaxCheckers_ruby_reek_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({ 'args_before': '--no-color --quiet --line-number --single-line' })
|
let makeprg = self.makeprgBuild({ 'args_before': '--no-color --line-number --single-line' })
|
||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%E%.%#: Racc::ParseError: %f:%l :: %m,' .
|
\ '%E%.%#: Racc::ParseError: %f:%l :: %m,' .
|
||||||
@ -34,7 +34,8 @@ function! SyntaxCheckers_ruby_reek_GetLocList() dict
|
|||||||
|
|
||||||
let loclist = SyntasticMake({
|
let loclist = SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat })
|
\ 'errorformat': errorformat,
|
||||||
|
\ 'returns': [0, 2] })
|
||||||
|
|
||||||
for e in loclist
|
for e in loclist
|
||||||
if e['type'] ==? 'W'
|
if e['type'] ==? 'W'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user