JSCS checker: add "--max-errors -1" option.
Limiting the number of errors causes an error message to be printed to stderr, which in turn breaks JSON parsing.
This commit is contained in:
parent
cc440f1b40
commit
de0106e839
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.7.0-79'
|
let g:_SYNTASTIC_VERSION = '3.7.0-80'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -29,7 +29,8 @@ function! SyntaxCheckers_javascript_jscs_IsAvailable() dict
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SyntaxCheckers_javascript_jscs_GetLocList() dict
|
function! SyntaxCheckers_javascript_jscs_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({ 'args_after': '--no-colors --reporter json' })
|
let makeprg = self.makeprgBuild({
|
||||||
|
\ 'args_after': '--no-colors --max-errors -1 --reporter json' })
|
||||||
|
|
||||||
let errorformat = '%f:%l:%c:%m'
|
let errorformat = '%f:%l:%c:%m'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user