-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to treat solc warnings as errors #3476
Labels
Comments
this is definitely something that can be added easily |
Simple matter of switching https://github.com/gakonst/ethers-rs/blob/5c762c44d760ed9dad3900be079062174ada0245/ethers-solc/src/compile/output/mod.rs#L430 to not filter for errors if it's set to treat warning as errors |
3 tasks
Hello @KholdStare, is this okay if I pick this up? :) Want to start submitting here |
@timofeli Of course! Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component
Forge
Describe the feature you would like
When running
forge build
or any other command that invokes thesolc
compiler, have an option to treat its warnings as errors.I tried looking for such a feature in
solc
itself, but such a proposal was rejected by the maintainers here: ethereum/solidity#10277 . They ask "framework" maintainers to treat solc warnings as errors if required.Additional context
There is something like this in the hardhat ecosystem: https://github.com/frangio/hardhat-ignore-warnings . Allows to turn certain warnings into errors, or to ignore others.
The text was updated successfully, but these errors were encountered: