Upgrade check-spelling to v0.0.20 (#13565)

Upgrade check-spelling to [v0.0.20](https://github.com/check-spelling/check-spelling/releases/tag/v0.0.20)

This upgrade includes a refresh of the workflow

key new features:
* the previous comment is collapsed
* duplicate words are flagged (see `alone` and `the`)
* forbidding patterns (see `nonexistent`, `preexisting`, and `greater than`)

Each of these features can be tuned
- comment collapsing is controlled by the `followup` bits in the workflow--  but I can't imagine why one would want to turn it off
- duplicate words can be masked in `patterns.txt` (see `Guid` and `that`)
- forbidding patterns (especially duplicates) is in `.github/actions/spelling/line_forbidden.patterns`

Fwiw, I'm slowly moving towards not using `.txt` in filenames, but it's a long term project and I have a bunch of other goals for the near term.

The refresh of advice is of course flexible -- I'm still evolving my default text. Note that the default now includes some `curl` and I'm still working on how I want to consume the output. I'm getting close to the point where I might be able to provide a tool that could reliably consume the output (including on Windows).

This code has been used internally for a while, but I tested it for this repository here:
https://github.com/check-spelling/terminal/pull/2
This commit is contained in:
Josh Soref
2022-07-22 14:01:32 -04:00
committed by GitHub
parent d3ae00e2f3
commit 9fbdf37647
28 changed files with 181 additions and 228 deletions

14
.github/actions/spelling/README.md vendored Normal file
View File

@@ -0,0 +1,14 @@
# check-spelling/check-spelling configuration
File | Purpose | Format | Info
-|-|-|-
[allow/*.txt](allow/) | 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)
[patterns/*.txt](patterns/) | 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.

View File

@@ -1,4 +1,4 @@
<!-- markdownlint-disable MD033 MD041 --> <!-- See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice --> <!-- markdownlint-disable MD033 MD041 -->
<details> <details>
<summary> <summary>
:pencil2: Contributor please read this :pencil2: Contributor please read this
@@ -6,7 +6,7 @@
By default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later. By default the command suggestion will generate a file named based on your commit. That's generally ok as long as you add the file to your commit. Someone can reorganize it later.
:warning: The command is written for posix shells. You can copy the contents of each `perl` command excluding the outer `'` marks and dropping any `'"`/`"'` quotation mark pairs into a file and then run `perl file.pl` from the root of the repository to run the code. Alternatively, you can manually insert the items... :warning: The command is written for posix shells. If it doesn't work for you, you can manually _add_ (one word per line) / _remove_ items to `expect.txt` and the `excludes.txt` files.
If the listed items are: If the listed items are:
@@ -20,31 +20,29 @@ See the `README.md` in each directory for more information.
:microscope: You can test your commits **without** *appending* to a PR by creating a new branch with that extra change and pushing it to your fork. The [check-spelling](https://github.com/marketplace/actions/check-spelling) action will run in response to your **push** -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. :wink: :microscope: You can test your commits **without** *appending* to a PR by creating a new branch with that extra change and pushing it to your fork. The [check-spelling](https://github.com/marketplace/actions/check-spelling) action will run in response to your **push** -- it doesn't require an open pull request. By using such a branch, you can limit the number of typos your peers see you make. :wink:
<details><summary>:clamp: If you see a bunch of garbage</summary>
If it relates to a ... <details><summary>:clamp: If the flagged items are false positives</summary>
<details><summary>well-formed pattern</summary>
See if there's a [pattern](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns) that would match it. If items relate to a ...
* binary file (or some other file you wouldn't want to check at all).
If not, try writing one and adding it to a `patterns/{file}.txt`. Please add a file path to the `excludes.txt` file matching the containing file.
Patterns are Perl 5 Regular Expressions - you can [test]( File paths are Perl 5 Regular Expressions - you can [test](
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your lines.
Note that patterns can't match multiline strings.
</details>
<details><summary>binary-ish string</summary>
Please add a file path to the `excludes.txt` file instead of just accepting the garbage.
File paths are Perl 5 Regular Expressions - you can [test](
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your files. https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your files.
`^` refers to the file's path from the root of the repository, so `^README\.md$` would exclude [README.md]( `^` refers to the file's path from the root of the repository, so `^README\.md$` would exclude [README.md](
../tree/HEAD/README.md) (on whichever branch you're using). ../tree/HEAD/README.md) (on whichever branch you're using).
</details>
* well-formed pattern.
If you can write a [pattern](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns) that would match it,
try adding it to the `patterns.txt` file.
Patterns are Perl 5 Regular Expressions - you can [test](
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your lines.
Note that patterns can't match multiline strings.
</details> </details>
</details> </details>

View File

@@ -1,12 +1,19 @@
# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-excludes
(?:(?i)\.png$) (?:(?i)\.png$)
(?:^|/)(?i)COPYRIGHT
(?:^|/)(?i)LICEN[CS]E
(?:^|/)dirs$ (?:^|/)dirs$
(?:^|/)go\.mod$ (?:^|/)go\.mod$
(?:^|/)go\.sum$ (?:^|/)go\.sum$
(?:^|/)package-lock\.json$ (?:^|/)package(?:-lock|)\.json$
(?:^|/)sources(?:|\.dep)$ (?:^|/)sources(?:|\.dep)$
(?:^|/)vendor/
ignore$
SUMS$ SUMS$
\.ai$ \.ai$
\.avi$
\.bmp$ \.bmp$
\.bz2$
\.cer$ \.cer$
\.class$ \.class$
\.crl$ \.crl$
@@ -18,6 +25,7 @@ SUMS$
\.eps$ \.eps$
\.exe$ \.exe$
\.gif$ \.gif$
\.gitattributes$
\.graffle$ \.graffle$
\.gz$ \.gz$
\.icns$ \.icns$
@@ -30,12 +38,15 @@ SUMS$
\.lock$ \.lock$
\.map$ \.map$
\.min\.. \.min\..
\.mod$
\.mp3$ \.mp3$
\.mp4$ \.mp4$
\.ocf$
\.otf$ \.otf$
\.pbxproj$ \.pbxproj$
\.pdf$ \.pdf$
\.pem$ \.pem$
\.png$
\.psd$ \.psd$
\.runsettings$ \.runsettings$
\.sig$ \.sig$
@@ -46,6 +57,7 @@ SUMS$
\.tgz$ \.tgz$
\.ttf$ \.ttf$
\.vsdx$ \.vsdx$
\.wav$
\.woff \.woff
\.xcf$ \.xcf$
\.xls \.xls
@@ -81,4 +93,9 @@ SUMS$
^\.github/actions/spelling/ ^\.github/actions/spelling/
^\.github/fabricbot.json$ ^\.github/fabricbot.json$
^\.gitignore$ ^\.gitignore$
^\Q.github/workflows/spelling.yml\E$
^\Qsamples/ConPTY/EchoCon/EchoCon/EchoCon.vcxproj.filters\E$
^\Qsrc/host/exe/Host.EXE.vcxproj.filters\E$
^\Qsrc/host/ft_host/chafa.txt\E$
^\Qsrc/tools/closetest/CloseTest.vcxproj.filters\E$
^\XamlStyler.json$ ^\XamlStyler.json$

View File

@@ -33,7 +33,6 @@ QQQQQQQQQQABCDEFGHIJKLMNOPQRSTQQQQQQQQQQ
QQQQQQQQQQABCDEFGHIJPQRSTQQQQQQQQQQ QQQQQQQQQQABCDEFGHIJPQRSTQQQQQQQQQQ
qrstuvwxyz qrstuvwxyz
qwerty qwerty
QWERTYUIOP
qwertyuiopasdfg qwertyuiopasdfg
YYYYYYYDDDDDDDDDDD YYYYYYYDDDDDDDDDDD
ZAAZZ ZAAZZ

View File

@@ -34,7 +34,6 @@ ALTF
ALTNUMPAD ALTNUMPAD
ALWAYSTIP ALWAYSTIP
amd amd
ansicode
ansicpg ansicpg
ANSISYS ANSISYS
ANSISYSRC ANSISYSRC
@@ -48,10 +47,8 @@ APARTMENTTHREADED
APCs APCs
api api
APIENTRY APIENTRY
apimswincoresynchl
apiset apiset
APPBARDATA APPBARDATA
appconsult
appcontainer appcontainer
APPICON APPICON
appium appium
@@ -83,8 +80,6 @@ ASingle
asm asm
asmv asmv
asmx asmx
aspx
astextplain
AStomps AStomps
ASYNCWINDOWPOS ASYNCWINDOWPOS
atch atch
@@ -107,7 +102,6 @@ AVerify
AVI AVI
AVX AVX
awch awch
azuredevopspodcast
azzle azzle
backend backend
backgrounded backgrounded
@@ -134,7 +128,6 @@ Bgk
BGR BGR
BGRA BGRA
BHID BHID
biblioscape
bigobj bigobj
binplace binplace
binplaced binplaced
@@ -143,7 +136,6 @@ bitcrazed
bitflag bitflag
bitmask bitmask
BITOPERATION BITOPERATION
bitsavers
bitset bitset
BKCOLOR BKCOLOR
BKGND BKGND
@@ -234,13 +226,11 @@ cgscrn
chafa chafa
changelist changelist
charinfo charinfo
charlespetzold
charset charset
CHARSETINFO CHARSETINFO
chcp chcp
checkbox checkbox
checkboxes checkboxes
Checkin
chh chh
Childitem Childitem
chk chk
@@ -248,8 +238,7 @@ chrono
CHT CHT
Cic Cic
cjk cjk
ckuehl CLA
cla
Clcompile Clcompile
CLE CLE
cleartype cleartype
@@ -259,7 +248,6 @@ climits
clipbrd clipbrd
CLIPCHILDREN CLIPCHILDREN
CLIPSIBLINGS CLIPSIBLINGS
cliutils
clocale clocale
closetest closetest
cloudconsole cloudconsole
@@ -288,12 +276,10 @@ Codeflow
codepage codepage
codepath codepath
codepoint codepoint
codeproject
coinit coinit
COLLECTIONURI COLLECTIONURI
colorizing colorizing
COLORMATRIX COLORMATRIX
colororacle
colorref colorref
colorscheme colorscheme
colorspaces colorspaces
@@ -321,7 +307,6 @@ concat
concfg concfg
conclnt conclnt
conddkrefs conddkrefs
condev
condrv condrv
conechokey conechokey
conemu conemu
@@ -357,7 +342,6 @@ consolehost
CONSOLEIME CONSOLEIME
consoleinternal consoleinternal
Consoleroot Consoleroot
Consolescreen
CONSOLESETFOREGROUND CONSOLESETFOREGROUND
consoletaeftemplates consoletaeftemplates
CONSOLEV CONSOLEV
@@ -387,21 +371,17 @@ CPINFOEX
CPLINFO CPLINFO
cplusplus cplusplus
cpp cpp
CPPARM
CPPCORECHECK CPPCORECHECK
cppcorecheckrules cppcorecheckrules
cppm
cpprest cpprest
cpprestsdk cpprestsdk
cppwinrt cppwinrt
CPPx
CProc CProc
cpx cpx
crbegin crbegin
CREATESCREENBUFFER CREATESCREENBUFFER
CREATESTRUCT CREATESTRUCT
CREATESTRUCTW CREATESTRUCTW
creativecommons
cred cred
cref cref
crend crend
@@ -421,7 +401,6 @@ Csr
csrmsg csrmsg
CSRSS CSRSS
csrutil csrutil
css
cstdarg cstdarg
cstddef cstddef
cstdio cstdio
@@ -460,7 +439,6 @@ cwch
cwchar cwchar
cwctype cwctype
cwd cwd
cxcy
CXFRAME CXFRAME
CXFULLSCREEN CXFULLSCREEN
CXHSCROLL CXHSCROLL
@@ -499,12 +477,11 @@ DBGOUTPUT
dbh dbh
dblclk dblclk
DBlob DBlob
dbproj
DBUILD DBUILD
DColor DColor
DCOLORVALUE DCOLORVALUE
dcommon dcommon
DCompile dcompile
dcompiler dcompiler
DComposition DComposition
dde dde
@@ -513,7 +490,6 @@ DDevice
DEADCHAR DEADCHAR
dealloc dealloc
Debian Debian
debolden
debugtype debugtype
DECAC DECAC
DECALN DECALN
@@ -526,7 +502,6 @@ DECCRA
DECCTR DECCTR
DECDHL DECDHL
decdld decdld
DECDLD
DECDWL DECDWL
DECEKBD DECEKBD
DECID DECID
@@ -541,7 +516,6 @@ declval
DECNKM DECNKM
DECNRCM DECNRCM
DECOM DECOM
deconstructed
DECPCTERM DECPCTERM
DECPS DECPS
DECRC DECRC
@@ -550,8 +524,7 @@ DECRLM
DECRQM DECRQM
DECRQSS DECRQSS
DECRQTSR DECRQTSR
DECRST decrst
DECRSTS
DECSASD DECSASD
DECSC DECSC
DECSCA DECSCA
@@ -565,7 +538,6 @@ DECSLPP
DECSLRM DECSLRM
DECSMKR DECSMKR
DECSR DECSR
decstandar
DECSTBM DECSTBM
DECSTR DECSTR
DECSWL DECSWL
@@ -607,17 +579,14 @@ deserializing
desktopwindowxamlsource desktopwindowxamlsource
dest dest
DESTINATIONNAME DESTINATIONNAME
devblogs
devicecode devicecode
devicefamily Devops
devops
Dext Dext
DFactory DFactory
DFF DFF
DFMT DFMT
dhandler dhandler
dialogbox dialogbox
diffing
DINLINE DINLINE
directio directio
DIRECTX DIRECTX
@@ -639,10 +608,8 @@ dllmain
DLLVERSIONINFO DLLVERSIONINFO
DLOAD DLOAD
DLOOK DLOOK
Dls
dmp dmp
DOCTYPE DOCTYPE
docx
DONTCARE DONTCARE
doskey doskey
dotnet dotnet
@@ -686,15 +653,12 @@ dwl
DWLP DWLP
dwm dwm
dwmapi dwmapi
DWMWA
dword dword
dwrite dwrite
dwriteglyphrundescriptionclustermap
dxgi dxgi
dxgidwm dxgidwm
dxguid dxguid
dxinterop dxinterop
dxp
dxsm dxsm
dxttbmp dxttbmp
Dyreen Dyreen
@@ -709,7 +673,6 @@ EDITKEYS
EDITTEXT EDITTEXT
EDITUPDATE EDITUPDATE
edputil edputil
edu
Efast Efast
EHsc EHsc
EINS EINS
@@ -741,7 +704,6 @@ eol
EPres EPres
EQU EQU
ERASEBKGND ERASEBKGND
errno
errorlevel errorlevel
ETB ETB
etcoreapp etcoreapp
@@ -769,22 +731,18 @@ EXSTYLE
EXTENDEDEDITKEY EXTENDEDEDITKEY
EXTKEY EXTKEY
EXTTEXTOUT EXTTEXTOUT
fabricbot
facename facename
FACENODE FACENODE
FACESIZE FACESIZE
failfast failfast
FAILIFTHERE FAILIFTHERE
fallthrough fallthrough
FARPROC
fastlink fastlink
fcb
fcharset fcharset
fclose fclose
fcntl fcntl
fdc fdc
FDD FDD
fdopen
fdw fdw
fesb fesb
FFDE FFDE
@@ -859,7 +817,6 @@ fsanitize
Fscreen Fscreen
FSCTL FSCTL
FSINFOCLASS FSINFOCLASS
fsproj
fstream fstream
fte fte
Ftm Ftm
@@ -912,7 +869,6 @@ GETHUNGAPPTIMEOUT
GETICON GETICON
GETITEMDATA GETITEMDATA
GETKEYBOARDLAYOUTNAME GETKEYBOARDLAYOUTNAME
GETKEYSTATE
GETLARGESTWINDOWSIZE GETLARGESTWINDOWSIZE
GETLBTEXT GETLBTEXT
getline getline
@@ -968,7 +924,6 @@ gset
gsl gsl
GTP GTP
GTR GTR
guardxfg
guc guc
gui gui
guidatom guidatom
@@ -978,7 +933,6 @@ GWLP
gwsz gwsz
HABCDEF HABCDEF
Hackathon Hackathon
halfwidth
HALTCOND HALTCOND
HANGEUL HANGEUL
hardcoded hardcoded
@@ -1024,7 +978,6 @@ hlocal
HLS HLS
hlsl hlsl
HMENU HMENU
HMIDIOUT
hmod hmod
hmodule hmodule
hmon hmon
@@ -1035,12 +988,10 @@ hostable
hostlib hostlib
HOTFIX HOTFIX
HPA HPA
HPAINTBUFFER
HPCON HPCON
hpj hpj
hpp hpp
HPR HPR
HPROPSHEETPAGE
HProvider HProvider
HREDRAW HREDRAW
hresult hresult
@@ -1055,7 +1006,6 @@ HTBOTTOMRIGHT
HTCAPTION HTCAPTION
HTCLIENT HTCLIENT
HTLEFT HTLEFT
htm
HTMAXBUTTON HTMAXBUTTON
HTMINBUTTON HTMINBUTTON
html html
@@ -1078,14 +1028,11 @@ IBase
ICache ICache
icacls icacls
iccex iccex
icch
IChar IChar
ico ico
IComponent IComponent
ICONERROR ICONERROR
Iconified Iconified
iconify
Iconify
ICONINFORMATION ICONINFORMATION
IConsole IConsole
ICONSTOP ICONSTOP
@@ -1113,8 +1060,6 @@ IDynamic
IEnd IEnd
IEnum IEnum
IEnumerable IEnumerable
ies
ietf
IFACEMETHODIMP IFACEMETHODIMP
ifdef ifdef
ification ification
@@ -1172,18 +1117,14 @@ INTERNALNAME
interop interop
interoperability interoperability
inthread inthread
intptr
intrin
intsafe intsafe
INVALIDARG INVALIDARG
INVALIDATERECT INVALIDATERECT
inwap
IObservable IObservable
ioctl ioctl
iomanip iomanip
iostream iostream
iot iot
ipa
ipch ipch
ipconfig ipconfig
IPersist IPersist
@@ -1198,7 +1139,6 @@ IRender
IScheme IScheme
ISelection ISelection
IShell IShell
issuecomment
IState IState
IStoryboard IStoryboard
isupper isupper
@@ -1220,14 +1160,12 @@ ivalid
IValue IValue
IVector IVector
IWait IWait
iwch
IWeb IWeb
IWin IWin
IWindow IWindow
IXaml IXaml
IXMP IXMP
IXP IXP
ixx
jconcpp jconcpp
JOBOBJECT JOBOBJECT
JOBOBJECTINFOCLASS JOBOBJECTINFOCLASS
@@ -1242,7 +1180,6 @@ jsprovider
jumplist jumplist
KAttrs KAttrs
kawa kawa
kayla
Kazu Kazu
kazum kazum
kbd kbd
@@ -1304,7 +1241,6 @@ LINESELECTION
LINEWRAP LINEWRAP
LINKERRCAP LINKERRCAP
LINKERROR LINKERROR
linkid
linkpath linkpath
linputfile linputfile
Linq Linq
@@ -1314,7 +1250,6 @@ listproperties
listptr listptr
listptrsize listptrsize
lld lld
LLVM
llx llx
LMENU LMENU
LMNOP LMNOP
@@ -1328,7 +1263,6 @@ LOBYTE
localappdata localappdata
localhost localhost
locsrc locsrc
locstudio
Loewen Loewen
LOGFONT LOGFONT
LOGFONTA LOGFONTA
@@ -1337,11 +1271,9 @@ logissue
lowercased lowercased
loword loword
lparam lparam
lparen
LPBYTE LPBYTE
LPCCH LPCCH
lpch lpch
LPCHARSETINFO
LPCOLORREF LPCOLORREF
LPCPLINFO LPCPLINFO
LPCREATESTRUCT LPCREATESTRUCT
@@ -1390,7 +1322,6 @@ LRESULT
lru lru
lsb lsb
lsconfig lsconfig
lsproj
lss lss
lstatus lstatus
lstrcmp lstrcmp
@@ -1415,11 +1346,8 @@ MAKELANGID
MAKELONG MAKELONG
MAKELPARAM MAKELPARAM
MAKELRESULT MAKELRESULT
MAKEWORD
malloc malloc
manpage
MAPBITMAP MAPBITMAP
MAPVIRTUALKEY
MAPVK MAPVK
MAXDIMENSTRING MAXDIMENSTRING
maxing maxing
@@ -1476,7 +1404,6 @@ MNC
MNOPQ MNOPQ
MNOPQR MNOPQR
MODALFRAME MODALFRAME
modelproj
MODERNCORE MODERNCORE
MONITORINFO MONITORINFO
MONITORINFOEXW MONITORINFOEXW
@@ -1492,11 +1419,9 @@ movemask
MOVESTART MOVESTART
msb msb
msbuild msbuild
mscorlib
msctf msctf
msctls msctls
msdata msdata
MSDL
msdn msdn
msft msft
MSGCMDLINEF MSGCMDLINEF
@@ -1510,12 +1435,10 @@ MSGSELECTMODE
msiexec msiexec
MSIL MSIL
msix msix
mspartners
msrc msrc
msvcrt msvcrt
MSVCRTD MSVCRTD
msys msys
msysgit
MTSM MTSM
mui mui
Mul Mul
@@ -1528,7 +1451,6 @@ mutexes
muxes muxes
myapplet myapplet
mydir mydir
myignite
MYMAX MYMAX
Mypair Mypair
Myval Myval
@@ -1552,7 +1474,6 @@ NCRBUTTONUP
NCXBUTTONDOWN NCXBUTTONDOWN
NCXBUTTONUP NCXBUTTONUP
NDEBUG NDEBUG
ned
NEL NEL
NEQ NEQ
netcoreapp netcoreapp
@@ -1560,7 +1481,6 @@ netstandard
NEWCPLINFO NEWCPLINFO
NEWCPLINFOA NEWCPLINFOA
NEWCPLINFOW NEWCPLINFOW
newcursor
Newdelete Newdelete
NEWINQUIRE NEWINQUIRE
NEWINQURE NEWINQURE
@@ -1570,7 +1490,6 @@ NEWTEXTMETRICEX
Newtonsoft Newtonsoft
NEXTLINE NEXTLINE
nfe nfe
nlength
Nls Nls
NLSMODE NLSMODE
nnn nnn
@@ -1620,7 +1539,6 @@ nothrow
NOTICKS NOTICKS
NOTIMPL NOTIMPL
notin notin
notmatch
NOTNULL NOTNULL
NOTOPMOST NOTOPMOST
NOTRACK NOTRACK
@@ -1629,7 +1547,7 @@ nouicompat
nounihan nounihan
NOUPDATE NOUPDATE
novtable novtable
NOWAIT nowait
NOYIELD NOYIELD
NOZORDER NOZORDER
NPM NPM
@@ -1673,7 +1591,6 @@ NVR
OACR OACR
oauth oauth
objbase objbase
ocf
ocolor ocolor
odl odl
oem oem
@@ -1702,9 +1619,7 @@ openconsoleproxy
OPENIF OPENIF
OPENLINK OPENLINK
openps openps
opensource
openvt openvt
openxmlformats
ORIGINALFILENAME ORIGINALFILENAME
osc osc
OSCBG OSCBG
@@ -1715,7 +1630,6 @@ OSCSCB
OSCSCC OSCSCC
OSCWT OSCWT
OSDEPENDSROOT OSDEPENDSROOT
osfhandle
OSG OSG
OSGENG OSGENG
osign osign
@@ -1786,15 +1700,12 @@ pda
pdb pdb
pdbonly pdbonly
pdbstr pdbstr
pdf
pdp
pdtobj pdtobj
pdw pdw
PDWORD PDWORD
pdx pdx
peb peb
PEMAGIC PEMAGIC
PENDTASKMSG
pfa pfa
PFACENODE PFACENODE
pfed pfed
@@ -1808,9 +1719,6 @@ PFS
pgd pgd
pgdn pgdn
PGONu PGONu
pgorepro
pgort
PGU
pguid pguid
pgup pgup
PHANDLE PHANDLE
@@ -1845,7 +1753,6 @@ PNTSTATUS
POBJECT POBJECT
Podcast Podcast
POINTSLIST POINTSLIST
Poli
POLYTEXTW POLYTEXTW
popd popd
POPF POPF
@@ -1859,13 +1766,11 @@ POSTCHARBREAKS
POSX POSX
POSXSCROLL POSXSCROLL
POSYSCROLL POSYSCROLL
ppci
PPEB PPEB
ppf ppf
ppguid ppguid
ppidl ppidl
pplx pplx
PPORT
PPROC PPROC
PPROCESS PPROCESS
ppropvar ppropvar
@@ -1931,7 +1836,6 @@ PSINGLE
psl psl
psldl psldl
psm psm
PSMALL
PSNRET PSNRET
PSobject PSobject
psp psp
@@ -1997,8 +1901,6 @@ RCONTROL
RCOW RCOW
rcv rcv
rdbuf rdbuf
RDONLY
rdpartysource
readback readback
READCONSOLE READCONSOLE
READCONSOLEOUTPUT READCONSOLEOUTPUT
@@ -2016,13 +1918,11 @@ redefinable
Redir Redir
redirector redirector
redist redist
redistributable
REDSCROLL REDSCROLL
refactor refactor
refactoring refactoring
REFCLSID REFCLSID
refcount refcount
referencesource
REFGUID REFGUID
REFIID REFIID
REFPROPERTYKEY REFPROPERTYKEY
@@ -2049,12 +1949,10 @@ RESETCONTENT
resheader resheader
resizable resizable
resmimetype resmimetype
restrictedcapabilities
resw resw
resx resx
retval retval
rfa rfa
rfc
rfid rfid
rftp rftp
rgb rgb
@@ -2085,7 +1983,6 @@ rng
roadmap roadmap
robomac robomac
roundtrip roundtrip
rparen
RRF RRF
RRRGGGBB RRRGGGBB
rsas rsas
@@ -2100,7 +1997,6 @@ rtrim
RTTI RTTI
ruleset ruleset
runas runas
runasradio
RUNDLL RUNDLL
runformat runformat
runft runft
@@ -2130,7 +2026,6 @@ scancode
scanline scanline
schemename schemename
SCL SCL
scm
SCRBUF SCRBUF
SCRBUFSIZE SCRBUFSIZE
screenbuffer screenbuffer
@@ -2260,11 +2155,9 @@ Solutiondir
somefile somefile
SOURCEBRANCH SOURCEBRANCH
sourced sourced
SOURCESDIRECTORY
spammy spammy
spand spand
sprintf sprintf
sqlproj
srand srand
src src
SRCCODEPAGE SRCCODEPAGE
@@ -2281,7 +2174,6 @@ srvpipe
ssa ssa
ssh ssh
sstream sstream
stackoverflow
standalone standalone
STARTF STARTF
STARTUPINFO STARTUPINFO
@@ -2300,11 +2192,11 @@ stdcpp
stderr stderr
stdexcept stdexcept
stdin stdin
stdio STDIO
STDMETHODCALLTYPE STDMETHODCALLTYPE
STDMETHODIMP STDMETHODIMP
stdout stdout
stgm STGM
stl stl
stoi stoi
stol stol
@@ -2328,7 +2220,6 @@ subcompartment
subfolder subfolder
subkey subkey
SUBLANG SUBLANG
sublicensable
submenu submenu
subresource subresource
subspan subspan
@@ -2387,8 +2278,6 @@ TDP
TEAMPROJECT TEAMPROJECT
tearoff tearoff
Teb Teb
techcommunity
technet
tellp tellp
telnet telnet
telnetd telnetd
@@ -2407,7 +2296,6 @@ testenv
testlab testlab
testlist testlist
testmd testmd
testmddefinition
testmode testmode
testname testname
testnameprefix testnameprefix
@@ -2440,12 +2328,11 @@ THUMBTRACK
TIcon TIcon
tif tif
tilunittests tilunittests
Timeline
timelines
titlebar titlebar
TITLEISLINKNAME TITLEISLINKNAME
TJson TJson
TLambda TLambda
TLDP
TLEN TLEN
Tlgdata Tlgdata
TMAE TMAE
@@ -2459,9 +2346,7 @@ tokenhelpers
tokenized tokenized
tokenizing tokenizing
toolbar toolbar
toolbars
TOOLINFO TOOLINFO
Toolset
tooltip tooltip
TOOLWINDOW TOOLWINDOW
TOPDOWNDIB TOPDOWNDIB
@@ -2524,7 +2409,6 @@ uapadmin
UAX UAX
ubuntu ubuntu
ucd ucd
ucdxml
uch uch
UCHAR UCHAR
ucs ucs
@@ -2543,7 +2427,6 @@ uint
uintptr uintptr
ulcch ulcch
ulong ulong
umd
Unadvise Unadvise
unattend unattend
uncomment uncomment
@@ -2561,11 +2444,10 @@ UNICRT
uninit uninit
uninitialize uninitialize
uninstall uninstall
unintense Unintense
Uniscribe Uniscribe
unittest unittest
unittesting unittesting
universaltest
unk unk
unknwn unknwn
unmark unmark
@@ -2617,19 +2499,16 @@ uuidof
uuidv uuidv
UVWX UVWX
UVWXY UVWXY
UWA uwa
UWAs
uwp uwp
uxtheme uxtheme
vals vals
Vanara Vanara
vararg vararg
vbproj
vclib vclib
Vcount Vcount
vcpkg vcpkg
vcprintf vcprintf
vcproj
vcxitems vcxitems
vcxproj vcxproj
vec vec
@@ -2646,7 +2525,6 @@ Virt
VIRTTERM VIRTTERM
Virtualizing Virtualizing
vkey vkey
VKKEYSCAN
VMs VMs
VPA VPA
VPATH VPATH
@@ -2667,7 +2545,6 @@ VSTAMP
vstest vstest
VSTS VSTS
VSTT VSTT
vstudio
vswhere vswhere
vtapi vtapi
vtapp vtapp
@@ -2686,7 +2563,6 @@ vttest
VWX VWX
waaay waaay
waitable waitable
waivable
WANSUNG WANSUNG
WANTARROWS WANTARROWS
WANTTAB WANTTAB
@@ -2713,11 +2589,8 @@ wcstod
wcstoul wcstoul
wddm wddm
wddmcon wddmcon
wddmconrenderer
WDDMCONSOLECONTEXT WDDMCONSOLECONTEXT
wdm wdm
wdx
webclient
webpage webpage
website website
websocket websocket
@@ -2726,17 +2599,14 @@ WEOF
wex wex
wextest wextest
wextestclass wextestclass
wfdopen
WFill WFill
wfopen wfopen
wfstream
WHelper WHelper
whitelisting whitelisting
WIDTHSCROLL WIDTHSCROLL
Widthx Widthx
wiki Wiki
wikia Wikipedia
wikipedia
wil wil
WImpl WImpl
WINAPI WINAPI
@@ -2751,7 +2621,6 @@ wincontypes
WINCORE WINCORE
windbg windbg
WINDEF WINDEF
windev
WINDIR WINDIR
windll windll
WINDOWALPHA WINDOWALPHA
@@ -2771,7 +2640,6 @@ WINDOWPOSCHANGING
windowproc windowproc
windowrect windowrect
windowsapp windowsapp
windowsdeveloper
windowsinternalstring windowsinternalstring
WINDOWSIZE WINDOWSIZE
windowsterminal windowsterminal
@@ -2780,7 +2648,6 @@ WINDOWTEXT
windowtheme windowtheme
WINDOWTITLE WINDOWTITLE
winevent winevent
winfx
wingdi wingdi
winget winget
WINIDE WINIDE
@@ -2794,16 +2661,12 @@ Winperf
WInplace WInplace
winres winres
winrt winrt
winsdk
wintelnet wintelnet
winternl winternl
winuser winuser
winuserp winuserp
WINVER WINVER
wistd wistd
wixproj
wline
wlinestream
wmain wmain
wmemory wmemory
WMSZ WMSZ
@@ -2819,7 +2682,7 @@ wnwb
workarea workarea
workaround workaround
workflow workflow
workitem WORKITEM
wostream wostream
WOutside WOutside
WOWARM WOWARM
@@ -2834,7 +2697,6 @@ wprintf
wprp wprp
wprpi wprpi
wregex wregex
WResult
writeback writeback
writechar writechar
WRITECONSOLE WRITECONSOLE
@@ -2849,7 +2711,6 @@ WScript
wsl wsl
WSLENV WSLENV
wsmatch wsmatch
WSpace
wss wss
wstr wstr
wstring wstring
@@ -2868,7 +2729,6 @@ wtypes
Wubi Wubi
WUX WUX
WVerify WVerify
wwaproj
WWith WWith
wxh wxh
xact xact
@@ -2890,7 +2750,6 @@ xdy
XEncoding XEncoding
xes xes
xff xff
xfg
XFile XFile
XFORM XFORM
XManifest XManifest
@@ -2919,7 +2778,6 @@ xutr
xvalue xvalue
XVIRTUALSCREEN XVIRTUALSCREEN
XWalk XWalk
Xzn
yact yact
YAML YAML
YCast YCast

View File

@@ -1,29 +1,8 @@
http http
www www
easyrgb
php
ecma
rapidtables
WCAG WCAG
freedesktop
ycombinator
robertelder
kovidgoyal
leonerd
fixterms
winui winui
appshellintegration appshellintegration
mdtauk mdtauk
cppreference
gfycat gfycat
Guake Guake
azurewebsites
askubuntu
dostips
viewtopic
rosettacode
Rexx
tldp
HOWTO
uwspace
uwaterloo

View File

@@ -0,0 +1,36 @@
# s.b. GitHub
\bGithub\b
# s.b. GitLab
\bGitlab\b
# s.b. JavaScript
\bJavascript\b
# s.b. Microsoft
\bMicroSoft\b
# s.b. another
\ban[- ]other\b
# s.b. greater than
\bgreater then\b
# s.b. less than
\bless then\b
# s.b. otherwise
\bother[- ]wise\b
# s.b. nonexistent
\bnon existing\b
\b[Nn]o[nt][- ]existent\b
# s.b. preexisting
[Pp]re-existing
# s.b. preemptively
[Pp]re-emptively
# Reject duplicate words
\s([A-Z]{3,}|[A-Z][a-z]{2,}|[a-z]{3,})\s\g{-1}\s

View File

@@ -1,3 +1,5 @@
# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns
https?://\S+ https?://\S+
[Pp]ublicKeyToken="?[0-9a-fA-F]{16}"? [Pp]ublicKeyToken="?[0-9a-fA-F]{16}"?
(?:[{"]|UniqueIdentifier>)[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}(?:[}"]|</UniqueIdentifier) (?:[{"]|UniqueIdentifier>)[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}(?:[}"]|</UniqueIdentifier)
@@ -21,3 +23,19 @@ vcvars\w*
ROY\sG\.\sBIV ROY\sG\.\sBIV
!(?:(?i)ESC)!\[ !(?:(?i)ESC)!\[
!(?:(?i)CSI)!(?:\d+(?:;\d+|)m|[ABCDF]) !(?:(?i)CSI)!(?:\d+(?:;\d+|)m|[ABCDF])
# Python stringprefix / binaryprefix
\b(?:B|BR|Br|F|FR|Fr|R|RB|RF|Rb|Rf|U|UR|Ur|b|bR|br|f|fR|fr|r|rB|rF|rb|rf|u|uR|ur)'
# acceptable duplicates
# ls directory listings
[-bcdlpsw](?:[-r][-w][-sx]){3}\s+\d+\s+(\S+)\s+\g{-1}\s+\d+\s+
# C/idl types + English ...
\s(Guid|long|LONG|that) \g{-1}\s
# javadoc / .net
(?:\@(?:groupname|param)|(?:public|private)(?:\s+static|\s+readonly)*)\s+(\w+)\s+\g{-1}\s
# vtmode
--vtmode\s+(\w+)\s+\g{-1}\s
# ignore long runs of a single character:
\b([A-Za-z])\g{-1}{3,}\b

View File

@@ -1,14 +1,19 @@
benefitting
occurences?
Sorce
^attache$ ^attache$
^attacher$ ^attacher$
^attachers$ ^attachers$
^dependan.*
^oer$
^spae$ ^spae$
^spae-man$
^spaebook$ ^spaebook$
^spaecraft$ ^spaecraft$
^spaed$ ^spaed$
^spaedom$ ^spaedom$
^spaeing$ ^spaeing$
^spaeings$ ^spaeings$
^spae-man$
^spaeman$ ^spaeman$
^spaer$ ^spaer$
^Spaerobee$ ^Spaerobee$
@@ -17,6 +22,10 @@
^spaewoman$ ^spaewoman$
^spaework$ ^spaework$
^spaewright$ ^spaewright$
^untill$
^untilling$
^wether$ ^wether$
^wether.*
^wethers$ ^wethers$
^wetherteg$ ^wetherteg$
^[Ss]pae.*

View File

@@ -3,18 +3,44 @@ name: Spell checking
on: on:
pull_request_target: pull_request_target:
push: push:
branches: ["**"]
tags-ignore: ["**"]
jobs: jobs:
spelling: spelling:
name: Spell checking name: Spell checking
permissions:
contents: read
pull-requests: read
actions: read
outputs:
followup: ${{ steps.spelling.outputs.followup }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'"
concurrency:
group: spelling-${{ github.event.pull_request.number || github.ref }}
# note: If you use only_check_changed_files, you do not want cancel-in-progress
cancel-in-progress: true
steps: steps:
- name: checkout-merge - name: check-spelling
if: "contains(github.event_name, 'pull_request')" id: spelling
uses: actions/checkout@v2 uses: check-spelling/check-spelling@v0.0.20
with: with:
ref: refs/pull/${{github.event.pull_request.number}}/merge suppress_push_for_open_pull_request: 1
- name: checkout checkout: true
if: "!contains(github.event_name, 'pull_request')" post_comment: 0
uses: actions/checkout@v2
- uses: check-spelling/check-spelling@v0.0.19 comment:
name: Report
runs-on: ubuntu-latest
needs: spelling
permissions:
contents: write
pull-requests: write
if: (success() || failure()) && needs.spelling.outputs.followup
steps:
- name: comment
uses: check-spelling/check-spelling@v0.0.20
with:
checkout: true
task: ${{ needs.spelling.outputs.followup }}

View File

@@ -264,7 +264,7 @@ help avoid any wasted or duplicate effort.
The easiest way to communicate with the team is via GitHub issues. The easiest way to communicate with the team is via GitHub issues.
Please file new issues, feature requests and suggestions, but **DO search for Please file new issues, feature requests and suggestions, but **DO search for
similar open/closed pre-existing issues before creating a new issue.** similar open/closed preexisting issues before creating a new issue.**
If you would like to ask a question that you feel doesn't warrant an issue If you would like to ask a question that you feel doesn't warrant an issue
(yet), please reach out to us via Twitter: (yet), please reach out to us via Twitter:

View File

@@ -74,7 +74,7 @@ Should not affect security.
### Reliability ### Reliability
Aside from additional parsing required for the settings file (which inherently offers more locations for parsing to fail), we need to be careful about badly formed/non-existent feature tags or axes specified in the user-defined dictionaries. We must make sure to ignore such declarations (perhaps alongside emitting a warning to the user) and only apply those that are correctly formed and exist. Aside from additional parsing required for the settings file (which inherently offers more locations for parsing to fail), we need to be careful about badly formed/nonexistent feature tags or axes specified in the user-defined dictionaries. We must make sure to ignore such declarations (perhaps alongside emitting a warning to the user) and only apply those that are correctly formed and exist.
### Compatibility ### Compatibility

View File

@@ -138,7 +138,7 @@ The delegation repeats the same dance as above as well:
The terminal will be its own complete presentation and input solution on top of a ConPTY connection, separating the concerns between API servicing and the user experience. The terminal will be its own complete presentation and input solution on top of a ConPTY connection, separating the concerns between API servicing and the user experience.
Today the Terminal knows how to start and then launches a ConPTY under it. The Terminal will need to be updated to accept a pre-existing ConPTY connection on launch (or when the multi-process model arrives, as an inbound connection), and connect that to a new tab/pane instead of using the `winconpty.lib` libraries to make its own. Today the Terminal knows how to start and then launches a ConPTY under it. The Terminal will need to be updated to accept a preexisting ConPTY connection on launch (or when the multi-process model arrives, as an inbound connection), and connect that to a new tab/pane instead of using the `winconpty.lib` libraries to make its own.
For now, I'm considering only the fresh-start scenario. For now, I'm considering only the fresh-start scenario.
- The Terminal will have to detect the inbound connection through ~~its argument parsing (or through~~ a new entrypoint in the COM alternative ~~)~~ and store the PTY in/out/signal handles for that connection in the startup arguments information - The Terminal will have to detect the inbound connection through ~~its argument parsing (or through~~ a new entrypoint in the COM alternative ~~)~~ and store the PTY in/out/signal handles for that connection in the startup arguments information

View File

@@ -659,7 +659,7 @@ loading until that generator is complete.
However, if the user disables that generator entirely, we'll never display that However, if the user disables that generator entirely, we'll never display that
profile to the user, even if they've done that setup before. profile to the user, even if they've done that setup before.
So the trade-off with this design is that non-existent dynamic profiles will So the trade-off with this design is that nonexistent dynamic profiles will
never roam to machines where they don't exist and aren't valid, but the never roam to machines where they don't exist and aren't valid, but the
generators _must_ be enabled to use the dynamic profiles. generators _must_ be enabled to use the dynamic profiles.

View File

@@ -204,7 +204,7 @@ We need a way to determine where an action came from to minimize how many action
- Construct the `Command` (basically the `Command::LayerJson` we have today) - Construct the `Command` (basically the `Command::LayerJson` we have today)
- Add it to the `ActionMap` - Add it to the `ActionMap`
- this should update the internal state of `ActionMap` appropriately - this should update the internal state of `ActionMap` appropriately
- if the newly added key chord conflicts with a pre-existing one, - if the newly added key chord conflicts with a preexisting one,
redirect `_KeyMap` to the newly added `Command` instead, redirect `_KeyMap` to the newly added `Command` instead,
and update the conflicting one. and update the conflicting one.
2. Load settings.json 2. Load settings.json

View File

@@ -17,7 +17,7 @@ This spec will outline how various terminal frontends will be able to interact w
Terminal component. Terminal component.
* **Terminal Layer**: This is the shared core implementation of the terminal. * **Terminal Layer**: This is the shared core implementation of the terminal.
This is the Terminal Connection, Parser/Adapter, Buffer, and Renderer (but not This is the Terminal Connection, Parser/Adapter, Buffer, and Renderer (but not
the UX-dependant RenderEngine). the UX-dependent RenderEngine).
## User Stories ## User Stories
1. "Project Cascadia" should be able to have both global settings (such as 1. "Project Cascadia" should be able to have both global settings (such as

View File

@@ -153,7 +153,7 @@ layer, instead of transparent through the whole window.
**However**, that does leave us in the world where we're rolling our own **However**, that does leave us in the world where we're rolling our own
custom Mica brush, and would need to keep it up to date with the OS custom Mica brush, and would need to keep it up to date with the OS
implementation. We'd be firmly off the rails of the recommended Mica usage, implementation. We'd be firmly off the rails of the recommended Mica usage,
and our support would be likely very minimal. This is reason alone alone to and our support would be likely very minimal. This is reason alone to
avoid this path, and instead push for a platform-supported solution. avoid this path, and instead push for a platform-supported solution.
**TODO!**: We should make sure to have a Future Considerations section on how **TODO!**: We should make sure to have a Future Considerations section on how

View File

@@ -285,8 +285,7 @@ be one of:
* `accent` for the _titlebar_ version of the accent color. Notably, this is * `accent` for the _titlebar_ version of the accent color. Notably, this is
**not** just some `SystemAccentColor` value, it's apparently some other value. **not** just some `SystemAccentColor` value, it's apparently some other value.
This has a different value depending on if the window is focused or not. Refer This has a different value depending on if the window is focused or not. Refer
to Edge the the "use accent color on titlebars" setting enabled as a to Edge the "use accent color on titlebars" setting enabled as a reference.
reference.
* `terminalBackground` to use the default background color of the active * `terminalBackground` to use the default background color of the active
terminal instance. terminal instance.
* `terminalForeground` to use the default foreground color of the active * `terminalForeground` to use the default foreground color of the active

View File

@@ -114,7 +114,7 @@ The jumplist will have to be saved each time a profile change occurs but the fre
#### Should it open a new instance of the terminal or open in a new tab? #### Should it open a new instance of the terminal or open in a new tab?
#### What should happen if a non existent profile is launched #### What should happen if a nonexistent profile is launched
The jumplist is only updated when the application is running so the profiles could be modified or deleted outside and the jumplist will not be updated. Handling will be done by whatever handles the command line parsing. The jumplist is only updated when the application is running so the profiles could be modified or deleted outside and the jumplist will not be updated. Handling will be done by whatever handles the command line parsing.
## Future considerations ## Future considerations

View File

@@ -88,7 +88,7 @@ try
// has to be played to achieve the equivalent note frequency. // has to be played to achieve the equivalent note frequency.
const auto frequency = std::pow(2.0, (noteNumber - 69.0) / 12.0) * 440.0 * WAVE_SIZE; const auto frequency = std::pow(2.0, (noteNumber - 69.0) / 12.0) * 440.0 * WAVE_SIZE;
buffer->SetFrequency(gsl::narrow_cast<DWORD>(frequency)); buffer->SetFrequency(gsl::narrow_cast<DWORD>(frequency));
// For the volume, we're using the formula defined in the the General // For the volume, we're using the formula defined in the General
// MIDI Level 2 specification: Gain in dB = 40 * log10(v/127). We need // MIDI Level 2 specification: Gain in dB = 40 * log10(v/127). We need
// to multiply by 4000, though, because the SetVolume method expects // to multiply by 4000, though, because the SetVolume method expects
// the volume to be in hundredths of a decibel. // the volume to be in hundredths of a decibel.

View File

@@ -717,7 +717,7 @@ namespace SettingsModelLocalTests
void DeserializationTests::TestInvalidColorSchemeName() void DeserializationTests::TestInvalidColorSchemeName()
{ {
Log::Comment(NoThrowString().Format( Log::Comment(NoThrowString().Format(
L"Ensure that setting a profile's scheme to a non-existent scheme causes a warning.")); L"Ensure that setting a profile's scheme to a nonexistent scheme causes a warning."));
static constexpr std::string_view settings0String{ R"({ static constexpr std::string_view settings0String{ R"({
"profiles": [ "profiles": [
@@ -751,7 +751,7 @@ namespace SettingsModelLocalTests
void DeserializationTests::ValidateColorSchemeInCommands() void DeserializationTests::ValidateColorSchemeInCommands()
{ {
Log::Comment(NoThrowString().Format( Log::Comment(NoThrowString().Format(
L"Ensure that setting a command's color scheme to a non-existent scheme causes a warning.")); L"Ensure that setting a command's color scheme to a nonexistent scheme causes a warning."));
static constexpr std::string_view settings0String{ R"( static constexpr std::string_view settings0String{ R"(
{ {

View File

@@ -2785,7 +2785,7 @@ float Pane::CalcSnappedDimension(const bool widthOrHeight, const float dimension
// - widthOrHeight: if true operates on width, otherwise on height // - widthOrHeight: if true operates on width, otherwise on height
// - dimension: a dimension (width or height) to be snapped // - dimension: a dimension (width or height) to be snapped
// Return Value: // Return Value:
// - pair of floats, where first value is the size snapped downward (not greater then // - pair of floats, where first value is the size snapped downward (not greater than
// requested size) and second is the size snapped upward (not lower than requested size). // requested size) and second is the size snapped upward (not lower than requested size).
// If requested size is already snapped, then both returned values equal this value. // If requested size is already snapped, then both returned values equal this value.
Pane::SnapSizeResult Pane::_CalcSnappedDimension(const bool widthOrHeight, const float dimension) const Pane::SnapSizeResult Pane::_CalcSnappedDimension(const bool widthOrHeight, const float dimension) const

View File

@@ -1010,7 +1010,7 @@ WORD Terminal::_TakeVirtualKeyFromLastKeyEvent(const WORD scanCode) noexcept
} }
// Method Description: // Method Description:
// - Get a reference to the the terminal's read/write lock. // - Get a reference to the terminal's read/write lock.
// Return Value: // Return Value:
// - a ticket_lock which can be used to manually lock or unlock the terminal. // - a ticket_lock which can be used to manually lock or unlock the terminal.
til::ticket_lock& Terminal::GetReadWriteLock() noexcept til::ticket_lock& Terminal::GetReadWriteLock() noexcept

View File

@@ -372,7 +372,7 @@
<value>Scroll to the bottom of history</value> <value>Scroll to the bottom of history</value>
</data> </data>
<data name="ScrollToPreviousMarkCommandKey" xml:space="preserve"> <data name="ScrollToPreviousMarkCommandKey" xml:space="preserve">
<value>Scroll to the the previous mark</value> <value>Scroll to the previous mark</value>
</data> </data>
<data name="ScrollToNextMarkCommandKey" xml:space="preserve"> <data name="ScrollToNextMarkCommandKey" xml:space="preserve">
<value>Scroll to the next mark</value> <value>Scroll to the next mark</value>

View File

@@ -118,7 +118,7 @@ public:
// If we have a renderer, we need to call EnablePainting to initialize // If we have a renderer, we need to call EnablePainting to initialize
// the viewport. If not, we mark the text buffer as inactive so that it // the viewport. If not, we mark the text buffer as inactive so that it
// doesn't try to trigger a redraw on a non-existent renderer. // doesn't try to trigger a redraw on a nonexistent renderer.
if (g.pRender) if (g.pRender)
{ {
g.pRender->EnablePainting(); g.pRender->EnablePainting();
@@ -204,7 +204,7 @@ public:
// If we have a renderer, we need to call EnablePainting to initialize // If we have a renderer, we need to call EnablePainting to initialize
// the viewport. If not, we mark the text buffer as inactive so that it // the viewport. If not, we mark the text buffer as inactive so that it
// doesn't try to trigger a redraw on a non-existent renderer. // doesn't try to trigger a redraw on a nonexistent renderer.
if (g.pRender) if (g.pRender)
{ {
g.pRender->EnablePainting(); g.pRender->EnablePainting();

View File

@@ -1511,7 +1511,7 @@ class UiaTextRangeTests
{ L"ViewportHeight From Bottom", bufferSize.bottom - viewportSize.Height() - 1 }, { L"ViewportHeight From Bottom", bufferSize.bottom - viewportSize.Height() - 1 },
{ L"ViewportHeight From Bottom + 1", bufferSize.bottom - viewportSize.Height() + 1 }, { L"ViewportHeight From Bottom + 1", bufferSize.bottom - viewportSize.Height() + 1 },
// GH#7839: ExclusiveEnd is a non-existent space, // GH#7839: ExclusiveEnd is a nonexistent space,
// so scrolling to it when !alignToTop used to crash // so scrolling to it when !alignToTop used to crash
{ L"Exclusive End", bufferSize.bottom } { L"Exclusive End", bufferSize.bottom }
}; };

View File

@@ -163,7 +163,7 @@ HRESULT DxSoftFont::Draw(const DrawingContext& drawingContext,
// so we need make sure they're generated now. // so we need make sure they're generated now.
RETURN_IF_FAILED(_createResources(d2dContext.Get())); RETURN_IF_FAILED(_createResources(d2dContext.Get()));
// We use the the CustomTextRenderer to draw the first pass of the cursor. // We use the CustomTextRenderer to draw the first pass of the cursor.
RETURN_IF_FAILED(CustomTextRenderer::DrawCursor(d2dContext.Get(), rect, drawingContext, true)); RETURN_IF_FAILED(CustomTextRenderer::DrawCursor(d2dContext.Get(), rect, drawingContext, true));
// Then we draw the associated glyph for each entry in the cluster list. // Then we draw the associated glyph for each entry in the cluster list.

View File

@@ -1927,7 +1927,7 @@ public:
Log::Comment(L"Test 5: Change Foreground to Legacy Attr while BG is RGB color"); Log::Comment(L"Test 5: Change Foreground to Legacy Attr while BG is RGB color");
// Unfortunately this test isn't all that good, because the adapterTest adapter isn't smart enough // Unfortunately this test isn't all that good, because the adapterTest adapter isn't smart enough
// to have its own color table and translate the pre-existing RGB BG into a legacy BG. // to have its own color table and translate the preexisting RGB BG into a legacy BG.
// Fortunately, the ft_api:RgbColorTests IS smart enough to test that. // Fortunately, the ft_api:RgbColorTests IS smart enough to test that.
rgOptions[0] = DispatchTypes::GraphicsOptions::ForegroundExtended; rgOptions[0] = DispatchTypes::GraphicsOptions::ForegroundExtended;
rgOptions[1] = DispatchTypes::GraphicsOptions::BlinkOrXterm256Index; rgOptions[1] = DispatchTypes::GraphicsOptions::BlinkOrXterm256Index;