-
Notifications
You must be signed in to change notification settings - Fork 509
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
Fixing issue where ktlint would erroneously want to insert a newline if parameter comments were used #434
Conversation
…if parameter comments were used Fixes pinterest#433
// Skip comments, whitespace, and empty nodes | ||
!it.isPartOfComment() && | ||
// Skip comments, whitespace, and empty nodes | ||
!it.isPartOfComment() && | ||
!it.isWhiteSpaceWithoutNewline() && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This formatting looks weird to me, but IntelliJ does the same thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks right; it's a continuation indent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
// Skip comments, whitespace, and empty nodes | ||
!it.isPartOfComment() && | ||
// Skip comments, whitespace, and empty nodes | ||
!it.isPartOfComment() && | ||
!it.isWhiteSpaceWithoutNewline() && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks right; it's a continuation indent.
Test.kt
Outdated
@@ -0,0 +1,11 @@ | |||
fun main() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doh i did not mean to check this in.
Fixes #433