-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
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
Accidental double-KDoc reported as consecutive line space problem #1802
Comments
I can not reproduce the problem with ktlint |
Uh it may require an additional property below it. Or above it? But yes I'll try. |
Okay here's a problematic snippet: public class JsonReader {
public var lenient: Boolean = false
/**
* Hey
*/
/** Sup */
@get:Synchronied
public var failOnUnknown: Boolean = false
}
The act of formatting actually added the second blank line between properties because of the double KDoc. index 529ab4c..d931a98 100644
--- JsonReader.kt
+++ JsonReader.kt
@@ -1,6 +1,7 @@
public class JsonReader {
public var lenient: Boolean = false
+
/**
* Hey
*/ |
Tnx, this is reproducable.
Ktlint |
…nd another annotated declaration Closes #1802
Expected Behavior
I have no idea. Maybe there should be a rule for this? Useless KDoc rule?
Observed Behavior
Consecutive blank line rule triggers despite there not being consecutive blank lines.
Steps to Reproduce
Your Environment
spotApply
taskThe text was updated successfully, but these errors were encountered: