Reek checker: update.

Option "--quiet" is gone in reek 2.0.0.
Add return code checks.
This commit is contained in:
LCD 47 2015-02-15 18:30:17 +02:00
parent 157ad8d432
commit 372daff1a8
2 changed files with 4 additions and 3 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.6.0-25'
let g:_SYNTASTIC_VERSION = '3.6.0-26'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -26,7 +26,7 @@ function! SyntaxCheckers_ruby_reek_IsAvailable() dict
endfunction
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 =
\ '%E%.%#: Racc::ParseError: %f:%l :: %m,' .
@ -34,7 +34,8 @@ function! SyntaxCheckers_ruby_reek_GetLocList() dict
let loclist = SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
\ 'errorformat': errorformat,
\ 'returns': [0, 2] })
for e in loclist
if e['type'] ==? 'W'