-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[1.3.0] Data class comments break indentation formatting #2689
Comments
Tnx for reporting. Next time please enclose your |
This is not correct. With an empty
|
The problem could also reproduced with the other code styles given that additional |
Expected Behavior
Formatting data classes with
//
comments should produce valid Kotlin code.Observed Behavior
Auto fixing produces invalid Kotlin code that does not compile.
Steps to Reproduce
Run
ktlint -f
against the following Kotlin data class:Results in:
KtLint does not fail if you replace the
// Foo
comment with/* Foo */
.Your Environment
.editorconfig
settings: An empty configuration reproduces this error.The text was updated successfully, but these errors were encountered: