sanogueralorenzo

    sanogueralorenzo

    2 years ago
    Hello everyone, does the detekt cli have any advantage over the gradle plugin? Can you do top level task instead of 1 per module as well?
    t

    taso

    2 years ago
    You can create a custom Gradle task or even run the cli to have a top level task. The advantage of per module is that the results will be cached by Gradle. So, if a module has not changed, official detekt tasks will be UP-TO-DATE
    sanogueralorenzo

    sanogueralorenzo

    2 years ago
    I used to have it per module but with 40 modules it took 2min 30 or so After the first run it will properly cache the modules but if you change branch it would lose it 😞
    Tried out the CLI and the adantage in time is only 3 seconds or so compared to the top level task (+ no caching) so I'm going to keep the gradle task for now. Thanks you!
    t

    taso

    2 years ago
    Sounds great.