Hello! After upgrading detekt ( from 1.20 to 1.23....
# detekt
m
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.
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") }
anyhting obivous missing?
i
New default rule set or deprecated rules?
b
On 1.20 if you run the baseline everything still work? If 1.20 works, which is the first version with the issue?
And I imagine that your detekt task is similar to this one, right?
m
Yep on 1.20 baseline was woking correctly for us, will try each version