forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypos.toml
More file actions
100 lines (94 loc) · 3.73 KB
/
typos.toml
File metadata and controls
100 lines (94 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Config for the `typos` crate, used by `./x test tidy --extra-checks=spellcheck`.
# See also: https://github.com/crate-ci/typos/blob/v1.28.2/docs/reference.md
[files]
extend-exclude = [
# exclude git (sub)modules and generated content
"compiler/rustc_baked_icu_data",
"compiler/rustc_codegen_cranelift",
"compiler/rustc_codegen_gcc",
"library/backtrace",
"library/compiler-builtins",
"library/stdarch",
# generated lorem ipsum texts
"library/alloctests/benches/str.rs",
"library/alloctests/tests/str.rs",
]
[default.extend-words]
# Allowlist for words that look like typos but are not, or aren't worth fixing
# right now. Entries should look like `mipsel = "mipsel"`.
#
# tidy-alphabetical-start
arange = "arange" # short for A-range
childs = "childs"
clonable = "clonable"
filetimes = "filetimes" # short for "file times", not a typo for "lifetimes"
leafs = "leafs"
makro = "makro" # deliberate misspelling to avoid `macro` keyword
misformed = "misformed"
moreso = "moreso"
numer = "numer" # short for numerator, not a typo for "number"
optin = "optin" # short for opt-in
publically = "publically"
rplace = "rplace" # short for R-place
splitted = "splitted"
taits = "taits" # lowercase for TAITs (type alias impl trait)
targetting = "targetting"
unparseable = "unparseable"
unstability = "unstability"
unstalled = "unstalled" # short for un-stalled
# tidy-alphabetical-end
# Denylist to forbid misspelled words that aren't detected by the built-in
# dictionary. Entries should look like `mipsel = ""` or `mipsel = "misspell"`;
# the non-empty form can be automatically fixed by `--bless`.
#
# tidy-alphabetical-start
definitinon = "definition"
dependy = ""
similarlty = "similarity"
# tidy-alphabetical-end
[default.extend-identifiers]
# Allowlist for specific identifiers that should be permitted even though they
# appear to contain typos that would be forbidden in other identifiers.
#
# For example, you might want to allow a specific constant like
# `DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME`, but still want to forbid
# the typo `INVAILD` in other places.
#
# tidy-alphabetical-start
DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME = "DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME"
ERRNO_ACCES = "ERRNO_ACCES"
ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS = "ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS"
ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC = "ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC"
ERROR_FILENAME_EXCED_RANGE = "ERROR_FILENAME_EXCED_RANGE"
ERROR_MCA_OCCURED = "ERROR_MCA_OCCURED"
ERROR_REQ_NOT_ACCEP = "ERROR_REQ_NOT_ACCEP"
EnzymeTypeTreeShiftIndiciesEq = "EnzymeTypeTreeShiftIndiciesEq"
EnzymeTypeTreeShiftIndiciesEqFn = "EnzymeTypeTreeShiftIndiciesEqFn"
Oppen = "Oppen" # Derek C. Oppen, author of "Pretty Printing" (1979)
# typos treats this as two different camelcase words (`SETTIN` and `Gs`)
# Tracked in: https://github.com/crate-ci/typos/issues/745
SETTINGs = "SETTINGs"
debug_aranges = "debug_aranges" # debug A-ranges
key_smove = "key_smove" # shifted move key, used by terminfo
shift_indicies_eq = "shift_indicies_eq"
tolen = "tolen" # length of "to" buffer, used by `sendto` in Windows sockets
# tidy-alphabetical-end
[default]
extend-ignore-words-re = [
# words with length <= 4 chars is likely noise
"^[a-zA-Z]{1,4}$",
]
extend-ignore-re = [
# allow turning off spell checking
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
# ignore these intentional typo examples
"/// 1 \\| #\\[cfg\\(widnows\\)\\]",
"/// warning: unexpected `cfg` condition name: `widnows`",
"/// #\\[cfg\\(widnows\\)\\]",
"\\.arg\\(\"Oh no, a tpyo!\"\\)",
# string used in benches
"\"core::iter::adapters::Copie\"",
"-Ccontrol-flow-guard",
"concat!\\(\"CURRENT_RUSTC_VERSIO\", \"N\"\\)",
"\\*\\*v\\*\\*ariable",
]