-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed as duplicate of#11080
Closed as duplicate of#11080
Copy link
Labels
T-bugType: bugType: bugT-needs-triageType: this issue needs to be labelledType: this issue needs to be labelled
Description
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
Forge Version: 1.3.0-v1.3.0
What version of Foundryup are you on?
foundryup: 1.3.0
What command(s) is the bug in?
forge build, forge lint
Operating System
macOS (Apple Silicon)
Describe the bug
exclude_lints = ["screaming-snake-case-immutable"]
does not actually exclude them. for example with this set you still see:
note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
--> /Users/mattstam/go/src/github.com/succinctlabs/network/contracts/src/mocks/MockVApp.sol:53:30
|
53 | address public immutable feeVault;
| --------
|
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
note[screaming-snake-case-immutable]: immutables should use SCREAMING_SNAKE_CASE
--> /Users/mattstam/go/src/github.com/succinctlabs/network/contracts/src/mocks/MockVApp.sol:54:30
|
54 | uint256 public immutable protocolFeeBips;
| ---------------
|
= help: https://book.getfoundry.sh/reference/forge/forge-lint#screaming-snake-case-immutable
Reproducible here: https://github.com/succinctlabs/network
Just clone, and set lint_on_build = true
, and forge build
to show linter warnings despite screaming-snake-case-immutable
being there. Notice that other ignores, such asmixed-case-variable
, do work correctly.
Metadata
Metadata
Assignees
Labels
T-bugType: bugType: bugT-needs-triageType: this issue needs to be labelledType: this issue needs to be labelled
Type
Projects
Status
Done