diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-12 16:32:44 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-12 20:45:38 +1300 |
commit | 6f0336f247705aeddc24b6c340e72ce81ca2a500 (patch) | |
tree | 39d10ee287119610d412b0bfadf2b616e681d16b | |
parent | Move lots of local Vim config into vim/after (diff) | |
download | dotfiles-6f0336f247705aeddc24b6c340e72ce81ca2a500.tar.gz dotfiles-6f0336f247705aeddc24b6c340e72ce81ca2a500.zip |
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.
-rw-r--r-- | vim/after/ftplugin/sh/lint.vim | 6 |
1 files changed, 3 insertions, 3 deletions
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' |