No detektX
task is generated for additional source sets
#6758
-
plugins {
kotlin("jvm") version "1.9.22"
id("io.gitlab.arturbosch.detekt") version "1.23.4"
}
repositories {
mavenCentral()
}
kotlin {
sourceSets {
create("other")
main {
dependsOn(getByName("other"))
}
}
} No corresponding |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Detekt doesn't work by source sets. Detekt works by compilations. So it doesn't have sense to have a task for a source set added to the main compilation. That's the same reason we can not just inspect main on a multiplatform project. We need to inspect it once for each platform. |
Beta Was this translation helpful? Give feedback.
-
This feature is available on snapshot versions now but isn't documented yet as the design may change slightly: #6973 |
Beta Was this translation helpful? Give feedback.
This feature is available on snapshot versions now but isn't documented yet as the design may change slightly: #6973