Checker tslint: error format has changed.
This commit is contained in:
parent
a882ecbc80
commit
0bfac45565
@ -435,7 +435,7 @@ echomsg string(out)
|
||||
endfunction " }}}2
|
||||
|
||||
function! syntastic#preprocess#tslint(errors) abort " {{{2
|
||||
return map(copy(a:errors), 'substitute(v:val, ''\m^\(([^)]\+)\)\s\(.\+\)$'', ''\2 \1'', "")')
|
||||
return map(copy(a:errors), 'substitute(v:val, ''\v^((ERROR|WARNING): )?\zs(\([^)]+\))\s(.+)$'', ''\4 \3'', "")')
|
||||
endfunction " }}}2
|
||||
|
||||
function! syntastic#preprocess#validator(errors) abort " {{{2
|
||||
|
@ -19,7 +19,7 @@ if has('reltime')
|
||||
lockvar! g:_SYNTASTIC_START
|
||||
endif
|
||||
|
||||
let g:_SYNTASTIC_VERSION = '3.8.0-39'
|
||||
let g:_SYNTASTIC_VERSION = '3.8.0-40'
|
||||
lockvar g:_SYNTASTIC_VERSION
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
@ -30,8 +30,10 @@ function! SyntaxCheckers_typescript_tslint_GetLocList() dict
|
||||
\ 'args_after': '--format verbose',
|
||||
\ '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'
|
||||
let errorformat =
|
||||
\ '%EERROR: %f[%l\, %c]: %m,' .
|
||||
\ '%WWARNING: %f[%l\, %c]: %m,' .
|
||||
\ '%E%f[%l\, %c]: %m'
|
||||
|
||||
return SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
|
Loading…
x
Reference in New Issue
Block a user