25a66f7d2e
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>
22 lines
802 B
YAML
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"
|