Skip to content

feat(fmt): allow line_length to be a hard requirement #4450

@PaulRBerg

Description

@PaulRBerg

Component

Forge

Describe the feature you would like

As discussed here with @mds1, it would be helpful to be able to make line_length a hard requirement. At the moment, forge fmt will leave untouched those statements that exceed the line length by 1 or 2 characters. For instance:

error SablierV2Pro__NetDepositAmountNotEqualToSegmentAmountsSum(uint128 netDepositAmount, uint128 segmentAmountsSum);

This line has 121 lines, but I have set the line_length to 1.

This is problematic because other Solidity linting tools (e.g. Solhint) consider the max-line-length rule to be a hard requirement.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions