Warn on the use of block.timestamp / block.number inside Foundry test files; recommend vm.getBlockTimestamp() / vm.getBlockNumber().
This rule accepts an array of options:
| Index | Description | Default Value |
|---|---|---|
| 0 | Rule severity. Must be one of “error”, “warn”, “off”. | warn |
| 1 | Array of folder names for solhint to execute (defaults to [“test”,”tests”], case-insensitive). | [“test”,”tests”] |
{
"rules": {
"foundry-no-block-time-number": [
"warn",
[
"test",
"tests"
]
]
}
}
This rule does not have examples.
This rule was introduced in the latest version.