]> git.madduck.net Git - etc/vim.git/blobdiff - .vim/bundle/ale/test/script/custom-checks

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:

Merge commit '76265755a1add77121c8f9dabb3e9bb70fe9a972' as '.vim/bundle/ale'
[etc/vim.git] / .vim / bundle / ale / test / script / custom-checks
diff --git a/.vim/bundle/ale/test/script/custom-checks b/.vim/bundle/ale/test/script/custom-checks
new file mode 100755 (executable)
index 0000000..4cf1530
--- /dev/null
@@ -0,0 +1,80 @@
+#!/usr/bin/env bash
+
+set -e
+set -u
+
+exit_code=0
+docker_flags=(--rm -v "$PWD:/testplugin" -v "$PWD/test:/home" -w /testplugin "$DOCKER_RUN_IMAGE")
+
+echo '========================================'
+echo 'Running custom linting rules'
+echo '========================================'
+echo 'Custom warnings/errors follow:'
+echo
+
+set -o pipefail
+"$DOCKER" run "${docker_flags[@]}" test/script/custom-linting-rules . || exit_code=$?
+set +o pipefail
+echo
+
+echo '========================================'
+echo 'Checking for duplicate tags'
+echo '========================================'
+echo 'Duplicate tags follow:'
+echo
+
+set -o pipefail
+"$DOCKER" run "${docker_flags[@]}" test/script/check-duplicate-tags . || exit_code=$?
+set +o pipefail
+echo
+
+echo '========================================'
+echo 'Checking for invalid tag references'
+echo '========================================'
+echo 'Invalid tag references tags follow:'
+echo
+
+set -o pipefail
+"$DOCKER" run "${docker_flags[@]}" test/script/check-tag-references || exit_code=$?
+set +o pipefail
+
+echo '========================================'
+echo 'diff supported-tools.md and doc/ale-supported-languages-and-tools.txt tables'
+echo '========================================'
+echo 'Differences follow:'
+echo
+
+set -o pipefail
+"$DOCKER" run "${docker_flags[@]}" test/script/check-supported-tools-tables || exit_code=$?
+set +o pipefail
+
+echo '========================================'
+echo 'Look for badly aligned doc tags'
+echo '========================================'
+echo 'Badly aligned tags follow:'
+echo
+
+set -o pipefail
+"$DOCKER" run "${docker_flags[@]}" test/script/check-tag-alignment || exit_code=$?
+set +o pipefail
+
+echo '========================================'
+echo 'Look for table of contents issues'
+echo '========================================'
+echo
+
+set -o pipefail
+"$DOCKER" run "${docker_flags[@]}" test/script/check-toc || exit_code=$?
+set +o pipefail
+
+echo '========================================'
+echo 'Check Python code'
+echo '========================================'
+echo
+
+"$DOCKER" run --rm -v "$PWD:/testplugin" "$DOCKER_RUN_IMAGE" \
+    python -W ignore -m unittest discover /testplugin/test/python \
+    || exit_code=$?
+echo
+
+exit $exit_code