Skip to content

Commit e283e8e

Browse files
committed
ci: add a typo checker based on typos
https://github.com/crate-ci/typos
1 parent 04b36eb commit e283e8e

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/spellchecker.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: spell checking
2+
on: [pull_request]
3+
4+
jobs:
5+
typos:
6+
name: Spell Check with Typos
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Actions Repository
10+
uses: actions/checkout@v4
11+
- name: typos-action
12+
uses: crate-ci/[email protected]
13+

.typos.toml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[default]
2+
locale = "en-us"
3+
4+
[default.extend-words]
5+
FROMM ="FROMM" # this one is intentionally written with a typo
6+
unmarshaling ="unmarshaling" # this one is expected in golang
7+
8+
[files]
9+
# excluded file
10+
# go.sum and go.mod contains URLs with hash, they can provide false positive
11+
extend-exclude = ["go.sum","go.mod"]

0 commit comments

Comments
 (0)