From bbb9388d1868ca0ad0e9a6a1e5f0f478801bbe13 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Tue, 21 Apr 2026 05:34:11 -0700 Subject: [PATCH] chore: spell-check all file types, not just md/mdx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously the `includes:` in the workflow narrowed cspell scope to `**/*.md` and `**/*.mdx`, which meant typos in astro pages, tsx components, and config files went unchecked — and diverged from how other Shorebird repos run cspell. Drop the narrowing and make the existing set of files (.astro, .tsx, .mjs, package.json) pass cleanly: - Add real product / package / tool names to the words list: lavamoat, llms, opengraph, paweł, pixelmator, tabler. - Add `**/*.svg` to ignorePaths — the flagged words there come from editor-signature metadata (Pixelmator, Paweł) that churns whenever an icon is re-exported, not from authored prose. - `cspell:disable-next-line` the Unify analytics blob in Head.astro; its tracking-key fragments (Wuvn, qewe, Mpqiwu, unifytag) aren't words worth dictionary-ing. --- .cspell.yaml | 13 ++++++++++++- .github/workflows/main.yaml | 3 --- src/components/starlight/Head.astro | 1 + 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.cspell.yaml b/.cspell.yaml index b142894e..f4e78157 100644 --- a/.cspell.yaml +++ b/.cspell.yaml @@ -11,7 +11,12 @@ dictionaryDefinitions: path: https://raw.githubusercontent.com/verygoodopensource/very_good_dictionaries/main/forbidden.txt description: Forbidden spellings useGitignore: false -ignorePaths: [dist, node_modules, package-lock.json, plugins] +ignorePaths: + - dist + - node_modules + - package-lock.json + - plugins + - '**/*.svg' words: - aarch - aars @@ -38,11 +43,13 @@ words: - jank - janky - keyrings + - lavamoat - libapp - libflutter - libglu - libstdc - libupdater + - llms - localappdata - logcat - longpaths @@ -52,7 +59,10 @@ words: - mipmap - mozallowfullscreen - nubank + - opengraph - outform + - paweł + - pixelmator - podfile - prefs - pubin @@ -68,6 +78,7 @@ words: - shorebirdtech - softwareupdate - subosito + - tabler - temurin - uiscene - webkitallowfullscreen diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a52b87f5..b8cf9893 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -46,7 +46,4 @@ jobs: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1 with: config: .cspell.yaml - includes: | - **/*.md - **/*.mdx modified_files_only: false diff --git a/src/components/starlight/Head.astro b/src/components/starlight/Head.astro index 46320021..dd2cc1b1 100644 --- a/src/components/starlight/Head.astro +++ b/src/components/starlight/Head.astro @@ -17,4 +17,5 @@ const ogImageUrl = getImagePath({ url: Astro.url, site: Astro.site }); src="https://plausible.io/js/script.tagged-events.js"> + \ No newline at end of file