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

Enforce spacing in between function definition #516

Closed
ClementWalter opened this issue Aug 1, 2023 · 2 comments
Closed

Enforce spacing in between function definition #516

ClementWalter opened this issue Aug 1, 2023 · 2 comments

Comments

@ClementWalter
Copy link

Problem

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.

Proposed Solution

Enforce either one or two lines spacing, but enforce!

Notes

No response

@mkaput
Copy link
Member

mkaput commented Aug 1, 2023

Hey! This is cairo-formatter issue, please report it here: https://github.com/starkware-libs/cairo

@mkaput mkaput closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2023
@github-project-automation github-project-automation bot moved this from Triage to Done in Scarb Aug 1, 2023
@ClementWalter
Copy link
Author

see starkware-libs/cairo#3824

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants