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"