Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: enforce spacing between functions #3824

Open
1 of 2 tasks
ClementWalter opened this issue Aug 2, 2023 · 0 comments
Open
1 of 2 tasks

feat: enforce spacing between functions #3824

ClementWalter opened this issue Aug 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ClementWalter
Copy link

Feature Request

Describe the Feature Request

The scarb fmt doesn't enforce a given number of lines between two functions. This means that both

fn a() {}

fn b() {}
fn a() {}


fn b() {}

are currently valid.

Describe Preferred Solution

Enforce either one or two lines spacing, but enforce!

If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

  • Yes
  • No
@ClementWalter ClementWalter added the enhancement New feature or request label Aug 2, 2023
@ClementWalter ClementWalter changed the title feat: feat: enforce spacing between functions Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant