Update test docs and output for linter tables checked
This makes some of the run-test output less misleading. Also fix a minor shellcheck issue: "\*" and "\\*" are equivalent, but the second one makes clear that the literal backslash is intentional.
This commit is contained in:
parent
28c93ab185
commit
74a43755c6
3 changed files with 10 additions and 10 deletions
|
@ -184,13 +184,12 @@ tests: https://github.com/junegunn/vader.vim
|
||||||
See |ale-development-linter-tests| for more information on how to write linter
|
See |ale-development-linter-tests| for more information on how to write linter
|
||||||
tests.
|
tests.
|
||||||
|
|
||||||
When you add new linters or fixers, make sure to add them into the table in
|
When you add new linters or fixers, make sure to add them into the tables in
|
||||||
the README, and also into the |ale-support| list in the main help file. If you
|
supported-tools.md and |ale-supported-languages-and-tools.txt|. If you forget to
|
||||||
forget to keep them both in sync, you should see an error like the following
|
keep them both in sync, you should see an error like the following in Travis CI.
|
||||||
in Travis CI. >
|
>
|
||||||
|
|
||||||
========================================
|
========================================
|
||||||
diff README.md and doc/ale.txt tables
|
diff supported-tools.md and doc/ale-supported-languages-and-tools.txt tables
|
||||||
========================================
|
========================================
|
||||||
Differences follow:
|
Differences follow:
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,9 @@
|
||||||
set -e
|
set -e
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
# This script compares the table of supported tools in both the README file
|
# This script compares the table of supported tools in both supported-tools.md
|
||||||
# and the doc/ale.txt file, so we can complain if they don't match up.
|
# (for GitHub) and doc/ale-supported-languages-and-tools.txt (for vim), so we
|
||||||
|
# can complain if they don't match up.
|
||||||
|
|
||||||
doc_file="$(mktemp -t doc.XXXXXXXX)"
|
doc_file="$(mktemp -t doc.XXXXXXXX)"
|
||||||
doc_sorted_file="$(mktemp -t doc-sorted.XXXXXXXX)"
|
doc_sorted_file="$(mktemp -t doc-sorted.XXXXXXXX)"
|
||||||
|
|
|
@ -36,12 +36,12 @@ tag_regex='[gb]\?:\?\(ale\|ALE\)[a-zA-Z_\-]\+'
|
||||||
# Grep for tags and references, and complain if we find a reference without
|
# Grep for tags and references, and complain if we find a reference without
|
||||||
# a tag for the reference. Only our tags will be included.
|
# a tag for the reference. Only our tags will be included.
|
||||||
diff -u \
|
diff -u \
|
||||||
<(grep --exclude=tags -roh "\*$tag_regex\*" doc | sort -u | sed 's/*//g') \
|
<(grep --exclude=tags -roh "\\*$tag_regex\\*" doc | sort -u | sed 's/*//g') \
|
||||||
<(grep --exclude=tags -roh "|$tag_regex|" doc | sort -u | sed 's/|//g') \
|
<(grep --exclude=tags -roh "|$tag_regex|" doc | sort -u | sed 's/|//g') \
|
||||||
| grep '^+[^+]' && exit_code=1
|
| grep '^+[^+]' && exit_code=1
|
||||||
|
|
||||||
echo '========================================'
|
echo '========================================'
|
||||||
echo 'diff README.md and doc/ale.txt tables'
|
echo 'diff supported-tools.md and doc/ale-supported-languages-and-tools.txt tables'
|
||||||
echo '========================================'
|
echo '========================================'
|
||||||
echo 'Differences follow:'
|
echo 'Differences follow:'
|
||||||
echo
|
echo
|
||||||
|
|
Reference in a new issue