Tslint checker: version 2.4.0 and later no longer support "-f".
This commit is contained in:
parent
bfc55793ef
commit
748725c775
@ -19,7 +19,7 @@ if has('reltime')
|
||||
lockvar! g:_SYNTASTIC_START
|
||||
endif
|
||||
|
||||
let g:_SYNTASTIC_VERSION = '3.6.0-142'
|
||||
let g:_SYNTASTIC_VERSION = '3.6.0-143'
|
||||
lockvar g:_SYNTASTIC_VERSION
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
@ -22,9 +22,13 @@ function! SyntaxCheckers_typescript_tslint_GetHighlightRegex(item)
|
||||
endfunction
|
||||
|
||||
function! SyntaxCheckers_typescript_tslint_GetLocList() dict
|
||||
if !exists('s:tslint_new')
|
||||
let s:tslint_new = syntastic#util#versionIsAtLeast(self.getVersion(), [2, 4])
|
||||
endif
|
||||
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'args_after': '--format verbose',
|
||||
\ 'fname_before': '-f' })
|
||||
\ 'fname_before': (s:tslint_new ? '' : '-f') })
|
||||
|
||||
" (comment-format) ts/app.ts[12, 36]: comment must start with lowercase letter
|
||||
let errorformat = '%f[%l\, %c]: %m'
|
||||
|
Loading…
x
Reference in New Issue
Block a user