Should we enforce trailing commas for Kotlin code? #1913
sschuberth
started this conversation in
General
Replies: 2 comments 1 reply
-
I would be fine with enabling that rule, it also makes for nicer diffs. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would be fine with the rule, but only if there is a way to automatically detect it, and additionally I have to be able to configure my IDE to automatically handle this. If one of these requirements is not given, I would like to keep the style guide as-is. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We already do so for TypeScript code. Not enforcing / allowing them for Kotlin code could confuse front-end developers that also do back-end work. So it seems that aligning formatting rules for consistency here is a good idea, even though there probably are more (language-specific) formatting rules where TypeScript (Prettier) vs. Kotlin (Detekt / Ktlint) configurations differ.
Beta Was this translation helpful? Give feedback.
All reactions