forked from zama-ai/fhevm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypos.toml
More file actions
159 lines (142 loc) · 4.26 KB
/
typos.toml
File metadata and controls
159 lines (142 loc) · 4.26 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# typos configuration for FHEVM monorepo
# https://github.com/crate-ci/typos
[files]
# Directories to exclude from checking
extend-exclude = [
# Dependencies and build artifacts
"node_modules/",
"target/",
"dist/",
"build/",
"artifacts/",
"cache/",
# Generated code
"rust_bindings/",
"typechain-types/",
"codegen/",
# External libraries
"lib/forge-std/",
"lib/openzeppelin-contracts/",
"lib/openzeppelin-contracts-upgradeable/",
# Specific docs with known legacy typos (tracked separately)
"coprocessor/fhevm-engine/host-listener/README.md",
# Keys and charts (binary/config data)
"fhevm-keys/",
"charts/",
# Protocol buffers (generated)
"proto/",
# Lock files and binaries
"*.lock",
"*.pdf",
"*.png",
"*.jpg",
"*.jpeg",
"*.gif",
"*.ico",
"*.woff",
"*.woff2",
"*.ttf",
"*.eot",
"*.min.js",
"*.min.css",
# Docs-only scope for now: exclude source/config/test files
"*.sol",
"*.js",
"*.sql",
"*.toml",
"*.yaml",
"*.yml",
"*.sh",
"*.bash",
"*.zsh",
"*.txt",
]
[default]
# Locale for spell checking
locale = "en-us"
[default.extend-words]
# British English variants accepted
behaviour = "behaviour"
behaviours = "behaviours"
colour = "colour"
colours = "colours"
centre = "centre"
centres = "centres"
analyse = "analyse"
analysed = "analysed"
analysing = "analysing"
apologise = "apologise"
apologised = "apologised"
apologising = "apologising"
finalise = "finalise"
finalised = "finalised"
finalising = "finalising"
initialise = "initialise"
initialised = "initialised"
initialising = "initialising"
initialisation = "initialisation"
serialise = "serialise"
serialised = "serialised"
serialising = "serialising"
serialisation = "serialisation"
optimise = "optimise"
optimised = "optimised"
optimiser = "optimiser"
organisation = "organisation"
uncomplete = "uncomplete" # metric identifiers in docs/code
organised = "organised"
customise = "customise"
authorise = "authorise"
authorised = "authorised"
decentralised = "decentralised"
artefacts = "artefacts"
misbehaviour = "misbehaviour"
randomise = "randomise"
randomised = "randomised"
randomising = "randomising"
randomisation = "randomisation"
rerandomise = "rerandomise"
rerandomised = "rerandomised"
rerandomising = "rerandomising"
rerandomisation = "rerandomisation"
# FHE/TFHE terminology - these are valid domain-specific terms
euint = "euint" # encrypted unsigned integer type prefix
ebool = "ebool" # encrypted boolean
eaddress = "eaddress" # encrypted address
ebytes = "ebytes" # encrypted bytes
einput = "einput" # encrypted input
# Common abbreviations and technical terms
reencrypt = "reencrypt" # re-encryption operation
reencryption = "reencryption"
decryptor = "decryptor" # entity that decrypts
ciphertext = "ciphertext" # encrypted data
ciphertexts = "ciphertexts"
plaintext = "plaintext" # unencrypted data
plaintexts = "plaintexts"
# Project-specific identifiers
fhevm = "fhevm" # FHE Virtual Machine
tfhe = "tfhe" # TFHE library
kms = "kms" # Key Management Service
acl = "acl" # Access Control List
# Crypto/blockchain terms
uint = "uint" # unsigned integer (Solidity)
abi = "abi" # Application Binary Interface
eip = "eip" # Ethereum Improvement Proposal
calldata = "calldata" # Solidity calldata keyword
bytecode = "bytecode" # compiled contract code
hardhat = "hardhat" # Ethereum dev framework
# Common variable/function name patterns that might be flagged
noop = "noop" # no operation
keypair = "keypair" # cryptographic key pair
keygen = "keygen" # key generation
pubkey = "pubkey" # public key
privkey = "privkey" # private key
# Rust module/variable naming conventions
consts = "consts" # common Rust module name for constants
dbe = "dbe" # variable name (DbError)
# External project/service names
Hashi = "Hashi" # HashiCorp (Hashi bridge project)
# AWS AMI IDs contain random hex strings
caf = "caf" # appears in AWS AMI IDs
# Test variable naming patterns
BA = "BA" # used in test variable names (e.g., wrongOrderBAInsteadOfAB)