Am I missing something or default Gradle `detekt` ...
# detekt
i
Am I missing something or default Gradle
detekt
task does not verify Android project modules (Gradle subprojects. including the
app
default one)?
j
it depends a lot how you are applying it
i
I was using default config - just a plugin in the top-level
build.gradle.kts
file
Copy code
plugins {
    id("io.gitlab.arturbosch.detekt").version("1.21.0")
}
j
I am not sure what is the default detekt config, but probably it should be checking only the files in the root project
try to pass all files
i.e:
"**/*.kt", "**/*.kts"
to the list of includes files
but another approach is applying the plugin to each project, which is needed too if you want to use the type resolution feature
i
Ok I got it - I had to apply detekt plugin also to the
app
submodule. thx
b
Yes, detekt should be applied on each module you have code (and you want it to be scanned)
i
Makes seance, but as far as I can tell I have to also apply custom config (raport types and config file path, etc.) in every module, right?
j
yes
detekt is not checking for the existence of other projects, I think
you can check that quickly if it works with project isolation enabled
b
You should not need to configurate the file paths. You do need to configure the java version to get the type safe tasks. (I think that it will not be needed anymore in the next release, but I'm not sure about this)