Skip to content

Commit a397e72

Browse files
authored
[ci]Upgrade check-spelling to v0.0.20 (#19574)
1 parent da9c2b6 commit a397e72

File tree

6 files changed

+32
-22
lines changed

6 files changed

+32
-22
lines changed

.github/actions/spell-check/advice.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
<!-- See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice --> <!-- markdownlint-disable MD033 MD041 -->
2-
<details><summary>If the flagged items do not appear to be text</summary>
2+
<details><summary>If the flagged items are false positives</summary>
33

44
If items relate to a ...
5+
* binary file (or some other file you wouldn't want to check at all).
6+
7+
Please add a file path to the `excludes.txt` file matching the containing file.
8+
9+
File paths are Perl 5 Regular Expressions - you can [test](
10+
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your files.
11+
12+
`^` refers to the file's path from the root of the repository, so `^README\.md$` would exclude [README.md](
13+
../tree/HEAD/README.md) (on whichever branch you're using).
14+
515
* well-formed pattern.
616

717
If you can write a [pattern](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns) that would match it,
@@ -12,14 +22,4 @@ https://www.regexplanet.com/advanced/perl/) yours before committing to verify it
1222

1323
Note that patterns can't match multiline strings.
1424

15-
* binary file.
16-
17-
Please add a file path to the `excludes.txt` file matching the containing file.
18-
19-
File paths are Perl 5 Regular Expressions - you can [test](
20-
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your files.
21-
22-
`^` refers to the file's path from the root of the repository, so `^README\.md$` would exclude [README.md](
23-
../tree/HEAD/README.md) (on whichever branch you're using).
24-
2525
</details>

.github/actions/spell-check/excludes.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ ignore$
7171
^src/modules/previewpane/UnitTests-MarkdownPreviewHandler/HelperFiles/MarkdownWithHTMLImageTag.txt$
7272
^tools/CleanUp_tool/CleanUp_tool\.vcxproj\.filters$
7373
^tools/Verification scripts/Check preview handler registration\.ps1$
74-
^\.github/
7574
^\.github/actions/spell-check/
7675
^\.gitmodules$
76+
^\Q.github/workflows/spelling2.yml\E$
7777
^\Q.pipelines/ESRPSigning_core.json\E$

.github/actions/spell-check/expect.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ dcomp
393393
dcompi
394394
DComposition
395395
ddf
396-
DDLM
397396
Deact
398397
debian
399398
debugbreak
@@ -978,6 +977,7 @@ IVirtual
978977
IWbem
979978
IWIC
980979
iwindow
980+
iwr
981981
IXml
982982
IYUV
983983
IZone
@@ -1292,7 +1292,6 @@ MYTZ
12921292
NAMECHANGE
12931293
nameof
12941294
namespace
1295-
namespaceanddescendants
12961295
Navassa
12971296
naveensrinivasan
12981297
NCACTIVATE
@@ -1403,6 +1402,7 @@ NUMLOCK
14031402
NUMPAD
14041403
Nunavut
14051404
Nusa
1405+
nushell
14061406
nwc
14071407
NWSE
14081408
Objbase
@@ -1726,7 +1726,6 @@ Rsp
17261726
rst
17271727
Rstrtmgr
17281728
RTB
1729-
RTCS
17301729
RTLREADING
17311730
RTSS
17321731
runas
@@ -2078,6 +2077,7 @@ TYPESHORTCUT
20782077
UAC
20792078
UAL
20802079
uap
2080+
ubuntu
20812081
udit
20822082
Udk
20832083
Udmurtia
@@ -2262,6 +2262,7 @@ winexe
22622262
winforms
22632263
winfx
22642264
winget
2265+
wingetcreate
22652266
Winhook
22662267
winkey
22672268
WINL
@@ -2369,6 +2370,7 @@ YVYU
23692370
Zabaykalsky
23702371
ZEROINIT
23712372
ZIndex
2373+
zipfile
23722374
zonable
23732375
ZONECOLOR
23742376
ZONEHIGHLIGHTCOLOR

.github/actions/spell-check/line_forbidden.patterns

+9-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,20 @@
1414
\bMicroSoft\b
1515

1616
# s.b. another
17-
\ban other\b
17+
\ban[- ]other\b
18+
19+
# s.b. greater than
20+
\bgreater then\b
21+
22+
# s.b. less than
23+
\bless then\b
1824

1925
# s.b. otherwise
20-
\bother wise\b
26+
\bother[- ]wise\b
2127

2228
# s.b. nonexistent
2329
\bnon existing\b
30+
\b[Nn]o[nt][- ]existent\b
2431

2532
# s.b. preexisting
2633
[Pp]re-existing

.github/actions/spell-check/patterns.txt

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns
2+
23
https?://(?:(?:www\.|)youtube\.com|youtu.be)/[-a-zA-Z0-9?&=]*
34
# GitHub SHAs
45
\bapi.github\.com/repos/[^/]+/[^/]+/[^/]+/[0-9a-f]+\b
@@ -104,7 +105,12 @@ http://tes/
104105
# tar arguments
105106
\b(?:\\n|)tar(?:\s+-[a-zA-Z]+|\s[a-z]+)+
106107

108+
# fabricbot.json
109+
"id": "\S+"
110+
"commentPattern": ".*"
111+
107112
# acceptable duplicates
113+
# ls directory listings
108114
# /bin/ls -l output
109115
[-bcdlpsw](?:[-r][-w][-sx]){3}\s+\d+\s+(\S+)\s+\g{-1}\s+\d+\s+
110116
# C types

.github/workflows/spelling2.yml

-5
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,3 @@ jobs:
5151
config: .github/actions/spell-check
5252
checkout: true
5353
task: ${{ needs.spelling.outputs.followup }}
54-
extra_dictionaries:
55-
cspell:filetypes/filetypes.txt
56-
cspell:html/html.txt
57-
cspell:css/css.txt
58-
check_extra_dictionaries: ''

0 commit comments

Comments
 (0)