]> git.madduck.net Git - etc/vim.git/blob - test/script/run-vint

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Squashed '.vim/bundle/ale/' content from commit 22185c4c
[etc/vim.git] / test / script / run-vint
1 #!/usr/bin/env bash
2
3 set -e
4 set -u
5
6 exit_code=0
7 docker_flags=(--rm -v "$PWD:/testplugin" -v "$PWD/test:/home" -w /testplugin "$DOCKER_RUN_IMAGE")
8
9 echo '========================================'
10 echo 'Running Vint to lint our code'
11 echo '========================================'
12 echo 'Vint warnings/errors follow:'
13 echo
14
15 set -o pipefail
16 "$DOCKER" run -a stdout "${docker_flags[@]}" vint -s . || exit_code=$?
17 set +o pipefail
18 echo
19
20 exit $exit_code