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

Slackbot

09/27/2023, 1:08 PM
This message was deleted.
j

Javier

09/27/2023, 1:14 PM
you shouldn’t
c

Colton Idle

09/27/2023, 1:23 PM
... but I have a monolithic app. and when I do large changes (like refactors) then sometimes it breaks in like 7 different modules and it takes forever to find out the issues when it hits CI. lmao
really just want a single command I can run locally so i can find all of the detekt issues first lol
j

Javier

09/27/2023, 1:26 PM
./gradlew detekt
will run all detekt tasks in all modules. You need to call that in each build (so one for the main build and N more for each included build). You can create a script which does that in one command.
I haven’t tried, but this maybe works
Copy code
./gradlew detekt :included-a:detekt :included-b:detekt …
Looks like you can create delegating tasks, but I am not sure if this is project isolation friendly. You should ask about this in the Gradle slack. https://docs.gradle.org/current/samples/sample_composite_builds_basics.html
👍 1