{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"]}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"DM11","name":"Constructible invalid state","shortDescription":{"text":"Constructible invalid state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM11"},{"id":"DM2","name":"Strongly-typed ids","shortDescription":{"text":"Strongly-typed ids"},"helpUri":"https://codehealth.canine.dev/dimensions/DM2"},{"id":"DM4","name":"Rich vs anemic model","shortDescription":{"text":"Rich vs anemic model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM7","name":"Repository granularity","shortDescription":{"text":"Repository granularity"},"helpUri":"https://codehealth.canine.dev/dimensions/DM7"},{"id":"DM8","name":"Value-object opportunities","shortDescription":{"text":"Value-object opportunities"},"helpUri":"https://codehealth.canine.dev/dimensions/DM8"},{"id":"DM9","name":"Scattered domain decisions","shortDescription":{"text":"Scattered domain decisions"},"helpUri":"https://codehealth.canine.dev/dimensions/DM9"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"EntityKt.getIcon (cyclomatic 169): EntityKt.getIcon has cyclomatic complexity 169 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt holds 4 of the 41 methods over the threshold \u2014 including the worst \u2014 and 252 of the 687 points over it (37%), 2.2\u00D7 the next-largest file (app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt at 117). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3c5ddd0fde673c67bc0f4157e16a77cff49ab72b2dd3d29bf44fc7997bcd5b"}},{"ruleId":"D1","level":"warning","message":{"text":"FriendlyStateKt.stateResource (cyclomatic 104): FriendlyStateKt.stateResource has cyclomatic complexity 104 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/FriendlyState.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b78ba6e3af66f76a69c18b82045afc71c96e33ec24c2f4ccb35d5de7586d099"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagingManager.handleMessage (cyclomatic 71): MessagingManager.handleMessage has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"5314091d22ce766eaa234a7759f9e3115d39b74f09990be021e97b7938170383"}},{"ruleId":"D1","level":"warning","message":{"text":"EntityKt.sensorIcon (cyclomatic 63): EntityKt.sensorIcon has cyclomatic complexity 63 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt holds 4 of the 41 methods over the threshold \u2014 including the worst \u2014 and 252 of the 687 points over it (37%), 2.2\u00D7 the next-largest file (app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt at 117). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff122d47f650ad672e0bb94d3abc8bc27309eb95d58e71c992d1185cecce545"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagingManager.handleDeviceCommands (cyclomatic 55): MessagingManager.handleDeviceCommands has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bff9551537f45c7e3143b43ce0e77a4333417e74f7b2351f793a1683b2d19f"}},{"ruleId":"D1","level":"warning","message":{"text":"EntityKt.binarySensorIcon (cyclomatic 51): EntityKt.binarySensorIcon has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt holds 4 of the 41 methods over the threshold \u2014 including the worst \u2014 and 252 of the 687 points over it (37%), 2.2\u00D7 the next-largest file (app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt at 117). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14b9c553aa168281cb0be6366d8d89675f22ea07ec3a33013c1c92c269d6a28"}},{"ruleId":"D1","level":"warning","message":{"text":"Migration16to17.migrate (cyclomatic 51): Migration16to17.migrate has cyclomatic complexity 51 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"192f8f16ac36c87576ee866da12e3fa12e6494903a29c43cdbd8933f6331afb3"}},{"ruleId":"D1","level":"warning","message":{"text":"SensorUpdater.syncSensorsWithServer (cyclomatic 42): SensorUpdater.syncSensorsWithServer has cyclomatic complexity 42 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorUpdater.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c64ba7c06402bac8f3d4c3103cbb823e1bfe2cb230423d3b815695e1c34f090"}},{"ruleId":"D1","level":"warning","message":{"text":"SensorDetailViewKt.SensorDetailView (cyclomatic 37): SensorDetailViewKt.SensorDetailView has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/views/SensorDetailView.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"831973cc765ba5132a71df6fe3e7aab43e97bca97f614a91d07dbc3a60de948c"}},{"ruleId":"D1","level":"warning","message":{"text":"ManageShortcutsViewKt.CreateShortcutView (cyclomatic 32): ManageShortcutsViewKt.CreateShortcutView has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/shortcuts/legacy/views/ManageShortcutsView.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c232db27e78e5b95b260ed57dc71395a4d639124c91b219e03556bd657bc613"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagingManager.addExtrasToIntent (cyclomatic 30): MessagingManager.addExtrasToIntent has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73758c6c5278e7942962d19660f22089e86724b256b6c982f47d5cb4a2a8c53"}},{"ruleId":"D1","level":"warning","message":{"text":"EntityKt.coverIcon (cyclomatic 29): EntityKt.coverIcon has cyclomatic complexity 29 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt holds 4 of the 41 methods over the threshold \u2014 including the worst \u2014 and 252 of the 687 points over it (37%), 2.2\u00D7 the next-largest file (app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt at 117). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3df1d5145d7df7554c6b5fc608b1d0c26056a96796680367f61bec17a4e97a3"}},{"ruleId":"D1","level":"warning","message":{"text":"WebSocketCoreImpl.handleEvent (cyclomatic 27): WebSocketCoreImpl.handleEvent has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/websocket/impl/WebSocketCoreImpl.kt"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6f361517c06ae973c10e65348504415f9eeb49fd7bd2207f5166eb56f40a97"}},{"ruleId":"D1","level":"warning","message":{"text":"HealthConnectSensorManager.requestSensorUpdate (cyclomatic 27): HealthConnectSensorManager.requestSensorUpdate has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthConnectSensorManager.kt"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acc6593bb833c17ef9ca62b2067802da78f9ffe541adf2122f1b321fdf6d7b1"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaPlayerControlsWidget.getWidgetRemoteViews (cyclomatic 27): MediaPlayerControlsWidget.getWidgetRemoteViews has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f319140a069d339c0a988d14290212626ad2f321ef66f88e56ce8452a4a5afd"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadManagerImpl.fullSyncPreferredDataset (cyclomatic 26): ThreadManagerImpl.fullSyncPreferredDataset has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/thread/ThreadManagerImpl.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a981d899b8ca68b1b75d74ffda68b69718fa008e93b65a184db1d5eeb5a7bdb"}},{"ruleId":"D1","level":"warning","message":{"text":"LocationSensorManager.shouldEnableHighAccuracyMode (cyclomatic 24): LocationSensorManager.shouldEnableHighAccuracyMode has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"e044ba810ed034db4c6f63e456287ed5ca4f7602bab5491dc57afd769519d84d"}},{"ruleId":"D1","level":"warning","message":{"text":"MainViewKt.MainView (cyclomatic 23): MainViewKt.MainView has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/views/MainView.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63d125131968a129f146d9bece07baa6c89cb109974900b094cb550edafcb8d"}},{"ruleId":"D1","level":"warning","message":{"text":"DeviceCommandsKt.commandBleTransmitter (cyclomatic 23): DeviceCommandsKt.commandBleTransmitter has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/notifications/DeviceCommands.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"228e4a95d6b2a073081f1b7b0fc5e7ca75a177586ffcbbaa59f3eefa2d27d42a"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsFragment.onCreatePreferences (cyclomatic 22): SettingsFragment.onCreatePreferences has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsFragment.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbac96d859df875e7757f27da0612fbaa676ee700399b4ff22d1243535b64064"}},{"ruleId":"D1","level":"warning","message":{"text":"WearToggleChip.entityToggleChipBackgroundColors (cyclomatic 21): WearToggleChip.entityToggleChipBackgroundColors has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/util/WearToggleChip.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b2b85a3e5c3adf1c8aeb635ba59541f7ddaaf045fb764a32d3ea09233c1b1e"}},{"ruleId":"D1","level":"warning","message":{"text":"WearToggleChipColors.equals (cyclomatic 20): WearToggleChipColors.equals has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/util/WearToggleChip.kt"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8309f17e9e9318b1b628418193d41847f12930d5a97647db2d6e55a9b68dd5"}},{"ruleId":"D1","level":"warning","message":{"text":"HealthServicesSensorManager.updateHealthServices (cyclomatic 19): HealthServicesSensorManager.updateHealthServices has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: HealthServicesSensorManager.getActivityIcon (cyclomatic 49) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthServicesSensorManager.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2d9be06acb44b105a6a4fff757f3d524bb958103af1cb92b45c936e6a32735"}},{"ruleId":"D1","level":"warning","message":{"text":"IntegrationRepositoryImpl.registerSensor (cyclomatic 19): IntegrationRepositoryImpl.registerSensor has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/impl/IntegrationRepositoryImpl.kt"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc14b8fb749fe13a74bc2566f019eaf2f436a98a258bec144c411302b6a8da4f"}},{"ruleId":"D1","level":"warning","message":{"text":"SensorManager.onSensorUpdated (cyclomatic 19): SensorManager.onSensorUpdated has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorManager.kt"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbceb0f464a9d70ddd60a5528c54003de8272279fa7410bdadb08fc524605a9"}},{"ruleId":"D1","level":"warning","message":{"text":"OnSwipeListener.onTouch (cyclomatic 19): OnSwipeListener.onTouch has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/util/OnSwipeListener.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eedcfe141a89228ffece27c1b464a849b9d27798a02bc384b7090686d011d3"}},{"ruleId":"D1","level":"warning","message":{"text":"Migration37to38.onPostMigrate (cyclomatic 18): Migration37to38.onPostMigrate has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f1cfb84cde2586807f9ed642ddb5e9d6bf1f03ac0a15b8a25b576d205b092e"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagingManager.createOpenUriPendingIntent (cyclomatic 18): MessagingManager.createOpenUriPendingIntent has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb187a49e8abf52fe62e1b2625b794b0b6ebdc93e7d76ac11c94674d0854c161"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagingManager.notifyMissingPermission (cyclomatic 18): MessagingManager.notifyMissingPermission has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e26eda1f8b93921a1b5a276d19b6f9af2cbce09c654c019adaa1d02408603f"}},{"ruleId":"D1","level":"warning","message":{"text":"LocationTrackingViewKt.LocationTrackingHistoryRow (cyclomatic 18): LocationTrackingViewKt.LocationTrackingHistoryRow has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/developer/location/views/LocationTrackingView.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a5e2ccb8728d6bf901bcf7e1a512c07abbeb50fade20af504fb58267ef883d"}},{"ruleId":"D1","level":"warning","message":{"text":"WidgetDynamicFieldAdapter.onBindViewHolder (cyclomatic 18): WidgetDynamicFieldAdapter.onBindViewHolder has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/common/WidgetDynamicFieldAdapter.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c298f4ce118803dc6cde531c9e6f7358463c5e43bcec11a8d930663096cdbf"}},{"ruleId":"D1","level":"warning","message":{"text":"LocationSensorManager.setupLocationTracking (cyclomatic 17): LocationSensorManager.setupLocationTracking has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b3f251e01434c3fb0f8a467cd4004d911e7805105530d4133c0ff49e6a424f"}},{"ruleId":"D1","level":"warning","message":{"text":"LocationSensorManager.handleGeoUpdate (cyclomatic 17): LocationSensorManager.handleGeoUpdate has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc054e0dfe151e654c5743d38e789e3fdb7dc20c70d805660685ef81a137ea4b"}},{"ruleId":"D1","level":"warning","message":{"text":"ThermostatTile.onTileRequest (cyclomatic 16): ThermostatTile.onTileRequest has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/tiles/ThermostatTile.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"be26f5894e0debdcbf10e56c4f382a31f8f1862dd9d3d255d6918ed3e4f2b424"}},{"ruleId":"D1","level":"warning","message":{"text":"NotificationManagerExtensionsKt.cancelNotificationGroupIfNeeded (cyclomatic 16): NotificationManagerExtensionsKt.cancelNotificationGroupIfNeeded has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/util/NotificationManagerExtensions.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"826417347860a141bea05cf058d8489d189ffb38b9f9f198c5a03a1360d0c6e8"}},{"ruleId":"D1","level":"warning","message":{"text":"LocationSensorManager.sendLocationUpdate (cyclomatic 16): LocationSensorManager.sendLocationUpdate has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"477e4a6462db7fb82d280f384307c11fb1d232f3e04ea7d981e143ae8d3db82d"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeAssistantApplication.onCreate (cyclomatic 16): HomeAssistantApplication.onCreate has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcb55ec70d7911c8937ebbcbd727329fbf9062d6d26f4819e5ba0918154354a"}},{"ruleId":"D1","level":"warning","message":{"text":"AssistViewModel.runAssistPipeline (cyclomatic 16): AssistViewModel.runAssistPipeline has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"96bae5e0622a10dbf9f1e4402f5973630e748fe612c14bdcfd7d6d147afd6856"}},{"ruleId":"D1","level":"warning","message":{"text":"CarSensorManager.setListener (cyclomatic 16): CarSensorManager.setListener has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/CarSensorManager.kt"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5742a091b8164c78d68f96ff0989dcba045d7f6560d223c8f1a4421d434df0"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsActivity.onCreate (cyclomatic 16): SettingsActivity.onCreate has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsActivity.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"663639b6e455cc61b20e5cdb8df15b4d8ff92fd535abf9ff7c1cb5257b3b1dac"}},{"ruleId":"D1","level":"warning","message":{"text":"SensorDetailFragment.onViewCreated (cyclomatic 16): SensorDetailFragment.onViewCreated has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/SensorDetailFragment.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89c65e0afae5c5c9419b3b8bc1a579f5dc57ab008ca8623ccb9ebed9c59e1ef"}},{"ruleId":"D2","level":"warning","message":{"text":"EntityKt.getIcon (cognitive 101): EntityKt.getIcon has cognitive complexity 101 (threshold 15). Drivers by points: if/else 28 (61 pts), match/switch 12 (40 pts) (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cdc43fda753fabcfc766c0d55194c59d7647725afd7247648c7c8ccd5451b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadManagerImpl.fullSyncPreferredDataset (cognitive 94): ThreadManagerImpl.fullSyncPreferredDataset has cognitive complexity 94 (threshold 15). Drivers by points: error handling 10 (52 pts), if/else 10 (37 pts), boolean chains 5 (nesting depth added 69). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/thread/ThreadManagerImpl.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d08cb9c43f0236574634016cf5bb9c1ce8d921ed919b849f7ebb5d0c56c99f3"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagingManager.handleMessage (cognitive 85): MessagingManager.handleMessage has cognitive complexity 85 (threshold 15). Drivers by points: if/else 23 (56 pts), boolean chains 20, match/switch 3 (6 pts), error handling 1 (3 pts) (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec99fa93473ac03239183d3ea636b09ef4e0801437b28d3b9e336abf06dd5bf"}},{"ruleId":"D2","level":"warning","message":{"text":"SensorUpdater.syncSensorsWithServer (cognitive 70): SensorUpdater.syncSensorsWithServer has cognitive complexity 70 (threshold 15). Drivers by points: if/else 13 (28 pts), error handling 10 (24 pts), boolean chains 18 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorUpdater.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f2bde51d9d7a7f1d402cb2d64a8f251dc33bde7150544d0c270cc47e7a2161"}},{"ruleId":"D2","level":"warning","message":{"text":"FriendlyStateKt.stateResource (cognitive 65): FriendlyStateKt.stateResource has cognitive complexity 65 (threshold 15). Drivers by points: if/else 22 (60 pts), match/switch 3 (5 pts) (nesting depth added 40). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/FriendlyState.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fa58a82d7de6a60767646b5e70be2f87a310f0519b4f1de506e3bed3fe1f5d"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagingManager.handleDeviceCommands (cognitive 60): MessagingManager.handleDeviceCommands has cognitive complexity 60 (threshold 15). Drivers by points: if/else 23 (41 pts), match/switch 6 (14 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 27). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"772a15da3e8a04ebb3b544f413b0c0225a1735789e2a559bc775041be42fa1a2"}},{"ruleId":"D2","level":"warning","message":{"text":"Migration16to17.migrate (cognitive 53): Migration16to17.migrate has cognitive complexity 53 (threshold 15). Drivers by points: if/else 24 (26 pts), boolean chains 24, loops 1 (2 pts), error handling 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"640392e4acdb3bf66d61eb2fb7e79ca7b0fa7e02d2349b95658193e9d6c0e3ca"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSocketCoreImpl.handleEvent (cognitive 51): WebSocketCoreImpl.handleEvent has cognitive complexity 51 (threshold 15). Drivers by points: if/else 14 (34 pts), match/switch 2 (14 pts), error handling 2, boolean chains 1 (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/websocket/impl/WebSocketCoreImpl.kt"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d36cf4c078bd3470290dd00152e5bd66518fd747b9302cbdfecdffd2a5ed5d6"}},{"ruleId":"D2","level":"warning","message":{"text":"ManageShortcutsViewKt.CreateShortcutView (cognitive 51): ManageShortcutsViewKt.CreateShortcutView has cognitive complexity 51 (threshold 15). Drivers by points: if/else 21 (31 pts), loops 3 (8 pts), boolean chains 7, match/switch 1 (5 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/shortcuts/legacy/views/ManageShortcutsView.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a08ae018d2df290974df42964bf8206efde7043bfa37a4de7348a5cba360154"}},{"ruleId":"D2","level":"warning","message":{"text":"MainViewKt.MainView (cognitive 50): MainViewKt.MainView has cognitive complexity 50 (threshold 15). Drivers by points: if/else 14 (38 pts), loops 2 (7 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/views/MainView.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f7411661b2e5afa2e2fa24c8d59a98b65db853c48ac63500c59cc4f6600077"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlayerControlsWidget.getWidgetRemoteViews (cognitive 49): MediaPlayerControlsWidget.getWidgetRemoteViews has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (30 pts), error handling 4 (10 pts), boolean chains 6, match/switch 1 (3 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee4c00c0f05a67cd971eeb8bd9a14ac47316d5e6bee607bf7553c8abf664bc8"}},{"ruleId":"D2","level":"warning","message":{"text":"EntityKt.binarySensorIcon (cognitive 48): EntityKt.binarySensorIcon has cognitive complexity 48 (threshold 15). Drivers by points: if/else 24 (47 pts), match/switch 1 (nesting depth added 23). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"4247da2e6111965bc6515c4be2a9e7cd9b0f1f1ffbffb3eced8e8e57610a9293"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationManagerExtensionsKt.cancelNotificationGroupIfNeeded (cognitive 38): NotificationManagerExtensionsKt.cancelNotificationGroupIfNeeded has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (33 pts), boolean chains 5 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/util/NotificationManagerExtensions.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c06d490901b0c79807f208f04ba385d5528b6c32e3c61dbbd64426dda2864a"}},{"ruleId":"D2","level":"warning","message":{"text":"SensorDetailViewKt.SensorDetailView (cognitive 37): SensorDetailViewKt.SensorDetailView has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (21 pts), match/switch 4 (11 pts), boolean chains 5 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/views/SensorDetailView.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15df48008d5bda1a09ed2cce3be859f74d9d5511b80bc382003f97ecbfe5dcc"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationSensorManager.shouldEnableHighAccuracyMode (cognitive 32): LocationSensorManager.shouldEnableHighAccuracyMode has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 10, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c8aef05fac0b66472d91889ce9945cdfc8f0bdcf9a006c2849ab43e405f79b"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.onCreatePreferences (cognitive 32): SettingsFragment.onCreatePreferences has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 4, error handling 1 (4 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsFragment.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6514c1d2f0f4e2c7653cc989a13c68c9a27ece3cd7471753153fcd01710e0bd6"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationViewModel.onCreate (cognitive 31): ConversationViewModel.onCreate has cognitive complexity 31 (threshold 15). Drivers by points: error handling 4 (16 pts), if/else 8 (14 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac9672536d18e0c60791d9ae55e5b17fdd5a7b9da439446ab7be9d1ab1020d0"}},{"ruleId":"D2","level":"warning","message":{"text":"ThermostatTile.onTileRequest (cognitive 31): ThermostatTile.onTileRequest has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), error handling 2 (6 pts), boolean chains 3, match/switch 1 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/tiles/ThermostatTile.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf57eb7dd7c4a3b9604d096ecdd0dcace2ad30dd75eb644bd019cd79477cf99"}},{"ruleId":"D2","level":"warning","message":{"text":"WearToggleChip.entityToggleChipBackgroundColors (cognitive 29): WearToggleChip.entityToggleChipBackgroundColors has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (18 pts), match/switch 4 (8 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/util/WearToggleChip.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacc21ff10c9f10880c7cf8e1acc24b9bd30db14e7953b828c35727567dde1bc"}},{"ruleId":"D2","level":"warning","message":{"text":"OnSwipeListener.onTouch (cognitive 29): OnSwipeListener.onTouch has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/util/OnSwipeListener.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab79486bbd86a279fdc5a7e1bf287c0a46a9b5aad61c175760ab5f41dbb5609"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationSensorManager.setupBackgroundLocation (cognitive 28): LocationSensorManager.setupBackgroundLocation has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 5 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bdcef7a1ea35bbab6817e5fdc30078a05a11595ca597a39489b7437d61eb07"}},{"ruleId":"D2","level":"warning","message":{"text":"SensorReceiverBase.onReceive (cognitive 27): SensorReceiverBase.onReceive has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 2 (8 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorReceiverBase.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9770b097f16ef5483d32ba71dc15991aa7743dfe31c5a7f263be694ad4dd1fcb"}},{"ruleId":"D2","level":"warning","message":{"text":"Migration37to38.onPostMigrate (cognitive 27): Migration37to38.onPostMigrate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (27 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"07270460248873af1b1b41d03eccb2124b157d2c7205360e1b4a63821ac50a55"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationSensorManager.handleGeoUpdate (cognitive 27): LocationSensorManager.handleGeoUpdate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (19 pts), error handling 1 (3 pts), match/switch 2 (3 pts), loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6dbdfcaf0b3d302cbaf83bd5abc99bc0536cfe56b46744b3b6ab1b493da790"}},{"ruleId":"D2","level":"warning","message":{"text":"HealthConnectSensorManager.requestSensorUpdate (cognitive 26): HealthConnectSensorManager.requestSensorUpdate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthConnectSensorManager.kt"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6aacf8812a5aab86e94b2188d011c6a4505d2c128120469634cd09838053e89"}},{"ruleId":"D2","level":"warning","message":{"text":"EntityKt.coverIcon (cognitive 24): EntityKt.coverIcon has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 7 (13 pts), if/else 9 (11 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7f73ec0c3953b30a9f84f7ca4c86690f37405754d5ac06d79b5c68704b84c0"}},{"ruleId":"D2","level":"warning","message":{"text":"TileExtensions.setTileData (cognitive 24): TileExtensions.setTileData has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 2 (4 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/qs/TileExtensions.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"57dfbbb9d70af91f6d86916636b4b019623b659711abd4ac7297e6b3bfeb4088"}},{"ruleId":"D2","level":"warning","message":{"text":"WidgetDynamicFieldAdapter.onBindViewHolder (cognitive 24): WidgetDynamicFieldAdapter.onBindViewHolder has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, error handling 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/common/WidgetDynamicFieldAdapter.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"77912404b0f41f5e9a0bd2497b095391c97a52416d211f63b010b3507a5530b9"}},{"ruleId":"D2","level":"warning","message":{"text":"EntityKt.sensorIcon (cognitive 23): EntityKt.sensorIcon has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 3 (11 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6fa58fff707797db088a5033ca19d6f46c7bb2bd612b57ace852af2888b0f8"}},{"ruleId":"D2","level":"warning","message":{"text":"ManageControlsViewKt.ManageControlsView (cognitive 23): ManageControlsViewKt.ManageControlsView has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 6 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/controls/views/ManageControlsView.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"191088b0927795c5c8d0127cd77bc3edd76f0ed65de823338cda1da8e6c6b3a9"}},{"ruleId":"D2","level":"warning","message":{"text":"EntityGridVehicleScreen.createEntityGrid (cognitive 23): EntityGridVehicleScreen.createEntityGrid has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 2 (8 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/vehicle/EntityGridVehicleScreen.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcf9329384409aa76c286802a8993786bf7fd7e88eec70fdbd1532f69fb6538"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraWidget.getWidgetRemoteViews (cognitive 23): CameraWidget.getWidgetRemoteViews has cognitive complexity 23 (threshold 15). Drivers by points: error handling 4 (12 pts), if/else 6 (9 pts), match/switch 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/camera/CameraWidget.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"496901e050297276000a0fa74c963d3552bb6b23db30e8b9473e2a2ba0f747a3"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationSensorManager.sendLocationUpdate (cognitive 22): LocationSensorManager.sendLocationUpdate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 3, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf42bcb5309207053eee158d2f33543e277790d721654496ae2170914e51e7e6"}},{"ruleId":"D2","level":"warning","message":{"text":"ButtonWidget.callConfiguredAction (cognitive 21): ButtonWidget.callConfiguredAction has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (15 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidget.kt"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39d933e5061d0403e641caf2c8256ef650d73b6b295c8f6697df7f824e24f7b"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationRepositoryImpl.registerSensor (cognitive 20): IntegrationRepositoryImpl.registerSensor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/impl/IntegrationRepositoryImpl.kt"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c321dddade301dcee88696baf7188ad0cc9f9f800e76fae780d356d6dc7833c"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagingManager.createOpenUriPendingIntent (cognitive 20): MessagingManager.createOpenUriPendingIntent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, error handling 1 (2 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a2da4cee3541aa649ea518b3435f6bcb61e61a86ee30100b36f989db04ac29"}},{"ruleId":"D2","level":"warning","message":{"text":"TileExtensions.tileClicked (cognitive 20): TileExtensions.tileClicked has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/qs/TileExtensions.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1931e870bddd8e4d9876c57a29a9a4e988cc5febae2e1b0ab0989e021e972f"}},{"ruleId":"D2","level":"warning","message":{"text":"WebsocketManager.collectNotifications (cognitive 20): WebsocketManager.collectNotifications has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (7 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/websocket/WebsocketManager.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7682b0825db5171d71da6c3d279a5085a1e4d49c0c9907274c32573bd855c642"}},{"ruleId":"D2","level":"warning","message":{"text":"WearToggleChipColors.equals (cognitive 19): WearToggleChipColors.equals has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/util/WearToggleChip.kt"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5dec14a433aeeeb82f0861f02b523df5206a6a13005d2b20d4f9c6b4f646085"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagingManager.handleActions (cognitive 19): MessagingManager.handleActions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), match/switch 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a9db921a8301a11dc6641cc647045ec6be8e48d129ff2eb74a901d8ed61f71"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationViewModel.setPipeline (cognitive 18): ConversationViewModel.setPipeline has cognitive complexity 18 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 4 (7 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"b072bc83d3e7d3ce9b8c47b21f2c93a7646be0359acb2f2a3bd44b6a727598e5"}},{"ruleId":"D2","level":"warning","message":{"text":"HealthServicesSensorManager.updateHealthServices (cognitive 18): HealthServicesSensorManager.updateHealthServices has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 3, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthServicesSensorManager.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed834f30f7399a6b2885406f0ed012fe5933e3f17b704e08c311fcf06f408aab"}},{"ruleId":"D2","level":"warning","message":{"text":"IBeaconMonitor.setBeacons (cognitive 18): IBeaconMonitor.setBeacons has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/bluetooth/ble/IBeaconMonitor.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18d80d0dfa0e3eef98421351865b9b3a18e8cda1527a49fad313d467b105be5"}},{"ruleId":"D2","level":"warning","message":{"text":"DeviceCommandsKt.commandBleTransmitter (cognitive 18): DeviceCommandsKt.commandBleTransmitter has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 4 (10 pts), if/else 8 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/notifications/DeviceCommands.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"029954c205733414123494a17d04788fb5d24e45d71137c82801443561d1cbf4"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeAssistantApplication.onCreate (cognitive 18): HomeAssistantApplication.onCreate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"de64301a2e7791845b5d37328a95b67621398dc94865f49f742e960bb0aa0cbc"}},{"ruleId":"D2","level":"warning","message":{"text":"CarSensorManager.requestSensorUpdate (cognitive 18): CarSensorManager.requestSensorUpdate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 1 (5 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/CarSensorManager.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7703b769938dbe8276ef9c42ce71e54f922e73bbbe63e0e325f79ee736f6f6"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraTile.onTileResourcesRequest (cognitive 17): CameraTile.onTileResourcesRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 8). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/tiles/CameraTile.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4e0c26971a00788ad483020bcdf1f6b0fcb44075b08830c9eca1dd2988ce69"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationTrackingViewKt.LocationTrackingHistoryRow (cognitive 17): LocationTrackingViewKt.LocationTrackingHistoryRow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 4, match/switch 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/developer/location/views/LocationTrackingView.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb7b7a94ffe2b3d391f3796d3c5d1a20e89a128178c6a67ca1d4c06e9ec0e17"}},{"ruleId":"D2","level":"warning","message":{"text":"SensorDetailViewModel.setEnabled (cognitive 17): SensorDetailViewModel.setEnabled has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/SensorDetailViewModel.kt"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed63554f715056355d51f821e5d98a9d9037d24277aedc6678c1811c23e7b8c"}},{"ruleId":"D2","level":"warning","message":{"text":"SensorDetailViewKt.SensorDetailTopPanel (cognitive 17): SensorDetailViewKt.SensorDetailTopPanel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/views/SensorDetailView.kt"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f70d551d47d4c5949ee0cd38860b1dc2ae4c6449d5a181c32773f2de34c45a9"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraWidgetConfigureActivity.onCreate (cognitive 17): CameraWidgetConfigureActivity.onCreate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/camera/CameraWidgetConfigureActivity.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2a894e85da8814462f27819b6734cb0589c4dba789c2dbefb66be219193bd2"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneStateSensorManager.updateSimSensor (cognitive 16): PhoneStateSensorManager.updateSimSensor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 1 (3 pts), match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/PhoneStateSensorManager.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a415987bc2855ecf2161ae8148e07e0871308edb82c3ba16fd54ea229bac4d"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationSensorManager.setupLocationTracking (cognitive 16): LocationSensorManager.setupLocationTracking has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 7, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ebeb28db5cf72f4c97611fec448717476c5599ea139891d71f09ffabb1907b"}},{"ruleId":"D2","level":"warning","message":{"text":"CarSensorManager.setListener (cognitive 16): CarSensorManager.setListener has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/CarSensorManager.kt"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d1f2e69565688a48890647e230bb7dc39d8f9d81f13a239e52d1d08600c3e9"}},{"ruleId":"D2","level":"warning","message":{"text":"ButtonWidgetConfigureActivity.onCreate (cognitive 16): ButtonWidgetConfigureActivity.onCreate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, error handling 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidgetConfigureActivity.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fac2201969cb269c2e18fa922fbda483af6e1ca43129e8c8ff5128f846ba4ca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FakePlayer: TooManyMethods \u2014 123 methods. The bar is 30 methods; this is 93 over it, 4.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/util/compose/media/player/FakePlayer.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa0bb94fb8abbeb08e4af3a1e1474263eb51629290061c9ee44096b06a8ad93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: notifications/MessagingManager.kt: FileTooLong \u2014 1497 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 997 over it, 2.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a23a9063c46b22af115c8f956f1dd773fcbd9784aa970bb9da0cc5c8a049c4f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MediaPlayerControlsWidget.getWidgetRemoteViews: MethodTooLong \u2014 getWidgetRemoteViews runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac3a1a366e80d1c2b953a5f726a6352611d7138b836f514d9bf8624c3df300b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LocationSensorManager: ClassTooLong \u2014 923 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 523 over it, 2.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ff0715ee6e8e8cc4922da6d87e1e81f02262cf64c1cc9445e01545a993cebe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrefsRepositoryImpl: TooManyMethods \u2014 69 methods. The bar is 30 methods; this is 39 over it, 2.30\u00D7 the bar. Most of these members implement prefs.PrefsRepository (68 of 69 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/prefs/PrefsRepositoryImpl.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca5dac2195cc3c4a6721d3f0c4c67097295eeecee80e5e3634f212f72322174"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HealthConnectSensorManager: ClassTooLong \u2014 838 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 438 over it, 2.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthConnectSensorManager.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b597927448ea12e712184313602d88d3c8c57affc5cabed955a5d15e40ad0276"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: integration/Entity.kt: FileTooLong \u2014 1030 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 530 over it, 2.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"829e92dd8bfba06bc99079f47955bd88bd1eaebc1a15c0047a26f4515bd311c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MainViewKt.MainView: MethodTooLong \u2014 MainView runs 206 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 106 over it, 2.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/views/MainView.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"540a57f947064dab92634ba0be68f082d3fbfcd92cdf921b1e99e542b84862ef"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EntityKt.getIcon: MethodTooLong \u2014 getIcon runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb738491b5577804946d6b7cb2c2a9022e912ae6a4514950cd613d352fb5bcf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ManageShortcutsViewKt.CreateShortcutView: MethodTooLong \u2014 CreateShortcutView runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/shortcuts/legacy/views/ManageShortcutsView.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c625a4071502419fd4d5eaa11b645a8dded7ce313822b8c0d347467d3f45c71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sensors/LocationSensorManager.kt: FileTooLong \u2014 980 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: LocationSensorManager (60-1390). The bar is 500 significant lines; this is 480 over it, 1.96\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9294cc5001a4c29508f6c59968541efa42dabe650d440d246ce9e13504e16d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeAssistantApplication.onCreate: MethodTooLong \u2014 onCreate runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf8e9b60b3e06a69c3ddefc7b82c40b844a0738d4b0b04c27054a0a9891208a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MessagingManager: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7428e0027770c8a2c5370e824bb0d454ca8d8d5502e149de238b7976f7b763fe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IntegrationRepositoryImpl: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\u00D7 the bar. Most of these members implement integration.IntegrationRepository (39 of 54 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/impl/IntegrationRepositoryImpl.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbe640d828bcc52f7fec2bb37a4e117d2575b3570eb98fbec49972a3ca6edc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sensors/HealthConnectSensorManager.kt: FileTooLong \u2014 904 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: HealthConnectSensorManager (69-1167). The bar is 500 significant lines; this is 404 over it, 1.81\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthConnectSensorManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d23fd5d4e7a6fd5f5cf7fa62ef311096390fd33769d9e741a534c2261284672"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FrontendViewModel: TooManyMethods \u2014 53 methods. The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendViewModel.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"983ef880343a0657cb453869708e1943a1a26baca86cf2afe6c966f7abbb088d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HealthConnectSensorManager: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthConnectSensorManager.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7cd7c7d4be9fd114e3dd48d8e91ec32d7d0864d24f697e102fad7b610c69ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsViewKt.SettingsView: MethodTooLong \u2014 SettingsView runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/views/SettingsView.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ad3167cf25997317f64c438d93e189d7ec6a5c251b0b82e2fbce9bf90a0a74"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebSocketCoreImpl: ClassTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 210 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/websocket/impl/WebSocketCoreImpl.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8ee3a1a3b6c16d109b5fecfacc00f7f983cb551cc22ea53b11621b075f1aa4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: impl/WebSocketCoreImpl.kt: FileTooLong \u2014 754 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: WebSocketCoreImpl (142-1263). The bar is 500 significant lines; this is 254 over it, 1.51\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/websocket/impl/WebSocketCoreImpl.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39aee6e6a462e4e5612d80b9e15f655fc724de244e60081a3bf3ad0377eab27"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainViewModel: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/MainViewModel.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f58cc26df129705e526dcc0c22debd88b187e2f00434b597243794e09327e8b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SensorUpdater.syncSensorsWithServer: MethodTooLong \u2014 syncSensorsWithServer runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorUpdater.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"de52d17ce1516fd694439f0b2cd5c1cd3f01d4bf3da2ab53b36cc28226f65a1a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: frontend/FrontendScreen.kt: FileTooLong \u2014 742 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 242 over it, 1.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"229693b46b6835848c34ece3ec867bd980f3d710bf140ee15503e2449b99de4d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FrontendViewModel: ClassTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 183 over it, 1.46\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendViewModel.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9c70f126385f72890e073cd7e9c345c74f1c6f7e4270afe4b79119169126f2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebSocketRepositoryImpl: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. Most of these members implement websocket.WebSocketRepository (34 of 40 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/websocket/impl/WebSocketRepositoryImpl.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3cb6abb39fb663ea9aaaa8c9021031b472508b0be23bdbda74d99955f51a19"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: frontend/FrontendViewModel.kt: FileTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: FrontendViewModel (115-1346). The bar is 500 significant lines; this is 177 over it, 1.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22d2196780ca4c1f40489a231abcce8b4f26c1b4c006ec6159c71bb8296294b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebSocketCoreImpl: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/websocket/impl/WebSocketCoreImpl.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"947e988e13a74e89928010d2c773df8b9d7dcba0e0fe8b7477d307a7dfba6b27"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MediaPlayerControlsWidget: ClassTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 127 over it, 1.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"228ab49935f5d3aa020171b78f345a87784bd345f05eb762e7f2d2727f73925f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SsidViewKt.SsidView: MethodTooLong \u2014 SsidView runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/ssid/views/SsidView.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e22a8cf85708132e4ea94f263621df7867b397d2e8242ca3d7b146b24bfe0a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Migration37to38.onPostMigrate: MethodTooLong \u2014 onPostMigrate runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6265ea99a2890136be2d5554f0fdf920db4c81114881911d4ed43e4f97337c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocationSensorManager: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ef68f0c42d75ea6552b3b413291a4381262ee7d4b38443f05025a4000cc6be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: migration/DatabaseMigration.kt: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 111 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1924fe5a081f7eff054ab9f8af01c3ba61555311a0df96d36de58d5c06121278"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LocationSensorManager.sendLocationUpdate: MethodTooLong \u2014 sendLocationUpdate runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"4882960d869d13098848fe01769e9a37814a8a1c6a8a6a081c4ce561f0a085e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HomePresenterImpl: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. Most of these members implement home.HomePresenter (33 of 35 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/HomePresenterImpl.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"13eb206b2d49b89cf19606a0796f83b43834a01913ade08c95ae62d318390ebd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: views/SensorDetailView.kt: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 67 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/views/SensorDetailView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3ec1080750421b8545a4b0f845c1352bdaaafac1a6fa439a332ca1f4ca35f0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SensorRepositoryImpl: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorRepositoryImpl.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f54cd43cedd38c57351b072e3d52d4c32744504b0af55f2183938082fba6b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mediaplayer/MediaPlayerControlsWidget.kt: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: MediaPlayerControlsWidget (42-768). The bar is 500 significant lines; this is 65 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ad45332c006e9103c5811f15214d8198a9266ec9b59546164fcfaf812319f8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IntegrationRepositoryImpl: ClassTooLong \u2014 439 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 39 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/impl/IntegrationRepositoryImpl.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45816933aa59e92e5ce1f8437145a6a4f6bf0f863d506433b7c71265884e17c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NetworkSensorManager: ClassTooLong \u2014 438 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 38 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/NetworkSensorManager.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1274daf44f6e3aced681b2230152a2c4942022871201be1e1e0a05d9a3d446"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ButtonWidgetConfigureActivity.onCreate: MethodTooLong \u2014 onCreate runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidgetConfigureActivity.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"52912b8aef12e83ebd43f79074c26d6d6d791bf9c6738a1135e0f966c5c133dc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Migration16to17.migrate: MethodTooLong \u2014 migrate runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"e737fadf8c2b9f4eb6f0f4bb245515509de8487513d65352b79433b705776d44"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CarSensorManager: ClassTooLong \u2014 426 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 26 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/CarSensorManager.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c03f4db39199ab023ea6b4cfbea845002c63eecaa2cd72e19b52be183e350e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/AssistSheet.kt: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 25 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/assist/ui/AssistSheet.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbed8414b49836978d6158fcf302aeea95b64e598770342b4fb645f4b42b6e2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: impl/IntegrationRepositoryImpl.kt: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: IntegrationRepositoryImpl (72-750). The bar is 500 significant lines; this is 7 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/impl/IntegrationRepositoryImpl.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"844ede56ffbad1ca98d1eca3169327d11f98e86cb06443995ee7268f3850af1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 28 shared lines): app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:463-496 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:559-592 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:657-690 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:692-725 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:727-760 \u2014 These 5 members are variants of one another: a block of 28 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"a788b70368a80563a8228a5d1b1182ad85f776e80ec00ef2bdaf43d73aa88725"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (38 shared lines): wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt:286-337 | app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt:428-495 \u2014 These two members are variants of one another: 38 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"e672b88c6749593e2bb5dbf21805db0308b1af64a8bf34cc3a553d2245cd3721"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt:973-995 | app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt:999-1026 | app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt:1030-1053 | app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt:1057-1078 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"f200a64de90dced1f13798b19ede25dde3a91efd4776d8b806a75d018a403596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): wear/src/main/kotlin/io/homeassistant/companion/android/home/views/SetCameraTileView.kt:42-90 | wear/src/main/kotlin/io/homeassistant/companion/android/home/views/SetThermostatTileView.kt:47-95 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/kotlin/io/homeassistant/companion/android/home/views/SetCameraTileView.kt:42\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: \u0060DEFAULT_REFRESH_INTERVAL\u0060 names \u0060io.homeassistant.companion.android.tiles.CameraTile.Companion.DEFAULT_REFRESH_INTERVAL\u0060 in one and \u0060io.homeassistant.companion.android.tiles.ThermostatTile.Companion.DEFAULT_REFRESH_INTERVAL\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/views/SetCameraTileView.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b4d79f8e04084e4e674877f5c00335c7b653f1ce3f5fffb7b0ded23a85f3ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/OnboardingPresenterImpl.kt:44-88 | wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/manual/ManualSetupPresenterImpl.kt:36-80 \u2014 before extracting anything, compare \u0060wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/OnboardingPresenterImpl.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/manual/ManualSetupPresenterImpl.kt\u0060 as WHOLE FILES: 89% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/manual/ManualSetupPresenterImpl.kt:36\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/OnboardingPresenterImpl.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4107a316aa107c842abf8a0f0887592616fbec39fca61e18faa3903fc3913bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt:229-268 | wear/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt:88-127 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt:229\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c575ea7dfe224b41aada264094d11c00726a243e8642958b6af3312021d6bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:514-544 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:612-642 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:514\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b823f28ef3b46d3bbef1fd3f205e0bb0a39b2c64077cbe26f92c23e76327b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 3): app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureViewModel.kt:213-238 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidgetConfigureViewModel.kt:169-195 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidgetConfigureViewModel.kt:152-177 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureViewModel.kt"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b8f15e58dc595222fcb51357e4d29632505443068576abdcf79285976d65eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt:136-159 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidgetConfigureScreen.kt:116-139 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt\u0060 and \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidgetConfigureScreen.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt:136\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"9092afba7b60dd8a208ee9a631dcfba049d860e25bdfd36c9eeca7679107936f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt:144-164 | wear/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt:56-76 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt:144\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt:167\u0060 calls \u0060addAction\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt:79\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8de8382273d151df0c20e6d3540d1c0cc41efe05810f095d37c99b680ab61c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/sensors/NotificationListenerSensorManager.kt:158-178 | app/src/main/kotlin/io/homeassistant/companion/android/sensors/NotificationListenerSensorManager.kt:197-217 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/sensors/NotificationListenerSensorManager.kt:158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/NotificationListenerSensorManager.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c721335fa505a13d42fd2f4cf5d3462355b753431bce644f711b2eae8e5108"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/OnboardingPresenterImpl.kt:124-143 | wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/manual/ManualSetupPresenterImpl.kt:83-101 \u2014 before extracting anything, compare \u0060wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/OnboardingPresenterImpl.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/manual/ManualSetupPresenterImpl.kt\u0060 as WHOLE FILES: 89% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/onboarding/OnboardingPresenterImpl.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d559354e48d64ce334b460215cb79642df301709c642920a08a6b983d643543e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt:445-463 | wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt:299-317 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt:445\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt:464\u0060 calls \u0060restartInactivityTimer\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt:318\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b77c6688ebf322292802366e6abcfc0bac3397248c981831e28c34b1bea807a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt:379-397 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidgetConfigureScreen.kt:264-282 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt\u0060 and \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidgetConfigureScreen.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidgetConfigureScreen.kt:264\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0115d2246de9e07ebd22068ea6224f32c5b55b73d4d82206ecd3847f9a0187b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/NetworkSensorManager.kt:441-458 | common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/NetworkSensorManager.kt:524-541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/NetworkSensorManager.kt:441\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/NetworkSensorManager.kt"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad360b0c8b46e9d5c47840b0d08bf14c5bf936732ce575b5d1014357ce2b9c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt:979-995 | app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt:1010-1026 | app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt:1037-1053 | app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt:1062-1078 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt:979\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"8254bf4438012784b91d10369a6135269b0c997da7fe19d67a80e2cc337fa064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:478-493 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:574-589 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:672-687 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:707-722 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:742-757 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:478\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d5c9bd8659675c8fa0e04371d33985077b2095bfc693e1e2ec341458aa4503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureViewModel.kt:250-265 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidgetConfigureViewModel.kt:189-204 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureViewModel.kt:250\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureViewModel.kt"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fe2cbe7d006503963a9903d4f213b50b21c6b700be7a984efd4cf1787dbf94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/full/kotlin/io/homeassistant/companion/android/settings/wear/views/SettingsWearFavoritesView.kt:73-87 | app/src/full/kotlin/io/homeassistant/companion/android/settings/wear/views/SettingsWearLandingView.kt:54-68 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/full/kotlin/io/homeassistant/companion/android/settings/wear/views/SettingsWearFavoritesView.kt:73\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/full/kotlin/io/homeassistant/companion/android/settings/wear/views/SettingsWearFavoritesView.kt:72\u0060 calls \u0060dismiss\u0060 and \u0060app/src/full/kotlin/io/homeassistant/companion/android/settings/wear/views/SettingsWearLandingView.kt:53\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/settings/wear/views/SettingsWearFavoritesView.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a485ea039d304cf5a8cdb21fe934693faec274f7e31133980f9c997807e9b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidget.kt:135-148 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/camera/CameraWidget.kt:226-240 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidget.kt:135\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidget.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8e55e0118768dbeadd6b4d7571e09c221e49dd7bf9e0c6b6cad62d3360aa19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/debug/kotlin/io/homeassistant/companion/android/developer/catalog/HAUserInputScreen.kt:110-123 | app/src/debug/kotlin/io/homeassistant/companion/android/developer/catalog/HAUserInputScreen.kt:158-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/debug/kotlin/io/homeassistant/companion/android/developer/catalog/HAUserInputScreen.kt:110\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/debug/kotlin/io/homeassistant/companion/android/developer/catalog/HAUserInputScreen.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf201e0ddb9d701e0642c4ceb3c9fa8e6181de5229d1290fcbc7e43917c51356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt:132-145 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidgetConfigureScreen.kt:128-141 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidgetConfigureScreen.kt:143\u0060 calls \u0060fillMaxSize\u0060 and \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt:147\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"5afd7910cba87d17b071f557b3cfe40dfc339af7c386565e2df96fc027a3e32c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt:409-421 | wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt:271-282 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt:409\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060AssistMessage\u0060 names \u0060io.homeassistant.companion.android.assist.ui.AssistMessage\u0060 in one and \u0060io.homeassistant.companion.android.conversation.views.AssistMessage\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt:423\u0060 calls \u0060restartInactivityTimer\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt:283\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0af6b5c0459b9abfc5cd33753850c092c58693425dd52cc6af03b938956c14a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/PhoneStateSensorManager.kt:283-295 | common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/PhoneStateSensorManager.kt:327-339 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/PhoneStateSensorManager.kt:283\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/PhoneStateSensorManager.kt"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03d3cbb3f0570fbf6c73aed3feb8ea7c0b035b02c20de198da11e14622cef07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt:467-478 | wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt:319-330 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt:464\u0060 calls \u0060restartInactivityTimer\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt:317\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc07f026fd17e2cdde2790733c84d7eaf4de8a4e12b9fc0077e2cae5364e121f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): app/src/full/kotlin/io/homeassistant/companion/android/notifications/FirebaseCloudMessagingService.kt:42-51 | wear/src/main/kotlin/io/homeassistant/companion/android/notifications/FirebaseCloudMessagingService.kt:42-52 \u2014 before extracting anything, compare \u0060app/src/full/kotlin/io/homeassistant/companion/android/notifications/FirebaseCloudMessagingService.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/notifications/FirebaseCloudMessagingService.kt\u0060 as WHOLE FILES: 95% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/full/kotlin/io/homeassistant/companion/android/notifications/FirebaseCloudMessagingService.kt:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/notifications/FirebaseCloudMessagingService.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d37224b9d287a3f0a225441f84d425ceab75c933ebe7797a9577db90c1110a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:1041-1051 | wear/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:115-125 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:1041\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:1052\u0060 calls \u0060isAtLeast\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:126\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7071639d361dc500ca70c336d79b5db690a828c6b634998796efd545285fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wear/src/main/kotlin/io/homeassistant/companion/android/home/views/DetailsPanelView.kt:219-228 | wear/src/main/kotlin/io/homeassistant/companion/android/home/views/DetailsPanelView.kt:273-282 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/kotlin/io/homeassistant/companion/android/home/views/DetailsPanelView.kt:219\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/views/DetailsPanelView.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"459153261cf4febb2bddd2cb0f9b5e51b8590d19f7fc292b096b892bd19df444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/onboarding/manualserver/ManualServerScreen.kt:113-123 | app/src/main/kotlin/io/homeassistant/companion/android/onboarding/nameyourdevice/NameYourDeviceScreen.kt:106-115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/onboarding/manualserver/ManualServerScreen.kt:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/onboarding/manualserver/ManualServerScreen.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c56f469c228807c76f8a86e9e8b4e4bb702099f048a1a12c6b09dfda9f61eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): wear/src/main/kotlin/io/homeassistant/companion/android/tiles/TileViews.kt:82-90 | wear/src/main/kotlin/io/homeassistant/companion/android/tiles/TileViews.kt:170-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/tiles/TileViews.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92559f1f9a591aaa0de851c623428c1fed4f50e47b36fb7f2b0fd115d537e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:2126-2133 | app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:2172-2179 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:2126\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":2126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5552178306eb0bcb7fd0644ff93846236323293636eb8aed33e43a03f78a6b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/BaseWidgetProvider.kt:81-88 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidget.kt:101-108 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/BaseWidgetProvider.kt:81\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/BaseWidgetProvider.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c574a91956b8d7a3a52e207ed01f1059a745c37679640affcc445b9f8e9f0197"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidget.kt:79-86 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidget.kt:232-239 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidget.kt:79\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidget.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f63723e79306b5f1fe0f168e6c523e4e7b0b923adb0a91e60fce548020612f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt:429-435 | wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt:287-293 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationViewModel.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060AssistMessage\u0060 names \u0060io.homeassistant.companion.android.assist.ui.AssistMessage\u0060 in one and \u0060io.homeassistant.companion.android.conversation.views.AssistMessage\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/assist/AssistViewModel.kt"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"189663f9f9454e5a2e041b2554ce5655855ec17dd1d72f124622f791305a2c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wear/src/main/kotlin/io/homeassistant/companion/android/tiles/CameraTile.kt:77-83 | wear/src/main/kotlin/io/homeassistant/companion/android/tiles/ThermostatTile.kt:74-81 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wear/src/main/kotlin/io/homeassistant/companion/android/tiles/CameraTile.kt:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/tiles/CameraTile.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4180d48efa49944552b395f02c6c213a311be5bf4d5a38ff32b61a2d97f2a3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): wear/src/main/kotlin/io/homeassistant/companion/android/home/views/SelectCameraTileView.kt:21-51 | wear/src/main/kotlin/io/homeassistant/companion/android/home/views/SelectThermostatTileView.kt:21-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060tiles\u0060 to \u0060List\u003CCameraTile\u003E\u0060 in one and \u0060List\u003CThermostatTile\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/views/SelectCameraTileView.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"098aabd2526438bf39c15825b12c16c1645419400ab9cc1715be4d93192ca892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/full/kotlin/io/homeassistant/companion/android/FullApplicationModule.kt:25-36 | wear/src/main/kotlin/io/homeassistant/companion/android/ApplicationModule.kt:43-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wear/src/main/kotlin/io/homeassistant/companion/android/ApplicationModule.kt:56\u0060 calls \u0060OptIn\u0060 and \u0060app/src/full/kotlin/io/homeassistant/companion/android/FullApplicationModule.kt:38\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/FullApplicationModule.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e250f2d3128e5fca73c161044ec9f6161c7f745abe1df4d9abed94947f13711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidget.kt:68-76 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidget.kt:70-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidget.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd215ed84e7a0e0fdd98e369e733a6f2916455f05f6ed3fbaec086e12782494a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt:249-260 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidgetConfigureScreen.kt:171-182 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt\u0060 and \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidgetConfigureScreen.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt:249\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidgetConfigureScreen.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfe22607c5294e832ef765dde678abaf627929e0f67029ae650dcdda4d69e9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:345-362 | wear/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:70-85 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt:345\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd126f0c6bcfae44eb4449bfa7aee7f2e5da71746470480b2f7485f1ff87750"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt:149-163 | common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt:207-221 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt:149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt:165\u0060 calls \u0060execSQL\u0060 and \u0060common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt:222\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c52de998642631540c66d11813262cdd88064b29bbfb3407b6bce0fe4994e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:500-512 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:596-608 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:500\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1ac79c25d36299f4d53da6c14530404a5f4a4445cef0cbce3cc8a0e6b702e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:464-475 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:499-510 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:560-571 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:595-606 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:658-669 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:693-704 | app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt:728-739 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfaf33e0664c92dba95c5c0bef87136a01cc87115f29b2f92e98790106c9654f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt:526-535 | common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt:548-557 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt:526\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"9945bb8f94cda249431f75881a29d6012c77cfa6aa2a9360c21001d0b2908702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt:134-140 | common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt:192-198 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dcabe546e5ac49ef99692a4b394e7f0a2108d4eb3ee4b541cd9fe743ac3723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt:128-133 | common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt:186-191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt:128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2727894efd9b2713e10086b748a9bcf64b5a6dd4edfdf096aa184d680b8f1ed"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: home-assistant-android:common: home-assistant-android:common: abstractness 0.15, instability 0.00, distance 0.85 \u2014 the shape a shared-kernel / building-block library has BY DESIGN \u2014 concrete and widely depended-on is what makes it useful, and this dimension does not penalise it (the distance is reported for completeness, not as a defect). Worth a look only if it has grown past one coherent kernel into an everything-bucket."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"053c93ced9f15499d5ed53ab3dc642388aa0430edf8232efd19903daebab32e5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainViewModel (LCOM4 6): MainViewModel\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/MainViewModel.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00fc48408a345247ffb6c0841e756fbd8b570ccb5344d8cd9bf90cbd067d6d0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DeveloperSettingsFragment (LCOM4 4): DeveloperSettingsFragment\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/developer/DeveloperSettingsFragment.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c4cd8cab7fdb651353ba5eec338e0a013e65b89ed175f7035988ed236cdaa8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt: common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 169 in EntityKt.getIcon at line 850. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/Entity.kt"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"323129f832478962cdf2f731f0eef826c5ecc8124251dd15ddd395f2224eb0f6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt: app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in MessagingManager.handleMessage at line 302. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"621416df1ed675b806c512531e7a5657824e351e951443b1ad484ea29eaae5f8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendViewModel.kt: app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendViewModel.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in FrontendViewModel.handleMessageResult at line 887. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendViewModel.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendViewModel.kt"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d79e1ccd6e0e7ee8d08c4fa1c8d2e380642bc714c3df9a2d82b6eaabea7bb7d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/settings/shortcuts/legacy/views/ManageShortcutsView.kt: app/src/main/kotlin/io/homeassistant/companion/android/settings/shortcuts/legacy/views/ManageShortcutsView.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in ManageShortcutsViewKt.CreateShortcutView at line 94. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/settings/shortcuts/legacy/views/ManageShortcutsView.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/shortcuts/legacy/views/ManageShortcutsView.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69b94250a50e7498f150b18d2c10bf8e654f5d49062ce83e0d01d5549f4d315"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/views/SensorDetailView.kt: app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/views/SensorDetailView.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in SensorDetailViewKt.SensorDetailView at line 100. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/views/SensorDetailView.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/views/SensorDetailView.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e2715c179a956e82cd15df2c646b2f1428b48ea54bc51d750717721f104ba9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt: app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in LocationSensorManager.shouldEnableHighAccuracyMode at line 532. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2805cc1427c99b244fe1a50dde6b316d5dc0050e5ab74737da6821dd2e3e05"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: common/src/main/kotlin/io/homeassistant/companion/android/common/notifications/DeviceCommands.kt: common/src/main/kotlin/io/homeassistant/companion/android/common/notifications/DeviceCommands.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in DeviceCommandsKt.commandBleTransmitter at line 124. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- common/src/main/kotlin/io/homeassistant/companion/android/common/notifications/DeviceCommands.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/notifications/DeviceCommands.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"10680b396abf2402fc21241121899662fd9df9d1a088f2cb7d4df5566b7fab06"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorUpdater.kt: common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorUpdater.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in SensorUpdater.syncSensorsWithServer at line 177. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorUpdater.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorUpdater.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2cc033483afade5ef06d8477c69343a2c3accf4d8bac069448600de903b600"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/frontend/handler/FrontendMessageHandler.kt: app/src/main/kotlin/io/homeassistant/companion/android/frontend/handler/FrontendMessageHandler.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in FrontendMessageHandler.handleMessage at line 155. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/frontend/handler/FrontendMessageHandler.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/frontend/handler/FrontendMessageHandler.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf25596db4caaa84405bc7aadeb90f48ec7cf7d87a752f938e0fc11aa717753"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt: app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in HomeAssistantApplication.onCreate at line 82. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/HomeAssistantApplication.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"b881104ebc5f13435ac1b81ff4eedc134b8bb080238a19380b2ea90738bb52b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/frontend/navigation/FrontendNavigation.kt: app/src/main/kotlin/io/homeassistant/companion/android/frontend/navigation/FrontendNavigation.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in FrontendNavigationKt.FrontendEventHandler at line 169. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/frontend/navigation/FrontendNavigation.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/frontend/navigation/FrontendNavigation.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9726cc9dc66416bb2d0d03c02437cba602d9c42e074414e5a19ce845fa1ded0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wear/src/main/kotlin/io/homeassistant/companion/android/home/views/MainView.kt: wear/src/main/kotlin/io/homeassistant/companion/android/home/views/MainView.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in MainViewKt.MainView at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- wear/src/main/kotlin/io/homeassistant/companion/android/home/views/MainView.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/views/MainView.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b4cfcea3faa5dc37ff9cc69567ddbed5d96aefca32078520424c9b52d9cf6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/settings/controls/views/ManageControlsView.kt: app/src/main/kotlin/io/homeassistant/companion/android/settings/controls/views/ManageControlsView.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in ManageControlsViewKt.ManageControlsView at line 71. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/settings/controls/views/ManageControlsView.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/controls/views/ManageControlsView.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ddd380caab163e45eb8ad6672df99c614892b8c074c4315ab95180c835eabd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorManager.kt: common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorManager.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SensorManager.onSensorUpdated at line 317. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorManager.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorManager.kt"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7267d3d376139b73ce993086cab376d2b89d7321d763b8dc9bb6186d684995"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthConnectSensorManager.kt: app/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthConnectSensorManager.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in HealthConnectSensorManager.requestSensorUpdate at line 440. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthConnectSensorManager.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthConnectSensorManager.kt"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"642b87c13e7a491bd7f7787d9ae90d2cbf11b877cda80fe5bd84fdefb1740f0a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/NetworkSensorManager.kt: common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/NetworkSensorManager.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in NetworkSensorManager.updateNetworkType at line 598. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/NetworkSensorManager.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/NetworkSensorManager.kt"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02d333b1a60eef9cba3b8451a10a434a47a171671dcf2bfe9f388fd319cfaad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/qs/TileExtensions.kt: app/src/main/kotlin/io/homeassistant/companion/android/qs/TileExtensions.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in TileExtensions.setTileData at line 145. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/qs/TileExtensions.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/qs/TileExtensions.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b20691b74f23975f8669419876a25900acd01a7551dbe6f15af55046486202c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsFragment.kt: app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsFragment.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SettingsFragment.onCreatePreferences at line 91. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsFragment.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsFragment.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bb37f01393be56eaff4583b4482edbc86d04c6cb6b14eb8647018a2d6b9022"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wear/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthServicesSensorManager.kt: wear/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthServicesSensorManager.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in HealthServicesSensorManager.updateHealthServices at line 188. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- wear/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthServicesSensorManager.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthServicesSensorManager.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"49446fd9be1ba424b9069d835a03f383a708927c7534386a95ccb08da0194f1c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/AudioSensorManager.kt: common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/AudioSensorManager.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in AudioSensorManager.updateAudioState at line 283. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/AudioSensorManager.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/AudioSensorManager.kt"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"68458a88e54848921e46b9518e6657834bf0040f40ec9ac9aaeb6639e732b982"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsActivity.kt: app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsActivity.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in SettingsActivity.onCreate at line 82. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsActivity.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/SettingsActivity.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b9b85bd58bd8831c9cedaa6fe806b9ba2278c24b437633f2bb89a3ba704b04"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: wear/src/main/kotlin/io/homeassistant/companion/android/tiles/ThermostatTile.kt: wear/src/main/kotlin/io/homeassistant/companion/android/tiles/ThermostatTile.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ThermostatTile.onTileRequest at line 68. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- wear/src/main/kotlin/io/homeassistant/companion/android/tiles/ThermostatTile.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/tiles/ThermostatTile.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9750000c53792ca864bbf24ad8245d083892145965a3b3cc4b9d39a1811d4ec7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidgetConfigureActivity.kt: app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidgetConfigureActivity.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in ButtonWidgetConfigureActivity.onCreate at line 212. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-30..2026-09-28, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-30 16:33:30 \u002B02:00\u0027 --until=\u00272026-09-28 16:33:30 \u002B02:00\u0027 --full-history --no-merges -- app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidgetConfigureActivity.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidgetConfigureActivity.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad05451510519fa599749da4b4f7904a86f4050855ea56cde36ec13c6590170"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 166 significant file(s) lose their only recent owner: app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendViewModel.kt, app/src/main/kotlin/io/homeassistant/companion/android/frontend/FrontendScreen.kt, common/src/main/kotlin/io/homeassistant/companion/android/database/migration/DatabaseMigration.kt, common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/impl/IntegrationRepositoryImpl.kt, app/src/main/kotlin/io/homeassistant/companion/android/widgets/mediaplayer/MediaPlayerControlsWidget.kt, wear/src/main/kotlin/io/homeassistant/companion/android/home/views/HomeView.kt, wear/src/main/kotlin/io/homeassistant/companion/android/home/MainViewModel.kt, app/src/main/kotlin/io/homeassistant/companion/android/util/compose/entity/EntityPicker.kt (\u002B158 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"67f863e1182e1c0a7f732581533932c3b89ea0ce21232057646673db49539763"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO drop this requirement https://github.com/home-assistant/android/issues/5931"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c4c70fe72c435a7b54332f1f71f28a7c05be4e1a9ed8083a2d8dcbd8932059"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO drop this requirement https://github.com/home-assistant/android/issues/5931"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c9435718c761c0f8b039bdebb673c9e3f5c615cfa0ae9684599b4604b0e2f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO drop this requirement https://github.com/home-assistant/android/issues/5931"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/sensors/LocationSensorManager.kt"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd64912cc337448147cda87945df2f87cc4556cce44caa456e53900dec11f14e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO drop this requirement https://github.com/home-assistant/android/issues/5931"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/util/compose/LocationPermissionState.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4f2c1fc5cc57280c181eb78ac0880f4975990085410a584cf146862a387d2d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO use new theme for Material3 components https://github.com/home-assistant/android/issues/6300"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/full/kotlin/io/homeassistant/companion/android/settings/wear/views/SettingsWearFavoritesView.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ab5b181a705d6fd6c497ef2660c746b95c0949ad6971c9ae7a8ebf119f7c69"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Migrate IconDialog to Material 3 https://github.com/home-assistant/android/issues/7156"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/qs/ui/ManageTilesScreen.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"610a69d02f10326e86f1927c5472abd885789f8ae5d108c69c46f9facf973169"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Drop the explicit HATheme once SensorDetailView is migrated \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/sensor/views/SensorDetailView.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d432a4f6e644013b9934df1b902678c5ff5a8c0da014b8f30fc3e46b8b1b63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO use new theme for Material3 components https://github.com/home-assistant/android/issues/6258"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/shortcuts/legacy/views/ManageShortcutsView.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ce0d19a689fd571f12ea8b0978fb9b2df85885e10064b635d945a66e959a43"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO use new theme for Material3 components https://github.com/home-assistant/android/issues/6302"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/vehicle/views/AndroidAutoFavoritesView.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad126173bdb96968ae08646eeca35d6ab59e476ef8fe6be6928f6374221f5d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO if we make a multi entity picker we should share part of the remember that prepare the entitiesWithFields \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/util/compose/entity/EntityPicker.kt"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12c0f55523bdf723c043cefbc989c73cec8e1195b32ae5f8660807f0808bdde"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO most probably this is always false since the launch will update the boolean after we actually test \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/util/vehicle/TemplateComponents.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5db752f309ef8b0fae92c4c2d98a19f6ce79878c5d69931d24fb3931e6912b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Migrate to compose https://github.com/home-assistant/android/issues/6305"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/button/ButtonWidgetConfigureActivity.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7602c7cf845597ad3a293da29a440c9588de7f5c70417809a9a8d1d8d371328b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Migrate to compose https://github.com/home-assistant/android/issues/6306"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/camera/CameraWidgetConfigureActivity.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"374de3b4502eb2c9cc6d7069ef6724fabf3459f99c88af84cbd43b8b0bceb49a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO send error to the widget??? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/todo/TodoWidgetStateUpdater.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5ea4ca3f9ad37ee47891506ce8602748b4c68b5dcd49dae867c5ee779ccccf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO use new theme for Material3 components https://github.com/home-assistant/android/issues/6303"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/todo/TodoWidgetConfigureActivity.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba781efd6412c215b6762ad7004d91f13c537539e01355444aad0a8bd23995d9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO we could modify the entry in DB to add the error message \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/todo/TodoWidgetActions.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c73d1d2192177a2e30b4e1fcadcf93d0de92f1f91abf4499b227f13e0eeb2c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO I don\u0027t know how to assert the imageProvider or event if it possible \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/test/kotlin/io/homeassistant/companion/android/widgets/todo/TodoGlanceAppWidgetTest.kt"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d93f87233572632ff4925b6ee09678b5f0fd66181bc8cb841ddb2bf1db078a1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO probably replace the text composable by strings to control the applied style \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/compose/composable/HATextField.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ef42f24dbef8c76de45a9cf8eab83b3c9a6d60a223017fd71d29de501bf79e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Change colors with design team (current value are picked approximatively) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/compose/composable/HATextField.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d508d44c1854a1df025685dee450b913beb00972371572a8bc8931204dae8c03"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Verify colors with design team \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/compose/composable/HATextField.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b1a844bc7086c89b98dd9a8297046604c6a70a6b13f78caac4564530443298"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Verify colors with design team \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/compose/composable/HATextField.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c95167a8c68b8f53a69b6f0b0c53ec3ab092e04ed57556fed2e1fb8aa26789e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Verify colors with design team \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/compose/composable/HATextField.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"245b533bc67044d17580033459f4e1feca86a76fffe6daf86af61fc35cfcc441"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Verify colors with design team \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/compose/composable/HATextField.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b5b207d69447c5934823964b09aec335e8d167a8b8f133f7c33f69d50cb634"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO validate with design team if this color are immutable or not (not changeable by the users and also stay the same \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/compose/theme/HAColors.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b9a96f419c5ac7ce89acc4006da660e2c7250119ba37dd451dc545def50fab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Introduce back ZoneAttribute class https://github.com/home-assistant/android/issues/5340"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/integration/ZoneAttributes.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefac5f99990efe1187bf162383ac235cb5b834002847ed948c3bbcc1e874cf6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO this could be cache too, the idea would be to have better logging experience regarding \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/servers/ServerConnectionStateProviderImpl.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f7c270626babde0809a0a78292a22e457c073b9c03b717763ca7f96118feea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Send default locale of device with request. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/websocket/impl/WebSocketRepositoryImpl.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecbb81083d72d1a88a16499f2d604bcda2ccb30b554bfbf28605b4dde8ddb8c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO https://github.com/home-assistant/android/issues/5271"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/websocket/impl/WebSocketCoreImpl.kt"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b59321462f4aa3d20acd1b1a28f892bbca68c44a00ae0fead83766ade980e11"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO replace the map https://github.com/home-assistant/android/issues/5341"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/websocket/impl/entities/AssistPipelineEvent.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38153bc27d371cbc93bd02d1090ce0b2e88f72597ae24118759b9c329ac4eab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Replace the map https://github.com/home-assistant/android/issues/5341"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/data/websocket/impl/entities/AssistPipelineEvent.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6621a01147fece08162a1891cdf60d0de0263f768721c196b589a74fa1546d02"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO any reason to use mainScope here and not iO? https://github.com/home-assistant/android/issues/5585"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorManager.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b25c2db64df3753537c0fa97d6b3e5adcdcd645a9e8736efe294b20eeef2f9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is bad, do this instead: https://stackoverflow.com/questions/46283981/android-viewmodel-additional-arguments"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/MainViewModel.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1487b9db45f846df55ef1111e1950b734ac05dec72e9e4c7a3201dbf31149f7"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Split app: A sprawling Android frontend with 147 namespaces is a grab-bag of unrelated UI components. Suggested: split into focused android frontend namespaces"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"31354d90eb7f071639ba192ce76db15af8e7f762f00dee19e79fda38e6d40840"}},{"ruleId":"D26","level":"note","message":{"text":"Split wear: A large Android wear project with 21 namespaces is a grab-bag of unrelated modules like onboarding/integration/conversation. Suggested: split into focused wear namespaces"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f74d6ace99c360c939c1e7da540c653ff682dfd468e849c5d6d6bb6299ae2d98"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7cffe7ea0c3fbdb2f3fcc5e85601847817140710eb3c11f06dba49be07749097"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4f92ec0c941dfe5c75dfcedcdeaef756984273596af791c6b97e6174b7b4c26"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5dff98d5a7095cc144016a81e43f3c62a3c31e3f8f7e233bbc4898bcd4a673ea"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a8c4fb16a4524ddee2b419b6cd3a579c8b042cb10fa3b428aa936e22849898e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dfd45518a1ffc53d270b00e7f15bff6b7007f4b0d94bda70e366ffec1fbbb268"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5d045b99df9c53e0fd7e5ee7c35e13b386833450740d688d4ca368c07a0ea992"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf265196c8aab12cf5fc8a60b810eab7c8354ff80c006900ecb2cb624cb114a8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"11c6ef34f12ecf0d7903f46f08e77b28f9f1f8d5a16914d7a67733391bafe41e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"268d0ff1ce54591b74b2133856bec418ef4733535b6becb503c12ce08fc75a67"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"32fd0c540fc4d5f4d84ba6365245f8dcac595775933d87ba72492e55b596c086"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f660fcf1c4f1253977a725883c28eb161dea2c3ff3f4b572f6e5f2e057c22e47"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ba759e836ca8e521219a20e741a12d4e82ec4a712bb10f84b1819ab907761034"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90895f00c8fb54be8b7d01aedac2d1161bf9bc7d33dd62494e59069fa29b4d24"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3492abbd318280184137843e49e6140aea66152883048c9a355b12b56e48512d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9219ce1af5be6f9d7afcb693f3c1953b351b55524f4962579a71c6549da03ad9"},"taxa":[{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7b55c9107ae93cd42a1f6d6ddb178e77bb150713620af881909b8feb4e39bcd0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c90707414c4258fb90ddfee94c91ab34e4fa1a9f0aa97f0cf49f31d1e7c80657"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3ff74de76df1d0bfcff5cb26ff0f9b17fbd2ba22d1b83cfa01d6b616f1357011"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b730e725dc08c601b0159da95807324bb688b490accc92a3f10bb468d6aa4381"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"079f8b36c0529125e300ba3d3187243d937796e1936e4e938c52deed96c03099"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b19257b1d286335805a5f7523d103552fb3122574fd85d1befdb22efa63f3ea8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdaad087fb0adc3db0d32d1de04f1068fdf413b3f04b39cd20dcc51ca46bbbe"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1410fdd46cf37880678690faa6b655e837296aebb56c54b5a8ac3a7d285f8a25"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16eaa532729928d28ef6d3b5e06a6331d44f92c11ad06d90f8d7a6dba1548f91"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ff757122da783b0d0a8fef4aaa9df5c10880d899eaebb3b1fc8f54861d0525fb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a00b89a9880ccde004e76e8b1b78ab52b28911724c0b895181d42c1ef0803ef"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"266c720cb0c3c51bbdecb7e700d2c477abb4b48ab3fef2a3373c7f22b3104b59"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e508e69fe168df171c954b7874a812d5ab2de38b6cd8776a1b7662ba1ed77bd4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b333a36e65167ce971c7bff35bf5f341031f310eeb5725d30994f42b8ca3472f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cbaa406c241447fdfd1b814059512d8d1c275f4f3a1a2522e55fe9cd8ed96969"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce4b6b82a40e48ea5eb8b7e849ead005964549d5aa6a76c3e5f7ffa8c2e4df69"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"89931da5dfe3934abf98583e57aedfd1e75ff7e3012bc97d2bf928ef622faf13"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bcd5ceb68da7c993776719d8d0e4cc916a1e9c23291ef53e53b98fc9aeffe1ae"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"62bc3b128d52707036064d97ff84c2bece72e72295f343f717ef44ddc185e0c2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"144d6077965ca1628282d5f6eefc6ada3a5a9818392977025a02b47741e5e4ac"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7931550051fd10f118b09d83b1c264be418f59b50ff8507512eb09ad265502d9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c417903de1c63cb4ed1459c5268cab7880d5cc12d9dc4a95b270d7aa299bb91"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c6ef2f316ca631b692d03c475bed7e473e93f3db6fa35d9ef86248c50808e234"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"141fe3fddcbf12d4c16e91527fbc3d3836d8cf31ef748d688167b1e1e8a120ec"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bcb67efdf08a020f602a59b1f67cf12a14d4bfc7401566586955d678b8af0023"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1d55bc9f1dd2674ea4c86203436844a9599d4f6c0bf54a4440f0088157bbd108"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4825794ca11878356128370646bbbe456a7ff9c3e09e2a6a58686c7644de80fb"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"354603028daa5ac84e28895a4f1503ff2b0ac8465c7a640a634a8f791c05bcac"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ecc863ca0c47cde4282fb1521e7e73dccd33dbf301684bed769ac3b88c50ebea"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a7248383053b2149da8b8ebf8f9606d1970f2963d1b74a2d01ee564e78027d0"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16ce7b2cd6734135528db2e03a76335677f93a60a6c6aeaf12616f2120163638"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b8d1891af4ba5280e233dbef1fe3e236a3ef62c0da38b090f3c631bbce47408"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"329c166621d002b3b0029bb8bddfaec4c06b14283d471bc6cd1cafb9ecbb0203"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7f17a8b09850a886ecb66f952eb118f5e484085afd77f48a231316e277d611ed"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c57f1feac5266dc7971aea026d093689df50ba65aef067d712f6267d2e9818e4"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d61d2a3516fc07c146459ed4f49abc80da9a13d4d800fdff95ad215f0163cbb8"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"072feead24d4cef21a5dbb2d26557e70b82acba21c4834b6b38040766903f6a7"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0b5caaa13cbe61339243d5aff5a0e04ab21720bfa24dae1ec0c6f78db3a75fa6"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa12d8dea2a08ad7f59040b09f8bdd3198eeaeeb5afe6864713b67d2beb3b0f6"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b441e5ca47d6a3e9c653492619434bd9502ed4817a925b7a273dfc131bc9dbc1"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f81bf2ef29602f8a02746e92de871043aebdd3ec9e6f6b0e42a8187cbdbb007f"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d82e3b0b68156e62ebd3dfc24e519f11512c2f73b8631e71a9ed89b55379cedf"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3df2db9a23fb519a787fef7e1ec1a7e3b5b2f0a7af9001925710884484aec372"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"056b5ded99e826d45f7dd8f68584d55bf191686c24d71f29e54bfaeaf5a09596"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"54f9e076f75213d7cef8f6f16fa4862f060f317c7cfa52757b5a26c648b51f34"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01828faadfd0a666a25d37c99b9a0f0f8e8457b3c3f7227aec7795adabb0287a"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a6568d2ed00dc1c4209d550fd1ff56df72ab4b30ae8db2cc507dc81a67bead0c"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ccfe38445d484c0e07f741221a3db2eb50d2f240326a5d19cdd50e58a0b20c12"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7c29f4aa4920a771b62d50c2f54f640f35e6c5d52522aa0d9a82ed79850dc5f4"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9c3b29c8dd746b48cbe60bb09f8d8d5c069d91dcf175e844a287fec7403c7fd7"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1203ae94b241f4ede7fbd8f9adf7125bae6ec187a341b8e27bf24e4b9b18ca62"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0274e8ec3b46a652a59c8ecdfbc5483639c93bbb331cb976d6bc5e452fec54c1"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cfe6eb92e58a77daf2704296e87939bd1da1e5a63d94775b3976c5284ae0451"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c461605f1735eda617a593718ba64e30dd163f939fb30ad51505b0f22065076e"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1dcfc26ccc391d9f82a75e952fd3fb61cd32237ddce9883cdf4d1a6c75afe3d0"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bcee02da5fa7aba6513f30b39b16ab8bbd63979f0d4a0970255649df04afa683"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d13ca087d0c8e68ab667ad7ff121905a5d78a335be286b4b9225cb197d3dec9a"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"344188ced58a95f4b90ffb28604bd3c140c22407ad2d3999456e9f3a842ad8aa"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2609dbafcc008ffaf80c2232364622dc436fa3d56e39022aae5b637ff6b4926"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea1378df9a4df89dd43e75247db9a132d9bc85e70d5ae65615b2715096bd0df1"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58ff285a54d76f8ab69373608d501def08e35bf00e2542ce259bd02d787e2aff"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f6c3b01fd190fb7789335aeeeb6939b7ebd7ecef26350db589c1e661504a8297"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3c990a9ecb729387559ff9348d9b40775420f089153890abde015ad83133a64d"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9deeccfbcb2b403b48fd48f59aa89fd5d28446ade1a545f6aa11ec90b1c55844"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"575d9f7827fdaa7fc48721ed38587ce16fd8b297e30790db2475e6f33a9a063a"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d73c4fd114f5f533012d868bbfea5f796037cf910474013c8e987baaed11536d"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01e34e39ad9cee50ca9d717e5c8f4468128e831f86b430733af9a3d125ae8865"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"78b77e24a042275c98f118bb10a12ac8e915265f0fe657575779335e9bffd74c"},"properties":{"dependency":{"package":"org.bouncycastle:bcprov-jdk18on","version":"1.80.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0786eaafffe80f936c1986413cd0953da483a1767923a3ae30cceb2c33573992"},"properties":{"dependency":{"package":"org.apache.httpcomponents:httpclient","version":"4.5.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"968fc44cfe18f0a637fa0ce35505c7dc57c7fc40d5ccfbb62efc39e59b11af50"},"properties":{"dependency":{"package":"org.apache.commons:commons-lang3","version":"3.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5fa54ce37b1db865db62db8d9e237a0631a1d4557b70c194da64dcca019af59a"},"properties":{"dependency":{"package":"org.bouncycastle:bcpkix-jdk18on","version":"1.80.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 16 of 491 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 491 of the 942 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: app/src/main/kotlin/io/homeassistant/companion/android/widgets/common/WidgetDynamicFieldAdapter.kt, common/src/main/kotlin/io/homeassistant/companion/android/common/bluetooth/ble/TransmitterManager.kt, common/src/main/kotlin/io/homeassistant/companion/android/common/util/tts/TextToSpeechClient.kt, app/src/full/kotlin/io/homeassistant/companion/android/settings/wear/views/SettingsWearTemplateTile.kt, app/src/main/kotlin/io/homeassistant/companion/android/util/ForegroundServiceLauncher.kt, app/src/full/kotlin/io/homeassistant/companion/android/settings/wear/views/SettingsWearOnboardingView.kt, app/src/full/kotlin/io/homeassistant/companion/android/settings/wear/views/SettingsWearTemplateTileList.kt, common/src/main/kotlin/io/homeassistant/companion/android/common/util/tts/AndroidTextToSpeechEngine.kt (and 8 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: MessagingManager.kt \u2194 NotificationFunctions.kt: \u0060app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt\u0060 (context main) and \u0060common/src/main/kotlin/io/homeassistant/companion/android/common/notifications/NotificationFunctions.kt\u0060 (context common) sit in DIFFERENT parts of the tree yet change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006025eb107c\u0060 Move Emoji.parseToUnicode to Dispatcher.IO (#7108); \u0060d21e938c\u0060 Allow assistant volume control (#7068); \u00606b56bc57\u0060 mobile_app_notification_cleared for wearos (#4035) (at that commit the files were still \u0060app/src/main/java/io/homeassistant/companion/android/notifications/MessagingManager.kt\u0060 and \u0060common/src/main/java/io/homeassistant/companion/android/common/notifications/NotificationFunctions.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce57b1f4e8630a79cd2f8ad5f879584997c42fe272d07fb0a5f9e26f3168030"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: NotificationFunctions.kt \u2194 MessagingManager.kt: \u0060common/src/main/kotlin/io/homeassistant/companion/android/common/notifications/NotificationFunctions.kt\u0060 (context common) and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/notifications/MessagingManager.kt\u0060 (context wear) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006025eb107c\u0060 Move Emoji.parseToUnicode to Dispatcher.IO (#7108); \u00606b56bc57\u0060 mobile_app_notification_cleared for wearos (#4035) (at that commit the files were still \u0060common/src/main/java/io/homeassistant/companion/android/common/notifications/NotificationFunctions.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/notifications/MessagingManager.kt\u0060); \u0060cda25479\u0060 Add clear_notification support to Wear OS (#3956) (at that commit the files were still \u0060common/src/main/java/io/homeassistant/companion/android/common/notifications/NotificationFunctions.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/notifications/MessagingManager.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/notifications/NotificationFunctions.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce2205d26d1f20c5b777a9d22f7432288ddf46e53f2596ee6a2453660ba0e6a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: EntityGridVehicleScreen.kt \u2194 MapVehicleScreen.kt: \u0060app/src/main/kotlin/io/homeassistant/companion/android/vehicle/EntityGridVehicleScreen.kt\u0060 and \u0060app/src/main/kotlin/io/homeassistant/companion/android/vehicle/MapVehicleScreen.kt\u0060 change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00602bdcbfd6\u0060 Mutualize Android Auto navigation_started event firing (#7468); \u006062b81a18\u0060 Remove runBlocking from ServerManager.activeServerId (#5722); \u006090bf7369\u0060 Clean up some left over code after update to getIcon (#3827) (at that commit the files were still \u0060app/src/main/java/io/homeassistant/companion/android/vehicle/EntityGridVehicleScreen.kt\u0060 and \u0060app/src/main/java/io/homeassistant/companion/android/vehicle/MapVehicleScreen.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/vehicle/EntityGridVehicleScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e8009095adc6c9833831264f37d68132cd9b45741c8b5ddfeb8876d68dfb45"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: LaunchActivity.kt \u2194 HANavHost.kt: \u0060app/src/main/kotlin/io/homeassistant/companion/android/launch/LaunchActivity.kt\u0060 and \u0060app/src/main/kotlin/io/homeassistant/companion/android/util/compose/HANavHost.kt\u0060 change together 65% of the time (11 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u006026154d92\u0060 Add dedicated screen for invitation flow instead of WelcomeScreen (#6\u2026; \u006099655c59\u0060 Add support for PiP for FrontendScreen (#6812); \u0060c84d7f44\u0060 Add ExoPlayer support for FrontendScreen from frontend request (#6771) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/launch/LaunchActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08221041e3dbbf2b73bc79f6112da4888d7858fbc8d026d4cb4f4597da7ea735"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: EntityWidget.kt \u2194 TemplateWidget.kt: \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidget.kt\u0060 and \u0060app/src/main/kotlin/io/homeassistant/companion/android/widgets/template/TemplateWidget.kt\u0060 change together 64% of the time (14 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u0060514d6c10\u0060 Move away from Main in Widgets (#6415); \u0060e838330d\u0060 Code quality: use compat functions for Android 13 type extras (#4501) (at that commit the files were still \u0060app/src/main/java/io/homeassistant/companion/android/widgets/entity/EntityWidget.kt\u0060 and \u0060app/src/main/java/io/homeassistant/companion/android/widgets/template/TemplateWidget.kt\u0060); \u00607953f81b\u0060 Fix websocket stays subscribed after widget edit due to multiple inst\u2026 (at that commit the files were still \u0060app/src/main/java/io/homeassistant/companion/android/widgets/entity/EntityWidget.kt\u0060 and \u0060app/src/main/java/io/homeassistant/companion/android/widgets/template/TemplateWidget.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/widgets/entity/EntityWidget.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48145a31ef7ccd352fe0e7f2b904c421853c16ac8c24b06120f217104ee36a2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: HomeView.kt \u2194 SetFavoriteView.kt: \u0060wear/src/main/kotlin/io/homeassistant/companion/android/home/views/HomeView.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/home/views/SetFavoriteView.kt\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006064a425ac\u0060 Use ViewState in some views of the watch to avoid concurrent issues (\u2026; \u0060dbb1e8bf\u0060 Use suspend and transactions for Favorites dao (#2398) (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/home/views/HomeView.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/home/views/SetFavoriteView.kt\u0060); \u006047962841\u0060 Add areas to entity list on Wear (#2118) (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/home/views/HomeView.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/home/views/SetFavoriteView.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/views/HomeView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23985675cfef16dbe9dd3965985e8d9c7d3394d16b09dde793f3306d50e84e31"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ServerSettingsFragment.kt \u2194 WebViewActivity.kt: \u0060app/src/main/kotlin/io/homeassistant/companion/android/settings/server/ServerSettingsFragment.kt\u0060 and \u0060app/src/main/kotlin/io/homeassistant/companion/android/webview/WebViewActivity.kt\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00602717a340\u0060 Introduce FrontendTarget and use it instead of WebViewActivity (#7087); \u006017e03ca3\u0060 Add app lock feature to FrontendScreen (#6756); \u0060793bf01d\u0060 Add set security level when not set while opening a server (#6097) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/io/homeassistant/companion/android/settings/server/ServerSettingsFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"866763aaf8d957594a67fc2c01c0afc686471ad36ac059931ba35f606a52315e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ConversationActivity.kt \u2194 ConversationView.kt: \u0060wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationActivity.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/conversation/views/ConversationView.kt\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060f3071e79\u0060 Wear Assist: show login when logged out, scroll first item into view \u2026 (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/conversation/ConversationActivity.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/conversation/views/ConversationView.kt\u0060); \u0060edf6ba5b\u0060 Use Assist pipeline STT/TTS on Wear OS (#3611) (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/conversation/ConversationActivity.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/conversation/views/ConversationView.kt\u0060); \u00603c706bb7\u0060 Update Wear Assist with continued conversations, pipelines (#3604) (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/conversation/ConversationActivity.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/conversation/views/ConversationView.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/conversation/ConversationActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a33fbb21e68c11dc1bdc74e4617373f2ef2c538496923154b10d772166559d5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SensorReceiverBase.kt \u2194 SensorWorker.kt: \u0060common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorReceiverBase.kt\u0060 and \u0060common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorWorker.kt\u0060 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00602c3406fe\u0060 Extract SensorReceiverBase update logic into SensorUpdater (#7107); \u00607d93d38b\u0060 Remove DatabaseEntryPoint (#7106) (at that commit the file was still \u0060common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorWorkerBase.kt\u0060); \u00602b2ece82\u0060 Remove appdatabase get instance (#6234) (at that commit the file was still \u0060common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorWorkerBase.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/common/sensors/SensorReceiverBase.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d0924f7d9fe0bd7b44d5a68d8172edd16f99e332abdea05344e966e72dac68"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: HomeView.kt \u2194 ChooseEntityView.kt: \u0060wear/src/main/kotlin/io/homeassistant/companion/android/home/views/HomeView.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/views/ChooseEntityView.kt\u0060 change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006064a425ac\u0060 Use ViewState in some views of the watch to avoid concurrent issues (\u2026; \u0060d00c8236\u0060 Faster entity selection Wear OS (#2804) (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/home/views/HomeView.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/views/ChooseEntityView.kt\u0060); \u0060131296ad\u0060 Show names on shortcuts tile (#2142) (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/home/views/HomeView.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/home/views/ChooseEntityView.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/views/HomeView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e968477306b1812be38e4c80acffe5a4707763c0c33c22d42737c36ca3b4630"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: HomeActivity.kt \u2194 HomePresenterImpl.kt: \u0060wear/src/main/kotlin/io/homeassistant/companion/android/home/HomeActivity.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/home/HomePresenterImpl.kt\u0060 change together 50% of the time (12 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u00606a21a1c2\u0060 Add missing catch when interacting with network (#6264); \u0060a8a73633\u0060 Implement support for multiple Shortcut Tiles on Wear OS (#3697) (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/home/HomeActivity.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/home/HomePresenterImpl.kt\u0060); \u0060047abe93\u0060 Add new option to only show favorites on home screen (#3276) (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/home/HomeActivity.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/home/HomePresenterImpl.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/HomeActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbfefead6fd6bc9c8df8fd90c67633ae6904dcb057eb3e79d73be71f36ec3e5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MainViewModel.kt \u2194 SetFavoriteView.kt: \u0060wear/src/main/kotlin/io/homeassistant/companion/android/home/MainViewModel.kt\u0060 and \u0060wear/src/main/kotlin/io/homeassistant/companion/android/home/views/SetFavoriteView.kt\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006064a425ac\u0060 Use ViewState in some views of the watch to avoid concurrent issues (\u2026; \u0060dbb1e8bf\u0060 Use suspend and transactions for Favorites dao (#2398) (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/home/MainViewModel.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/home/views/SetFavoriteView.kt\u0060); \u006047962841\u0060 Add areas to entity list on Wear (#2118) (at that commit the files were still \u0060wear/src/main/java/io/homeassistant/companion/android/home/MainViewModel.kt\u0060 and \u0060wear/src/main/java/io/homeassistant/companion/android/home/views/SetFavoriteView.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/home/MainViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc533c87af02570cb6858361ceea2f0bf986c8538012f38be7d455f49f6dedd"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe274ba5adebde25ca0b3db842e44cbb1aaeb7cfecfbb7215cd452596ba1f4c2"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: Authentication: \u0060Authentication\u0060\u0027s public constructor takes \u0060host\u0060, \u0060username\u0060, \u0060password\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060Authentication\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/authentication/Authentication.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b7b1e9a7818badb1bbfde6371fcb3142ba26632eeb71def82bc6e98b32189b"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: LocationHistoryItem: \u0060LocationHistoryItem\u0060\u0027s public constructor takes \u0060latitude\u0060, \u0060longitude\u0060, \u0060locationName\u0060, \u0060data\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060LocationHistoryItem\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/location/LocationHistoryItem.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c8b02f1e5192544eb07163af3872567a80f620a53a0ddb7b02b03475ca3b94"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: NotificationItem: \u0060NotificationItem\u0060\u0027s public constructor takes \u0060message\u0060, \u0060data\u0060, \u0060source\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060NotificationItem\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/notification/NotificationItem.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a86e2d2e093b104ba4ec41052d9b35b7c206e570aa321d8c7ceed8d59be5ce2"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: TileEntity: \u0060TileEntity\u0060\u0027s public constructor takes \u0060tileId\u0060, \u0060iconName\u0060, \u0060entityId\u0060, \u0060label\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060TileEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/qs/TileEntity.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebd415d4147e8ba05626e0780625dcb21720fa03c5feb3c62fdbba537585991"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: Attribute: \u0060Attribute\u0060\u0027s public constructor takes \u0060sensorId\u0060, \u0060name\u0060, \u0060value\u0060, \u0060valueType\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060Attribute\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/sensor/Attribute.kt"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d883c2972b095ad2581689faee8d0a73d6df304f31118d3e75726965767dd1"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: Sensor: \u0060Sensor\u0060\u0027s public constructor takes \u0060id\u0060, \u0060state\u0060, \u0060lastSentState\u0060, \u0060lastSentIcon\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060Sensor\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/sensor/Sensor.kt"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ac286ed8788b1821b4c551df30f2fd0e77ec65404a3eae823eaee1cd6487e9"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SensorSetting: \u0060SensorSetting\u0060\u0027s public constructor takes \u0060sensorId\u0060, \u0060name\u0060, \u0060value\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060SensorSetting\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/sensor/SensorSetting.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6f93d0edb6f6bab54f501a80f324e0a833ff1af8bfc8978e51d0521360c294"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: Server: \u0060Server\u0060\u0027s public constructor takes \u0060_name\u0060, \u0060nameOverride\u0060, \u0060_version\u0060, \u0060deviceRegistryId\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060Server\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/server/Server.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"998269431c9086cdec7a5179ccff2168f7f3fe13bf12eaef5a3c8e38d5c21706"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: CameraTile: \u0060CameraTile\u0060\u0027s public constructor takes \u0060entityId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060CameraTile\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/CameraTile.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc24078349bce6afe37dadc52d6e7532f7f6af5143b744f759c5749b02b8040a"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: EntityStateComplications: \u0060EntityStateComplications\u0060\u0027s public constructor takes \u0060entityId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060EntityStateComplications\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/EntityStateComplications.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffff80a42547bc3397ea44435a7bb82d51b4da22dad20f6b85a15e0ee0099e2"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: FavoriteCaches: \u0060FavoriteCaches\u0060\u0027s public constructor takes \u0060id\u0060, \u0060name\u0060, \u0060icon\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060FavoriteCaches\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/FavoriteCaches.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0424e61ec4ab387ab781b0f3e371392bc503eadfc6563c7ea4e614045c6ba58c"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: Favorites: \u0060Favorites\u0060\u0027s public constructor takes \u0060id\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060Favorites\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/Favorites.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ff5907751cc3d94fb9817aa3960bb19182a4952167ded8d7d5619dbf4330d6"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ThermostatTile: \u0060ThermostatTile\u0060\u0027s public constructor takes \u0060entityId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060ThermostatTile\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/ThermostatTile.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c256ff6121ccc6d0f01d4396346b455a9a1feaced226f10e964be4148a6e5aea"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: ButtonWidgetEntity: \u0060ButtonWidgetEntity\u0060\u0027s public constructor takes \u0060iconName\u0060, \u0060domain\u0060, \u0060service\u0060, \u0060serviceData\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060ButtonWidgetEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/widget/ButtonWidgetEntity.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e6d7befb0b1e9a8e61182ac7422dfdeb79793f237a59159425b324d32c492d"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: CameraWidgetEntity: \u0060CameraWidgetEntity\u0060\u0027s public constructor takes \u0060entityId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060CameraWidgetEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/widget/CameraWidgetEntity.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"127ee803cf941099c474e8c7f26176d6e9a4a3c50ac5ddd949ce1ce3ee3d54a7"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: MediaPlayerControlsWidgetEntity: \u0060MediaPlayerControlsWidgetEntity\u0060\u0027s public constructor takes \u0060entityId\u0060, \u0060label\u0060, \u0060textColor\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060MediaPlayerControlsWidgetEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/widget/MediaPlayerControlsWidgetEntity.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ec11b44f67ec0e6d63f3e5cff8109d2390ff5d2cfea9902892dbe5310b80aa"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: StaticWidgetEntity: \u0060StaticWidgetEntity\u0060\u0027s public constructor takes \u0060entityId\u0060, \u0060attributeIds\u0060, \u0060label\u0060, \u0060stateSeparator\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060StaticWidgetEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/widget/StaticWidgetEntity.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19b6e0b228bf48d3d24693272e26ce3c2c0b89f900dd0bc7daa7278cd953f9a"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: TemplateWidgetEntity: \u0060TemplateWidgetEntity\u0060\u0027s public constructor takes \u0060template\u0060, \u0060lastUpdate\u0060, \u0060textColor\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060TemplateWidgetEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/widget/TemplateWidgetEntity.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c70dfb58ef0dc4655d5abf840eb2520ae6b566ebdc792df6cc3fbeb4921147"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: TodoWidgetEntity: \u0060TodoWidgetEntity\u0060\u0027s public constructor takes \u0060entityId\u0060, \u0060textColor\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060 or \u0060Requires.\u0060 \u2014 a guard reached through a helper method those tokens do not name is not seen; for a FACTORY, only this type\u0027s OWN static members were read, and only names beginning \u0060Create\u0060, \u0060Of\u0060, \u0060From\u0060, \u0060New\u0060 or \u0060Build\u0060 \u2014 one inherited from a base type, one on a companion builder, or one called \u0060Parse\u0060, \u0060Make\u0060 or \u0060Rehydrate\u0060 is not seen. If either exists, this row is wrong. If neither does, a caller can build a \u0060TodoWidgetEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/widget/TodoWidgetEntity.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9467dca9cd6da1af0f177364f00858cf7c157d104aa66d76b98ff732da3cd507"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: LocationHistoryItem.serverId: \u0060LocationHistoryItem.serverId\u0060 is a raw \u0060Int\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060Int\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/location/LocationHistoryItem.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f0873113313b15e7721c7b029c2046ca2a5046e7e039a641d3b5f2726d96b8"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: NotificationItem.serverId: \u0060NotificationItem.serverId\u0060 is a raw \u0060Int\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060Int\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/notification/NotificationItem.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1da2a6ce29321c02eb21e8993fce5ce14a80e30893997d3782001210c35e50"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: Attribute.sensorId: \u0060Attribute.sensorId\u0060 is a raw \u0060String\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060String\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/sensor/Attribute.kt"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51621b2f34e9e0019111368fe37cd7a22c006378dc5f69406c7e9dcbfa6d69f"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: Sensor.serverId: \u0060Sensor.serverId\u0060 is a raw \u0060Int\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060Int\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/sensor/Sensor.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"74964fbce23bb94a77fec3c06b51795b4956722dc87b9ebd6b6a4689c03fa03e"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: SensorSetting.sensorId: \u0060SensorSetting.sensorId\u0060 is a raw \u0060String\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060String\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/sensor/SensorSetting.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"627c993f3e14a30675de64622ec0efc07ed6c18062d43e8f9c6a932181b1e3fe"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: Server.deviceRegistryId: \u0060Server.deviceRegistryId\u0060 is a raw \u0060String\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060String\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/server/Server.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e023c8851ba5d34873dbd7a5f348ea3a08545d4ee561f9491ad87bbf030500db"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: CameraTile.entityId: \u0060CameraTile.entityId\u0060 is a raw \u0060String\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060String\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/CameraTile.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a80bdc6283c9aa7d8e04b5fa0a26bdd51d800715e90e1119acaa37dbbe03db4"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: EntityStateComplications.entityId: \u0060EntityStateComplications.entityId\u0060 is a raw \u0060String\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060String\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/EntityStateComplications.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3237dbd8b22b71abbf01af37b7d3494a52eb8a907beb4139be14981e50e2f113"}},{"ruleId":"DM2","level":"note","message":{"text":"Primitive id on a domain type: ThermostatTile.entityId: \u0060ThermostatTile.entityId\u0060 is a raw \u0060String\u0060 \u2014 give it a strongly-typed id: a dedicated single-field type wrapping the \u0060String\u0060, in whatever form your language spells that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/ThermostatTile.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec660610f0435719c482ed3ebb05d12e80920611e25e5aeccb0aaf24060c007"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: Authentication: \u0060Authentication\u0060 is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/authentication/Authentication.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ed545c33f82be4c419e0f8288684581b8b38f9f59bfea9d1e9b8e7017a233b"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: LocationHistoryItem: \u0060LocationHistoryItem\u0060 is an aggregate/entity with 11 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/location/LocationHistoryItem.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea47fe921031b5b43c39169a5e2a21e722509b24ea16a453d43ae41da872dcf"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: NotificationItem: \u0060NotificationItem\u0060 is an aggregate/entity with 6 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/notification/NotificationItem.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e84ab52af226445d5f170da99fb9bb5a6b643c15e5bd7153426145d7dcdbb6"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: Attribute: \u0060Attribute\u0060 is an aggregate/entity with 4 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/sensor/Attribute.kt"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83d3959d130a0e84df4ca37e72bc50580c7961aa2197f8072f9dda62d1a51d3"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: Sensor: \u0060Sensor\u0060 is an aggregate/entity with 17 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/sensor/Sensor.kt"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fde73328d73bbaf4decb53c98461323fc15f5fe59e1ebe9bf3f95521e02460"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: SensorSetting: \u0060SensorSetting\u0060 is an aggregate/entity with 6 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/sensor/SensorSetting.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0373d7b53c59f99ae5a21fb34d10359f57b444bd4c7bbf6d5b6d78b65a44cb90"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: Server: \u0060Server\u0060 is an aggregate/entity with 12 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/server/Server.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9beecef51f90c48eabd599ad462e7acaf17d8562c497978628efc7b4c68570d"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: Setting: \u0060Setting\u0060 is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/settings/Setting.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"013d237e90861e517172b9e1dff6b275004a6d7751f4c6620e12280ab0301233"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: CameraTile: \u0060CameraTile\u0060 is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/CameraTile.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f758a5cc9a42555f240fba666c7ca374e340cfebce4cb6dc198eb25b2ed363c8"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: EntityStateComplications: \u0060EntityStateComplications\u0060 is an aggregate/entity with 4 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/EntityStateComplications.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fc128d0a454e407f5e88056685a9857fa498ac095110c902b8b4d53effdc6e"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: FavoriteCaches: \u0060FavoriteCaches\u0060 is an aggregate/entity with 3 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/FavoriteCaches.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9f1b714dc0969b61f0b58728b13f443326bd863547d81f4c4901d58ce6cad2"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: Favorites: \u0060Favorites\u0060 is an aggregate/entity with 2 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/Favorites.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0712af856889f325bb4cfc9ed6ad00fc90b58edafc8c3425ae2a2e9c8db7eeb0"}},{"ruleId":"DM4","level":"warning","message":{"text":"Anemic entity: ThermostatTile: \u0060ThermostatTile\u0060 is an aggregate/entity with 5 data propert(ies) but no state-changing behaviour (only data and queries) \u2014 the business logic lives in a service."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/kotlin/io/homeassistant/companion/android/database/wear/ThermostatTile.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27f56ef96394e52924ebd103131b9f341a5fe3fceb8f99ddc77a25a57dd8bac"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"warning","message":{"text":"SAST runs, but gates no merge: \u0060pr-emulator-wtf.yml\u0060 run(s) a static-analysis scan, but no workflow that runs one is triggered by a pull request (or a merge queue, or an unfiltered push) \u2014 the scan fires on a schedule or a manual dispatch only. A vulnerable change therefore merges clean and is reported on the next scheduled run, by which time it is on the default branch and the only remedy is a follow-up fix. Add the pull-request trigger to the workflow that runs the scan so the finding arrives before the merge rather than after it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"73211886541038635ced0208da9cedd27ed1caa9132fd6aa5e44d2976a4de6d6"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060updateHealthServices\u0060 is async and calls runBlocking \u2014 a blocking call inside async code stalls the coroutine\u0027s thread, and every coroutine dispatched to it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wear/src/main/kotlin/io/homeassistant/companion/android/sensors/HealthServicesSensorManager.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b88de1f8122fe097e63031be84ab6a0ead60259a8cb533aaaeacce5d058da3"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"CWE-552","shortDescription":{"text":"CWE-552"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"CWE-926","shortDescription":{"text":"CWE-926"},"helpUri":"https://cwe.mitre.org/data/definitions/926.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":91,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}