Update spell check

This commit is contained in:
vdimir 2022-06-03 13:08:50 +02:00
parent 9bd9c3d1d1
commit 251403407f
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
2 changed files with 4 additions and 3 deletions

View File

@ -11,8 +11,9 @@ CHECK_LANG=${1:-en}
ASPELL_IGNORE_PATH="${ROOT_PATH}/utils/check-style/aspell-ignore/${CHECK_LANG}"
STATUS=0
for fname in ${ROOT_PATH}/docs/${CHECK_LANG}/**/*.md; do
errors=$(aspell list --mode=markdown --lang=${CHECK_LANG} < "$fname" \
for fname in ${ROOT_PATH}/docs/${CHECK_LANG}/**/*formats.md; do
# vvv ---- remove anchors ---- vvv
errors=$(cat "$fname" | sed -E 's/(^#.*) \{#[a-z-]+\}$/\1/' | aspell list --encoding=utf-8 --mode=markdown --lang=${CHECK_LANG} \
| grep -Ewv -f "${ASPELL_IGNORE_PATH}/todo.txt" \
| grep -Ewvi -f "${ASPELL_IGNORE_PATH}/caseinsensitive.txt" \
| grep -Ewv -f "${ASPELL_IGNORE_PATH}/casesensitive.txt" \

View File

@ -5,7 +5,7 @@
ROOT_PATH=$(git rev-parse --show-toplevel)
codespell \
--skip '*generated*,*gperf*,*.bin,*.mrk*,*.idx,checksums.txt,*.dat,*.pyc,*.kate-swp,*obfuscateQueries.cpp,aspell-ignore/' \
--skip '*generated*,*gperf*,*.bin,*.mrk*,*.idx,checksums.txt,*.dat,*.pyc,*.kate-swp,*obfuscateQueries.cpp,${ROOT_PATH}/utils/check-style/aspell-ignore' \
--ignore-words "${ROOT_PATH}/utils/check-style/codespell-ignore-words.list" \
--exclude-file "${ROOT_PATH}/utils/check-style/codespell-ignore-lines.list" \
--quiet-level 2 \