mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Merge pull request #2696 from elebow/update-test-docs-for-linter-lists
Update test docs and output for linter tables checked
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
set -e
|
||||
set -u
|
||||
|
||||
# This script compares the table of supported tools in both the README file
|
||||
# and the doc/ale.txt file, so we can complain if they don't match up.
|
||||
# This script compares the table of supported tools in both supported-tools.md
|
||||
# (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_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
|
||||
# a tag for the reference. Only our tags will be included.
|
||||
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 '^+[^+]' && exit_code=1
|
||||
|
||||
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 'Differences follow:'
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user