android-detekt-expert

Installation
SKILL.md

Android Detekt Logic Analysis ๐Ÿง๐Ÿ”

Advanced strategies for detecting hidden logic errors, structural flaws, and code debt in Kotlin Android applications.

โšก When to Use

  • Code Smell Hunting: Identifying long functions, deeply nested loops, or excessive cognitive complexity.
  • Architectural Guardrails: Enforcing rules like "No viewModelScope.launch outside of ViewModels".
  • Naming Enforcement: Ensuring all interfaces end with Interface (if that's the team policy).
  • Refactoring Strategy: Identifying the most "complex" files that need simplification first.
  • CI/CD Quality Gate: Failing a build based on logic violations.

๐Ÿ—๏ธ Core Categories

1. Complexity

  • TooManyFunctions: Aim for < 11 functions per class.
  • LongMethod: Aim for < 20 lines per function.
  • NestedBlockDepth: Aim for < 4 levels of nesting.
Installs
9
GitHub Stars
11
First Seen
Aug 6, 2026