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

interDeclarationSpacing #93

Open
TwitchBronBron opened this issue Jun 3, 2024 · 0 comments
Open

interDeclarationSpacing #93

TwitchBronBron opened this issue Jun 3, 2024 · 0 comments

Comments

@TwitchBronBron
Copy link
Member

TwitchBronBron commented Jun 3, 2024

Enforce consistent newlines between top level declarations. This is for the space between declarations, and does not affect newlines at start of file or end of file.

The option should be called:
interDeclarationSpacing
and it'll have:

  • "original" - don't change anything
  • a number represents the number of newlines that should be enforce between each declaration

When enabled, it will:

  • enforce exactly 1 empty line between each declaration
  • groups of comments should be included without newlines inside of them
  • comments right before a declaration (function, etc) should be right next to the function.
  • collapse multiple newlines into single newline
  • add newlines when missing

When enforcing

@TwitchBronBron TwitchBronBron changed the title Enforce consistent newlines interDeclarationSpacing Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant