Spellchecker: resolve warnings (#42202)

## Summary of the Pull Request

This PR resolves lingering spell-check warnings and other minor issues,
allowing us to focus on newly emerging problems.

**Changes:**

- Excludes empty and binary files  
- Converts invalid dictionary entries into patterns  
- Since dictionary entries can only contain letters, `0x6f677548` was
previously ignored
- Removes unused words  
- Adds a pattern marker to ignore all code on a line  
  - `/* #no-spell-check-line */`  
  - `// #no-spell-check`  

This should reduce outstanding spellchecker warnings and suggestions to
zero.

<!-- Please review the items on the PR checklist before submitting-->
## 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
- [ ] [JSON for
signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json)
for new binaries
- [ ] [WXS for
installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs)
for new binaries and localization folder
- [ ] [YML for CI
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml)
for new test projects
- [ ] [YML for signed
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml)
- [ ] **Documentation updated:** If checked, please file a pull request
on [our docs
repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys)
and link it here: #xxx

<!-- Provide a more detailed description of the PR, other things fixed,
or any additional comments/features here -->
## Detailed Description of the Pull Request / Additional comments

<!-- Describe how you validated the behavior. Add automated tests
wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed
This commit is contained in:
Jiří Polášek
2025-10-08 22:36:05 +02:00
committed by GitHub
parent ca4e8b2986
commit 668820cf2c
4 changed files with 13 additions and 43 deletions

View File

@@ -29,8 +29,6 @@ shortcutguide
# 8LWXpg is user name but user folder causes a flag # 8LWXpg is user name but user folder causes a flag
LWXpg LWXpg
# 0x6f677548 is user name but user folder causes a flag
x6f677548
Adoumie Adoumie
Advaith Advaith
alekhyareddy alekhyareddy

View File

@@ -121,6 +121,10 @@
^src/modules/MouseWithoutBorders/App/Helper/.*\.resx$ ^src/modules/MouseWithoutBorders/App/Helper/.*\.resx$
^src/modules/MouseWithoutBorders/ModuleInterface/generateSecurityDescriptor\.h$ ^src/modules/MouseWithoutBorders/ModuleInterface/generateSecurityDescriptor\.h$
^src/modules/peek/Peek.Common/NativeMethods\.txt$ ^src/modules/peek/Peek.Common/NativeMethods\.txt$
^src/modules/peek/Peek.UITests/TestAssets/4\.qoi$
^src/modules/powerrename/PowerRenameUITest/testItems/folder1/testCase2\.txt$
^src/modules/powerrename/PowerRenameUITest/testItems/folder2/SpecialCase\.txt$
^src/modules/powerrename/PowerRenameUITest/testItems/testCase1\.txt$
^src/modules/previewpane/SvgPreviewHandler/SvgHTMLPreviewGenerator\.cs$ ^src/modules/previewpane/SvgPreviewHandler/SvgHTMLPreviewGenerator\.cs$
^src/modules/previewpane/UnitTests-MarkdownPreviewHandler/HelperFiles/MarkdownWithHTMLImageTag\.txt$ ^src/modules/previewpane/UnitTests-MarkdownPreviewHandler/HelperFiles/MarkdownWithHTMLImageTag\.txt$
^src/modules/registrypreview/RegistryPreviewUILib/Controls/HexBox/.*$ ^src/modules/registrypreview/RegistryPreviewUILib/Controls/HexBox/.*$

View File

@@ -26,8 +26,6 @@ ADMINS
adml adml
admx admx
advancedpaste advancedpaste
advancedpasteui
advancedpasteuishortcut
advapi advapi
advfirewall advfirewall
AFeature AFeature
@@ -45,7 +43,6 @@ ALLINPUT
Allman Allman
Allmodule Allmodule
ALLOWUNDO ALLOWUNDO
allpc
ALLVIEW ALLVIEW
ALPHATYPE ALPHATYPE
AModifier AModifier
@@ -136,7 +133,6 @@ bla
BLACKFRAME BLACKFRAME
BLENDFUNCTION BLENDFUNCTION
Blockquotes Blockquotes
blogs
Blt Blt
BLURBEHIND BLURBEHIND
BLURREGION BLURREGION
@@ -512,7 +508,6 @@ FANCYZONESDRAWLAYOUTTEST
FANCYZONESEDITOR FANCYZONESEDITOR
FARPROC FARPROC
fesf fesf
fff
FFFF FFFF
FILEEXPLORER FILEEXPLORER
fileexploreraddons fileexploreraddons
@@ -672,11 +667,7 @@ Hostx
hotfixes hotfixes
hotkeycontrol hotkeycontrol
HOTKEYF HOTKEYF
hotkeylockmachine
hotkeyreconnect
hotkeys hotkeys
hotkeyswitch
hotkeytoggleeasymouse
hotlight hotlight
hotspot hotspot
HPAINTBUFFER HPAINTBUFFER
@@ -735,8 +726,6 @@ IMAGERESIZERCONTEXTMENU
IMAGERESIZEREXT IMAGERESIZEREXT
imageresizerinput imageresizerinput
imageresizersettings imageresizersettings
imagetotext
imagetotextshortcut
imagingdevices imagingdevices
ime ime
imgflip imgflip
@@ -868,7 +857,6 @@ localappdata
localpackage localpackage
LOCALSYSTEM LOCALSYSTEM
LOCATIONCHANGE LOCATIONCHANGE
LOCKMACHINE
LOCKTYPE LOCKTYPE
LOGFONT LOGFONT
LOGFONTW LOGFONTW
@@ -877,7 +865,6 @@ LOGMSG
LOGPIXELSX LOGPIXELSX
LOGPIXELSY LOGPIXELSY
lng lng
LOn
lon lon
longdate longdate
LONGNAMES LONGNAMES
@@ -934,7 +921,6 @@ LWA
lwin lwin
LZero LZero
MAGTRANSFORM MAGTRANSFORM
MAJORMINOR
MAKEINTRESOURCE MAKEINTRESOURCE
MAKEINTRESOURCEA MAKEINTRESOURCEA
MAKEINTRESOURCEW MAKEINTRESOURCEW
@@ -959,7 +945,6 @@ MDL
mdtext mdtext
mdtxt mdtxt
mdwn mdwn
measuretool
meme meme
memicmp memicmp
MENUITEMINFO MENUITEMINFO
@@ -1009,7 +994,6 @@ MOUSEHWHEEL
MOUSEINPUT MOUSEINPUT
mousejump mousejump
mousepointer mousepointer
mousepointercrosshairs
mouseutils mouseutils
MOVESIZEEND MOVESIZEEND
MOVESIZESTART MOVESIZESTART
@@ -1054,7 +1038,6 @@ MWBEx
MYICON MYICON
NAMECHANGE NAMECHANGE
namespaceanddescendants namespaceanddescendants
Namotion
nao nao
NCACTIVATE NCACTIVATE
ncc ncc
@@ -1092,7 +1075,6 @@ NEWPLUSSHELLEXTENSIONWIN
newrow newrow
nicksnettravels nicksnettravels
NIF NIF
NJson
NLog NLog
NLSTEXT NLSTEXT
NMAKE NMAKE
@@ -1219,18 +1201,6 @@ PARENTRELATIVEFORUI
PARENTRELATIVEPARSING PARENTRELATIVEPARSING
parray parray
PARTIALCONFIRMATIONDIALOGTITLE PARTIALCONFIRMATIONDIALOGTITLE
pasteashtmlfile
pasteashtmlfileshortcut
pasteasjson
pasteasjsonshortcut
pasteasmarkdown
pasteasmarkdownshortcut
pasteasplaintext
pasteasplaintextshortcut
pasteaspngfile
pasteaspngfileshortcut
pasteastxtfile
pasteastxtfileshortcut
PATCOPY PATCOPY
PATHMUSTEXIST PATHMUSTEXIST
PATINVERT PATINVERT
@@ -1301,7 +1271,6 @@ Pomodoro
Popups Popups
POPUPWINDOW POPUPWINDOW
POSITIONITEM POSITIONITEM
powerocr
POWERRENAMECONTEXTMENU POWERRENAMECONTEXTMENU
powerrenameinput powerrenameinput
POWERRENAMETEST POWERRENAMETEST
@@ -1352,7 +1321,6 @@ PRODUCTVERSION
Progman Progman
programdata programdata
projectname projectname
projitems
PROPERTYKEY PROPERTYKEY
Propset Propset
PROPVARIANT PROPVARIANT
@@ -1445,7 +1413,6 @@ Removelnk
renamable renamable
RENAMEONCOLLISION RENAMEONCOLLISION
reparented reparented
reparenthotkey
reparenting reparenting
reportfileaccesses reportfileaccesses
requery requery
@@ -1471,7 +1438,6 @@ RIDEV
RIGHTSCROLLBAR RIGHTSCROLLBAR
riid riid
RKey RKey
Rns
RNumber RNumber
rop rop
ROUNDSMALL ROUNDSMALL
@@ -1695,7 +1661,6 @@ STYLECHANGED
STYLECHANGING STYLECHANGING
subkeys subkeys
sublang sublang
Subdomain
SUBMODULEUPDATE SUBMODULEUPDATE
subresource subresource
Superbar Superbar
@@ -1768,7 +1733,6 @@ THICKFRAME
THEMECHANGED THEMECHANGED
THISCOMPONENT THISCOMPONENT
throughs throughs
thumbnailhotkey
TILEDWINDOW TILEDWINDOW
TILLSON TILLSON
timedate timedate
@@ -1784,9 +1748,7 @@ tlbimp
tlc tlc
tmain tmain
TNP TNP
TOGGLEEASYMOUSE
Toolhelp Toolhelp
toolkitconverters
toolwindow toolwindow
TOPDOWNDIB TOPDOWNDIB
TOUCHEVENTF TOUCHEVENTF
@@ -1798,11 +1760,9 @@ tracelogging
tracerpt tracerpt
trackbar trackbar
trafficmanager trafficmanager
transcodetomp
transicc transicc
TRAYMOUSEMESSAGE TRAYMOUSEMESSAGE
triaging triaging
Tru
trl trl
trx trx
tsa tsa
@@ -1838,7 +1798,6 @@ ULONGLONG
ums ums
uncompilable uncompilable
UNCPRIORITY UNCPRIORITY
undefining
UNDNAME UNDNAME
UNICODETEXT UNICODETEXT
unins unins

View File

@@ -1,5 +1,10 @@
# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns # See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns
# marker to ignore all code on line
^.*/\* #no-spell-check-line \*/.*$
# marker for ignoring a comment to the end of the line
// #no-spell-check.*$
# Gaelic # Gaelic
Gàidhlig Gàidhlig
@@ -264,3 +269,7 @@ St&yle
# This matches a relative clause where the relative pronoun "that" is omitted. # This matches a relative clause where the relative pronoun "that" is omitted.
# Example: "Gets or sets the window the TitleBar should configure." # Example: "Gets or sets the window the TitleBar should configure."
\bthe\s+\w+\s+the\b \bthe\s+\w+\s+the\b
# Usernames with numbers
# 0x6f677548 is user name but user folder causes a flag
\bx6f677548\b