Skip to content

Commit 16aba95

Browse files
committed
setup typos check in ci
1 parent 805b688 commit 16aba95

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

typos.toml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[files]
2+
extend-exclude = [
3+
# ./compiler excludes
4+
"compiler/rustc_codegen_gcc",
5+
"compiler/rustc_codegen_cranelift",
6+
"compiler/rustc_baked_icu_data",
7+
]
8+
9+
[default.extend-words]
10+
thir = "thir"
11+
padd = "padd"
12+
rplace = "rplace"
13+
arange = "arange"
14+
rela = "rela"
15+
unstalled = "unstalled"
16+
taits = "taits"
17+
Datas = "Datas"
18+
splitted = "splitted"
19+
leafs = "leafs"
20+
Lits = "Lits"
21+
makro = "makro"
22+
optin = "optin"
23+
parm = "parm"
24+
EXCED = "EXCED"
25+
Shortern = "Shortern"
26+
unparseable = "unparseable"
27+
replacable = "replacable"
28+
matcheable = "matcheable"
29+
30+
[default]
31+
extend-ignore-words-re = [
32+
# words with length <= 3 chars is likely noise
33+
"^[a-zA-Z]{1,3}$",
34+
]
35+
36+
extend-ignore-re = [
37+
# ignore this intensional typo examples from lints
38+
"/// 1 \\| #\\[cfg\\(widnows\\)\\]",
39+
"/// warning: unexpected `cfg` condition name: `widnows`",
40+
"/// #\\[cfg\\(widnows\\)\\]",
41+
]

0 commit comments

Comments
 (0)