Skip to content

Commit 4a07a39

Browse files
authored
Merge pull request #1713
chore(ci): Report typos to contributors
2 parents c6892b3 + 020ca13 commit 4a07a39

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
- run: cargo fmt --check --all
2525
- run: cargo test --package front_matter
2626

27+
spelling:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
31+
- uses: crate-ci/typos@7436548694def3314aacd93ed06c721b1f91ea04 # v1.37.2
32+
2733
build:
2834
runs-on: ubuntu-latest
2935
steps:

typos.toml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## See also docs: https://github.com/crate-ci/typos/blob/v1.28.2/docs/reference.md
2+
3+
[files]
4+
extend-exclude = [
5+
]
6+
7+
[default.extend-words]
8+
## Add exclusions here, lines should be like `x = "x"`, where `x` is excluded word.
9+
moreso = "moreso"
10+
11+
[default.extend-identifiers]
12+
## Add exclusions here, lines should be like `x = "x"`, where `x` is excluded word.
13+
# Package name
14+
flate2 = "flate2"
15+
# People's names
16+
Schol = "Schol"
17+
Theis = "Theis"
18+
Cornel = "Cornel"
19+
Signes = "Signes"
20+
Wirth = "Wirth"
21+
fliter = "fliter"
22+
# User names
23+
durin42 = "durin42"
24+
# Don't break file links
25+
platforms_targetted = "platforms_targetted"
26+
27+
[default]
28+
extend-ignore-words-re = [
29+
# words with length <= 4 chars is likely noise
30+
'^[a-zA-Z]{1,4}$',
31+
]
32+
33+
extend-ignore-re = [
34+
'1\.53\.0-prelease.md', # don't break links
35+
]
36+
37+
[type.svg]
38+
check-file = false # not likely to have relevant typos but false positives
39+
40+
[type.minified]
41+
check-file = false # generated content

0 commit comments

Comments
 (0)