auto: fix detekt findings
- Commit
8c6258cfe9b8abaf4a15a09a1675fe0a3e3e0e4c- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-17 15:16 UTC (18 days ago)
- Parents
44f24f7
Fixes every error-severity detekt finding in auto (inventory clusters C3/C4): named constants for magic numbers, extracted functions/composables for long/complex methods, wrapped long lines, removed unused parameters, and narrowed/logged exception handling. No detekt config, baseline or suppression changes; behaviour preserved. Verified: ./check auto and :auto:testDevUnitTest green.
Diff
auto/src/main/java/com/vayunmathur/auto/service/ProjectionService.kt
diff --git a/auto/src/main/java/com/vayunmathur/auto/service/ProjectionService.kt b/auto/src/main/java/com/vayunmathur/auto/service/ProjectionService.ktindex 5aaf9239d6..91b0b87eef 100644--- a/auto/src/main/java/com/vayunmathur/auto/service/ProjectionService.kt+++ b/auto/src/main/java/com/vayunmathur/auto/service/ProjectionService.kt@@ -450,7 +450,9 @@ class ProjectionService : Service() { val pending = ChannelSetups() var reportedActive = false while (running && connection.pump()) {- // Open every advertised service in HU-discovery wire order, one at a time: the next request goes out only once the previous channel is granted or refused, and video setup additionally waits for its own channel grant.+ // Open every advertised service in HU-discovery wire order, one at a time: the next+ // request goes out only once the previous channel is granted or refused, and video+ // setup additionally waits for its own channel grant. if (connection.session.state == SessionState.ACTIVE) { reportedActive = reportActiveOnce(connection, carName, reportedActive) openNext(connection)