detekt/detekt

Allow configuring UnnecessaryFullyQualifiedName to ignore certain packages

Open

#9,279 创建于 2026年4月26日

在 GitHub 查看
 (17 评论) (4 反应) (0 负责人)Kotlin (6,942 star) (834 fork)batch import
featuregood first issuehelp wanted

描述

Currently, UnnecessaryFullyQualifiedName reports a violation for android.R.id.content, which is correct, because the class name is R, and the FQN is android.R.

Since that pattern (and others) is a common occurrence, it would be nice if we could specify a list of packages that would be excluded from the rule.

贡献者指南