chore(android): extend detekt TooManyFunctions exception to @Database
AppDatabase grew its 12th DAO accessor in slice 9 and tripped the TooManyFunctions rule. Same shape as the @Dao case from slice 5 — Room types naturally accumulate one method per entity family. Added "Database" to the ignoreAnnotated list alongside "Dao". Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -13,9 +13,11 @@ naming:
|
||||
- "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.
|
||||
# Room types naturally accumulate one method per query (Dao) or one
|
||||
# accessor per entity (Database). Scope the exception to these
|
||||
# annotations; the rule still applies to non-Room interfaces / classes
|
||||
# where >11 methods IS a smell worth flagging.
|
||||
TooManyFunctions:
|
||||
ignoreAnnotated:
|
||||
- "Dao"
|
||||
- "Database"
|
||||
|
||||
Reference in New Issue
Block a user