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
03/29/2020, 9:36 AM
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
👍 4
s
sanogueralorenzo
03/29/2020, 5:28 PM
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!