Anybody use detekt with multiplatform? Specificall...
# detekt
k
Anybody use detekt with multiplatform? Specifically trying custom extensions. I can add my jar at the root level, but in the source set dependencies, the gradle build fails to see
detektPlugins
as a valid configuration
a
No multiplatform here. Maybe if you share your gradle build script, others can take a look. Have you tried defining a custom detekt task to see if our gradle plugin can handle kotlin native soruce sets?
Copy code
val detektAll by tasks.registering(Detekt::class) {
    description = "Runs over whole code base without the starting overhead for each module."
    parallel = true
    buildUponDefaultConfig = true
    setSource(files(projectDir))
    include("**/*.kt")
    include("**/*.kts")
    exclude("**/resources/**")
    exclude("**/build/**")
    ...
    pluginClasspath.setFrom("dependency")
}
Copy code
pluginClasspath.setFrom(files("path/to/your/plugin")))