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

toto

02/07/2018, 12:55 PM
@Artur Bosch I started to look at Detekt and the current plugin to get a better idea, but I find hard to wrap my head around the idea of profiles
the documentation says that a profile can be used to configure detekt for different modules, does it means you are forced to apply detekt in the root project?
m

mauin

02/07/2018, 12:58 PM
It’s definitely possible to define detekt in each gradle project/module.
t

toto

02/07/2018, 1:01 PM
oh yeah, the alternative is to apply the plugin to each module with their own configuration I guess
gotcha
a

Artur Bosch

02/07/2018, 1:01 PM
if you look at the build.gradle from detekt itself, there are two additional profiles configured
one uses an extra configuration file and one generated file reports
m

mauin

02/07/2018, 1:05 PM
@toto You can also use the same configuration for every module where you apply the detekt plugin of course
t

toto

02/07/2018, 1:05 PM
yeah, of course
4 Views