From 21844b1b8479769a527f4a8bac938f32417531af Mon Sep 17 00:00:00 2001 From: Tuomo Tanskanen Date: Mon, 21 Oct 2024 08:34:02 +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. In this repo, it only ignored top-level ones, which luckily do not have any spellcheck issues, so it is enough to just fix the glob. 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 e03416e2d..1560cdfda 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 \