ruby-lint: add version check for "analyze".
This commit is contained in:
parent
b61fc8af05
commit
98b64fd7b9
@ -19,7 +19,7 @@ if has('reltime')
|
||||
lockvar! g:syntastic_start
|
||||
endif
|
||||
|
||||
let g:syntastic_version = '3.4.0-77'
|
||||
let g:syntastic_version = '3.4.0-79'
|
||||
lockvar g:syntastic_version
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
@ -20,7 +20,11 @@ let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_ruby_rubylint_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({ 'args': '--presenter=syntastic' })
|
||||
if !exists(s:rubylint_new)
|
||||
let s:rubylint_new = syntastic#util#versionIsAtLeast(syntastic#util#getVersion(
|
||||
\ self.getExecEscaped() . ' --version'), [2])
|
||||
endif
|
||||
let makeprg = self.makeprgBuild({ 'args': (s:rubylint_new ? '' : 'analyze ') . '--presenter=syntastic' })
|
||||
|
||||
let errorformat = '%f:%t:%l:%c: %m'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user