Refresh check-spelling 0.0.26#47119
Conversation
| # D2D | ||
| #D?2D | ||
|
|
There was a problem hiding this comment.
Since this pattern is commented out and since I don't seem to have it in my baseline, I've dropped it.
| # Non-English | ||
| # Even repositories expecting pure English content can unintentionally have Non-English content... People will occasionally mistakenly enter [homoglyphs](https://en.wikipedia.org/wiki/Homoglyph) which are essentially typos, and using this pattern will mean check-spelling will not complain about them. | ||
| # | ||
| # . | ||
| # If the content to be checked should be written in English and the only Non-English items will be people's names, then you can consider adding this. | ||
| # | ||
| # . | ||
| # Alternatively, if you're using check-spelling v0.0.25+, and you would like to _check_ the Non-English content for spelling errors, you can. For information on how to do so, see: | ||
| # https://docs.check-spelling.dev/Feature:-Configurable-word-characters.html#unicode |
There was a problem hiding this comment.
These .s ensure that the comment for the hint starts from Non-English if the pattern catches.
| # Generally words are written with `'s`, not `"s` | ||
| [^=|+']\s\w+"s\s | ||
|
|
||
| # Don't miswrite **irreversible binomials** |
There was a problem hiding this comment.
This is a new fancy rule, and it snagged at least one thing.
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
aa60161 to
4ecd4c3
Compare
DHowett
left a comment
There was a problem hiding this comment.
I love this, and I can already see the places in Windows Terminal where we've made similar errors. Push new updates at will - I'll reapprove
| # Generally words are written with `'s`, not `"s` | ||
| [^=|+']\s\w+"s\s | ||
|
|
||
| # Don't miswrite **irreversible binomials** |
| # It's possible this is some strange CSV dialect, but, even so, you could probably move the space. | ||
| \s[A-Za-z]{3,} ,[A-Za-z]{3,}\s | ||
|
|
||
| # Should be `could`/`should`/`would`+`'ve` |
There was a problem hiding this comment.
thank you. we're so bad about this.
| # Alt text should be short | ||
| \balt=(?:'[^']{126,}'|"[^"]{126,}") | ||
|
|
||
| # Should be either of `default` or `fallback`, but not both |
There was a problem hiding this comment.
I suppose that in a narrow use case (in e.g. a settings system) we might have a fallback option and the user can configure what the fallback is, and then we would have a default fallback.
There was a problem hiding this comment.
You can always write a specific pattern for it or comment it out.
I might eventually rewrite the advice for this, since you're right, there are some exceptional cases. But, that's true for all patterns.
I think on average, the advice is right, sadly when it triggers, about half the time I don't have the energy to suggest a correction, so I just ignore it/comment it out.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| # Alt text should be short | ||
| \balt=(?:'[^']{126,}'|"[^"]{126,}") | ||
|
|
||
| # Should be either of `default` or `fallback`, but not both |
There was a problem hiding this comment.
You can always write a specific pattern for it or comment it out.
I might eventually rewrite the advice for this, since you're right, there are some exceptional cases. But, that's true for all patterns.
I think on average, the advice is right, sadly when it triggers, about half the time I don't have the energy to suggest a correction, so I just ignore it/comment it out.
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: Dustin L. Howett <dustin@howett.net>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
## Problem Since #47119 (`Refresh check-spelling 0.0.26`, merged 2026-04-23) refreshed the check-spelling tooling and rewrote `.github/actions/spell-check/expect.txt` (938 lines / 633 deletions), the check-spelling bot has been leaving a noisy advisory comment on **every PR**: > #### These words are not needed and should be removed > ABlocked AClient AColumn ACR ADate ADifferent AHybrid ALarger AModifier ANull AOklab APeriod ARandom ARemapped ASingle ASUS bck … The same ~150-word list is appended verbatim to every PR the bot looks at (verified against #48058, #48102, #48104 — the list is identical). These tokens are residual orphans in `expect.txt` from before the 0.0.26 refresh and no longer match anything in source. ## Fix Removes exactly the 147 orphan tokens that the bot has consistently flagged as `now absent` from `.github/actions/spell-check/expect.txt`. The removed tokens are exclusively the ones the bot itself identified. All uppercase Win32 / DirectWrite identifiers that are still used in source (`DWRITE`, `LWIN`, `VCENTER`, `VREDRAW`, etc.) are **preserved**. ## Verification - Diff is a single file, deletions only: `expect.txt` shrinks from 2343 → 2196 lines. - Each of the 4 uppercase Win32 tokens (`DWRITE` line 514, `LWIN` 1074, `VCENTER` 2105, `VREDRAW` 2144 in the original) remains in the file. - The check-spelling job on this PR should now post a clean report (no `should be removed` block). ## Background — which PR introduced the drift | PR | Date | What it changed | |----|------|-----------------| | **#47119** | 2026-04-23 | Refreshed check-spelling to 0.0.26; rewrote `expect.txt` with 938 line-changes (633 deletions, 305 additions). The duplicated lowercase/uppercase entries and many obsolete tokens originate here. | --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot <Copilot@users.noreply.github.com>
Summary of the Pull Request
This is roughly a refresh based on https://github.com/check-spelling/spell-check-this/tree/976261d7b7184b67231c8668f2b35438496ca44f
There are a couple of interesting new rules and I've extended one of the patterns to all letters. I'll call things out...
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed