Skip to content

Rule Request: Configuration onlyEnforceBeforeTrivialLines for VerticalWhitespaceClosingBracesRule #3940

Description

@benjamin-kramer

Vertical whitespace may be important for readability when the line with the closing brace is not a trivial one.
The configuration should allows not enforcing the rule in such cases.

E.g. a non-triggering-example would be:

if someCondition {
  // do something
  // do something
 
} else if ... {
  // do something
  // do something
  // do something

} else {
  // do something
  // do something
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIdeas for improvements of existing features and rules.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions