SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

Rule Request: Configuration `onlyEnforceBeforeTrivialLines` for `VerticalWhitespaceClosingBracesRule`

Open benjamin-kramer opened this issue 2 years ago • 1 comments

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
}

benjamin-kramer avatar Apr 10 '22 07:04 benjamin-kramer

@SimplyDanny Any chance you could review/assign someone to the PR that resolves this issue?

benjamin-kramer avatar Aug 22 '22 13:08 benjamin-kramer