From 7464d425b4906f707e034734e9747cabafa9b3a4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 31 Oct 2017 22:52:34 +1300 Subject: 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`. --- lint/vim.sh | 15 ++++++++++----- 1 file 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' -- cgit v1.2.3