Skip to content

How to pass multiple codes to --ignored-error-codes... #3500

Answered by DaniPopes
jmhickman asked this question in Help
Discussion options

You must be logged in to vote

You can use:
forge test --ignored-error-codes 2072 --ignored-error-codes 6321 --ignored-error-codes 5667 --ignored-error-codes 2018

or add them to your project's foundry.toml:
ignored_error_codes=[2072, 6321, 5667, 2018]

Honestly, I would love a "suppress all warnings"

I think this would be a good addition, can you create an issue for it?

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jmhickman
Comment options

Comment options

You must be logged in to vote
4 replies
@jmhickman
Comment options

@DaniPopes
Comment options

@mattsse
Comment options

@jmhickman
Comment options

Answer selected by jmhickman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants