Selaa lähdekoodia

ci: fix cspell command to also run on subdirectories (#4425)

* ci: fix cspell command to also run on subdirectories
* remove unnecessary config specification and comments
John Saigle 3 viikkoa sitten
vanhempi
sitoutus
f9b9704164
2 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. 0 1
      .github/workflows/build.yml
  2. 1 2
      scripts/lint.sh

+ 0 - 1
.github/workflows/build.yml

@@ -306,7 +306,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

+ 1 - 2
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