Skip to content

Commit 525c790

Browse files
committed
Add check-spelling/check-spelling
Signed-off-by: Josh Soref <[email protected]>
1 parent 964ae01 commit 525c790

4 files changed

Lines changed: 338 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
(?:^|/)(?i)COPYRIGHT
2+
(?:^|/)(?i)LICEN[CS]E
3+
(?:^|/)package(?:-lock|)\.json$
4+
(?:^|/)vendor/
5+
/fingerprints\.test\..s$
6+
ignore$
7+
\.babelrc$
8+
\.DS_Store$
9+
\.editorconfig$
10+
\.exe$
11+
\.gitattributes$
12+
\.gitkeep$
13+
\.gz$
14+
\.lib$
15+
\.lock$
16+
\.map$
17+
\.png$
18+
\.prettierrc$
19+
^node_modules/
20+
^\.github/
Lines changed: 265 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
1+
AChild
2+
actionsutil
3+
alloc
4+
amd
5+
api
6+
AProperty
7+
AProvided
8+
argc
9+
args
10+
argv
11+
asc
12+
ASpecifier
13+
AStmt
14+
autobuild
15+
autobuilder
16+
autobuilding
17+
autoinstall
18+
backend
19+
barfoobar
20+
baz
21+
bindingset
22+
blog
23+
blort
24+
buildtools
25+
bylanguage
26+
Callee
27+
cfg
28+
chrisgavin
29+
Cim
30+
cmds
31+
codeql
32+
Codertocat
33+
commonjs
34+
concat
35+
config
36+
contextlib
37+
contextmanager
38+
cpp
39+
cron
40+
csharp
41+
customise
42+
cwd
43+
CWE
44+
decompiled
45+
defghi
46+
deps
47+
DEPTRACE
48+
dest
49+
destructuring
50+
developercommunity
51+
devnull
52+
dirname
53+
Dirs
54+
dotcom
55+
dotnet
56+
downlevel
57+
downsides
58+
DYLD
59+
dylib
60+
eb
61+
elif
62+
elseif
63+
emptystring
64+
entrypoint
65+
enum
66+
errored
67+
eslint
68+
ESNEXT
69+
exe
70+
executables
71+
expr
72+
fallthrough
73+
falsy
74+
filepath
75+
foreach
76+
func
77+
fwlink
78+
gcc
79+
getzipfilename
80+
ghae
81+
ghe
82+
github
83+
githubenterprise
84+
globals
85+
globalutil
86+
GOFLAGS
87+
gpgsign
88+
gravatar
89+
gz
90+
gzip
91+
hardcoded
92+
homedir
93+
homepage
94+
hostedtoolcache
95+
hostname
96+
href
97+
html
98+
http
99+
hucairz
100+
IHeaders
101+
inlined
102+
inrepo
103+
instanceof
104+
Intelli
105+
Interop
106+
interoperability
107+
ipsum
108+
iterables
109+
JAN
110+
javac
111+
javascript
112+
jsf
113+
json
114+
jsonschema
115+
jsx
116+
Jv
117+
keyof
118+
len
119+
LGTM
120+
libtrace
121+
linkid
122+
linux
123+
lorem
124+
lstat
125+
macos
126+
Mega
127+
mergeable
128+
metadata
129+
microsoft
130+
mkdir
131+
mkdtemp
132+
msgs
133+
multicause
134+
multiformat
135+
namespace
136+
nektos
137+
netcoreapp
138+
notrun
139+
npm
140+
nwo
141+
octo
142+
octokit
143+
ODASA
144+
oid
145+
OOM
146+
opensource
147+
orgs
148+
osx
149+
pipenv
150+
pipfile
151+
placeholders
152+
plugin
153+
posixsubprocess
154+
powershell
155+
PRELOAD
156+
prereleases
157+
printf
158+
println
159+
promisify
160+
pwd
161+
pwsh
162+
py
163+
pypa
164+
pypi
165+
PYTHONPATH
166+
qlpack
167+
qls
168+
QLURL
169+
querypack
170+
qux
171+
readdir
172+
README
173+
realpath
174+
rebaseable
175+
regex
176+
regexes
177+
regexp
178+
rmdir
179+
rubygems
180+
sarifs
181+
SCRIPTDIR
182+
Sdk
183+
securitylab
184+
semmle
185+
semver
186+
setuptools
187+
SIGKILL
188+
socio
189+
sourcemap
190+
splatting
191+
splitlines
192+
src
193+
SRCROOT
194+
ssh
195+
ssl
196+
stackoverflow
197+
standalone
198+
startswith
199+
stderr
200+
stdin
201+
stdio
202+
stdout
203+
Stmt
204+
stringify
205+
subdir
206+
subdomain
207+
subfolder
208+
substr
209+
svn
210+
symlink
211+
sys
212+
tbaggery
213+
tempfile
214+
testdata
215+
thesmithfam
216+
threadflow
217+
tmp
218+
tmpdir
219+
todo
220+
tok
221+
toolcache
222+
toolchain
223+
toolrunner
224+
totalmem
225+
transpile
226+
transpiled
227+
tsconfig
228+
tslib
229+
typechecking
230+
typeof
231+
ubuntu
232+
Uint
233+
umd
234+
uncomment
235+
unconfigured
236+
unicode
237+
uninstall
238+
uri
239+
url
240+
username
241+
usr
242+
Utc
243+
utf
244+
utils
245+
uuid
246+
Validator
247+
venv
248+
Versioning
249+
virtualenv
250+
visualstudio
251+
vml
252+
walkthrough
253+
webpack
254+
wiki
255+
wildcards
256+
workflow
257+
WORKON
258+
www
259+
XDl
260+
XFrame
261+
yaml
262+
yml
263+
YYY
264+
zippath
265+
zlib
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# GitHub SHAs
2+
\bapi.github\.com/repos/[^/]+/[^/]+/[^/]+/[0-9a-f]+\b
3+
(?:\[[0-9a-f]+\]\(https:/|)/github\.com/[^/]+/[^/]+/[^/]+/[0-9a-f]+\b
4+
\bgithub\.com/[^/]+/[^/]+[@#][0-9a-f]+\b
5+
# githubusercontent
6+
/[-a-z0-9]+\.githubusercontent\.com/[-a-zA-Z0-9?&=_\/.]*
7+
# gist github
8+
/gist\.github\.com/[^/]+/[0-9a-f]+
9+
10+
# sha256
11+
sha256:[0-9a-f]+
12+
# sha-1
13+
"[0-9a-fA-F]{40}"
14+
'[0-9a-fA-F]{40}'
15+
16+
# uuid:
17+
\b[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\b
18+
19+
"pattern": "[^"]*"
20+
"primaryLocationLineHash": "[^"]*"
21+
"node_id": "[^"]*"
22+
['"]-D
23+
24+
# ignore long runs of a single character:
25+
\b([A-Za-z])\g{-1}{3,}\b
26+
27+
\\n

.github/workflows/spelling.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Spell checking
2+
on:
3+
pull_request_target:
4+
push:
5+
issue_comment:
6+
pull_request_review_comment:
7+
8+
jobs:
9+
build:
10+
name: Spell checking
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: checkout-merge
14+
if: "contains(github.event_name, 'pull_request')"
15+
uses: actions/[email protected]
16+
with:
17+
ref: refs/pull/${{github.event.pull_request.number}}/merge
18+
fetch-depth: 5
19+
- name: checkout
20+
if: "!contains(github.event_name, 'pull_request')"
21+
uses: actions/[email protected]
22+
with:
23+
fetch-depth: 5
24+
- uses: check-spelling/check-spelling@prerelease
25+
with:
26+
experimental_apply_changes_via_bot: 1

0 commit comments

Comments
 (0)