Restrict opening_brace to single-line declarations #1921
Closed
Description
New Issue Checklist
- Updated SwiftLint to the latest version
- I searched for existing GitHub issues
Rule Request
I'd like to be able to configure the opening_brace rule so it only applies to single-line declarations. If I'm splitting a method across multiple lines then it's usually a good idea to put the opening brace on a new line as well, but single-line declarations should still always have the brace on the same line.