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 | }
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 --checkalways 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 | }