Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 4196dd3

Browse files
committed
jshint: check return code.
1 parent d12bc4f commit 4196dd3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

syntax_checkers/html/jshint.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ function! SyntaxCheckers_html_jshint_GetLocList() dict
4242
return SyntasticMake({
4343
\ 'makeprg': makeprg,
4444
\ 'errorformat': errorformat,
45-
\ 'defaults': {'bufnr': bufnr('')} })
45+
\ 'defaults': {'bufnr': bufnr('')},
46+
\ 'returns': [0, 2] })
4647
endfunction
4748

4849
call g:SyntasticRegistry.CreateAndRegisterChecker({

syntax_checkers/javascript/jshint.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ function! SyntaxCheckers_javascript_jshint_GetLocList() dict
4747
return SyntasticMake({
4848
\ 'makeprg': makeprg,
4949
\ 'errorformat': errorformat,
50-
\ 'defaults': {'bufnr': bufnr('')} })
50+
\ 'defaults': {'bufnr': bufnr('')},
51+
\ 'returns': [0, 2] })
5152
endfunction
5253

5354
call g:SyntasticRegistry.CreateAndRegisterChecker({

0 commit comments

Comments
 (0)