-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathfoundry.toml
More file actions
54 lines (47 loc) · 2.69 KB
/
Copy pathfoundry.toml
File metadata and controls
54 lines (47 loc) · 2.69 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
[profile.default]
src = 'contracts'
out = 'foundry-out'
# libs = ["lib", "node_modules"]
libs = ["lib"]
fs_permissions = [{ access = "read", path = "./foundry-out" }]
# Error 2424: This suppresses the "Natspec memory-safe-assembly special comment for inline assembly"
# warning. At present, there appears to be not other to suppress this warning.
# The warning is being generated because libraries used by this repo are not compliant.
# Error 3860: The is related to the size of init code fragments, and was being applied to
# test code as well as production code. There is, unfortunatley, no was to disable this
# just for test code.
# Error 5574: Code size too large
# Error 2394: Transient storage used in Seaport.
ignored_error_codes = [2424, 3860, 5574, 2394]
[lint]
# For list of linting rules see https://www.getfoundry.sh/forge/linting
exclude_lints = ["mixed-case-function","mixed-case-variable","asm-keccak256"]
ignore = [
# Ignore OwnableCreate3 related files so that the source code does not need
# to change to remove linter warnings. Changing the source code would cause
# the source code hash, stored in the contract metadata, to change. This would
# cause the hash of the deployed contract to change, which in turn would alter
# the behaviour of OwnableCreate3Deployer.sol.
"contracts/deployer/create/OwnableCreateDeploy.sol",
"contracts/deployer/create3/OwnableCreate3Address.sol",
"contracts/deployer/create3/OwnableCreate3Deployer.sol",
"contracts/deployer/create3/OwnableCreate3.sol",
# Ignore empty files that are used by the deployed Seaport, put have no
# contents, so produce empty AST warnings.
"contracts/trading/seaport/validators/SeaportValidator.sol",
"contracts/trading/seaport/validators/SeaportValidatorHelper.sol",
"contracts/trading/seaport16/validators/SeaportValidator.sol",
"contracts/trading/seaport16/validators/SeaportValidatorHelper.sol",
"contracts/trading/seaport/validators/ReadOnlyOrderValidator.sol",
"contracts/trading/seaport16/validators/ReadOnlyOrderValidator.sol"
]
[fmt]
ignore = [
# Ignore OwnableCreate3 related files so that they don't change due
# to reformatting.
"contracts/deployer/create/OwnableCreateDeploy.sol",
"contracts/deployer/create3/OwnableCreate3Address.sol",
"contracts/deployer/create3/OwnableCreate3Deployer.sol",
"contracts/deployer/create3/OwnableCreate3.sol",
]
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options