Skip to content

forge(fmt): option for Allman #13334

Description

@0xInnominatus

Component

Other (please describe)

Describe the feature you would like

Currently, forge fmt requires using the K&R style for opening braces. Can you add support for the Allman style via a flag?

Additional context

Currently forge fmt --check always throws:

2   2    | 
3   3    | import {ERC4626} from "@openzeppelin-contracts/token/ERC20/extensions/ERC4626.sol";
4   4    | 
5        |-contract AssetVault is ERC4626
6        |-{
    5    |+contract AssetVault is ERC4626 {
7   6    |      constructor(address asset, string memory name, string memory symbol) ERC4626(asset, name, symbol) {}
8   7    | }

Metadata

Metadata

Assignees

Labels

Projects

  • Status
    Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions