Skip to content

interDeclarationSpacing #93

@TwitchBronBron

Description

@TwitchBronBron

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions