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

Ihar S

12/11/2023, 12:24 PM
Hello magicians, I have a quite interesting issue, baseline generator ignores project detekt config and fallback to default configuration Has anyone faced similar issues? Googling didn't help me to find an answer
l

LeoColman

12/11/2023, 12:43 PM
And
detekt
is running using your custom configurations? Only
baseline
is forgetting it?
i

Ihar S

12/11/2023, 1:44 PM
Yes, it is correct Therefore it is super strange The root build gradle configuration is here The only guess and clue is multi module structure of the the project
Copy code
withType<Detekt> {
            config.from("$rootDir/detekt_config.yml")
            allRules = true
            parallel = true
            buildUponDefaultConfig = true

            reports {
                txt.required.set(false)
                html.required.set(!ci)
                xml.required.set(ci)
            }
        }
b

Brais Gabin

12/11/2023, 1:50 PM
Use
withType<DetektBaseline>()
They are different tasks
❤️ 1
i

Ihar S

12/11/2023, 1:52 PM
Interesting, I didn't know it, thank you Brais for a hint!
Yes, it was the problem
3 Views