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.