-
-
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 0.44.0 and add UnnecessaryParenthesesBeforeTrailingLamda rule #4630
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4630 +/- ##
=========================================
Coverage 84.52% 84.53%
- Complexity 3358 3364 +6
=========================================
Files 481 482 +1
Lines 11193 11200 +7
Branches 2042 2043 +1
=========================================
+ Hits 9461 9468 +7
Misses 698 698
Partials 1034 1034
Continue to review full report at Codecov.
|
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.
@Configuration("indentation size") | ||
private val indentSize by config(4) |
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 should be deprecated instead
Thanks @cortinico ! So you simply fixed the issues (or let the formatter do the work) .. Well, okay 😄 Can you just tell me a simple question about your changes: You wrote the following snippet: 2a9b602#diff-9cf77f9ffcbf036bf5044d1ef99728b56aad97854246f3473f69d54b4b929380R82-R86 . Is it really necessary to check the |
I think it is. I tried to publish a new version of the Gradle plugin locally and KtLint was crashing while executing the Indentation rule for that. That's why I had to do this change. That's the same reason why I had to touch the |
I was already wondering why you implemented the microutils logging framework. But now I see (and my code build locally). Thanks! |
detekt-formatting/build.gradle.kts
Outdated
@@ -22,7 +23,10 @@ tasks.build { finalizedBy(":detekt-generator:generateDocumentation") } | |||
|
|||
val depsToPackage = setOf( | |||
"org.ec4j.core", | |||
"com.pinterest.ktlint" | |||
"com.pinterest.ktlint", | |||
"com.pinterest.ktlint", |
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.
Duplicated?
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.
Fuuuu
😂 We just merged 0.44 but 0.45 is out |
Oh! and thank you very much for the PR @kvn-stgl :) |
See https://github.com/pinterest/ktlint/releases/tag/0.44.0 for the full release note. I've also wrapped the new experimental UnnecessaryParenthesesBeforeTrailingLamda rule.
I also tried to implement the new VisitorModifier instead of the deprecated Rule.Modifier interfaces.
This should also fix the issue #4604
Sadly I get a lot of
Unexpected indent of multiline string closing quotes [Indentation]
-errors for the Unit-Tests. Maybe someone has some ideas how I can fix it.