forked from bitcoin-dev-project/bitcoin-dev-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypos.toml
25 lines (23 loc) · 1.13 KB
/
typos.toml
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
# ignore text that looks like a bitcoin address or a lightning invoice or a jwt token
# as they are likely to be false positives
[default]
extend-ignore-identifiers-re = [
"^bc1[a-zA-Z0-9]{39,59}$", # Enhanced to specify length for Bitcoin bech32 addresses
"^lnbc1[a-zA-Z0-9]{71,}$", # Start for Lightning invoices; adjusted for potential longer starts
"\"eyJ[a-zA-Z0-9_\\-\\.]+\"" # JWT token pattern
]
extend-ignore-re = [
"^public/", # Ignore paths starting with 'public/'
"\\/\\/[^\n]*" # Ignore double slash comments in code
]
[files]
extend-exclude = [
"**/node_modules/**", # Exclude all node_modules directories
"**/dist/**", # Exclude all dist directories
"**/*.json", # Exclude all JSON files
"scripts/**", # Exclude the scriptsOut directory
"public/open-source-projects/issues/**", # Exclude issues within the public open-source-projects
"**/*.min.js", # Exclude minified JS files
"**/*.bundle.js", # Exclude bundled JS files
"**/*.d.ts" # Exclude TypeScript definition files if not needed
]