From decec06f45c4d6965a56db8167defd049a53d11f Mon Sep 17 00:00:00 2001 From: John Saigle Date: Mon, 7 Jul 2025 16:58:35 -0400 Subject: [PATCH 1/2] ci: fix cspell command to also run on subdirectories --- scripts/lint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint.sh b/scripts/lint.sh index a780879d1b..9841e54f2b 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -60,7 +60,7 @@ lint(){ printf "%s\n" "cspell is not installed. Skipping spellcheck" else # NOTE: Keep this command in sync with `.github/workflows/build.yml` - cspell -c cspell.config.yaml --dictionary cspell-custom-words.txt "**.*md" + cspell -c cspell.config.yaml --dictionary cspell-custom-words.txt "*/**.*md" fi # === Go linting From f07ce780d168d59ea531899a697a7530d9bf9704 Mon Sep 17 00:00:00 2001 From: John Saigle Date: Tue, 8 Jul 2025 08:50:10 -0400 Subject: [PATCH 2/2] remove unnecessary config specification and comments --- .github/workflows/build.yml | 1 - scripts/lint.sh | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 35a5e563d1..a4dcae1c8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -313,7 +313,6 @@ jobs: # Pinned version of the v6 tag, which is a lightweight and hence mutable tag - uses: streetsidesoftware/cspell-action@214db1e3138f326d33b7a6a51c92852e89ab0618 with: - # NOTE: Keep this command in sync with `scripts/lint.sh` # For now, only lint markdown files files: "**/*.md" inline: warning diff --git a/scripts/lint.sh b/scripts/lint.sh index 9841e54f2b..da82a8b4b2 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -59,8 +59,7 @@ lint(){ if ! command -v cspell >/dev/null 2>&1; then printf "%s\n" "cspell is not installed. Skipping spellcheck" else - # NOTE: Keep this command in sync with `.github/workflows/build.yml` - cspell -c cspell.config.yaml --dictionary cspell-custom-words.txt "*/**.*md" + cspell "*/**.*md" fi # === Go linting