Manuel Lorenzo
07/31/2023, 9:05 AMbaseline
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:
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:
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.