Skip to content

Commit 233053b

Browse files
authored
Fix: aderyn.toml Template update (#823)
1 parent a19d78f commit 233053b

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

aderyn/templates/aderyn.toml

+23-21
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,40 @@ version = 1
1111
root = "."
1212

1313
# Path of source directory containing the contracts, relative to root (above)
14-
# Aderyn traverse all the nested files inside scanning for vulnerabilities
15-
# If not specified, Aderyn will try to extract it from the framework that is being used. (Foundry / Hardhat)
16-
# That would be "contracts/" in case of Hardhat and in case of Foundry, it depends on foundry.toml and
17-
# many other factors like FOUNDRY_PROFILE environment variable used when starting VS Code, etc.
18-
# Please feel free to always specify the values explicitly.
14+
# Aderyn will traverse all the nested files inside to scan and report vulnerabilities found inside.
15+
# - If not specified, Aderyn will try to extract it from the framework that is being used. (Foundry / Hardhat).
16+
# That would be "contracts/" in case of Hardhat and in case of Foundry, it depends on foundry.toml and
17+
# many other factors like FOUNDRY_PROFILE environment variable, etc.
1918
# Example:
2019
# src = "src/"
2120

2221
# Path segments of contract files to include in the analysis.
23-
# It can be a partial match like "/interfaces/", which will include all files with "/interfaces/" in the file path.
24-
# Or it can be a full match like "src/counters/Counter.sol", which will include only the file with the exact path.
25-
# If not specified, all contract files in the source directory will be included.
26-
# Example:
22+
# - It can be a partial match like "/interfaces/", which will include all files with "/interfaces/" in the file path.
23+
# Or it can be a full match like "src/counters/Counter.sol", which will include only the file with the exact path.
24+
# - If not specified, all contract files in the source directory will be included.
25+
# Examples:
2726
# include = ["src/counters/Counter.sol", "src/others/"]
2827
# include = ["/interfaces/"]
2928

3029
# Path segments of contract files to exclude in the analysis.
31-
# It can be a partial match like "/interfaces/", which will exclude all files with "/interfaces/" in the file path.
32-
# Or it can be a full match like "src/counters/Counter.sol", which will exclude only the file with the exact path.
33-
# If not specified, no contract files will be excluded.
34-
# Example:
30+
# - It can be a partial match like "/interfaces/", which will exclude all files with "/interfaces/" in the file path.
31+
# Or it can be a full match like "src/counters/Counter.sol", which will exclude only the file with the exact path.
32+
# - If not specified, no contract files will be excluded.
33+
# Examples:
3534
# exclude = ["src/counters/Counter.sol", "src/others/"]
3635
# exclude = ["/interfaces/"]
3736

38-
# Remappings used for compiling the contracts.
39-
# If not specified, Aderyn will try to derive the values from foundry.toml (if present.)
40-
# That would be the result of calling `foundry remappings`
41-
# Example:
42-
# remappings = ["@oz/contracts=lib/openzeppelin-contracts/contracts"]
37+
# For advanced use cases, leverage the following
4338

44-
# Environment variables that would help aderyn detect src, etc.
45-
# In a medium sized foundry project, the profile can determine the values to be read from `foundry.toml`. For example, if different profiles have different src declaration in `foundry.toml`, these env variables can help decide which ones to read.
39+
# Remappings
40+
# - It can be specified in `remappings.txt` within the root folder of the project.
41+
# - If not specified, Aderyn will try to derive the values from foundry.toml (if present.)
42+
43+
# Environment
44+
# - These are ususally all the FOUNDRY_, DAPP_ environment variables that are used during development.
45+
# - For example, if different profiles have different `src` declaration in `foundry.toml`, FOUNDRY_PROFILE can dictate the correct `src` value.
46+
# Env variables and their values can be specified below.
4647

4748
[env]
48-
# FOUNDRY_PROFILE = "profile_name"
49+
# Example:
50+
# FOUNDRY_PROFILE = "default"

0 commit comments

Comments
 (0)