-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add a typo checker based on typos
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
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,13 @@ | ||
name: spell checking | ||
on: [pull_request] | ||
|
||
jobs: | ||
typos: | ||
name: Spell Check with Typos | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Actions Repository | ||
uses: actions/checkout@v4 | ||
- name: typos-action | ||
uses: crate-ci/[email protected] | ||
|
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,11 @@ | ||
[default] | ||
locale = "en-us" | ||
|
||
[default.extend-words] | ||
FROMM ="FROMM" # this one is intentionally written with a typo | ||
unmarshaling ="unmarshaling" # this one is expected in golang | ||
|
||
[files] | ||
# excluded file | ||
# go.sum and go.mod contains URLs with hash, they can provide false positive | ||
extend-exclude = ["go.sum","go.mod"] |