Files
minstrel/android/config/detekt.yml
T
bvandeusen 25a66f7d2e 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>
2026-05-22 14:56:53 -04:00

22 lines
802 B
YAML

# Per-rule overrides layered on top of detekt's defaults
# (`buildUponDefaultConfig = true` in the :app `detekt {}` block).
#
# The pre-2.0 `build:` top-level was removed; failure-on-finding is
# controlled by the Gradle DSL's `failOnSeverity` option instead.
naming:
# Composables conventionally use PascalCase function names. Allow it
# by ignoring functions annotated @Composable for the FunctionNaming
# rule. Matches every mainstream Compose codebase.
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"