feat(detekt): try running type resolution enabled task if available

This commit is contained in:
Harsh Shandilya 2022-10-03 22:45:21 +05:30
parent e1d16e9f36
commit eb8be2f909
No known key found for this signature in database

View file

@ -23,7 +23,8 @@ object Detekt {
}
project.pluginManager.withPlugin("base") {
project.tasks.named(LifecycleBasePlugin.CHECK_TASK_NAME).configure {
dependsOn(project.tasks.named("detekt"))
val task = project.tasks.findByPath("detektMain") ?: project.tasks.findByPath("detekt")
if (task != null) dependsOn(task)
}
}
project.dependencies.add(