aboutsummaryrefslogtreecommitdiff
path: root/lint/vim.sh
blob: bd8e73afdb06d268996cb20cd259697c78307b4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Build an argument list of checks to make
set --
for vim in vim/* vim/bundle/* ; do
    [ -e "$vim" ] || continue
    case $vim in

        # Skip third-party plugins
        vim/bundle) ;;
        vim/bundle/repeat) ;;
        vim/bundle/surround) ;;

        # Check everything else
        *) set -- "$@" "$vim" ;;

    esac
done

# Run check
vint -s -- "$@" || exit