forge-fmt 0.2.0

solidity formatting
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
contract ThisExpression {
    function someFunc() public {}
    function someVeryVeryVeryLongVariableNameThatWillBeAccessedByThisKeyword() public {}

    function test() external {
        this.someFunc();
        this.someVeryVeryVeryLongVariableNameThatWillBeAccessedByThisKeyword();
        this // comment1
            .someVeryVeryVeryLongVariableNameThatWillBeAccessedByThisKeyword();
        address(this).balance;
        
        address thisAddress = address(
            // comment2
             /* comment3 */ this // comment 4
        );
    }
}