Update: shallcheck no longer has a jsoncheck.

This commit is contained in:
LCD 47 2013-11-13 09:05:06 +02:00
parent 822639755d
commit bdc4b0f177

View File

@ -18,7 +18,7 @@ function! SyntaxCheckers_sh_shellcheck_Preprocess(json)
endfunction endfunction
function! SyntaxCheckers_sh_shellcheck_GetLocList() dict function! SyntaxCheckers_sh_shellcheck_GetLocList() dict
let makeprg = self.getExec() . ' < ' . syntastic#util#shexpand('%') let makeprg = self.makeprgBuild({ 'args': '-f json' })
let errorformat = '%t:%l:%v:%m' let errorformat = '%t:%l:%v:%m'
@ -27,7 +27,7 @@ function! SyntaxCheckers_sh_shellcheck_GetLocList() dict
\ 'errorformat': errorformat, \ 'errorformat': errorformat,
\ 'preprocess': 'SyntaxCheckers_sh_shellcheck_Preprocess', \ 'preprocess': 'SyntaxCheckers_sh_shellcheck_Preprocess',
\ 'defaults': {'bufnr': bufnr("")}, \ 'defaults': {'bufnr': bufnr("")},
\ 'returns': [0] }) \ 'returns': [0, 1] })
for e in loclist for e in loclist
if e['type'] ==? 's' if e['type'] ==? 's'
@ -41,5 +41,4 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'sh', \ 'filetype': 'sh',
\ 'name': 'shellcheck', \ 'name': 'shellcheck' })
\ 'exec': 'jsoncheck' })