Skip to content

Commit

Permalink
[ci]Upgrade to check-spelling 0.0.20alpha7 (#19127)
Browse files Browse the repository at this point in the history
* spelling: added

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: and

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: another

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: color

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: file

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: github

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: not

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: occurrences

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: stamp

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: suppressions

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: the

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: up to

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: whether

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: whichdoes

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* Upgrade check-spelling to v0.0.20-alpha7

Config based on:
https://github.com/check-spelling/spell-check-this/tree/a5001170a754da309ca324ce7eed8a076af2f4ac

* Adding duplicate detection to patterns.txt
* Adding line_forbidden.patterns
* Adding reject.txt
* Updated excludes (and sorted)
* Switching to unified workflow

* moving `wil` to allow.txt to clarify that it's a term of art
  (https://github.com/microsoft/wil), whereas often it's a typo for `will`.

* Update src/runner/main.cpp

Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
jsoref authored Jul 1, 2022
1 parent f4dbdbd commit 3cb0638
Show file tree
Hide file tree
Showing 37 changed files with 189 additions and 143 deletions.
15 changes: 15 additions & 0 deletions .github/actions/spell-check/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# check-spelling/check-spelling configuration

File | Purpose | Format | Info
-|-|-|-
[allow.txt](allow.txt) | Add words to the dictionary | one word per line (only letters and `'`s allowed) | [allow](https://github.com/check-spelling/check-spelling/wiki/Configuration#allow)
[reject.txt](reject.txt) | Remove words from the dictionary (after allow) | grep pattern matching whole dictionary words | [reject](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-reject)
[excludes.txt](excludes.txt) | Files to ignore entirely | perl regular expression | [excludes](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-excludes)
[only.txt](only.txt) | Only check matching files (applied after excludes) | perl regular expression | [only](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-only)
[patterns.txt](patterns.txt) | Patterns to ignore from checked lines | perl regular expression (order matters, first match wins) | [patterns](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-patterns)
[line_forbidden.patterns](line_forbidden.patterns) | Patterns to flag in checked lines | perl regular expression (order matters, first match wins) | [patterns](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-patterns)
[expect.txt](expect.txt) | Expected words that aren't in the dictionary | one word per line (sorted, alphabetically) | [expect](https://github.com/check-spelling/check-spelling/wiki/Configuration#expect)
[advice.md](advice.md) | Supplement for GitHub comment when unrecognized words are found | GitHub Markdown | [advice](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice)

Note: you can replace any of these files with a directory by the same name (minus the suffix)
and then include multiple files inside that directory (with that suffix) to merge multiple files together.
1 change: 1 addition & 0 deletions .github/actions/spell-check/allow.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
wil
42 changes: 31 additions & 11 deletions .github/actions/spell-check/excludes.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-excludes
(?:^|/)monacoSRC/
(?:^|/)(?i)COPYRIGHT
(?:^|/)(?i)LICEN[CS]E
(?:^|/)go\.sum$
(?:^|/)MonacoPreviewHandler/customLanguages/
(?:^|/)MonacoPreviewHandler/monaco_languages.json
(?:^|/)MonacoPreviewHandler/index.html
(?:^|/)MonacoPreviewHandler/generateLanguagesJson.html
(?:^|/)MonacoPreviewHandler/index.html
(?:^|/)MonacoPreviewHandler/monacoSpecialLanguages.js
(?:^|/)(?i)COPYRIGHT
(?:^|/)(?i)LICEN[CS]E
(?:^|/)package(?:-lock)\.json$
(?:^|/)MonacoPreviewHandler/monaco_languages.json
(?:^|/)monacoSRC/
(?:^|/)package(?:-lock|)\.json$
(?:^|/)timezones\.json$
(?:^|/)vendor/
(?:^|/)WindowsSettings\.json$
/package(?:-lock|)\.json$
Expand All @@ -16,24 +18,44 @@
ignore$
[/.][a-z]{2}(?:-[a-zA-Z]{2}|)\.
\.ai$
\.avi$
\.bmp$
\.bz2$
\.crt$
\.dat$
\.dll$
\.DS_Store$
\.eot$
\.filters$
\.gcode$
\.gif$
\.gitattributes$
\.gitignore$
\.graffle$
\.gz$
\.icns$
\.ico$
\.jpg$
\.jar$
\.jpe?g$
\.key$
\.lcl$
\.lock$
\.min\.
\.map$
\.min\..
\.mod$
\.mp[34]$
\.ocf$
\.otf$
\.pdf$
\.pem$
\.PNG$
\.png$
\.psd$
\.stl$
\.woff$
\.svg$
\.ttf$
\.wav$
\.woff2?$
\.zip$
^doc/devdocs/akaLinks\.md$
^installer/PowerToysSetup/WebView2/MicrosoftEdgeWebview2Setup.exe$
Expand All @@ -52,6 +74,4 @@ ignore$
^\.github/
^\.github/actions/spell-check/
^\.gitmodules$
(?:^|/)WindowsSettings\.json$
(?:^|/)timezones\.json$
^\Q.pipelines/ESRPSigning_core.json\E$
43 changes: 11 additions & 32 deletions .github/actions/spell-check/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ actioned
activatable
ACTIVATEAPP
activationaction
adamchilders
ADDUNDORECORD
ADifferent
ADMINS
Expand Down Expand Up @@ -94,7 +95,6 @@ ARPPRODUCTICON
ARRAYSIZE
arsinh
artanh
Artboard
Artsakh
asdf
AShortcut
Expand Down Expand Up @@ -133,6 +133,7 @@ awakeness
awakeversion
AWAYMODE
AYUV
azchohfi
backend
backtracer
BADD
Expand Down Expand Up @@ -190,7 +191,6 @@ Bto
buf
BUFSIZE
bugreport
BUILDARCH
BUILDNUMBER
buildtask
buildtransitive
Expand Down Expand Up @@ -268,7 +268,6 @@ cnt
Cocklebiddy
coclass
codebase
codecvt
CODENAME
codeofconduct
codereview
Expand Down Expand Up @@ -299,7 +298,6 @@ comsuppw
comsuppwd
comutil
Concat
concrt
configs
Configurator
CONFLICTINGMODIFIERKEY
Expand Down Expand Up @@ -337,6 +335,7 @@ crlf
cron
Crossdevice
CRSEL
crutkas
CSearch
CSettings
csharp
Expand Down Expand Up @@ -439,11 +438,9 @@ devblogs
devdocs
devenum
DEVMON
devops
devpkey
DEVSOURCE
dhcp
diffing
difftime
DIIRFLAG
dimm
Expand All @@ -460,7 +457,6 @@ DLGMODALFRAME
dlib
dllexport
dllhost
dllimport
dllmain
dlls
DNLEN
Expand Down Expand Up @@ -494,9 +490,9 @@ DWINRT
dwl
dwm
dwmapi
dwmcorei
DWMCOLORIZATIONCOLORCHANGED
DWMCOMPOSITIONCHANGED
dwmcorei
DWMNCRENDERINGCHANGED
Dwmp
DWMSENDICONICLIVEPREVIEWBITMAP
Expand Down Expand Up @@ -524,6 +520,7 @@ EFile
ekus
elif
elseif
eltociear
Emoji
emptyrecyclebin
ENABLEDPOPUP
Expand All @@ -538,7 +535,7 @@ entrypoint
ENU
enum
EOAC
eol
EOL
epicgames
Eqn
ERASEBKGND
Expand Down Expand Up @@ -683,6 +680,7 @@ hanselman
hardcoded
Hardlines
HARDWAREINPUT
harvastum
hashcode
Hashset
Hashtable
Expand Down Expand Up @@ -743,7 +741,6 @@ homljgmgpmcbpjbnjpfijnhipfkiclkd
HOOKPROC
Hostbackdropbrush
hostname
hotfix
hotkeycontrol
hotkeys
hotlight
Expand Down Expand Up @@ -867,7 +864,6 @@ IMedia
IMem
IMessage
imeutil
iminstall
IMoniker
IMouse
impl
Expand Down Expand Up @@ -985,7 +981,6 @@ IVector
IView
IVirtual
IWbem
IWeb
IWIC
iwindow
IWork
Expand Down Expand Up @@ -1079,7 +1074,6 @@ LIBID
Lifecycle
LIGHTORANGE
LIGHTTURQUOISE
lightunplated
lindex
linkedin
linq
Expand Down Expand Up @@ -1288,7 +1282,6 @@ msp
msrc
mst
msvc
msvcp
MTND
Mul
multiline
Expand Down Expand Up @@ -1424,7 +1417,6 @@ Objbase
OBJID
objidl
oblitum
octodex
odbc
odbccp
Oem
Expand Down Expand Up @@ -1459,7 +1451,6 @@ OSVERSIONINFOEX
OSVERSIONINFOEXW
OSVERSIONINFOW
osvi
otating
OUTOFCONTEXT
OUTOFMEMORY
outpin
Expand Down Expand Up @@ -1498,7 +1489,6 @@ PCIDLIST
PCWSTR
pdb
pdbonly
pde
pdfpreviewhandler
pdo
pdto
Expand Down Expand Up @@ -1653,6 +1643,7 @@ RBUTTONDBLCLK
RBUTTONDOWN
RBUTTONUP
rclsid
rcmaehl
RCONTROL
RCtrl
readme
Expand Down Expand Up @@ -1752,8 +1743,6 @@ RTB
RTCS
RTLREADING
RTSS
ruleset
RUNACTIVEXCTLS
runas
rundll
rungameid
Expand Down Expand Up @@ -1816,6 +1805,7 @@ SETWORKAREA
sfgao
SFGAOF
SFP
shandsj
sharpkeys
SHCNE
SHCNF
Expand Down Expand Up @@ -1864,6 +1854,7 @@ SIGABRT
sigdn
SIGNINGSCENARIO
signtool
sinclairinat
SINGLEKEY
singlekeyremapcontrol
singletones
Expand All @@ -1877,14 +1868,14 @@ SIZENWSE
sizeof
sizeread
SIZEWE
sketchapp
SKIPOWNPROCESS
sku
SLGP
sln
SMALLICON
SMTO
snd
snickler
snwprintf
softline
somil
Expand Down Expand Up @@ -1982,7 +1973,6 @@ subquery
substr
Sul
Superbar
supressions
Suri
sut
SVE
Expand Down Expand Up @@ -2054,7 +2044,6 @@ THH
THICKFRAME
THISCOMPONENT
THotkey
thre
TILEDWINDOW
timedate
timediff
Expand Down Expand Up @@ -2091,7 +2080,6 @@ TRK
trl
trunc
Tshuapa
tspan
TStr
Tuva
TValue
Expand Down Expand Up @@ -2184,14 +2172,10 @@ uxtheme
UYVY
validmodulename
vcamp
vccorlib
vcdl
VCINSTALLDIR
vcm
vcomp
vcredist
VCRT
vcruntime
vcvars
VDesktop
vdi
Expand Down Expand Up @@ -2262,13 +2246,11 @@ wekyb
Wevtapi
wformat
wgpocpl
Whichdoes
whitespaces
WIC
wifi
wiki
wikipedia
wil
wildcards
winapi
winappdriver
Expand All @@ -2277,16 +2259,13 @@ Wincodecsdk
wincolor
windef
windir
Windowcontrols
WINDOWCREATED
WINDOWEDGE
WINDOWNAME
WINDOWPLACEMENT
WINDOWPOSCHANGED
WINDOWPOSCHANGING
Windowsapp
windowsappruntimeinstall
windowsappsdk
WINDOWSBUILDNUMBER
Windowscodecs
windowsdesktop
Expand Down
Loading

0 comments on commit 3cb0638

Please sign in to comment.