From 25a66f7d2ea1c5305db26243084dcf676b9e55d4 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 22 May 2026 14:56:53 -0400 Subject: [PATCH] chore(android): allow @Dao interfaces above detekt's TooManyFunctions threshold MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- android/config/detekt.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/android/config/detekt.yml b/android/config/detekt.yml index aef9b214..a634ab18 100644 --- a/android/config/detekt.yml +++ b/android/config/detekt.yml @@ -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"