-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path_typos.toml
More file actions
30 lines (28 loc) · 1.17 KB
/
_typos.toml
File metadata and controls
30 lines (28 loc) · 1.17 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
[default]
extend-ignore-re = [
# Dash addresses and hex strings contain random character sequences
# that may match typo patterns (e.g., "nce", "Ue", "LAF", "BA")
# These are intentionally excluded as they are valid cryptographic data
"[Xy78DdPp][1-9A-HJ-NP-Za-km-z]{33}", # Dash addresses (base58)
"(tb|bc)1[a-z0-9]{39,87}", # Bitcoin/bech32 addresses (we have some in tests)
"0x[0-9a-fA-F]+", # Hex strings with 0x prefix
'"[0-9a-fA-F]+"', # Quoted hex strings in code
'[0-9a-fA-F]{5,}', # Hex strings (5+ chars to catch "BA70D")
'b"[^"]*"', # Byte strings - never check these for typos
"b'[^']*'", # Byte strings with single quotes
# Support for inline spellchecker directives
"(?Rm)^.*(#|//)\\s*spellchecker:disable", # Ignore lines with a "disable" marker
]
[default.extend-words]
# Technical acronyms and abbreviations
FPR = "FPR" # False Positive Rate (bloom filter metric)
[files]
# Exclude test data and binary files
extend-exclude = [
"*.hex",
"*.snap",
"*.lock",
"fuzz/hfuzz_input/**",
"dash/tests/data/**",
"key-wallet/tests/data/**",
]