From 954bb8963f2de61a2c71b9c0f35fd45ff7685fd3 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 22 May 2026 16:45:47 -0400 Subject: [PATCH] chore(android): extend detekt TooManyFunctions exception to @Database MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- android/config/detekt.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/android/config/detekt.yml b/android/config/detekt.yml index a634ab18..df20b76a 100644 --- a/android/config/detekt.yml +++ b/android/config/detekt.yml @@ -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"