Skip to content

Commit

Permalink
fix spellcheck glob
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
tuminoid committed Oct 21, 2024
1 parent b657702 commit 97b9108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/spellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 97b9108

Please sign in to comment.