Hello! After upgrading detekt ( from 1.20 to 1.23.4) I get a bunch os issues when running detekt, however the issues are not added to the baseline if the baseline task is ran.
Marco Pierucci
12/20/2023, 4:17 PM
tasks.register('detektAllBaseline', DetektCreateBaselineTask) {
description = "Overrides current baseline."
ignoreFailures.set(true)
parallel.set(true)
setSource(files(rootDir))
config.from(files("$rootDir/config/detekt/detekt.yml"))
// point to your custom config defining rules to run, overwriting default behavior
baseline.set(file("$rootDir/config/detekt/detekt-baseline.xml"))
// a way of suppressing issues before introducing detekt
include("**/*.kt")
include("**/*.kts")
exclude("**/build/**")
exclude("**/buildSrc/**")
exclude("**/test/**/*.kt")
exclude("**/androidTest/**/*.kt")
}
Marco Pierucci
12/20/2023, 4:17 PM
anyhting obivous missing?
i
Ihar S
12/20/2023, 4:44 PM
New default rule set or deprecated rules?
b
Brais Gabin
12/20/2023, 4:51 PM
On 1.20 if you run the baseline everything still work? If 1.20 works, which is the first version with the issue?
Brais Gabin
12/20/2023, 4:53 PM
And I imagine that your detekt task is similar to this one, right?
m
Marco Pierucci
12/20/2023, 7:11 PM
Yep on 1.20 baseline was woking correctly for us, will try each version