From 97b91084d7d716bf9dbd1c570e9bcda8e3bfd5fa Mon Sep 17 00:00:00 2001 From: Tuomo Tanskanen Date: Mon, 21 Oct 2024 08:27:28 +0300 Subject: [PATCH] fix spellcheck glob Since we're running the check in sh, it does not have globstar option to handle '**/*.md' properly. It only checked exactly one level deep markdown files. Spellcheck handles globs itself, so just adding quotes is enough to fix it. Second commit fixes all the spellcheck issues found by this fix. Signed-off-by: Tuomo Tanskanen --- hack/spellcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/spellcheck.sh b/hack/spellcheck.sh index e03416e2..1560cdfd 100755 --- a/hack/spellcheck.sh +++ b/hack/spellcheck.sh @@ -20,7 +20,7 @@ WORKDIR="${WORKDIR:-/workdir}" # all md files, but ignore .github and node_modules if [ "${IS_CONTAINER}" != "false" ]; then - cspell-cli --show-suggestions -c .cspell-config.json -- ./**/*.md + cspell-cli --show-suggestions -c .cspell-config.json -- "./**/*.md" else "${CONTAINER_RUNTIME}" run --rm \ --env IS_CONTAINER=TRUE \