Thread
#ktfmt
    Javier

    Javier

    1 year ago
    One question,
    gradlew build
    run check and/or format tasks?
    gammax

    gammax

    1 year ago
    build
    will run the
    check
    task, that will subsequently call all the
    ktfmtCheck
    task.
    Javier

    Javier

    1 year ago
    nice, I can do this without breaking the parallel execution or cache? The idea is
    gradlew build
    fix the format automatically. I don’t know if could be interesting to have a flag about this in
    ktfmt
    block 🤔
    afterEvaluate {
        tasks.getByName("ktfmtCheck").dependsOn(tasks.getByName("ktfmtFormat"))
    }
    gammax

    gammax

    1 year ago
    What I usually do, I have a
    reformatAll
    task to reformat everything
    I have to say that I’m not a big fan of having tasks that edit the code in the
    build
    task.