Skip to content

Commit

Permalink
chore: add spell check (#2953)
Browse files Browse the repository at this point in the history
update tests workflow to use spell-check action
  • Loading branch information
erika-wallace authored Jul 30, 2024
1 parent 73ec6d4 commit 7ff333a
Show file tree
Hide file tree
Showing 20 changed files with 1,352 additions and 21 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,26 @@ jobs:
if: github.ref_name == 'main' || startsWith(github.ref_name, 'release-')
run: cd packages/cli && yarn test:acceptance

spell-check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn add [email protected]
- name: Run spell check on changed files
run: |
git fetch origin main:refs/remotes/origin/main --quiet
git diff origin/main...HEAD --diff-filter=d --name-only | yarn run cspell --no-progress --gitignore --no-must-find-files --file-list stdin
# dummy job needed to pass changeling compliance because it only watches one build
done:
runs-on: macos-latest
Expand Down
13 changes: 13 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env sh

# Spell check all staged files
STAGED_FILES=$(git diff --cached --name-only --diff-filter=d)
if [ -n "$STAGED_FILES" ]; then
yarn run cspell $STAGED_FILES --quiet --gitignore --no-must-find-files --no-show-suggestions
if [ $? -ne 0 ]; then
exit 1
fi
else
echo "No files to check."
fi
exit 0
348 changes: 348 additions & 0 deletions cspell-dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,348 @@
# custom dictionary for the heroku cli repository
aaaab
aaab
aabb
aarch
abcr
addonname
allkeys
amyapp
aname
appname
apresharedkey
arbitrars
armel
armhf
armv
atleti
atts
auths
authtoken
autodeploy
autodeployments
autodestroy
autoload
autoloaded
autoscale
autovacuum
awscli
baseport
bindkey
binrun
blocklisted
boop
brewhook
buildpack
buildpacks
buildpath
cachecompl
ckey
clearsign
clientsecret
cnames
collab
commandsstop
compadd
compaudit
compdef
COMPFUNC
compinit
createdb
credname
creds
crtfile
csrfile
CWORD
daservice
datahdr
datawidth
dbcolor
dbname
devcenter
dickeyxxx
direwolf
displayer
dockerfiles
dropdb
DVCS
dxxxxxxxxxxxx
dyno
dynos
dynosize
ECCN
echoerr
elif
envfile
envl
eventsource
execa
expialidocious
extnamespace
favorited
favoriteid
favoriting
filebase
filesize
flagscompletions
fooapp
fooexample
fpath
fragilistic
fruby
ftest
getreqs
githuborg
hamurai
herokai
herokuapp
herokudns
herokumanager
herokussl
histfile
howmany
htcat
iname
indexrelid
indrelid
inreplace
iotta
ipages
ituples
jedec
keyevent
keyout
keysize
keyspace
killall
Klass
kolkrabbi
libexec
localdb
localspace
logfile
logplex
lolex
lowercasedb
lshztxe
ltrim
mactive
mavailable
maxfracsum
maxmemory
mbytes
mbare
mcli
mcode
mcolorized
mcomplete
mcompleted
mconnect
mdeleted
mdeleting
mdesc
mdeprovisioning
mdyno
merror
metaas
mexpired
mfailed
mfwd
mgmt
mheroku
mhost
mhttp
mhttps
minfo
mmethod
mmyapp
mongolab
mpath
mpending
mpermanent
mprotocol
mprovisioning
mreleased
mrequest
mrejected
mservice
msource
mstarting
mstatus
mtest
mtimeout
multisort
munder
mweb
mwith
mwords
mworks
myapp
mybillingapp
mycert
mydb
myfeature
myhost
mylocaldb
mylowercaseapp
myotherapp
mypath
myplugin
myscript
myteam
mywork
myworker
ncalls
netrc
newname
nodir
noeviction
notaninteger
notexample
notinteger
notloggedin
npmjs
nullhdr
nqry
nsis
nspname
oclif
oldname
openredis
osslsigncode
ossp
otherapp
otherdb
otta
papertrail
passw
pcxid
peerings
pgappname
pgbackups
pgbouncer
pgbouncers
pgdatabase
pgdiagnose
pgdg
pghost
pgpassword
pgport
pgsslmode
pgsql
pguser
pico
pinentry
pipefail
pjson
pooler
portfinder
postdeploy
postgis
postpublish
postrelease
postrun
prerun
processname
processtype
procfile
procs
psubscribe
psut
psql
psqlrc
pxxxxxxxx
qqjs
raulb
recache
redii
redises
rediss
regionize
rejairieja
relid
reloptions
relopts
relname
relnamespace
relpages
reltuples
remov
reponame
reporttime
reqheaders
reqs
resetstat
reviewapps
rikki
rollbar
rootdir
rootfulroot
routable
rowcount
ruleset
runtest
schemaname
searchpath
secrettoken
segv
selfsigned
shellescape
showenvs
sigints
skynet
slowdb
snapcraft
snapcraftctl
sniendpoint
snyk
someplugin
somethingelse
someuser
sparkline
sshdir
sslmode
stampy
stubber
supersecretkey
syncer
tablename
tavi
testapp
testsource
texcl
timedout
tikki
tmpl
toolbelt
topo
transactionid
trimline
tsheredoc
twofactor
uncolorized
undefinedcommand
undeployed
unfavorites
unfollow
unfollowing
unfollows
unidling
unschedules
unscheduling
unsetting
usename
userid
usesysid
urijs
uxxxxxxxxx
VERSINFO
webfactory
withfig
wrapline
writeout
wubalubadubdub
xact
xlarge
xvzf
yetanotherapp
yourdomain
Loading

0 comments on commit 7ff333a

Please sign in to comment.