Hey everybody, I'm having lots of issues in order ...
# detekt
m
Hey everybody, I'm having lots of issues in order to generate a proper baseline. I'm commenting out the formatting detekt plugin and executing the
baseline
gradle task. I see there's a
baseline.xml
generated with lots of lines, but when I run the
detekt
gradle task, I see that a lot of files are changed (which shouldn't be the case as I've generated a baseline, should it?). I have several modules in my app and I've tried to use this task, but it fails:
Copy code
tasks.register("detektGenerateBaseline", io.gitlab.arturbosch.detekt.DetektCreateBaselineTask) {
    description = "Custom DETEKT build to build baseline for all modules"
    parallel = true
    ignoreFailures = false
    buildUponDefaultConfig = true
    setSource(projectSource)
    baseline.set(baselineFile)
    config.setFrom(configFile)
    include(kotlinFiles)
    exclude(resourceFiles, buildFiles)
}
I'm getting:
Copy code
A problem occurred configuring project ':app'.
> Could not create task ':app:detektGenerateBaseline'.
   > Could not get unknown property 'projectSource' for task ':app:detektGenerateBaseline' of type io.gitlab.arturbosch.detekt.DetektCreateBaselineTask.