ruby-lint: add version check for "analyze".

This commit is contained in:
LCD 47 2014-06-06 18:55:41 +03:00
parent b61fc8af05
commit 98b64fd7b9
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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'