autonomousapps / gradle-best-practices-plugin

Gradle Plugin that detects violations of Gradle best practices in Gradle Plugins
Apache License 2.0
181 stars 3 forks source link

Any non-lazy task container use should be flagged #21

Open joshfriend opened 6 months ago

joshfriend commented 6 months ago

I found something calling project.tasks.forEach {} where forEach is a kotlin.collections extension, which is eagerly creating tasks. It was not identified by this plugin.

Is it feasible to have this check be an allow-list where any method called on task container that is not known to be lazy is flagged?