-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy path.typos.toml
More file actions
67 lines (61 loc) · 1.38 KB
/
.typos.toml
File metadata and controls
67 lines (61 loc) · 1.38 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
[default]
extend-ignore-identifiers-re = [
# Short git hashes
"^[a-f0-9]{7}$",
"^[a-f0-9]{12}$",
# Base64
"^[a-zA-Z0-9_]{30}$",
"^[a-zA-Z0-9_]{43}$",
"^[a-zA-Z0-9_]{44}$",
"^[a-zA-Z0-9_]{47}$",
"^[a-zA-Z0-9_]{49}$",
"^[a-zA-Z0-9_]{50}$",
"^[a-zA-Z0-9_]{56,}$",
]
extend-ignore-re = [
# Truncated hex IDs (ex. "0x9...a9b")
"0x[a-f0-9]\\.{3}[a-f0-9]{3}",
# Block ignore for docs (e.g. { /* spellchecker:off */ } ... { /* spellchecker:on */ })
# This can be expanded to other comment styles if needed
"(?s)(\\{ /\\*)\\s*spellchecker:off.*?\\n\\s*(\\{ /\\*)\\s*spellchecker:on",
# BCS octet documentation
"[0-9]{2}OCTECT",
]
[type.hex-move]
extend-glob = ["hex.move"]
extend-words = { ba = "ba" }
[type.css]
extend-glob = ["*.css"]
extend-words = { wdth = "wdth" }
[default.extend-words]
# ordinal numbers (2nd, ...)
nd = "nd"
# random identifiers, variables, functions, ...
tto = "tto"
ser = "ser"
groth = "groth"
typ = "typ"
cpy = "cpy"
# Identity
AAS = "AAS"
# actual typos purposely used in tests
assing = "assing"
tring = "tring"
# better suggestions for typos
transferer = "transferrer"
# not in the correction dictionary
checkpoitn = "checkpoint"
# crates
bimap = "bimap"
# plurals
pendings = "pendings"
[default.extend-identifiers]
numer = "numer"
[files]
extend-exclude = [
"pnpm-lock.yaml",
"external-crates/*",
"config-patch",
"*.patch",
"*.svg",
]