aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-12 16:32:44 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-12 20:45:38 +1300
commit6f0336f247705aeddc24b6c340e72ce81ca2a500 (patch)
tree39d10ee287119610d412b0bfadf2b616e681d16b /vim/after/ftplugin/sh
parentMove lots of local Vim config into vim/after (diff)
downloaddotfiles-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.
Diffstat (limited to 'vim/after/ftplugin/sh')
-rw-r--r--vim/after/ftplugin/sh/lint.vim6
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'