Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

forc fmt should format manifest fields with rules similar to Cargo style guide #687

Open
adlerjohn opened this issue Jan 22, 2022 · 1 comment
Labels
enhancement New feature or request forc formatter good first issue Good for newcomers

Comments

@adlerjohn
Copy link
Contributor

Currently, the manifest formatter simply orders all fields alphabetically. This should be changed to order them in a similar way to the Cargo style guide. This ordering should also be documented in The Sway Book.

https://github.com/rust-dev-tools/fmt-rfcs/blob/215291ef72823ae3a6adfad9b26334bed6707a13/guide/cargo.md

@eureka-cpu
Copy link
Contributor

@cr-fuel this has to do with the toml formatter not swayfmt, but may still be relevant.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request forc formatter good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants