Thread
#detekt
    d

    dimsuz

    9 months ago
    Do I understand correctly that when running with "type resolution", detekt still should find all errors which are present without type resolution? I have a KMM project and when I run
    detekt
    I get
    UseDataClass
    error, but if I run
    detektAndroidDebug
    on the same module, I get a
    BUILD SUCCESSFUL
    .
    b

    Brais Gabin

    9 months ago
    Yes, detektAndroidDebug should find MORE issues than detekt. It shouldn't be less.
    d

    dimsuz

    9 months ago
    Turns out this is related to one of the previous issues I've been writing about here: tasks with type resolution do not read the config yaml file. created an issue with the repro project https://github.com/detekt/detekt/issues/4380
    e

    ephemient

    9 months ago
    yeah I do
    tasks.withType<​Detekt​>().configureEach {
        config.from(​"​detekt.yml​"​)
    }
    instead
    d

    dimsuz

    9 months ago
    hmm. I do this (in sample project too)
    tasks.withType<io.gitlab.arturbosch.detekt.Detekt>() {
      config.setFrom(files(rootProject.file("detekt-config.yml")))
    }
    Do you mean that
    files(rootProject.file("detekt-config.yml"))
    is the problem here?