-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Allow opening brace on newline in case of multiline function #3068
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
Conversation
Generated by 🚫 Danger |
84a7697 to
10aa6a6
Compare
10aa6a6 to
d3cd371
Compare
|
I would love to see this merged!! |
|
This would be great, especially since SwiftFormat has introduced a |
d3cd371 to
1e0a254
Compare
Codecov Report
@@ Coverage Diff @@
## master #3068 +/- ##
==========================================
- Coverage 90.59% 90.58% -0.02%
==========================================
Files 416 418 +2
Lines 20351 20436 +85
==========================================
+ Hits 18438 18512 +74
- Misses 1913 1924 +11
Continue to review full report at Codecov.
|
1e0a254 to
ed3add8
Compare
|
Thanks for this PR and for your patience, I'm slowly making my way through old PRs. I just rebased this and will be merging when CI passes. |
|
Thanks for merging @jpsim. But imho the config option should be applied for |
|
Agreed, we use this style at work but for all multi line declarations, not just functions. |
|
@weakfl Yeah, it was my bad 😞 And now that I think about it, I wonder if |
That would be great, thanks @lordzsolt |
Implements #1921
I kept the option disabled, to keep the old behavior.
Note: Indentation is not validated, similar to the old
if,guardandwhilebehavior.