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:
@@ -11,3 +11,11 @@ naming:
|
|||||||
FunctionNaming:
|
FunctionNaming:
|
||||||
ignoreAnnotated:
|
ignoreAnnotated:
|
||||||
- "Composable"
|
- "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"
|
||||||
|
|||||||
Reference in New Issue
Block a user