No detektX
task is generated for additional source sets
#6758
Answered
by
3flex
KotlinIsland
asked this question in
Q&A
-
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.
Answered by
3flex
Feb 25, 2024
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.
4 replies
-
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.
0 replies
Answer selected by
KotlinIsland
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This feature is available on snapshot versions now but isn't documented yet as the design may change slightly: #6973