Skip to content

Commit 97e22c4

Browse files
committedMay 30, 2024·
Add check-spelling
1 parent 785e7de commit 97e22c4

11 files changed

+2252
-0
lines changed
 

‎.github/actions/spelling/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# check-spelling/check-spelling configuration
2+
3+
File | Purpose | Format | Info
4+
-|-|-|-
5+
[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)
6+
[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)
7+
[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)
8+
[excludes.txt](excludes.txt) | Files to ignore entirely | perl regular expression | [excludes](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-excludes)
9+
[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)
10+
[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)
11+
[candidate.patterns](candidate.patterns) | Patterns that might be worth adding to [patterns.txt](patterns.txt) | perl regular expression with optional comment block introductions (all matches will be suggested) | [candidates](https://github.com/check-spelling/check-spelling/wiki/Feature:-Suggest-patterns)
12+
[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)
13+
[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)
14+
[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)
15+
[block-delimiters.list](block-delimiters.list) | Define block begin/end markers to ignore lines of text | line with _literal string_ for **start** followed by line with _literal string_ for **end** | [block ignore](https://github.com/check-spelling/check-spelling/wiki/Feature%3A-Block-Ignore#status)
16+
17+
Note: you can replace any of these files with a directory by the same name (minus the suffix)
18+
and then include multiple files inside that directory (with that suffix) to merge multiple files together.

‎.github/actions/spelling/advice.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!-- See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice --> <!-- markdownlint-disable MD033 MD041 -->
2+
<details><summary>If the flagged items are :exploding_head: false positives</summary>
3+
4+
If items relate to a ...
5+
* binary file (or some other file you wouldn't want to check at all).
6+
7+
Please add a file path to the `excludes.txt` file matching the containing file.
8+
9+
File paths are Perl 5 Regular Expressions - you can [test](
10+
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your files.
11+
12+
`^` refers to the file's path from the root of the repository, so `^README\.md$` would exclude [README.md](
13+
../tree/HEAD/README.md) (on whichever branch you're using).
14+
15+
* well-formed pattern.
16+
17+
If you can write a [pattern](
18+
https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns
19+
) that would match it,
20+
try adding it to the `patterns.txt` file.
21+
22+
Patterns are Perl 5 Regular Expressions - you can [test](
23+
https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your lines.
24+
25+
Note that patterns can't match multiline strings.
26+
27+
</details>
28+
29+
<!-- adoption information-->
30+
:steam_locomotive: If you're seeing this message and your PR is from a branch that doesn't have check-spelling,
31+
please merge to your PR's base branch to get the version configured for your repository.

‎.github/actions/spelling/allow.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
github
2+
https
3+
ssh
4+
ubuntu
5+
workarounds
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Public Keys
2+
-----BEGIN PUBLIC KEY-----
3+
-----END PUBLIC KEY-----
4+
5+
# RSA Private Key
6+
-----BEGIN RSA PRIVATE KEY-----
7+
-----END RSA PRIVATE KEY-----
8+
9+
# GPG Public Key
10+
-----BEGIN PGP PUBLIC KEY BLOCK-----
11+
-----END PGP PUBLIC KEY BLOCK-----
12+
13+
# Certificates
14+
-----BEGIN CERTIFICATE-----
15+
-----END CERTIFICATE-----
16+
17+
# merge strings
18+
_mergeStrings(
19+
);
20+
21+
# vapid key
22+
DEFAULT_VAPID_KEY =
23+
;
24+
25+
# packages/installations/src/helpers/generate-fid.test.ts
26+
EXPECTED_FIDS = [
27+
];
28+
29+
# integration/messaging/test/utils/sendMessage.js
30+
FCM_KEY =
31+
;

0 commit comments

Comments
 (0)
Please sign in to comment.