Skip to content

Commit 62ce4c9

Browse files
committed
feat: Add a typos CI job
1 parent acf91b2 commit 62ce4c9

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

.github/workflows/spelling.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Spelling
2+
3+
permissions:
4+
contents: read
5+
6+
on: [pull_request]
7+
8+
env:
9+
RUST_BACKTRACE: 1
10+
CARGO_TERM_COLOR: always
11+
CLICOLOR: 1
12+
13+
concurrency:
14+
group: "${{ github.workflow }}-${{ github.ref }}"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
spelling:
19+
name: Spell Check with Typos
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout Actions Repository
23+
uses: actions/checkout@v5
24+
- name: Spell Check Repo
25+
uses: crate-ci/[email protected]

typos.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[files]
2+
extend-exclude = [
3+
"crates/resolver-tests/*",
4+
"LICENSE-THIRD-PARTY",
5+
"tests/testsuite/script/rustc_fixtures",
6+
]
7+
8+
[default]
9+
extend-ignore-re = [
10+
# Handles ssh keys
11+
"AAAA[0-9A-Za-z+/]+[=]{0,3}",
12+
13+
# Handles paseto from login tests
14+
"k3[.](secret|public)[.][a-zA-Z0-9_-]+",
15+
]
16+
extend-ignore-identifiers-re = [
17+
# Handles git short SHA-1 hashes
18+
"[a-f0-9]{8,9}",
19+
]
20+
extend-ignore-words-re = [
21+
# words with length <= 4 chars is likely noise
22+
"^[a-zA-Z]{1,4}$",
23+
]
24+
25+
[default.extend-identifiers]
26+
# This comes from `windows_sys`
27+
ERROR_FILENAME_EXCED_RANGE = "ERROR_FILENAME_EXCED_RANGE"
28+
29+
# Name of a dependency
30+
flate2 = "flate2"
31+
32+
[default.extend-words]
33+
filetimes = "filetimes"
34+
35+
[type.cargo_command]
36+
extend-glob = ["cargo_command.rs"]
37+
38+
[type.cargo_command.extend-words]
39+
biuld = "biuld"
40+
41+
[type.random-sample]
42+
extend-glob = ["random-sample"]
43+
44+
[type.random-sample.extend-words]
45+
objekt = "objekt"

0 commit comments

Comments
 (0)