954bb8963f
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>
24 lines
868 B
YAML
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"
|