We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When having ij_kotlin_allow_trailing_comma_on_call_site rule enabled the semi-rule isn't working anymore for enum classes.
`internal enum class Type { A, B;
val x = true }`
ktlintFormat corrects this to a wrong state:
`internal enum class Type { A, B, ;
Which produces further errors:
The text was updated successfully, but these errors were encountered:
Duplicate of #1733
Sorry, something went wrong.
I think this isn't a duplicate but a new bug in the trailing-comma rule. The comma shouldn't be added if there a semi colon already exists.
Please read all comments of #1733 in which the reasoning is explained why it is not a bug.
No branches or pull requests
When having ij_kotlin_allow_trailing_comma_on_call_site rule enabled the semi-rule isn't working anymore for enum classes.
`internal enum class Type {
A,
B;
val x = true
}`
ktlintFormat corrects this to a wrong state:
`internal enum class Type {
A,
B,
;
val x = true
}`
Which produces further errors:
The text was updated successfully, but these errors were encountered: