From 6f0336f247705aeddc24b6c340e72ce81ca2a500 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 12 Nov 2017 16:32:44 +1300 Subject: Exclude SC1090 (failed source) shellcheck error This error seems to be raised when ShellCheck can't source a file because its filename is not known until runtime. I don't want it to do that anyway, so I've just excluded it by default. --- vim/after/ftplugin/sh/lint.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vim/after/ftplugin/sh') diff --git a/vim/after/ftplugin/sh/lint.vim b/vim/after/ftplugin/sh/lint.vim index 54f86bea..b6377966 100644 --- a/vim/after/ftplugin/sh/lint.vim +++ b/vim/after/ftplugin/sh/lint.vim @@ -9,11 +9,11 @@ let b:undo_ftplugin = b:undo_ftplugin " Choose linter based on shell family if exists('b:is_bash') - let b:sh_lint = 'write !shellcheck -s bash -' + let b:sh_lint = 'write !shellcheck -e SC1090 -s bash -' elseif exists('b:is_kornshell') - let b:sh_lint = 'write !shellcheck -s ksh -' + let b:sh_lint = 'write !shellcheck -e SC1090 -s ksh -' else - let b:sh_lint = 'write !shellcheck -s sh -' + let b:sh_lint = 'write !shellcheck -e SC1090 -s sh -' endif let b:undo_ftplugin = b:undo_ftplugin \ . '|unlet b:sh_lint' -- cgit v1.2.3