How can I configure the Detekt task to be applied to all Gradle modules? The documentation has examples showing the task configuration included in the detekt closure/lambda but that seems to be deprecated (e.g. I get
HTML report location set on detekt {} extension will be ignored for detekt task.
)
b
Brais Gabin
11/01/2023, 6:04 PM
Can you open an issue regarding the outdated documentation? That should be fixed.
Regarding the tasks snippet. Is it inside the
subprojects
lambda?
e
Emanuel Moecklin
11/01/2023, 6:19 PM
Regarding the tasks snippet. Is it inside the
subprojects
lambda?
no, if I add it to
subprojects
I get
Could not get unknown property 'detekt' for task set of type org.gradle.api.internal.tasks.DefaultTaskContainer.
I tried retrieving the task by name but that doesn't work either
Emanuel Moecklin
11/01/2023, 6:23 PM
hmm I tried different "flavors" or this and this actually seems to work