https://kotlinlang.org logo
#detekt
Title
k

Kirill Zhukov

06/22/2023, 6:41 AM
If I wanted to run detekt tasks on all KMP source sets (in my case common, JVM and Android), is this the right way to do it?
Copy code
gradle detekt detektMetadataCommonMain detektDebug detektAndroidDebug --continue
e

ephemient

06/22/2023, 6:45 AM
https://github.com/detekt/detekt/issues/3838 might result in a
detektAll
task in the future; you can do that now with
Copy code
tasks.register("detektAll") {
    dependsOn(tasks.withType<Detekt>())
}
in
build.gradle.kts
for now
e

eygraber

06/22/2023, 2:38 PM
If you want to run detekt with type resolution for the JVM you should also add
detektJvmMain