Michael Krussel
11/18/2025, 10:36 PMcommonMain 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
So I thought that would pick up errors in- Runs detekt with type resolution on thedetektMetadataCommonMainmodule in thecommonsource setmain
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
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.