{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED1","name":"Handler temporal coupling","shortDescription":{"text":"Handler temporal coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/ED1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"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":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"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":"main.swift.top-level code (cyclomatic 57): main.swift.top-level code has cyclomatic complexity 57 (threshold 15). Of this number, 53 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"Sources/MiRemote/App/main.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"421c5e231b023e14b084e4faa769c423fc105ec5932abbe61150512d511ec265"}},{"ruleId":"D1","level":"warning","message":{"text":"AppServices.swift.migrateConfigIfNeeded (cyclomatic 28): AppServices.swift.migrateConfigIfNeeded has cyclomatic complexity 28 (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":"Sources/MiRemote/App/AppServices.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5febcf7ba86a487e6aa51bf5d6bef1683d3e08dee0914ef8c84543c4a7b42b6d"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemMenuCatalog.selfCheck (cyclomatic 22): SystemMenuCatalog.selfCheck has cyclomatic complexity 22 (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":"Sources/MiRemote/UI/OverlayCenter.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"979d3f982755a3a9a177ae64062b750b993421763e765c9a2af650c168c1e220"}},{"ruleId":"D1","level":"warning","message":{"text":"HealthMonitor.runRepair (cyclomatic 21): HealthMonitor.runRepair has cyclomatic complexity 21 (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":"Sources/MiRemote/App/HealthMonitor.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7b66ff116f4eb29dad73ff60b3dc6e4fe0c4cf4468f51432da882432590453"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionSummary.describe (cyclomatic 21): ActionSummary.describe has cyclomatic complexity 21 (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":"Sources/MiRemote/UI/AppModel.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bef576895272f31b507ed36ef398ff2196570b1e3da624cd2ed303e66269071"}},{"ruleId":"D1","level":"warning","message":{"text":"OnboardingWizard.body (cyclomatic 20): OnboardingWizard.body has cyclomatic complexity 20 (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":"Sources/MiRemote/UI/OnboardingWizard.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"29972930b5005c1f9800cb702935551b659f9cce38ce60601dfac5b06ddfb245"}},{"ruleId":"D1","level":"warning","message":{"text":"HealthCheckSheet.runChecks (cyclomatic 19): HealthCheckSheet.runChecks 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/UI/HealthCheckSheet.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd31a9cb8f758bb9db46a8baf4769ed3539d6e8d323d2a1c3cce346228ff8fe"}},{"ruleId":"D1","level":"warning","message":{"text":"TapEngine.handle (cyclomatic 18): TapEngine.handle 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":"Sources/MiRemote/HID/KeyRemapper.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2d6b58c279e98cec83a9d652785cc64af58d1196c586745986ed8005f38467"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionRunner.system (cyclomatic 17): ActionRunner.system has cyclomatic complexity 17 (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":"Sources/MiRemote/Actions/ActionRunner.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1548ca7f55fa2a15681bf7bb1cad7f914e56564ce4525cd223184726568ce5"}},{"ruleId":"D1","level":"warning","message":{"text":"MappingEngine._handle (cyclomatic 17): MappingEngine._handle 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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"667d8161469162b49eb617900d332e115cfd7eae5770bd815c237e0764093e6e"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionRunner.selfCheck (cyclomatic 16): ActionRunner.selfCheck has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/Actions/ActionRunner.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67b913650107364397d4386ab96b71949b54637449bb2dbc6ee70c3052ca46c"}},{"ruleId":"D1","level":"warning","message":{"text":"HealthMonitor.computeOverall (cyclomatic 16): HealthMonitor.computeOverall has cyclomatic complexity 16 (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":"Sources/MiRemote/App/HealthMonitor.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3608295c12c1debda751c7ca203a1203335a58758a73c6b75af96fcaf20d8d4"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteDiagram.canvasView (cyclomatic 16): RemoteDiagram.canvasView 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":"Sources/MiRemote/UI/RemoteDiagram.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"106fb82ce24dbe2bdeb0586f4a452ce6db86f97f55d7f62a9f264ea134db4b8d"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.top-level code (cognitive 88): main.swift.top-level code has cognitive complexity 88 (threshold 15). Drivers by points: if/else 19 (43 pts), ternaries 9 (29 pts), match/switch 3 (7 pts), boolean chains 5, error handling 1 (3 pts), loops 1 (nesting depth added 50). Of this number, 79 points are the body\u0027s own statements and 9 belong to one function item inside it that branches. 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":"Sources/MiRemote/App/main.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7153b1c066fbb668228681428abb0db1cb1a0e98c7f49f513015c105e4b44716"}},{"ruleId":"D2","level":"warning","message":{"text":"AppServices.swift.migrateConfigIfNeeded (cognitive 57): AppServices.swift.migrateConfigIfNeeded has cognitive complexity 57 (threshold 15). Drivers by points: if/else 20 (43 pts), loops 3 (7 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 30). 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":"Sources/MiRemote/App/AppServices.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9167be71e30bd5dfafb3f1cd2aa56b52c7fe7357cd9e8c3dfb43eb4fc3031dd8"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteDiagram.canvasView (cognitive 25): RemoteDiagram.canvasView has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 4 (8 pts), loops 3, boolean chains 2 (nesting depth added 9). 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":"Sources/MiRemote/UI/RemoteDiagram.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f6dc71f3af5fae8dc06618c58b13a3914a61c86d122dd3804f1822bd3ee8ae"}},{"ruleId":"D2","level":"warning","message":{"text":"TapEngine.handle (cognitive 24): TapEngine.handle has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 3 (6 pts), boolean chains 3, match/switch 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":"Sources/MiRemote/HID/KeyRemapper.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c16d8bf1bc29ef8f2e6d0a0bdfa9b7b3533d3a669775ef4e65524b0a4cccc8f"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingWizard.body (cognitive 24): OnboardingWizard.body has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 5 (8 pts), boolean chains 7, match/switch 1 (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":"Sources/MiRemote/UI/OnboardingWizard.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cf68491849b8fda69540871d07c4604d09c6e3c78243806ad92a69e487ec80"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemMenuCatalog.selfCheck (cognitive 24): SystemMenuCatalog.selfCheck has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 9, match/switch 1 (2 pts), loops 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":"Sources/MiRemote/UI/OverlayCenter.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d904aea9bf41da9d5db98b127fcd5e8f729c1da56d02286915f8a739a6f84bf6"}},{"ruleId":"D2","level":"warning","message":{"text":"FocusInput.findTextInput (cognitive 21): FocusInput.findTextInput has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 8, loops 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":"Sources/MiRemote/Actions/FocusInput.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2875e11d4f14f144f8e6dd6fa3b3f78f45681dbb3b136af475966e57c2bbabc"}},{"ruleId":"D2","level":"warning","message":{"text":"MouseMode.handle (cognitive 20): MouseMode.handle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1, 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":"Sources/MiRemote/Actions/MouseMode.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca2d1034fe03ee52da8fd1d6b4c377819dccc56aab390200903b57f17e5a07f"}},{"ruleId":"D2","level":"warning","message":{"text":"HealthCheckSheet.runChecks (cognitive 20): HealthCheckSheet.runChecks has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 5, boolean chains 2, loops 1 (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":"Sources/MiRemote/UI/HealthCheckSheet.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e218ff2eb594da73591250988f410b321b27c8793c4bf366c78edbf6e6f332"}},{"ruleId":"D2","level":"warning","message":{"text":"HealthMonitor.computeOverall (cognitive 19): HealthMonitor.computeOverall has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 6 (nesting depth added 3). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/App/HealthMonitor.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1b498c7aa54befee5a72e514b4bb491feae639cf704785c3449e2f0f106c56"}},{"ruleId":"D2","level":"warning","message":{"text":"HealthMonitor.runRepair (cognitive 19): HealthMonitor.runRepair has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 3 (5 pts), boolean chains 3, ternaries 3 (nesting depth added 4). 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":"Sources/MiRemote/App/HealthMonitor.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37c93e1289761def9b2608abc08a7c9ab588f0063f09ca6a16e4d9f2cb3f23b"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingEngine._handle (cognitive 19): MappingEngine._handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 4). 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, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca755cc5bf336b6dbf12962100251c1fc57354874e77f8b810ade2793d576b1"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingEngine.handleUp (cognitive 17): MappingEngine.handleUp has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, match/switch 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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d74f481223e34c8545ca6867881a050398ad408f79567171b53e24752f5ca2"}},{"ruleId":"D2","level":"warning","message":{"text":"ATVVBridge.peripheral (cognitive 16): ATVVBridge.peripheral has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (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":"Sources/MiRemote/Bluetooth/ATVVBridge.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5931ec732dc88fa7ce5e0e16d0b140bc85237fb4a9bc71b8a5810cc174237ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/OverlayCenter.swift: FileTooLong \u2014 802 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 302 over it, 1.60\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":"Sources/MiRemote/UI/OverlayCenter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2d58e621e5bd1f8ab657149c2eeef88d617fc6e56d7ef531c5dbad1e3c10e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Mapping/MappingEngine.swift: FileTooLong \u2014 800 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 300 over it, 1.60\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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d15ade4ca3eb073a0ed1891dacc5dffc4f62d75a5b776dba354073de32b94f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.swift.top-level code: FunctionTooLong \u2014 top-level code runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"Sources/MiRemote/App/main.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"18435ae6a2911e04053b5fa294004e21ddb79b67d8877f88ff3d8f93620c782c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ATVVBridge: 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":"Sources/MiRemote/Bluetooth/ATVVBridge.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7089d6672790b55e0bdb6d179e7ad526648c34ef8705cf687c72cdb365d2c9b9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MappingEngine: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e940e552c1a303161d9ddbdfd83f9d55ec45a41aa2b84ba0e49ea8725a9eddf6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MappingEngine.selfCheck: MethodTooLong \u2014 selfCheck runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"187093f0a4a09d34063f4d227193bed85c083d9a52dbed4aead33ad1c78e803f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GeneralPage.body: MethodTooLong \u2014 body runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"Sources/MiRemote/UI/GeneralPage.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c79a5a12e2ff00b6cebd4eebf6a13842b7c483fab5815200cbf461933afb586"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: App/AppServices.swift: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 60 over it, 1.12\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":"Sources/MiRemote/App/AppServices.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"149541820926cbdc3412c24c369013fb665b6e4fac7f87e717bed27dacd89208"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoicePage.body: MethodTooLong \u2014 body runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"Sources/MiRemote/UI/VoicePage.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"793146b359b38fbf21df6f586e627c990af7404b9722058d2411064e124da34e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ATVVBridge: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 34 over it, 1.09\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":"Sources/MiRemote/Bluetooth/ATVVBridge.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ab821bf679a2d05872223b6f3ecb30b88dff29b998d30a6a2b99baad3d0472"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/MiRemote/Mapping/MappingEngine.swift:637-655 | Sources/MiRemote/UI/MappingDetailView.swift:6-26 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd3a90a32f3bdbfacb5ae35aff275a935088bbdbb81c19b7f63467b7ab07dbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/MiRemote/Mapping/MappingEngine.swift:762-942 | Sources/MiRemote/Mapping/MappingEngine.swift:1125-1165 | Sources/MiRemote/Mapping/MappingEngine.swift:1169-1237 | Sources/MiRemote/Mapping/MappingEngine.swift:1240-1284 \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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad85055f5af0c1b599a3a022df15a1296c9e92557f65d782963ff35ad24afe0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Sources/MiRemote/UI/OverlayCenter.swift:635-673 | Sources/MiRemote/UI/StatusItemController.swift:373-415 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/UI/OverlayCenter.swift"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"f997d10eaf57dd54cb3061b9fd2b52237bc5d15c67bbe1e716d4ef2c54fddc6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/MiRemote/Bluetooth/ATVVBridge.swift:343-356 | Sources/MiRemote/Bluetooth/ATVVBridge.swift:358-375 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/Bluetooth/ATVVBridge.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e93dd68838ffccdaf096338af5756f429a82aaccd412da379ba00d229e5bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Sources/MiRemote/App/HealthMonitor.swift:133-137 | Sources/MiRemote/Integrations/ClaudeHooks.swift:21-25 | Sources/MiRemote/Integrations/EventListener.swift:60-64 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/App/HealthMonitor.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"509841d84fccef59af39bbfde3a839010dd245052b6241a169b109de6dddbe01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/MiRemote/UI/OverlayCenter.swift:595-612 | Sources/MiRemote/UI/OverlayCenter.swift:642-659 \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 \u0060Sources/MiRemote/UI/OverlayCenter.swift:595\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. 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":"Sources/MiRemote/UI/OverlayCenter.swift"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"6366d31577f5fe046a8fea414c3ece4be687128ba397ab2cacc41a3f3a73db9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/MiRemote/Mapping/MappingEngine.swift:641-655 | Sources/MiRemote/UI/MappingDetailView.swift:12-26 \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 \u0060Sources/MiRemote/Mapping/MappingEngine.swift:641\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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7c00251a3c6f0607d399f69350a40beeae9a72235e6d7b7d4d3dbda2dda581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Sources/MiRemote/Mapping/MappingEngine.swift:763-776 | Sources/MiRemote/Mapping/MappingEngine.swift:1170-1181 \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 \u0060Sources/MiRemote/Mapping/MappingEngine.swift:763\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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0933fc2541daa35f03067092ceec593704e1cc20b45102886d9391abeb55eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/MiRemote/UI/OverlayCenter.swift:661-673 | Sources/MiRemote/UI/StatusItemController.swift:402-415 \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 \u0060Sources/MiRemote/UI/OverlayCenter.swift:661\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":"Sources/MiRemote/UI/OverlayCenter.swift"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7799f58bf0d72ba04323f7eaacd7e4347a43d40f010b15c4cdd8f2169b85be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/MiRemote/Mapping/MappingEngine.swift:1126-1136 | Sources/MiRemote/Mapping/MappingEngine.swift:1241-1251 \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 \u0060Sources/MiRemote/Mapping/MappingEngine.swift:1126\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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c285011720d22c911ad0490f1a6e595998d07e23e9fbef0edd835745320860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/MiRemote/Mapping/Presets.swift:427-440 | Sources/MiRemote/UI/AppModel.swift:399-412 \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. 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":"Sources/MiRemote/Mapping/Presets.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7044cbbd38e17f10375f5a2d1d1fe192e824e14a650392503381ef6638d1176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/MiRemote/UI/HealthCheckSheet.swift:29-39 | Sources/MiRemote/UI/ProfilePage.swift:250-260 \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 \u0060Sources/MiRemote/UI/HealthCheckSheet.swift:29\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":"Sources/MiRemote/UI/HealthCheckSheet.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25b8c253da57b9454e3fffd49a2e7c3b3734356e6c23b6cd1041ff9230c1862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): Sources/MiRemote/UI/OverlayCenter.swift:594-601 | Sources/MiRemote/UI/OverlayCenter.swift:641-648 | Sources/MiRemote/UI/StatusItemController.swift:381-390 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MiRemote/UI/OverlayCenter.swift:594\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":"Sources/MiRemote/UI/OverlayCenter.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f7d64a6f58982b380c991210445eebb6aed911d2d736623aac7fd48cfc6c3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/MiRemote/UI/HealthCheckSheet.swift:31-39 | Sources/MiRemote/UI/MappingPage.swift:250-258 | Sources/MiRemote/UI/ProfilePage.swift:252-260 \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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/UI/HealthCheckSheet.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"083d6178a2ce77329563ece25c0dc971040f078ab553aff7df9d700d121ec8e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/MiRemote/Mapping/MappingEngine.swift:1176-1183 | Sources/MiRemote/Mapping/MappingEngine.swift:1246-1253 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/MiRemote/Mapping/MappingEngine.swift:1174\u0060 calls \u0060makeEngine\u0060 and \u0060Sources/MiRemote/Mapping/MappingEngine.swift:1244\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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"661c2243478b6b35e1dee4fb5c1203a9e4f0387eb31adff972a48d4c551f53c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/MiRemote/Mapping/MappingEngine.swift:770-776 | Sources/MiRemote/Mapping/MappingEngine.swift:1130-1136 | Sources/MiRemote/Mapping/MappingEngine.swift:1175-1181 | Sources/MiRemote/Mapping/MappingEngine.swift:1245-1251 \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 \u0060Sources/MiRemote/Mapping/MappingEngine.swift:770\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 before the matched lines, \u0060Sources/MiRemote/Mapping/MappingEngine.swift:769\u0060 calls \u0060makeEngine\u0060 and \u0060Sources/MiRemote/Mapping/MappingEngine.swift:1129\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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"f829edd77f037a55ecb7dee69945d1b265be24444103643d260143adac464b9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/MiRemote/HID/KeyRemapper.swift:159-165 | Sources/MiRemote/HID/KeyRemapper.swift:258-264 \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":"Sources/MiRemote/HID/KeyRemapper.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f315b7c3477fb2dd3e7f14a9b1c27a8c194effc6ada3d43acfa601d8c665c245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/MiRemote/UI/VoicePage.swift:89-95 | Sources/MiRemote/UI/VoicePage.swift:101-107 \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 \u0060Sources/MiRemote/UI/VoicePage.swift:89\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":"Sources/MiRemote/UI/VoicePage.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93a0f6337e4340435f2fda0ca1ac3725c386c43069284d9be546b4e0eae9fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/MiRemote/UI/HealthCheckSheet.swift:120-125 | Sources/MiRemote/UI/HealthCheckSheet.swift:127-132 | Sources/MiRemote/UI/HealthCheckSheet.swift:134-139 \u2014 all 3 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 \u0060Sources/MiRemote/UI/HealthCheckSheet.swift:120\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":"Sources/MiRemote/UI/HealthCheckSheet.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba31d141b0785262d6057ff165b03f2c57783dd7a8aef7fb64d98b9cad5cda4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/MiRemote/Mapping/MappingEngine.swift:1043-1048 | Sources/MiRemote/Mapping/MappingEngine.swift:1095-1100 \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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"497c20bad0228fb14350e30b5d0b65202b38ec96b1d5c6cd3a1802bdd3efc476"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/MiRemote/UI/OverlayCenter.swift:920-925 | Sources/MiRemote/UI/OverlayCenter.swift:1097-1102 \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 \u0060Sources/MiRemote/UI/OverlayCenter.swift:920\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":"Sources/MiRemote/UI/OverlayCenter.swift"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"797b4fb46cd13998b78aad4997d1524f3700e4bf4584079b700cb6dd708a5d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/MiRemote/UI/RootView.swift:39-44 | Sources/MiRemote/UI/StatusItemController.swift:247-252 \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 \u0060Sources/MiRemote/UI/RootView.swift:39\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":"Sources/MiRemote/UI/RootView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2b020ee8de03d0aff78896f25b93038fafcbcd363c18ccbeb2aaee6911b861"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 4): Sources/MiRemote/HID/KeyRemapper.swift:188-192 | Sources/MiRemote/HID/KeyRemapper.swift:213-214 | Sources/MiRemote/HID/KeyRemapper.swift:252-253 | Sources/MiRemote/HID/KeyRemapper.swift:266-270 \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 \u0060Sources/MiRemote/HID/KeyRemapper.swift:188\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. 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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/MiRemote/HID/KeyRemapper.swift:266\u0060 calls \u0060runHidutil\u0060 and \u0060Sources/MiRemote/HID/KeyRemapper.swift:213\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":"Sources/MiRemote/HID/KeyRemapper.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a99f75b234dff789894acb57d97e3af543497b0be8f04acf6d4b07731258d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/MiRemote/Mapping/MappingEngine.swift:888-892 | Sources/MiRemote/Mapping/MappingEngine.swift:929-933 \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 \u0060Sources/MiRemote/Mapping/MappingEngine.swift:888\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 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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2b246745a9dff931754a0276161583edaff13297e58466e373253c9559ced1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): Sources/MiRemote/UI/RemoteDiagram.swift:204-206 | Sources/MiRemote/UI/RemoteDiagram.swift:219-223 | Sources/MiRemote/UI/RemoteDiagram.swift:241-245 \u2014 all 3 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 \u0060Sources/MiRemote/UI/RemoteDiagram.swift:219\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 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":"Sources/MiRemote/UI/RemoteDiagram.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d033d6ad7f35dec961f4c40aa5e011a450cc7ca87e5a0535c3144d6a2c5848f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/MiRemote/UI/OverlayCenter.swift:675-684 | Sources/MiRemote/UI/StatusItemController.swift:417-427 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/UI/OverlayCenter.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34ab2c120e0a1bb55d8f7ab8fc798ca95aa98de30b44dd5fd879b8a4aba2e1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/MiRemote/Integrations/ClaudeHooks.swift:64-68 | Sources/MiRemote/Integrations/ClaudeHooks.swift:79-83 \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 \u0060Sources/MiRemote/Integrations/ClaudeHooks.swift:64\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":"Sources/MiRemote/Integrations/ClaudeHooks.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6ebd13c55be6beceaf888d69e781479494689472709c254dff6483ceb9b6e2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: KeyMapperApp (LCOM4 5): KeyMapperApp\u0027s methods fall into 5 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 5 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":"Sources/MiRemote/App/AppServices.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae268ae525cf9f158ea592cd62f694fb5d36e8ed0067bebc2dc744fdd88691f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppModel (LCOM4 4): AppModel\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":"Sources/MiRemote/UI/AppModel.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a267a8077e4321fb3707bfb449de21a23670b879f3d37d9e3d3922d37fb6bf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/MiRemote/App/main.swift: Sources/MiRemote/App/main.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in main.swift.top-level code at line 10. 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-05-26..2026-08-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-26 21:21:43 \u002B08:00\u0027 --until=\u00272026-08-24 21:21:43 \u002B08:00\u0027 --full-history --no-merges -- Sources/MiRemote/App/main.swift\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":"Sources/MiRemote/App/main.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8f1cbb4dc3b81e536d49e063e2854597818543d1e70c2d0ad7ec71d7664d3f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/MiRemote/App/AppServices.swift: Sources/MiRemote/App/AppServices.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in AppServices.swift.migrateConfigIfNeeded at line 79. 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-05-26..2026-08-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-26 21:21:43 \u002B08:00\u0027 --until=\u00272026-08-24 21:21:43 \u002B08:00\u0027 --full-history --no-merges -- Sources/MiRemote/App/AppServices.swift\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":"Sources/MiRemote/App/AppServices.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17f963ccf6b9b2a7883e78e5fea2e1d07e7f4e2e78644cbdc0cb1b84c9b3d30"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/MiRemote/UI/OverlayCenter.swift: Sources/MiRemote/UI/OverlayCenter.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SystemMenuCatalog.selfCheck at line 79. 1 of those changes was a fix/bug commit, and the other 9 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-05-26..2026-08-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-26 21:21:43 \u002B08:00\u0027 --until=\u00272026-08-24 21:21:43 \u002B08:00\u0027 --full-history --no-merges -- Sources/MiRemote/UI/OverlayCenter.swift\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":"Sources/MiRemote/UI/OverlayCenter.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4e91487f55c55e1c1ed07f47e227e4f1ebe8d1b707af00dde42132fd08f5c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/MiRemote/Mapping/MappingEngine.swift: Sources/MiRemote/Mapping/MappingEngine.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MappingEngine._handle at line 308. 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-05-26..2026-08-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-26 21:21:43 \u002B08:00\u0027 --until=\u00272026-08-24 21:21:43 \u002B08:00\u0027 --full-history --no-merges -- Sources/MiRemote/Mapping/MappingEngine.swift\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":"Sources/MiRemote/Mapping/MappingEngine.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea5bde47d23d373ba369b074da3add035cc15ee46e32f9d89568e9b5d9616d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/MiRemote/HID/KeyRemapper.swift: Sources/MiRemote/HID/KeyRemapper.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in TapEngine.handle at line 565. 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-05-26..2026-08-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-26 21:21:43 \u002B08:00\u0027 --until=\u00272026-08-24 21:21:43 \u002B08:00\u0027 --full-history --no-merges -- Sources/MiRemote/HID/KeyRemapper.swift\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":"Sources/MiRemote/HID/KeyRemapper.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"5393e50f07b6266025ef56a5974b735e9fb5d68d67055e6bcc6bb0da51e94111"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/MiRemote/UI/AppModel.swift: Sources/MiRemote/UI/AppModel.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ActionSummary.describe at line 133. 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-05-26..2026-08-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-26 21:21:43 \u002B08:00\u0027 --until=\u00272026-08-24 21:21:43 \u002B08:00\u0027 --full-history --no-merges -- Sources/MiRemote/UI/AppModel.swift\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":"Sources/MiRemote/UI/AppModel.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ed1b9cfd51d63478f6df11fe643be0756540acafced00da1b9baee0d83d03b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/MiRemote/UI/OnboardingWizard.swift: Sources/MiRemote/UI/OnboardingWizard.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in OnboardingWizard.body at line 74. 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-05-26..2026-08-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-26 21:21:43 \u002B08:00\u0027 --until=\u00272026-08-24 21:21:43 \u002B08:00\u0027 --full-history --no-merges -- Sources/MiRemote/UI/OnboardingWizard.swift\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":"Sources/MiRemote/UI/OnboardingWizard.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5b7da85972534ba383df8c3e604a4457a4003b337b37659186ed019f87d38d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/MiRemote/App/HealthMonitor.swift: Sources/MiRemote/App/HealthMonitor.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in HealthMonitor.runRepair at line 346. 1 of those changes was a fix/bug commit, and the other 5 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-05-26..2026-08-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-26 21:21:43 \u002B08:00\u0027 --until=\u00272026-08-24 21:21:43 \u002B08:00\u0027 --full-history --no-merges -- Sources/MiRemote/App/HealthMonitor.swift\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":"Sources/MiRemote/App/HealthMonitor.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b65240f5c4f9e0cd4d42e08bf93bdd87d34a172b084fd402f8cdba00f91acfa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/MiRemote/Actions/ActionRunner.swift: Sources/MiRemote/Actions/ActionRunner.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ActionRunner.system at line 147. 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-05-26..2026-08-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-05-26 21:21:43 \u002B08:00\u0027 --until=\u00272026-08-24 21:21:43 \u002B08:00\u0027 --full-history --no-merges -- Sources/MiRemote/Actions/ActionRunner.swift\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":"Sources/MiRemote/Actions/ActionRunner.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9fb2ff37c6b9a517e75c5e0afcad6e8caeb561286c56093daa1abc36f4c1bc"}},{"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. ADRs are expected here because \u0060Package.swift\u0060 makes this repository a deployable product (line 8)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Package.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cb68a1ee6c4cb93e1c9ac7b48b28011c2bc672548de5c6ade44fdf2c34c979"}},{"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":"0dbb915274563a1a1c7710b67a8c19d2a107f22fcaf0daddfce999f66be50e9d"},"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"19d4cbb252a3e4997007fe629a8fde65a6a24e745494155b47ed43cbf523f1eb"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"ED1","level":"error","message":{"text":"Blocking wait inside a handler: MouseMode.handle: \u0060MouseMode.handle\u0060 is an event/message handler that blocks on a synchronous wait (a semaphore/queue \u0060.wait\u0060/\u0060.sync\u0060) \u2014 it stalls the handler on a peer or resource and serialises throughput, and can deadlock under load. Await the work asynchronously (\u0060async\u0060/\u0060await\u0060) instead of blocking the handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/Actions/MouseMode.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"df11a912c26b09dae62b835a12e4b1b7e5703e3363d7ecbd59eca25dd96d712a"}},{"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":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/release.yml"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"Changelog looks stale/thin: The changelog this check read carries 2 versioned entries, against a bar of 3. Counted as either the distinct \u0060x.y.z\u0060 versions it names (a link\u0027s target is not counted) or its version-shaped section headings (\u0060## [1.2.0]\u0060, \u0060## V14.x.x\u0060, \u0060## Updates in 8.0.x\u0060), whichever is the larger \u2014 so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read \u2014 release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository \u2014 are not counted here, and this row is about what is re-findable in the tree rather than about how often you release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9a74c249fe67853238d9c15085f7f97d31f51bb82455046aa10c2cef82f67b8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MiRemote/UI/OnboardingWizard.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"897e90dce559936f01ca48378045b0af656a02f62807e3ebfb87229adee71282"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"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-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":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"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":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":7,"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."]}]}