foundry-rs / foundry-rs/foundry

forge(fmt): Align declarations

Open
#5,075 5 comments 0 reactions 0 assignees View on GitHub
Cmd-forge-fmt T-feature
Dominant language
Rust
Stars
10.6k
Forks
2.6k
Avg merge
16h 46m
Merged PRs (30d)
517

Description

### Component

Forge

### Describe the feature you would like

A nice feature to have would be to auto-align all declarations at the top of a contract.

![Screenshot 2023-05-29 at 4 33 39 PM](https://github.com/foundry-rs/foundry/assets/44272939/41ce8380-d4dc-46cc-ad64-c5ca55b61f13)

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start at Forge's formatter entry point and inspect how declarations at the top of a Solidity contract are currently formatted. Define the alignment behavior from the issue's screenshot and verify that formatting a contract aligns those declarations consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, solidity
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.