feat: Android Auto Media Browsing Support #842
CodeScene Delta Analysis / CodeScene Code Health Review (beta)
failed
Feb 18, 2026 in 40s
CodeScene PR Check
Quality Gate Failed
Gates Failed
Prevent hotspot decline
(1 hotspot with Low Cohesion, Complex Conditional, Excess Number of Function Arguments)
Enforce critical code health rules
(1 file with Low Cohesion)
Gates Passed
1 Quality Gates Passed
See analysis details in CodeScene
Reason for failure
| Prevent hotspot decline | Violations | Code Health Impact | |
|---|---|---|---|
| GramophonePlaybackService.kt | 3 rules in this hotspot | 4.83 → 4.10 | Suppress |
| Enforce critical code health rules | Violations | Code Health Impact | |
|---|---|---|---|
| GramophonePlaybackService.kt | 1 critical rule | 4.83 → 4.10 | Suppress |
Quality Gate Profile: The Bare Minimum
Want more control? Customize Code Health rules or catch issues early with our IDE extension and CLI tool.
Details
🚩 Declining Code Health (highest to lowest):
- Low Cohesion GramophonePlaybackService.kt 🔥
- Complex Conditional GramophonePlaybackService.kt: GramophonePlaybackService.onAddMediaItems 🔥
- Excess Number of Function Arguments GramophonePlaybackService.kt: GramophonePlaybackService.onGetChildren 🔥
✅ Improving Code Health:
- Overall Code Complexity GramophonePlaybackService.kt 🔥
Annotations
codescene-delta-analysis / CodeScene Code Health Review (beta)
❌ New issue: Low Cohesion
This module has at least 3 different responsibilities amongst its 51 functions, threshold = 3. Cohesion is calculated using the LCOM4 metric. Low cohesion means that the module/class has multiple unrelated responsibilities, doing too many things and breaking the Single Responsibility Principle.
codescene-delta-analysis / CodeScene Code Health Review (beta)
❌ New issue: Complex Conditional
GramophonePlaybackService.onAddMediaItems has 1 complex conditionals with 2 branches, threshold = 2. A complex conditional is an expression inside a branch (e.g. if, for, while) which consists of multiple, logical operators such as AND/OR. The more logical operators in an expression, the more severe the code smell.
codescene-delta-analysis / CodeScene Code Health Review (beta)
✅ Getting better: Overall Code Complexity
The mean cyclomatic complexity decreases from 4.59 to 4.27, threshold = 4. This file has many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more conditionals.
codescene-delta-analysis / CodeScene Code Health Review (beta)
❌ New issue: Excess Number of Function Arguments
GramophonePlaybackService.onGetChildren has 6 arguments, max arguments = 4. This function has too many arguments, indicating a lack of encapsulation. Avoid adding more arguments.
Loading