You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The multiline_func_header configuration option in Foundry controls how function headers (the line containing the function name, parameters, return values etc.) are formatted when they exceed the max line length.
your sample doesn't exceed max line length (default to 120) hence no formatting, if you set line_length = 80 for example, they'll be formatted. Please reopen if still an issue, thank you!
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (206dab2 2024-12-16T00:25:12.607328550Z)
What command(s) is the bug in?
forge fmt
Operating System
Linux
Describe the bug
Forge formatter fails to format mulit-line function header
Steps to reproduce
forge init random cd random
IERC20.sol
file with the following content.foundry.toml
fileThe text was updated successfully, but these errors were encountered: