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:
LCD 47 2016-01-29 20:56:37 +02:00
parent cc440f1b40
commit de0106e839
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.7.0-79'
let g:_SYNTASTIC_VERSION = '3.7.0-80'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -29,7 +29,8 @@ function! SyntaxCheckers_javascript_jscs_IsAvailable() dict
endfunction
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'