Files
minstrel/android/config/detekt.yml
T
bvandeusen 954bb8963f chore(android): extend detekt TooManyFunctions exception to @Database
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) <noreply@anthropic.com>
2026-05-22 16:45:47 -04:00

24 lines
868 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 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"