https://kotlinlang.org logo
#detekt
Title
# detekt
s

sanogueralorenzo

12/03/2019, 1:22 AM
Hello people, after updating from 1.1.1 to 1.2.1 when running
detektAll
a centric baseline is ignored. I switched to
build.gradle.kts
to ensure that wasn't the issue and was checking detekt project and it is set the same way (and also have the same path)
Copy code
baseline.set(file("$rootDir/config/detekt/baseline.xml"))
Was there any change regarding baseline? I don't seem to find it looking through 1.2.0 and 1.2.1
Here is the code snippet for
detektAll
Copy code
val detektAll by tasks.registering(io.gitlab.arturbosch.detekt.Detekt::class) {
    description = "Runs over whole code base without the starting overhead for each module."
    autoCorrect = true
    setSource(files(projectDir))
    include("**/*.kt")
    include("**/*.kts")
    exclude("**/resources/**")
    exclude("**/build/**")
    exclude("**/buildSrc/**")
    exclude("**/test/**/*.kt")
    config.setFrom(files("$rootDir/config/detekt/detekt.yml"))
    baseline.set(file("$rootDir/config/detekt/baseline.xml"))
    reports {
        xml.enabled = false
        html.enabled = false
        txt.enabled = false
    }
}
s

schalkms

12/05/2019, 5:31 PM
Does v1.2.2 fix this? If not, can you please report an issue?
s

sanogueralorenzo

12/23/2019, 6:51 AM
sorry for the late response, no it doesn't tried with 1.3 and it doesn't work either, should I open an issue if it is not intended to be used in this way though?
s

schalkms

12/23/2019, 8:50 AM
yep please do so
4 Views