Skip to content

Refresh check-spelling 0.0.26#47119

Merged
DHowett merged 16 commits into
microsoft:mainfrom
jsoref:refresh-check-spelling-0.0.26
Apr 24, 2026
Merged

Refresh check-spelling 0.0.26#47119
DHowett merged 16 commits into
microsoft:mainfrom
jsoref:refresh-check-spelling-0.0.26

Conversation

@jsoref

@jsoref jsoref commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

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

  • Closes: #xxx
  • Communication: I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected
  • Tests: Added/updated and all pass
  • Localization: All end-user-facing strings can be localized
  • Dev docs: Added/updated
  • New binaries: Added on the required places
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@jsoref jsoref requested a review from a team as a code owner April 20, 2026 16:18
Comment on lines -1 to -3
# D2D
#D?2D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this pattern is commented out and since I don't seem to have it in my baseline, I've dropped it.

Comment on lines 704 to 710
# 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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These .s ensure that the comment for the hint starts from Non-English if the pattern catches.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, clever

Comment thread .github/actions/spell-check/expect.txt
# Generally words are written with `'s`, not `"s`
[^=|+']\s\w+"s\s

# Don't miswrite **irreversible binomials**

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new fancy rule, and it snagged at least one thing.

Comment thread .github/actions/spell-check/patterns.txt
Comment thread .vscode/settings.json
Comment thread doc/devdocs/modules/fancyzones.md Outdated
Comment thread src/modules/cmdpal/ext/Microsoft.CmdPal.Ext.WindowWalker/Components/Window.cs Outdated
jsoref added 15 commits April 20, 2026 12:32
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>
@jsoref jsoref force-pushed the refresh-check-spelling-0.0.26 branch from aa60161 to 4ecd4c3 Compare April 20, 2026 16:33

@DHowett DHowett left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread .github/actions/spell-check/expect.txt
# Generally words are written with `'s`, not `"s`
[^=|+']\s\w+"s\s

# Don't miswrite **irreversible binomials**

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I LOVE THIS, OMG

# 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`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/actions/spell-check/patterns.txt
Comment thread .vscode/settings.json
Comment thread doc/devdocs/modules/fancyzones.md Outdated
@DHowett

DHowett commented Apr 23, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Comment thread .github/actions/spell-check/expect.txt
# Alt text should be short
\balt=(?:'[^']{126,}'|"[^"]{126,}")

# Should be either of `default` or `fallback`, but not both

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/actions/spell-check/patterns.txt Outdated
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: Dustin L. Howett <dustin@howett.net>

@DHowett DHowett left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much

@DHowett

DHowett commented Apr 23, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@DHowett DHowett merged commit 2e5c7d2 into microsoft:main Apr 24, 2026
11 checks passed
@jsoref jsoref deleted the refresh-check-spelling-0.0.26 branch April 24, 2026 02:34
@LegendaryBlair LegendaryBlair added 0.99 Area-Build Issues pertaining to the build system, CI, infrastructure, meta labels Apr 24, 2026
@LegendaryBlair LegendaryBlair added this to the PowerToys 0.99 milestone Apr 24, 2026
LegendaryBlair added a commit that referenced this pull request May 25, 2026
## 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.99 Area-Build Issues pertaining to the build system, CI, infrastructure, meta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants