A simple and opinionated tool designed for basic formatting/linting of Solidity and TOML code in foundry projects.
Solidity formatting uses the configuration in foundry.toml
, and TOML formatting has a hardcoded configuration.
Formatting and checking does the following:
forge fmt
to format Solidity.taplo
crate to format TOML.test(Fork)?(Fuzz)?_(Revert(If_|When_){1})?\w{1,}
.ALL_CAPS
.run
method per script (executable script files are expected to end with .s.sol
, whereas non-executable helper contracts in the scripts dir just end with .sol
).src/
start with a leading underscore.cargo install scopelint
.scopelint fmt
.scopelint check
.scopelint --version
.This tool is currently opinionated and does not let you configure it's behavior.