-
-
Notifications
You must be signed in to change notification settings - Fork 767
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
Bump ktlint to version 0.46.1 #5044
Bump ktlint to version 0.46.1 #5044
Conversation
@@ -7,7 +7,8 @@ | |||
* You need kotlin 1.3.70+ installed on your machine | |||
*/ | |||
|
|||
@file:Suppress("detekt.CommentSpacing") // for the exec line | |||
// for the exec line | |||
@file:Suppress("detekt.CommentSpacing") |
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 change seems a bit odd, isn't it?
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.
Yes, it seems odd. I'm not sure whether we have a false positive here or not. The problem is the AnnotationOnSeparateLineRule
rule from detekt: /home/runner/work/detekt/detekt/scripts/github-milestone-report.main.kts:10:1: Annotations with parameters should all be placed on separate lines prior to the annotated construct [AnnotationOnSeparateLine]
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.
I wrote a bug ticket at the ktlint project to fix this issue: pinterest/ktlint#1539
...io/gitlab/arturbosch/detekt/formatting/wrappers/SpacingBetweenDeclarationsWithAnnotations.kt
Outdated
Show resolved
Hide resolved
...in/io/gitlab/arturbosch/detekt/formatting/wrappers/SpacingBetweenDeclarationsWithComments.kt
Outdated
Show resolved
Hide resolved
Thank you for split it :) this was way way easier to review :) |
* Bump ktlint to v0.46.1 * add NoBlankLinesInChainedMethodCalls.kt rule * set ActiveByDefault to 1.22.0 * fix various detekt issues * fix review notes * fix AnnotationOnSeparateLine in github-milestone-report.main.kts
See https://github.com/pinterest/ktlint/releases/tag/0.46.0 and https://github.com/pinterest/ktlint/releases/tag/0.46.1 for full release notes.
This PR is part of the ktlint upgrade to version 0.46. See #5040
It includes:
Closes #5022