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 <tsmith84@gmail.com>
  • Loading branch information
tas50 committed Mar 15, 2024
1 parent f0d02d1 commit 36fd6fe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
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
19 changes: 18 additions & 1 deletion .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 Down Expand Up @@ -90,3 +90,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 36fd6fe

Please sign in to comment.