Skip to content
Snippets Groups Projects
Commit dfec28b2 authored by Björn Brandenburg's avatar Björn Brandenburg
Browse files

also spell-check *.md files

parent 4c536701
No related branches found
No related tags found
1 merge request!267also spell-check *.md files
......@@ -130,9 +130,9 @@ spell-check:
extends:
- .not_in_wip_branches
stage: build
image: bbbrandenburg/aspell-ci
image: bbbrandenburg/aspell-ci:2023-03
script:
- scripts/flag-typos-in-comments.sh `find . -iname '*.v'`
- make spell
# mathcomp-dev with stable Coq
#coq-8.15:
......
......@@ -81,7 +81,8 @@ macos-clean:
@find . -depth -iname '.DS_Store' ! -path './.git/*' -delete
spell:
./scripts/flag-typos-in-comments.sh `find . -iname '*.v'`
./scripts/flag-typos-in-comments.sh `find . -iname '*.v'`
./scripts/flag-typos-in-Markdown.sh `find . -iname '*.md'`
distclean: cleanall
$(RM) $(COQ_PROJ)
......
#!/bin/sh
EXIT=0
KNOWN_EXCEPTIONS=./scripts/wordlist.pws
while ! [ -z "$1" ]
do
MD="$1"
for WORD in $(cat "$1" \
| aspell --mode=markdown --add-extra-dicts=$KNOWN_EXCEPTIONS -l en list \
| sort \
| uniq)
do
echo "$MD: potentially misspelled word '$WORD'"
EXIT=1
done
shift
done
exit $EXIT
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment