detekt/detekt

Suggest user to use `all` use site target when user manually add all the usesites

Open

#8,468 opened on Aug 17, 2025

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Kotlin (834 forks)batch import
help wantedrules

Repository metrics

Stars
 (6,942 stars)
PR merge metrics
 (Avg merge 4d 9h) (65 merged PRs in 30d)

Description

Expected Behavior of the rule

When user manually adds all the usesite targets targeted by the all then we should suggest user to use all instead

Context

all meta usesite target the new experimental feature introduced in Kotlin. We can create this rule to educate users to promote the usages of all. Also it's very common usecase to annotate a ctor param will all types of usesite so that it works well with Firestore type of libs

Contributor guide