0.52 and trailing commas behavior on Kotlinlang formatting #510
JavierSegoviaCordoba
started this conversation in
General
Replies: 1 comment
-
@JavierSegoviaCordoba can you open an issue for this one? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After upgrading I am seeing trailing commas being removed and I think it is not only worse because it is less flexible in terms of how you can format the code (decide to have multiline or not by adding a trailing comma), but objectively it can modify the code in a way it transforms something from multiline to single-line and vice-versa making the code reviews harder when you want to keep a multiline for readability reason and it becomes a single-line, and in a future when a new parameter is added it becomes again multiline.
That becomes:
And if you add more params:
The format on
constructor
has changed too, personally, I prefer the old one, which follows the "square" pattern:Beta Was this translation helpful? Give feedback.
All reactions