diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-31 22:52:34 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-31 22:52:34 +1300 |
commit | 7464d425b4906f707e034734e9747cabafa9b3a4 (patch) | |
tree | e564bb6b5fba6a1dedc9abb48b09f25f9d38646e /lint | |
parent | Inline check arguments for URxvt perls (diff) | |
download | dotfiles-7464d425b4906f707e034734e9747cabafa9b3a4.tar.gz dotfiles-7464d425b4906f707e034734e9747cabafa9b3a4.zip |
Revamp `lint-vim` target for consistency
Use a positive list of things to check rather than just excluding
`bundle`; it's a little clearer what it's doing that way, and easier to
add paths to check rather than paths to exclude.
We also correctly leverage `vint` accepting multiple arguments, like
`shellcheck`.
Diffstat (limited to 'lint')
-rw-r--r-- | lint/vim.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lint/vim.sh b/lint/vim.sh index 6714ac9a..d876d770 100644 --- a/lint/vim.sh +++ b/lint/vim.sh @@ -1,5 +1,10 @@ -for v in vim/* ; do - [ "$v" != vim/bundle ] || continue - printf '%s\n' "$v" - vint -s -- "$v" -done +set -- \ + vim/after \ + vim/config \ + vim/ftdetect \ + vim/ftplugin \ + vim/gvimrc \ + vim/indent \ + vim/vimrc +vint -s -- "$@" || exit +printf 'Vim configuration linted successfully.\n' |