chore(android): allow @Dao interfaces above detekt's TooManyFunctions threshold

AudioCacheIndexDao has 12 methods (default rule threshold is 11) — DAOs
accumulate one method per distinct query and inherently exceed the
default. Scoped via ignoreAnnotated: ["Dao"] rather than raising the
global threshold; the rule still catches non-DAO interfaces that grow
unreasonably wide.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-22 14:56:53 -04:00
parent e63034ec9c
commit 25a66f7d2e
+8
View File
@@ -11,3 +11,11 @@ naming:
FunctionNaming:
ignoreAnnotated:
- "Composable"
complexity:
# Room DAO interfaces accumulate one method per query and naturally
# exceed the default 11-function threshold. The rule still applies to
# non-DAO interfaces where >11 methods IS a smell worth flagging.
TooManyFunctions:
ignoreAnnotated:
- "Dao"