From bdc4b0f1772cb13b034029d706095c66f5f51d43 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Wed, 13 Nov 2013 09:05:06 +0200 Subject: [PATCH] Update: shallcheck no longer has a jsoncheck. --- syntax_checkers/sh/shellcheck.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/syntax_checkers/sh/shellcheck.vim b/syntax_checkers/sh/shellcheck.vim index c05d426d..bb19c842 100644 --- a/syntax_checkers/sh/shellcheck.vim +++ b/syntax_checkers/sh/shellcheck.vim @@ -18,7 +18,7 @@ function! SyntaxCheckers_sh_shellcheck_Preprocess(json) endfunction 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' @@ -27,7 +27,7 @@ function! SyntaxCheckers_sh_shellcheck_GetLocList() dict \ 'errorformat': errorformat, \ 'preprocess': 'SyntaxCheckers_sh_shellcheck_Preprocess', \ 'defaults': {'bufnr': bufnr("")}, - \ 'returns': [0] }) + \ 'returns': [0, 1] }) for e in loclist if e['type'] ==? 's' @@ -41,5 +41,4 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'sh', - \ 'name': 'shellcheck', - \ 'exec': 'jsoncheck' }) + \ 'name': 'shellcheck' })