Skip to content

Commit

Permalink
Update the spellcheck patterns
Browse files Browse the repository at this point in the history
- Catch more
- Skip more

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Mar 15, 2024
1 parent f0d02d1 commit 27666d3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ cyclonedx
CYEXAMPLEKEY
datacompute
datapath
dbf
dcea
Ddos
debconf
Expand All @@ -106,7 +105,6 @@ efc
efcfc
Ehd
eig
EIP
EKfj
ekm
Ekoslaq
Expand Down Expand Up @@ -173,7 +171,6 @@ jglt
Jhb
jira
Jivv
jjnhz
joq
jsonbody
JTi
Expand Down Expand Up @@ -304,14 +301,12 @@ sbom
scim
scsd
Scz
sdc
SECRETID
SECRETVALUE
securetty
securityimages
SEfirewall
serviceprincipals
shm
singlequeryargument
sizeconstraintstatement
skype
Expand All @@ -337,7 +332,6 @@ testname
testring
testsuite
tfblock
tmg
tmpkqyme
toplevel
tpu
Expand Down Expand Up @@ -380,7 +374,6 @@ xmna
Xnp
xoxb
XPgk
xrl
XRu
Xsf
xssmatchstatement
Expand All @@ -407,4 +400,3 @@ ZXIt
ZXJz
zxkk
Zzd
zzg
5 changes: 5 additions & 0 deletions .github/actions/spelling/line_forbidden.patterns
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,8 @@
# Reject duplicate words
\s([A-Z]{3,}|[A-Z][a-z]{2,}|[a-z]{3,})\s\g{-1}\s

# s.b. it's or its
\bits['’]

# s.b. understand
\bunder stand\b
24 changes: 22 additions & 2 deletions .github/actions/spelling/patterns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Key Vault Vault
\broot root\b

# AWS resources
(ami|subnet|vpc|sg)-[0-9a-fA-F]{17}
(ami|subnet|vpc|sg|fs)-[0-9a-fA-F]{17}

# http and https URLs
https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)
Expand All @@ -53,9 +53,12 @@ HKEY_[\w\\]*
# mime types
\bapplication\/\S*

# skip mql uids
# mql uids
uid:\s.*$

# mql certificate IDs
certificate:\s.*$

# ARN values
\barn:\S*

Expand Down Expand Up @@ -90,3 +93,20 @@ aws_secret_access_key\s+\=(\s+)?.+
# score score is valid in MQL docs
score score

# macOS temp folders
/var/folders/\w\w/[+\w]+/(?:T|-Caches-)/

# ssh
(?:ssh-\S+|-nistp256) [-a-zA-Z=;:/0-9+]{12,}

# kubernetes object suffix
-[0-9a-f]{10}-\w{5}\s

# sed regular expressions
sed 's/(?:[^/]*?[a-zA-Z]{3,}[^/]*?/){2}

# UNIX device paths
\/dev\/\w*

# AWS RDS instance types
db.\w{2}.\w*

0 comments on commit 27666d3

Please sign in to comment.