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.launchoutside 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.