# 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"
