-
Notifications
You must be signed in to change notification settings - Fork 229
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
lineBreakBeforeEachArgument adds a line break *after* the last argument #838
Comments
Synced to Apple’s issue tracker as rdar://137353549 |
A small addition to I have this code
And
Is this intended to do so? |
|
I agree the name is a bit ambiguous. I am still confused why this code is getting formatted even though the rule is disabled with Plus a humble suggestion for future refactoring, if any 🙂 Or is this already possible? |
swift-format's formatting algorithm was explicitly designed to not do hanging indentation where the indentation level is determined by what column an element on the first line is; one of the core philosophical choices we made was that indentation was always a constant amount not based on tokens from the previous line. So the example that you've given:
is something that we've chosen not to support. |
I don't know whether it's intended, but a) it's not mentioned in the docs & b) personally I would prefer control over that separately
e.g.
becomes
What I would like to see
The text was updated successfully, but these errors were encountered: