Join Slack
Is there a way to force the `.` in a chain to be on a newline instead of after `)` or `}`? I'm not ...
# ktlint
j
James
12/05/2024, 8:22 AM
Is there a way to force the
.
in a chain to be on a newline instead of after
)
or
}
? I'm not sure I see a way to do this in
Chain method continuation
👍 1
p
Paul Dingemans
12/05/2024, 8:27 AM
No, this is not configurable.
j
James
12/05/2024, 8:27 AM
👍 Are there any plans on supporting this, or could I perhaps look into open a PR for this?
p
Paul Dingemans
12/05/2024, 8:29 AM
No, there are no plans to support this. Please see
https://pinterest.github.io/ktlint/latest/faq/#can-a-new-toggle-be-added-to-optionally-enabledisable-format-code-in-a-particular-way
j
James
12/05/2024, 8:30 AM
Thanks! 👍
James
12/05/2024, 8:35 AM
https://github.com/pinterest/ktlint/issues/2899
19
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by