autonomousapps / autonomousapps/gradle-best-practices-plugin
Any non-lazy task container use should be flagged
- Dominant language
- Kotlin
- Stars
- 197
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Research direction
The issue identifies project.tasks.forEach and the kotlin.collections forEach extension as the starting behavior. Locate the existing task-container check, then determine which calls are known lazy and verify that other calls are flagged; done means eager calls such as forEach are reported without flagging allowed lazy calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100