Hey hey :android-wave: Happy to share that 1.21.0 ...
# detekt
g
Hey hey 👋 Happy to share that 1.21.0 stable is out 🎉 https://github.com/detekt/detekt/releases/tag/v1.21.0
🎉 12
💃 1
K 5
b
6 new rules. All of them developed by the community ❤️
m
I just tried updating to 1.21.0. Unfortunately, without turning on any new rules, I'm running into several false positives for the following existing rules: •
ReplaceSafeCallChainWithRun
(even though all chained properties are indeed nullable types) •
UnusedPrivateMember
(for private extension functions) •
RedundantSuspendModifier
(even though the
suspend
function calls another
suspend
function from another module) •
UnreachableCode
(particularly when calling static functions) I'll have to work on reduced repros for each of these but in the meantime I thought I'd share in case others are seeing similar issues. This is a multi-module Android project with: • Kotlin 1.7.0 • Android Gradle Plugin 7.2.1 • Explicit API set to
strict
for all modules I'm afraid for now, I'll have to stick with 1.20.0 as there appears to be several regressions with this version, at least for the project I am working on.
Decided to rebase my branch and take another stab at this again. No longer seeing these false positives. I suspect my project was in some wonky cached state with respect to Gradle. We do have our project set up to run with Gradle's configuration cache. 🤷‍♂️ Sorry for the false alarm.
g
Awesome
m
One minor thing to note is that the newly added
NestedScopeFunctions
is not listed in the
Notable Changes
section of the release notes.
b
Can you create a PR fixing the changelog?
m