How do you get detekt to find problems requiring t...
# detekt
m
How do you get detekt to find problems requiring type resolution in the
commonMain
source set? I had been using
detekt.multiplatform.disabled=false
because of this long ago, but the code I wrote to build the detekt tasks are using deprecated calls when trying to upgrade Kotlin, so I thought I would try the built in one instead. The documentation says
detektMetadataCommonMain
- Runs detekt with type resolution on the
common
module in the
main
source set
So I thought that would pick up errors in
commonMain
, but I did a
!!
call that was not reported. If I do that in
androidMain
the android task picks it up. The only configuration I'm doing is
Copy code
detekt {
    buildUponDefaultConfig = true
    config = files("${project.rootDir}/quality/detekt/detekt-config.yml")
}
This is with Kotlin 2.1.21 and detekt 1.23.8 and gradle 8.11.1.