Bump KtLint to 0.44.0 and add UnnecessaryParenthesesBeforeTrailingLamda rule#4630
Bump KtLint to 0.44.0 and add UnnecessaryParenthesesBeforeTrailingLamda rule#4630BraisGabin merged 8 commits intodetekt:mainfrom
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.
|
| @Configuration("indentation size") | ||
| private val indentSize by config(4) |
There was a problem hiding this comment.
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
| "org.ec4j.core", | ||
| "com.pinterest.ktlint" | ||
| "com.pinterest.ktlint", | ||
| "com.pinterest.ktlint", |
|
😂 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.