Skip to content

Commit 8609996

Browse files
authored
Add typos-cli to check spelling issues (#42)
1 parent 682a590 commit 8609996

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

.codespellrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ check-filenames =
77
check-hidden =
88
ignore-words-list =
99
deafults,
10+
gost,
1011
empress,
1112
master,
1213
musl,

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ charset = utf-8
1414
[*.{c,h}]
1515
indent_style = tab
1616

17-
[*.{html,json,md,sh,yaml,yml}]
17+
[*.{html,json,md,sh,toml,yaml,yml}]
1818
indent_size = 2
1919

2020
[Makefile]

.github/workflows/check.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- name: Install checking tools
3131
run: |
3232
pipx install codespell
33+
cargo install typos-cli --locked
3334
curl -OL https://github.com/petk/normalizator/releases/latest/download/normalizator.phar
3435
chmod +x normalizator.phar
3536
mv normalizator.phar /usr/local/bin/normalizator
@@ -41,6 +42,10 @@ jobs:
4142
if: ${{ always() }}
4243
run: codespell
4344

45+
- name: Run typos
46+
if: ${{ always() }}
47+
run: typos
48+
4449
- name: Run normalizator.phar
4550
if: ${{ always() }}
4651
run: normalizator check --not php-src --not .git .

.typos.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# The typos-cli configuration.
2+
# https://github.com/crate-ci/typos
3+
4+
[files]
5+
ignore-hidden = false
6+
ignore-dot = false
7+
extend-exclude = [
8+
".git/",
9+
"patches/",
10+
]
11+
12+
[default]
13+
binary = false
14+
check-filename = true
15+
check-file = true
16+
unicode=true
17+
locale = "en-us"
18+
extend-ignore-re = []
19+
extend-ignore-identifiers-re = [
20+
"ANC_CREDS_CMSGCRED",
21+
"ANC_CREDS_UCRED",
22+
"PDO_DBLIB_FLAVOUR",
23+
"secur32",
24+
]
25+
extend-ignore-words-re = [
26+
"deafults",
27+
"gost",
28+
"shs",
29+
]

0 commit comments

Comments
 (0)