jshint: check return code.

This commit is contained in:
LCD 47 2014-02-26 02:20:06 +02:00
parent d12bc4f1d1
commit 4196dd30df
2 changed files with 4 additions and 2 deletions

View File

@ -42,7 +42,8 @@ function! SyntaxCheckers_html_jshint_GetLocList() dict
return SyntasticMake({ return SyntasticMake({
\ 'makeprg': makeprg, \ 'makeprg': makeprg,
\ 'errorformat': errorformat, \ 'errorformat': errorformat,
\ 'defaults': {'bufnr': bufnr('')} }) \ 'defaults': {'bufnr': bufnr('')},
\ 'returns': [0, 2] })
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({

View File

@ -47,7 +47,8 @@ function! SyntaxCheckers_javascript_jshint_GetLocList() dict
return SyntasticMake({ return SyntasticMake({
\ 'makeprg': makeprg, \ 'makeprg': makeprg,
\ 'errorformat': errorformat, \ 'errorformat': errorformat,
\ 'defaults': {'bufnr': bufnr('')} }) \ 'defaults': {'bufnr': bufnr('')},
\ 'returns': [0, 2] })
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({