{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03: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":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08: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":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"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":"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":"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":"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":"CalendarService.tools (cyclomatic 106): CalendarService.tools has cyclomatic complexity 106 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a227d55ad97bbc40bcdd2be7eff6eba88dc1f66eb9230536331632c0f8cf5f17"}},{"ruleId":"D1","level":"warning","message":{"text":"MapsService.tools (cyclomatic 54): MapsService.tools has cyclomatic complexity 54 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Maps.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"599788b796c1e492e7e17add6c0fc70c554f07c3a16f4ec40adf8880266a2747"}},{"ruleId":"D1","level":"warning","message":{"text":"RemindersService.tools (cyclomatic 49): RemindersService.tools has cyclomatic complexity 49 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e92747ae1536787b76e308150e83ef59893bff3d2b3b3bfb368cb9d1d2fa598"}},{"ruleId":"D1","level":"warning","message":{"text":"RemindersService.parsedAlarm (cyclomatic 43): RemindersService.parsedAlarm has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"140432e9d70539daaed31cd15cef8a6a344a92a1e724138d46e982cd5294b907"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageService.tools (cyclomatic 42): MessageService.tools has cyclomatic complexity 42 (threshold 15). Of this number, 38 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":"App/Services/Messages.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe8b4a1c5449ae69fde14c477acf28a8cefd90eecb8ddfb0af8fb27c2656c59"}},{"ruleId":"D1","level":"warning","message":{"text":"CaptureService.tools (cyclomatic 36): CaptureService.tools has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Capture.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3420b7e801c5f052cbd099da1e753db83a1b8e161ad3739f59a379078a6b3d7b"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeKitBackend.dispatch (cyclomatic 34): HomeKitBackend.dispatch has cyclomatic complexity 34 (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":"Helper/Services/HomeKitBackend.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cdcc7c8ecebaf9cb677a5127c91a2a99aab291826eb7fa78a328a41f6280e5"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeInput.validate (cyclomatic 34): HomeInput.validate has cyclomatic complexity 34 (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":"Shared/Home/HomeInput.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc44426e5d4f4e72fd99597651f328facbc4f69fc5eda07d20b5284e24c9c30a"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeValue.decode (cyclomatic 33): HomeValue.decode has cyclomatic complexity 33 (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":"Helper/Extensions/HomeKit\u002BExtensions.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86d8ebfb44084f78704f461d300436ff9dfa6182112426b5a95244f3f692277"}},{"ruleId":"D1","level":"warning","message":{"text":"RemindersService.apply (cyclomatic 30): RemindersService.apply has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c16da67f533c255e0181d79d173644a347a404886268134f21dd495500ec99"}},{"ruleId":"D1","level":"warning","message":{"text":"LocationService.tools (cyclomatic 28): LocationService.tools has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Location.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a7196c95dc15f5293a745f7e1bc51b63f0207410a595db29e032abbc0616e3"}},{"ruleId":"D1","level":"warning","message":{"text":"CalendarService.alarm (cyclomatic 27): CalendarService.alarm has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e34ce4089e3fa568e0fa7fb2407df4df2988b96d088c19bdf43a9011a309e48"}},{"ruleId":"D1","level":"warning","message":{"text":"RemindersService.recurrenceRule (cyclomatic 25): RemindersService.recurrenceRule has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bb62b2528e63f37261d92e75a0767911dd4d8ab559db9a9b20d72b736473d1"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeKitBackend.createAutomation (cyclomatic 24): HomeKitBackend.createAutomation has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helper/Services/HomeKitBackend.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c45c9230a6798caf92893406d75d67f9d7e0325c651728808ccd49185039849"}},{"ruleId":"D1","level":"warning","message":{"text":"CNMutableContact.populate (cyclomatic 22): CNMutableContact.populate has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Extensions/Contacts\u002BExtensions.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b736b360c50bb5f5f32fa38335f2e7cea06a2cd855492e9daa9fae2018b2ce0"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerNetworkManager.registerHandlers (cyclomatic 20): ServerNetworkManager.registerHandlers 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":"App/Controllers/ServerController.swift"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63379539691a9031561129e7a9c7e220ebed1561da8373b348a38d56e156adb"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageService.readAttachment (cyclomatic 20): MessageService.readAttachment has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"338706a9d63dee71e4daf0685545d732859599700f65a7dfa0c7eea4cca74ec6"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceMemosService.tools (cyclomatic 20): VoiceMemosService.tools has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/VoiceMemos.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6c5a7dc7d8e061d45c6bc01cfbe16c5801a1ed7a84a8209b5e4b9740f91c99"}},{"ruleId":"D1","level":"warning","message":{"text":"VoicemailService.tools (cyclomatic 20): VoicemailService.tools has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Voicemail.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a3e290c5facf2fe3a73d2e019d49cbc621f8650abf62245f27ba17d72d6dd8"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeService.connect (cyclomatic 19): HomeService.connect has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Home.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a744e7536d411f78c23dc6182c20c4f7b8c217fc2d5f08521c0ad3b0d81e51"}},{"ruleId":"D1","level":"warning","message":{"text":"NotesService.tools (cyclomatic 19): NotesService.tools 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":"App/Services/Notes.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"003e98cb1b3565edff0af169cf338c3149e3451ab7e16de6acfc8217b31134f9"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageService.activate (cyclomatic 18): MessageService.activate has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd18a41e15162b007f708e2ede84038db3727e16ac0b7dc38cb7355606a08e51"}},{"ruleId":"D1","level":"warning","message":{"text":"MusicService.searchCatalog (cyclomatic 17): MusicService.searchCatalog has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Music.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bc393d65e0f10074d08f234e0695794c6e2135b5e4ff71e97453144259ea96"}},{"ruleId":"D1","level":"warning","message":{"text":"RemindersService.value (cyclomatic 17): RemindersService.value has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"910ed70bfffd17e766f35e948afe72ea3fa302b32bae607a5ddb1965c9580cbb"}},{"ruleId":"D1","level":"warning","message":{"text":"ContactsService.tools (cyclomatic 16): ContactsService.tools 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":"App/Services/Contacts.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c17bfc6979ee00e568bf10f5bff13fb6b9f9c4fdc019a5f07b15a42c0c37cd2"}},{"ruleId":"D1","level":"warning","message":{"text":"WeatherService.tools (cyclomatic 16): WeatherService.tools 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":"App/Services/Weather.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"95964e9470ff256ecc4e9ae181890cfb8e89585eb2314ce259fcb04e9472a536"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarService.tools (cognitive 120): CalendarService.tools has cognitive complexity 120 (threshold 15). Drivers by points: if/else 80 (95 pts), boolean chains 14, match/switch 11 (nesting depth added 15). 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":"App/Services/Calendar.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c5603f839fa805b373281f72e787127bb3d52ce28a287fdd53cd9536686d74"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageService.tools (cognitive 66): MessageService.tools has cognitive complexity 66 (threshold 15). Drivers by points: if/else 30 (52 pts), boolean chains 9, ternaries 2 (3 pts), loops 1, match/switch 1 (nesting depth added 23). Of this number, 62 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb3a1c1cf5e9b0e5cdf7c6c48f3f414285677f0ae114498c21fb0bdfed1717a"}},{"ruleId":"D2","level":"warning","message":{"text":"RemindersService.parsedAlarm (cognitive 57): RemindersService.parsedAlarm has cognitive complexity 57 (threshold 15). Drivers by points: if/else 23 (40 pts), match/switch 10 (14 pts), boolean chains 3 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"32278e33317d37aba49f90b46eab01d6fa3311b4af9e298e58c5620bc830d7f2"}},{"ruleId":"D2","level":"warning","message":{"text":"MapsService.tools (cognitive 54): MapsService.tools has cognitive complexity 54 (threshold 15). Drivers by points: if/else 25, boolean chains 17, match/switch 4 (5 pts), ternaries 2 (5 pts), error handling 1 (2 pts) (nesting depth added 5). 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":"App/Services/Maps.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cc4c3ab78db3ca07c406d7ca121197f0e27982bcf333a3ef3fe57c464fa985"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeInput.validate (cognitive 52): HomeInput.validate has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (34 pts), loops 4 (10 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 22). 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":"Shared/Home/HomeInput.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea149ca6ee3eb6d9d2c430d6aca97cdffc86ccb49ec232f4c3e74d08805a976"}},{"ruleId":"D2","level":"warning","message":{"text":"RemindersService.tools (cognitive 50): RemindersService.tools has cognitive complexity 50 (threshold 15). Drivers by points: if/else 32, boolean chains 11, error handling 2, match/switch 2, ternaries 1 (2 pts), loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0766ef87107fde418bf3bccdf0406c308b90627123377eb350b63f37434b67ac"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureService.tools (cognitive 49): CaptureService.tools has cognitive complexity 49 (threshold 15). Drivers by points: if/else 24 (39 pts), match/switch 3 (4 pts), boolean chains 3, error handling 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Capture.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfcc8dccad21a5375c99504de4c187e69792e4b15f553a35fd303b2f9718cd6"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeKitBackend.createAutomation (cognitive 44): HomeKitBackend.createAutomation has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (33 pts), boolean chains 4, error handling 2 (3 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helper/Services/HomeKitBackend.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde49faf7eca7a68391ea706aa224d1b2eb0c6911c2b78c2aa76b11b0387b31c"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerNetworkManager.registerHandlers (cognitive 39): ServerNetworkManager.registerHandlers has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 3 (7 pts), match/switch 1 (4 pts), error handling 1 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Controllers/ServerController.swift"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8f15900c2f44791761ed6cd4572ab30a662b42b281ce53d9debe6f38bfe8c5"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeValue.decode (cognitive 39): HomeValue.decode has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 11, ternaries 1 (2 pts), 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":"Helper/Extensions/HomeKit\u002BExtensions.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d331dbd78608fe4727503346f451293b8750b478b60bd8792e712e25cdcb23d4"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarService.alarm (cognitive 37): CalendarService.alarm has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (27 pts), match/switch 5 (7 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaf181702ddf2785d09319398440daeef0daa9e2d7da4052b686542944aac01"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeService.connectToHelper (cognitive 37): HomeService.connectToHelper has cognitive complexity 37 (threshold 15). Drivers by points: error handling 3 (15 pts), if/else 7 (14 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Home.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f812b47193bd4658a8b404b383b1670cf98ebb35e49a3177cf285340d0c309de"}},{"ruleId":"D2","level":"warning","message":{"text":"RemindersService.recurrenceRule (cognitive 37): RemindersService.recurrenceRule has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (33 pts), boolean chains 3, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3d8217d7ea7601dbb2a304ca5373f5f5a41b1a4e3a816084dbe3ace3b1d9b2"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeService.connect (cognitive 34): HomeService.connect has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 4 (8 pts), ternaries 2 (5 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Home.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e2912639e665acf5f85d49ce77658ba05f11635e743f54ab3bcf863aa847d7"}},{"ruleId":"D2","level":"warning","message":{"text":"CNMutableContact.populate (cognitive 30): CNMutableContact.populate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 4 (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":"App/Extensions/Contacts\u002BExtensions.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7eb405cb7881202caa4d9be6863e04f022d1f40c010baa84bcd54d0bfe5271"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationService.tools (cognitive 29): LocationService.tools has cognitive complexity 29 (threshold 15). Drivers by points: if/else 24 (25 pts), boolean chains 2, loops 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Location.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"892a2239f884258ba68b45d6dd65dd222cce265f85df2b3d852846d023673702"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPService.run (cognitive 25): MCPService.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 4 (12 pts), error handling 4 (9 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CLI/MCPService.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d13010948555ca9a0bc0ec8e7533284a8406b8dc215fb12394cfc62e2800852"}},{"ruleId":"D2","level":"warning","message":{"text":"VoicemailService.tools (cognitive 25): VoicemailService.tools has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20 (25 pts) (nesting depth added 5). 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":"App/Services/Voicemail.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"497ec589dc8265e03d5e91314d75117f5b56b3f5aedc5fbf7350f5b243660413"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeDesktop.swift.updateConfig (cognitive 24): ClaudeDesktop.swift.updateConfig has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), error handling 3 (6 pts), boolean chains 1 (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":"App/Integrations/ClaudeDesktop.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3071174cbbb3a47fc7fdafbed79dfe150d0cfb96ab731b562f4764b820795e"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicService.searchCatalog (cognitive 22): MusicService.searchCatalog has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7, loops 1 (2 pts) (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":"App/Services/Music.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1162a36f4775784b4777c9deb0be2e200a7451242f79a755f20c8a63d30387f"}},{"ruleId":"D2","level":"warning","message":{"text":"NotesService.tools (cognitive 22): NotesService.tools has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 2, boolean chains 1, match/switch 1 (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":"App/Services/Notes.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"845ea17324cc902218a65f75f3be69842b0d481b7ba56c134432527250b22483"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceMemosService.tools (cognitive 22): VoiceMemosService.tools has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 1, loops 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/VoiceMemos.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcd29ea903087d19972e0d0320741b36cb17cc9a184a783f3ed088dc732a095"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerController.finishApproval (cognitive 21): ServerController.finishApproval has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (5 pts), ternaries 2 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Controllers/ServerController.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f1bc7ad462cf4c32fdd182542db98d1a95aa1d11bd88c857cc33b3ca358179"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageService.activate (cognitive 21): MessageService.activate has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6642ecab9d690382fa25c0de5d91221cc7f0a7d4bbb2bc9fec3061db8be0a3c"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageService.readAttachment (cognitive 21): MessageService.readAttachment has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 4, 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":"App/Services/Messages.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d0b847fe4ed02d6f46f359e06d1c03147980ce86d499bb803986a893f0dd3f"}},{"ruleId":"D2","level":"warning","message":{"text":"VoicemailTranscriptDecoder.resolve (cognitive 21): VoicemailTranscriptDecoder.resolve has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/VoicemailStore.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8adb0fe5d9df6dbc4a7c67f529702cfb57bc5cfd5c88574cd889d98287dddb9"}},{"ruleId":"D2","level":"warning","message":{"text":"HelperRuntime.apply (cognitive 20): HelperRuntime.apply has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helper/App.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3a265e9a8a90445c2118b6a1d7c6a4ce6bc4207e850a8285108ec96e8991f7"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeDesktop.swift.loadConfig (cognitive 20): ClaudeDesktop.swift.loadConfig has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 2 (7 pts) (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":"App/Integrations/ClaudeDesktop.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2c4b6ac9ea705f4dff9f92b5fe4e3f5c30cd51031266e7298add12dd9c0b15"}},{"ruleId":"D2","level":"warning","message":{"text":"RemindersService.value (cognitive 18): RemindersService.value has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f49d9d48c932663932a8adb86518769cbc06f8a3b2313bc8e8971105a6915b"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickTimeMovie.childPayloads (cognitive 18): QuickTimeMovie.childPayloads has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (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":"App/Services/VoicemailStore.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"3361225eb84981fd79ea32c60270004289f7dd8d3f8376e75bb91b6ec94c0988"}},{"ruleId":"D2","level":"warning","message":{"text":"ContactsService.tools (cognitive 17): ContactsService.tools has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, ternaries 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":"App/Services/Contacts.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"273309660691e744052db40f50c6fc227b291da0a48f35c5fb208e99c4b779bf"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneService.tools (cognitive 17): PhoneService.tools has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Phone.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a0931b34e115d9d83e233b77c5b4c5fc0da331db6866dd7c3d83fc78c6ecde"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickTimeMovie.duration (cognitive 17): QuickTimeMovie.duration has cognitive complexity 17 (threshold 15). Drivers by points: if/else 2 (6 pts), ternaries 2 (6 pts), loops 2 (3 pts), 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":"App/Services/VoicemailStore.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb70de96ba4f369c77fe3f172c003371ecdf428d6d8ffb0135ef8510a049aec6"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalSocket.readLine (cognitive 16): LocalSocket.readLine has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 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":"CLI/LocalSocket.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4a42714b2c6c03e1c839f72490b336c1895a106d4618f0c861b64376a861b7"}},{"ruleId":"D2","level":"warning","message":{"text":"RemindersService.apply (cognitive 16): RemindersService.apply has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 8, if/else 6, loops 1 (2 pts) (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f71cf1178dfb165a2236c2b654594558588705de786187201814d3acc247244"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CalendarService.tools: MethodTooLong \u2014 tools runs 830 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 730 over it, 8.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3162a0cdf1ec5c8ec490b621d78b8733f06c02aac14bc05291cf3d0fee9283f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemindersService.tools: MethodTooLong \u2014 tools runs 425 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 325 over it, 4.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"0235d009ea673eea3b3fb48d87e93fd5feb8ddd9ecb3f8725f37a262ef061c39"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MapsService.tools: MethodTooLong \u2014 tools runs 412 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 312 over it, 4.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Maps.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e099a2555317755dde1ab184a89f4d6ec232cef553b1e02eb1d949f499e07c1f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CaptureService.tools: MethodTooLong \u2014 tools runs 394 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 294 over it, 3.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Capture.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d34b1e96a1887cdf530f7730f7e84bc7940cccd79691aa00e62695247e568f5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RemindersService: ClassTooLong \u2014 1251 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 851 over it, 3.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cf17271b5ae94473304d4f425bd2362d56d0629a1dfb0875f2130a71a4a545"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/Reminders.swift: FileTooLong \u2014 1430 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: RemindersService (255-2192). The bar is 500 significant lines; this is 930 over it, 2.86\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7e3bbd6c64c812ee57198d6d93bb426501e5be79073a9552bb8814c293f2f9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CalendarService: ClassTooLong \u2014 1027 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 627 over it, 2.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"be70dc3f4ec4124b636c9a26a698e1cf7da4831c05c4f86749f50103b77e4881"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemindersService.parsedAlarm: MethodTooLong \u2014 parsedAlarm runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":1636}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2c570e6fad555f1a25b1064fb043fcd06a1053ab69b0920ba26849655194c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/Calendar.swift: FileTooLong \u2014 1034 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: CalendarService (10-1551). The bar is 500 significant lines; this is 534 over it, 2.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e968bcb380f44accb1fe9c5de05b7f3472de516bd838712861a5b8343d2ad30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controllers/ServerController.swift: FileTooLong \u2014 957 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 457 over it, 1.91\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Controllers/ServerController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fde1fb09e9e095503490d1baa195f7793d47803b167662c43ce6e16207f687"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MessageService.tools: MethodTooLong \u2014 tools runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cd0bd2d01971f3ec83096601fa0342066625643e4e6c08e3fd81b66e6fd537"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeTools.tools: MethodTooLong \u2014 tools runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\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":"Shared/Home/HomeTools.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"188e46cc7c77f7a08725b47eb93af3845797a816fdf5bc84b43d664e482f7270"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContactsService.tools: MethodTooLong \u2014 tools runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Contacts.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"573651dee0cda768d406bcb53d1ae40ba4b0f9bfaa6cd7bee7d336e3bb2ca163"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LocationService.tools: MethodTooLong \u2014 tools runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Location.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4f1919502b5dc38f12eb9b35693a58ade20cc07f96b1194046befb2fe6358b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MessageService: ClassTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 259 over it, 1.65\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c3eb2d806810165bae6e05d992d008aecf309ee08f107fc290af8c62fb8047"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WeatherService.tools: MethodTooLong \u2014 tools runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Weather.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"775a77f85b93cf2228511855651ccb6e4375a6246aa21ced00e10f48ab7661d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RemindersService.recurrenceRule: MethodTooLong \u2014 recurrenceRule 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":"App/Services/Reminders.swift"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b34a0fe9ca1c9f85c748da181d35fb1d0dde70ca90ee1bc094fe4df41744d04"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CalendarService.alarm: MethodTooLong \u2014 alarm runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff28230b11550dcad6e1293a7387c3eaa5f6491c0fa9966f2dd8bff902b43bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoiceMemosService.tools: MethodTooLong \u2014 tools runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/VoiceMemos.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac32a91edba792addd6913a33d4e333ef1355e491c437bc192a45156faa787c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotesService.tools: MethodTooLong \u2014 tools runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Notes.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1615460e77a91d79a61a95d69da8ab58719f6ef29278fd9af7f87a8ae9d746e4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoicemailService.tools: MethodTooLong \u2014 tools runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Voicemail.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadaf19e18b50b7c2dbba31cbb8a39309b6d4ec11dbaca851f3be11eb954c3d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/Music.swift: FileTooLong \u2014 691 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 191 over it, 1.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Music.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15372bc7b1f8156c6db517441ad0a8daa76a198666620f7d7911162e4df4674a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServiceRegistry.configureServices: MethodTooLong \u2014 configureServices runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Controllers/ServerController.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"662df7f024432c79af280a929a758fc4adabeca18d774162cda3680d585727b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/Home.swift: FileTooLong \u2014 685 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 185 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Home.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee089977a1c42a0f3bbb2f4f46a1e9de81fd1458d688095fe9f740fc5b3bccaf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MailService.tools: MethodTooLong \u2014 tools runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Mail.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e8466bd6d3e087d99f66cbd9b45f5b5ee300789816d831ba6e9fa3d9f74395"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/Messages.swift: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MessageService (19-1067). The bar is 500 significant lines; this is 172 over it, 1.34\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0682c2ba063037ee0a05c54cdafc50e09cb7f10b6053c6d82bedc46429e1ac6b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MusicService.tools: MethodTooLong \u2014 tools runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Music.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4ce9578936de3aa0b32b049cc06f7b54e407b4b5a820e6042fd863fbe6f753"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServerNetworkManager.registerHandlers: MethodTooLong \u2014 registerHandlers runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Controllers/ServerController.swift"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed8f0872c91404c74eb5530b5e211aa8f90c9c191a0934f8c88af15eb410160"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MapsService: ClassTooLong \u2014 453 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 53 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Maps.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"71127fca5e6ec2bd8866f7fe082844ec64dea60664a4721552d46b43fbf69dc7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CaptureService: ClassTooLong \u2014 453 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 53 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Capture.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"31161e1c0ac835e9cdbbfd07fcc42bdcad96890aa344cd2c6add9aa6ed8f0e9a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhoneService.tools: MethodTooLong \u2014 tools runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Phone.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6366d9632b8f0d014434056c6d60b638ebd5181912ab39c9e7bf8b54c5c32c07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/Capture.swift: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: CaptureService (12-645). The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Capture.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"894701be2ce7aa226d0caf175abbb143e2e4397e599a833781d98e222507af87"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MusicService.searchCatalog: MethodTooLong \u2014 searchCatalog runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Music.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b9235a91e16385ed27f6a1ceac26edfdbcbd9912395e88eb74f6b26cc0aa2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): App/Services/Mail.swift:264-274 | App/Services/Notes.swift:302-312 | App/Services/Phone.swift:219-229 | App/Services/VoiceMemos.swift:295-305 | App/Services/Voicemail.swift:282-292 \u2014 These 5 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 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Mail.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fc651163f5ce789cf8dbf9ddf4cf7d2049eaff5c9ec229eb1101771f33e8f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): App/Services/Notes.swift:484-499 | App/Services/Phone.swift:402-417 | App/Services/VoiceMemos.swift:515-530 | App/Services/Voicemail.swift:466-481 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Notes.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"374abe1b5bd40615823b47b939f2fc575c4f86b5a233a9378d6c73f94f8cac70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): App/Services/Phone.swift:504-527 | App/Services/VoicemailStore.swift:638-661 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"App/Services/Phone.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf20d35d29e89fd4a011ed5987ba974e41678c49e58646ccacc7559f74ec67e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Helper/Services/HomeKitBackend.swift:160-178 | Helper/Services/HomeKitBackend.swift:216-236 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"Helper/Services/HomeKitBackend.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"581f5ed901d8f22d5ffaeba8014be120a418f999325653372209c4b50095ada3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): App/Services/Location.swift:68-111 | App/Services/Location.swift:407-439 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"App/Services/Location.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8614759c27fd0586b6cfb937ad98082f4611a87f0de7b99db1c8ae3d7b5c766f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): App/Services/VoicemailStore.swift:663-685 | App/Services/VoicemailStore.swift:687-708 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"App/Services/VoicemailStore.swift"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79c77ad8923fb1cbd7a10f0cfd68fd08fee792bb51aee3268584f70c0fcb653"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): App/Services/Phone.swift:182-216 | App/Services/VoiceMemos.swift:265-292 | App/Services/Voicemail.swift:252-279 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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":"App/Services/Phone.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f974f2d9533c95eff25387e4055bd5b68042bd6974780f97d508139af1e760"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): App/Services/Reminders.swift:1103-1128 | App/Services/Reminders.swift:1155-1177 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"App/Services/Reminders.swift"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d60cc3cc296ffd11cbe10cdf2c8d81ccb5d7ac3c0d1a2afeb0d3ad162c65a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 22\u002B corresponding lines): App/Services/Mail.swift:390-415 | App/Services/Messages.swift:955-976 | App/Services/Messages.swift:980-1003 | App/Services/Notes.swift:502-523 | App/Services/Phone.swift:420-442 | App/Services/VoiceMemos.swift:533-554 | App/Services/Voicemail.swift:484-506 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 22 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Mail.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"33115c60caeef238813ee07d863fa2691bcf15c02eccb30073da6990afa9a6dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 23\u002B corresponding lines): App/Services/Mail.swift:336-358 | App/Services/Notes.swift:334-359 | App/Services/VoiceMemos.swift:353-378 | App/Services/Voicemail.swift:330-355 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 23 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Mail.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e55b489765dfd5e362bb7cb720a2b4e0a50919167a91ecdf29c0fd1735098e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): App/Services/Messages.swift:1023-1035 | App/Services/Messages.swift:1037-1049 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"App/Services/Messages.swift"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10a38fb53b4dd063576a7de4a7fbe1285a78c9b72cdc29078c37550e10caf24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): App/Services/Reminders.swift:1083-1101 | App/Services/Reminders.swift:1130-1151 | App/Services/Reminders.swift:1179-1196 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"App/Services/Reminders.swift"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c1a36465da0a31ab39c3969c4718c329b5a2c6ec9af3465994be685c47870f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): App/Services/Phone.swift:544-553 | App/Services/VoicemailStore.swift:725-734 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"App/Services/Phone.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15fc0bab7d97bb074e4c3220096400d07eb5641fd36f5cc0d044b4f7fde3dbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): App/Services/VoiceMemos.swift:309-317 | App/Services/Voicemail.swift:296-306 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"App/Services/VoiceMemos.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0de0a8e0c46cc12cad66cf7e7cd42676015b408e948e622f61c2904337ffc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Helper/Services/HomeKitStore.swift:88-95 | Helper/Services/HomeKitStore.swift:96-103 | Helper/Services/HomeKitStore.swift:115-122 | Helper/Services/HomeKitStore.swift:123-130 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Helper/Services/HomeKitStore.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f74ed9df2fedafc984ff4ff491e559af08441b9b5247397b2bb4b2f539c546b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): App/Services/Notes.swift:318-328 | App/Services/VoiceMemos.swift:335-347 | App/Services/Voicemail.swift:312-324 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 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":"App/Services/Notes.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce452f4085969e4addabc43aaa322e7582a44d0a4efdba04255958d3b437d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): App/Services/VoiceMemos.swift:380-387 | App/Services/Voicemail.swift:357-364 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"App/Services/VoiceMemos.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"0faed6c9d82ea4e2506f12abf66ccdcfe9cb56d7feda070339eeae0fa2b72e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): App/Extensions/CoreGraphics\u002BExtensions.swift:7-24 | App/Extensions/CoreGraphics\u002BExtensions.swift:26-46 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"App/Extensions/CoreGraphics\u002BExtensions.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"498fb9977c57c1c669aad2c773c4352d75f973c30f6650abc42d947c0523b269"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): App/Services/Messages.swift:1058-1066 | App/Services/Notes.swift:540-546 | App/Services/Phone.swift:459-465 | App/Services/VoiceMemos.swift:571-577 | App/Services/Voicemail.swift:523-529 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a6b91dd6d69895ce3e0fc125b6a249c742a3b896dd1c8ca8164d6d11710f4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): App/Services/Calendar.swift:1274-1281 | App/Services/Music.swift:663-672 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"App/Services/Calendar.swift"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"e684d33ecffce4e7430bd3acfe5de2868653bcc06854495517c8698798430f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): App/Services/Home.swift:99-106 | App/Services/Location.swift:56-66 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"App/Services/Home.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"29af3cc9f509c866e4df6c734a1e2b2c7da1bd6a93c64ed7db9c180f3ff54383"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): App/Services/Home.swift:428-433 | Helper/Server/HelperServer.swift:332-337 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"App/Services/Home.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23ffaecb1730422d1d1d4de2743d7ec8bcfb5460b40b1aeabf829d87f844c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): App/Services/Messages.swift:839-846 | App/Services/Phone.swift:262-269 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"App/Services/Messages.swift"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"955768d68c3847bb3f665c66bc01ee2f9521f1fac0dfa45e83aa787274a7c32a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): App/Extensions/Foundation\u002BExtensions.swift:111-113 | App/Services/Messages.swift:411-413 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"App/Extensions/Foundation\u002BExtensions.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dba654df5ca36225ac4c1883331f637acd232902190694963bfc0c38553fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): App/Services/Calendar.swift:1366-1408 | App/Services/Reminders.swift:1807-1849 \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":"App/Services/Calendar.swift"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9429aa570359c0b6f1d50ed0ef24fe91df054250782ad616e94edc7f33a384a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): App/Services/Location.swift:249-286 | App/Services/Location.swift:345-382 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Location.swift:249\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Location.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"910a67a9cd1552066495cd70580772059e3accfe5984c40cb89318ef3abb6440"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): App/Services/Calendar.swift:617-650 | App/Services/Calendar.swift:892-925 \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":"App/Services/Calendar.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9777590a5678c99b11d119a6b3c365023f189535c9365a78d4c128a41b95535"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): App/Services/Calendar.swift:321-353 | App/Services/Calendar.swift:776-807 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:321\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de57e9861a257d3c282d9d47ca724c77b9fc3debbac94cb19f040535081f729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201332 lines \u00D7 2): App/Services/Calendar.swift:1406-1437 | App/Services/Reminders.swift:1861-1890 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:1406\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"53575c04225fd9583d4cc2aede1f61d2bddd986fc790ff511e72348cfb9ce77f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): App/Services/Calendar.swift:1331-1357 | App/Services/Reminders.swift:1751-1777 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:1331\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac188eb3d6259529adb56a8520abf7f5144605a025172fffb3162622afec4bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 4): App/Services/Notes.swift:112-137 | App/Services/Phone.swift:71-96 | App/Services/VoiceMemos.swift:95-120 | App/Services/Voicemail.swift:117-142 \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 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Notes.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e7d7b83efa41d30bd2d10bf04a52a9e5dd54a0af2e601fbe94d5b360fe565f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): App/Services/Calendar.swift:588-615 | App/Services/Calendar.swift:864-889 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:588\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a68ffcd47e07f77e07ac30ef86aab24dbee3b7a560c834a6c7efaa844e2975"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201326 lines \u00D7 2): App/Services/Reminders.swift:467-487 | App/Services/Reminders.swift:566-591 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Reminders.swift:467\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f63f1b96ea3476fecc81d427b73045faa10a7ca5f54523c81655759cc7dac23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201324 lines \u00D7 2): App/Services/Reminders.swift:794-817 | App/Services/Reminders.swift:874-893 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Reminders.swift:794\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"265701b1bfdad14c78eaf88e25fa3e4428fd1cdc89c752cf0062a9c381fbfdc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): App/Services/Phone.swift:477-498 | App/Services/VoicemailStore.swift:611-632 \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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Phone.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f96c2d423c373d04c8a361477cf26026b2d5a6ba40b5d9136616978b3b65c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201321 lines \u00D7 3): App/Services/Reminders.swift:472-487 | App/Services/Reminders.swift:571-591 | App/Services/Reminders.swift:680-695 \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 \u0060App/Services/Reminders.swift:571\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de9c2eb3ee809e47263f3dbb741ec404d7ae738886298c75ddbe4a6ac7f113d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): App/Services/Calendar.swift:278-297 | App/Services/Calendar.swift:733-753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:278\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":"App/Services/Calendar.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60f5d7c8304759e4002f2d58616e304538a820ea99d9d91cca0e076d66eda80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): App/Services/Calendar.swift:299-319 | App/Services/Calendar.swift:754-774 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:299\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"262b4d3971a5aa0f0fa3fc40234ed41d07db3a8baaf8dc3507e9da508655965f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): App/Services/Calendar.swift:555-575 | App/Services/Calendar.swift:824-844 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:555\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58a69cce074766fba965e11bfea270f5394fb2987992eecec8f588f3ffbf42b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): App/Services/Voicemail.swift:156-175 | App/Services/Voicemail.swift:200-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Voicemail.swift:156\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Voicemail.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ac3fbad5f2b86a0af3c07765d24f5fb5e7fd23d9931b348c846ff934013f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): App/Services/Weather.swift:33-52 | App/Services/Weather.swift:76-95 | App/Services/Weather.swift:130-149 | App/Services/Weather.swift:186-205 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Weather.swift:33\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Weather.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1a615ef19e61602e8c43004a3d3250a5e039448a7ec89ef2c9c3d6998673c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): App/Services/Maps.swift:97-116 | App/Services/Maps.swift:327-346 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Maps.swift:97\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":"App/Services/Maps.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"234e4d23a8cd14ea2f156b7f7076d74f04a35d29edcf0825a82af1573bacec87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 3): App/Services/Calendar.swift:850-865 | App/Services/Calendar.swift:1440-1455 | App/Services/Reminders.swift:1899-1917 \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 \u0060App/Services/Calendar.swift:850\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c14ae25be538a19bd9bf44574cb22964870f48786ee5be66e8b46dd9c7e8a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): App/Services/Notes.swift:341-359 | App/Services/VoiceMemos.swift:360-378 | App/Services/Voicemail.swift:337-355 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Notes.swift:341\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Notes.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b0d07d3491666bbb6754ab6ecf48fae4dbf60eddb375a1859107e3a40b31e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): App/Services/Notes.swift:65-83 | App/Services/VoiceMemos.swift:43-59 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Notes.swift:65\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Notes.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"42990a37136167e3fa8ee42769af787e934e85db5dd69a1f06c411cfa796f21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): App/Services/Reminders.swift:670-687 | App/Services/Reminders.swift:895-913 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Reminders.swift:670\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba031bac34508fa2cf8f251cd00da14e1263eb0dac6ae51243b1d20d3a37719e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): App/Services/Calendar.swift:1066-1082 | App/Services/Calendar.swift:1091-1107 | App/Services/Reminders.swift:1729-1748 \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 \u0060App/Services/Calendar.swift:1066\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d30c78ebc8550419af24dc8dc019b9908e5cf7e070b5802437a2ffbe65e428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): App/Services/Mail.swift:184-200 | App/Services/Voicemail.swift:158-173 | App/Services/Voicemail.swift:202-218 \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 \u0060App/Services/Mail.swift:184\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Mail.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"294d5ce407935780b121243d3ac14cb17137ffe9a0f5e38a7fed81770d6d871f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): App/Services/Calendar.swift:31-46 | App/Services/Calendar.swift:97-113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:31\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46a933d8085d5fa1e60d3e609cf5e89bc3a68be80476200f48b5de10c169ffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): App/Services/Location.swift:230-246 | App/Services/Location.swift:327-342 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Location.swift:230\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Location.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c646be195bb524e5edd349b3e3d31cb632078f8fa297b5f02122ce92898bec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): App/Services/Reminders.swift:276-291 | App/Services/Reminders.swift:334-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Reminders.swift:276\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"642e1a20404f5d304f97dbc8b609d85c018cfb3ac4ca45254718ab3307f61462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): App/Services/Messages.swift:151-166 | App/Services/Phone.swift:23-37 | App/Services/Voicemail.swift:56-70 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Messages.swift:151\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":"App/Services/Messages.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c268cfef84dfd8daa7771795a470dc588056ef719e75d738cfc58fa85af44c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): App/Integrations/ClaudeDesktop.swift:160-175 | App/Integrations/ClaudeDesktop.swift:191-205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Integrations/ClaudeDesktop.swift:160\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060App/Integrations/ClaudeDesktop.swift:159\u0060 calls \u0060debug\u0060 and \u0060App/Integrations/ClaudeDesktop.swift:190\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Integrations/ClaudeDesktop.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4c2ce3822d3f44b36ac7b5f8ff7e64d15d4def087e2a3ac86a77a8acf00014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): App/Services/Calendar.swift:559-573 | App/Services/Calendar.swift:828-842 | App/Services/Reminders.swift:473-487 | App/Services/Reminders.swift:572-586 | App/Services/Reminders.swift:681-695 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:559\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4cc8b139c1035f5da9ddd7213a499816b76a15157b60ded2c6250daf032d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): App/Services/Maps.swift:102-116 | App/Services/Maps.swift:332-346 | App/Services/Maps.swift:437-451 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Maps.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30fe6af732d5a68d470adccedc05fa4a0b159aa7231a8741419b60e9dec73ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): App/Services/Calendar.swift:487-501 | App/Services/Calendar.swift:1115-1129 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:487\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, \u0060App/Services/Calendar.swift:1111\u0060 calls \u0060validateStringOrNull\u0060 and \u0060App/Services/Calendar.swift:485\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a40459eefad8f013f8023b44a7494fcfd6741b1a0b532930e77aee7e46b0417"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): App/Services/Calendar.swift:539-553 | App/Services/Calendar.swift:810-823 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:539\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e33e1c7f130eca4e9ba38f231681226e6a8b0d5da63926aec69b543935d9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): App/Services/Notes.swift:486-499 | App/Services/Phone.swift:404-417 | App/Services/VoiceMemos.swift:517-530 | App/Services/Voicemail.swift:468-481 \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 4 call sites, so a change lands once. 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":"App/Services/Notes.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad03cedd747ed64a42521c004be589de80b90d6398847ea845d93705305aac2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): App/Services/Mail.swift:184-196 | App/Services/Phone.swift:113-126 | App/Services/Voicemail.swift:158-169 | App/Services/Voicemail.swift:202-214 \u2014 there are 4 copies across 3 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 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Mail.swift:184\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Mail.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ecde2dbdda41477097244c53ea644f01ddecfa412edceb50c7c2227d22cdaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): App/Services/Music.swift:581-592 | App/Services/Music.swift:594-605 | App/Services/Music.swift:633-644 \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 \u0060App/Services/Music.swift:581\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Music.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b488899f6358581e7246099cdda517451fe2aba31b7a2c355677c08f02ef286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): App/Services/Mail.swift:191-201 | App/Services/Notes.swift:206-217 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Mail.swift:191\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":"App/Services/Mail.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3c0d3a53c149a61c84432827b1f5d28ed93fb3583edbaebeb86f2c597a88e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): App/Services/VoiceMemos.swift:167-178 | App/Services/VoiceMemos.swift:217-228 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/VoiceMemos.swift:167\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/VoiceMemos.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb6b1e23d8ba162216845de829e0f61220f11ebdf549e952f617ef3cd0b4ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 5): App/Services/Mail.swift:155-161 | App/Services/Notes.swift:120-130 | App/Services/Phone.swift:79-89 | App/Services/VoiceMemos.swift:103-113 | App/Services/Voicemail.swift:125-135 \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 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Mail.swift:155\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":"App/Services/Mail.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66f7426f5dc3376b23dddcbbb714cbbc7b1ddf89186e9c8182a29248ba4c0f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): App/Services/Maps.swift:137-147 | App/Services/Maps.swift:149-159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Maps.swift:137\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Maps.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"276b38ebcff7b53430b4d49a9fe9b24877f5b4c4599f6c3e9c4e0c34f0ec84d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): App/Services/Messages.swift:916-926 | App/Services/Phone.swift:235-245 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060App/Services/Phone.swift:232\u0060 calls \u0060isReadableFile\u0060 and \u0060App/Services/Messages.swift:913\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb5a094fa747580f232787600a206e96f7989860e19d0847aa20729fe7d6955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): App/Services/Reminders.swift:677-687 | App/Services/Reminders.swift:751-761 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Reminders.swift:677\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc423c9f6190bcc132427bd883a321530436b7462024b13350885c2884533c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): App/Services/Reminders.swift:828-838 | App/Services/Reminders.swift:903-913 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Reminders.swift:828\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa0e14fe834aca67a131d07f8451469b777685246f77a473ebeb7df29b134ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): App/Services/Notes.swift:303-312 | App/Services/Phone.swift:220-229 | App/Services/VoiceMemos.swift:296-305 | App/Services/Voicemail.swift:283-292 \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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Notes.swift:303\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Notes.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"81afaee12c7432dc6a4f771140be0ff191169cc3ebe380edaa87a7c9c5668207"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): App/Services/Reminders.swift:470-479 | App/Services/Reminders.swift:569-578 | App/Services/Reminders.swift:678-687 | App/Services/Reminders.swift:752-761 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Reminders.swift:470\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c0486ababe2bbe3cb64c4849e686487f1dcf06d1d3360aeb18dbf0f2dfc034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): App/Services/Music.swift:679-688 | App/Services/Music.swift:690-699 | App/Services/Music.swift:723-732 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Music.swift"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1e01c5f5d15eb39ec156ac3e5c9f62ace15198117cd9ec440189ede88b4e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 4): App/Services/Music.swift:701-710 | App/Services/Music.swift:734-743 | App/Services/Music.swift:745-754 | App/Services/Music.swift:755-761 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Music.swift:755\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Music.swift"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"54432d19e0ebc4b799a48501cff9b7fdc459ee4e8590e7b53712415b50fdfdd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): App/Services/Phone.swift:102-111 | App/Services/Voicemail.swift:147-156 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Phone.swift:102\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Phone.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a4aee4c369da135c54cc3c265cb17236a1e0e489dc41a2332c602ef3f4bb1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): App/Services/Phone.swift:507-515 | App/Services/VoicemailStore.swift:641-649 \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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Phone.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"af414a3778f90a26cf99bde61225c8d7700b842301886e7db86be886e9684282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): App/Services/VoicemailStore.swift:670-678 | App/Services/VoicemailStore.swift:690-698 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/VoicemailStore.swift:670\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 register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060App/Services/VoicemailStore.swift:666\u0060 calls \u0060selectedColumns\u0060 and \u0060App/Services/VoicemailStore.swift:689\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/VoicemailStore.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57786e4d8e36f568af30dcfe1c409be72b8a81f1fdfdcaeab91e481cb451979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): App/Services/Messages.swift:800-807 | App/Services/Notes.swift:361-368 | App/Services/Phone.swift:300-307 \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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"884e72a7b76bbf1f21d2b1b02c8d5f7c67d505e8fb5c2b36af9966163d1a15db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): App/Services/Mail.swift:264-270 | App/Services/Notes.swift:302-308 | App/Services/Phone.swift:219-225 | App/Services/VoiceMemos.swift:295-301 | App/Services/Voicemail.swift:282-288 \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 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Mail.swift:264\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, \u0060App/Services/Phone.swift:214\u0060 calls \u0060storeBookmark\u0060, \u0060debug\u0060 and \u0060App/Services/Notes.swift:298\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Mail.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aeb4c8b4765b30bf1b7ea319c3fd7612f3a2872c67e48dca19e5ba575aee95c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): App/Controllers/SocketTransport.swift:85-92 | CLI/StdioProxy.swift:96-102 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Controllers/SocketTransport.swift:85\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Controllers/SocketTransport.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6310946a775b711b2dc23146c3b7b13836be2a4cf9dec364f8248e7d301938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): App/Services/Calendar.swift:52-59 | App/Services/Reminders.swift:298-305 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Calendar.swift:52\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Calendar.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9937f237558ddad57856ef9dcbaf072aa589c8e5c55fb08f48db253ac3ec7b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): App/Services/Messages.swift:853-859 | App/Services/Phone.swift:276-282 \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":"App/Services/Messages.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"93602907d27ff7fcfb62473788f702a8bba43b71a857445eddb9e41b17c8e3b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): App/Services/Phone.swift:544-550 | App/Services/VoicemailStore.swift:725-731 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060App/Services/Phone.swift:544\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Phone.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fff3f4e4205e3a3a62758828b3825d7c16a2aedccf0b812a89d2a6a348b27c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): App/Services/Calendar.swift:117-122 | App/Services/Reminders.swift:354-363 \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":"App/Services/Calendar.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25835405d2c1df1ff06bdf0849f1ddfc9215c6cfdc9c45909b7d782d504012f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): App/Services/Mail.swift:377-385 | App/Services/Notes.swift:525-533 | App/Services/Phone.swift:444-452 | App/Services/VoiceMemos.swift:556-564 | App/Services/Voicemail.swift:508-516 \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 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Mail.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"d697169bd9aa70fa6e3ec7bffad2d6eb34d43f6690ede430e34548334634263b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): App/Services/Messages.swift:809-822 | App/Services/Phone.swift:284-298 \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":"App/Services/Messages.swift"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"55806564debc69a6f205a9c4a2ceff418ed8e28a0fcc981a3698148ac3a53763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): App/Services/Notes.swift:25-34 | App/Services/VoiceMemos.swift:28-37 | App/Services/Voicemail.swift:37-46 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Notes.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f694f7f7be803f88fa13436f68edfb8c22e1bb3bf06031c86fd889d2deb60a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): App/Services/Reminders.swift:2064-2070 | Shared/Home/HomeInput.swift:67-73 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Reminders.swift"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d8d4902ed03e4f92cbb3a6ea78266c104b334e9e77f7b559b4ff0b166eb25b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MusicService (LCOM4 4): MusicService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Music.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c731ed0a62855e64c23345632be05c4381899076242211acdf5a47a80ad1c576"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VoiceMemosService (LCOM4 4): VoiceMemosService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/VoiceMemos.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f33f3c98db0f420d22a9d666541db7231d3db00d99effd6cab1a93477ac1c72"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VoicemailService (LCOM4 4): VoicemailService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Voicemail.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd38bc2e8528a5d9d8197fa60c9ee8ad70299550b37661f191202c1768f1316d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HomeKitStore (LCOM4 4): HomeKitStore\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":"Helper/Services/HomeKitStore.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"56316159e81155076a32f00e1aed6a6a472479cb9ed3c7242206d32c6c6aaaa5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLiveLaunchAndRecovery: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/imcp-serverTests/HomeProxyTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f7083889876a807196664ef60023618c59ab505759bd03d94d7dc1f91a64c8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDeniedConnectionGetsNoHandlers: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/imcp-serverTests/ConnectionApprovalGateTests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f6a81f1373824b46ed5b2e6625f76ddb98a945aef902375465077cff6e1a93"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFirstReadFromAPairedHelperCanOutlastTheSharedDeadline: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/imcp-serverTests/HomeProxyTests.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"933bf33ee3fab36ccf37227acda4da827352ea4f27d29219f8f8ffc1b7d25f8c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAllowsAllCharacteristicValueKindsAndTriggerVariants: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/imcp-serverTests/HomeToolsTests.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9e08f21a659b0aec71e702f77284b5002994678ba105b361544c3a6455f94f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testListenReplacesListenerThatFailsCheck: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/imcp-serverTests/LocalSocketTests.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e1f7befb237dbc79f3c22860f862aa6c0becccd2ace6383abe97e7ed99f635"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testListenReplacesListenerInThisProcess: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/imcp-serverTests/LocalSocketTests.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b66c6c58b07d7630c540c6b238d814c6cd26e1b8c05891613cc6a0921a7a22a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testServiceReturningNormallyExitsGroupCleanly: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/imcp-serverTests/ServiceGroupConfigurationTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"87cae477953c260da58eaccd018a62b4b2fb925fd19708cb6172353e76ed879e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: App/Services/Calendar.swift: App/Services/Calendar.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 106 in CalendarService.tools at line 25. 1 of those changes was a fix/bug commit, and the other 7 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:23:21 -08:00\u0027 --until=\u00272026-11-14 10:23:21 -08:00\u0027 --full-history --no-merges -- App/Services/Calendar.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":"App/Services/Calendar.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25d095044cef21420d395c4c4604455c356be28e3b84d0c2bc0184d73463128"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: App/Services/Messages.swift: App/Services/Messages.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in MessageService.tools at line 139. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:23:21 -08:00\u0027 --until=\u00272026-11-14 10:23:21 -08:00\u0027 --full-history --no-merges -- App/Services/Messages.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":"App/Services/Messages.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"411635291bbb3b76af073737d942980003fe665bc822d9fa24ed9e6457b828c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: App/Controllers/ServerController.swift: App/Controllers/ServerController.swift changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ServerNetworkManager.registerHandlers at line 1276. 3 of those changes were fix/bug commits, and the other 27 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:23:21 -08:00\u0027 --until=\u00272026-11-14 10:23:21 -08:00\u0027 --full-history --no-merges -- App/Controllers/ServerController.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":"App/Controllers/ServerController.swift"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cecf79cb65971482373fc7ff1f6911e6dd8893b69874122f8a9598b898ee67"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: App/Services/Reminders.swift: App/Services/Reminders.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in RemindersService.tools at line 270. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:23:21 -08:00\u0027 --until=\u00272026-11-14 10:23:21 -08:00\u0027 --full-history --no-merges -- App/Services/Reminders.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":"App/Services/Reminders.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c40ad7db9c1559488a46f29020057b432dca917fa2c8773ba9a9fc3e89f883e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: App/Services/Location.swift: App/Services/Location.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in LocationService.tools at line 113. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:23:21 -08:00\u0027 --until=\u00272026-11-14 10:23:21 -08:00\u0027 --full-history --no-merges -- App/Services/Location.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":"App/Services/Location.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd53b874d469f1dd950e1861a299a7aedf71d105c75d4475ce94eebe8d527672"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: App/Services/Capture.swift: App/Services/Capture.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in CaptureService.tools at line 96. 1 of those changes was a fix/bug commit, and the other 1 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:23:21 -08:00\u0027 --until=\u00272026-11-14 10:23:21 -08:00\u0027 --full-history --no-merges -- App/Services/Capture.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":"App/Services/Capture.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"21747bac97de0f5d6fb7c8655ae77702cce870a26f076937f991c33f430d8feb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: App/Services/Contacts.swift: App/Services/Contacts.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in ContactsService.tools at line 135. 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-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 10:23:21 -08:00\u0027 --until=\u00272026-11-14 10:23:21 -08:00\u0027 --full-history --no-merges -- App/Services/Contacts.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":"App/Services/Contacts.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9ae6119c089e54dfe9764910deee818a384215d140bc83caae56f83bc3c2d1"}},{"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 \u0060iMCP.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"iMCP.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57d51d8071f4ce9caa6be016473ba125b8ea7cc5fbe6f71fa4feaede986e7b5"}},{"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":"613343d1b752f35745826fe8d15b453cf20383607c0f92f58d6658c1e8f77558"},"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":"53041d0452eb7a0f6d7363cca46cccfc47fe77904a465fee573e39f7c59d9395"},"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":"31e15292ee7781495cff3025f3779e23aded0d07be93120b45c65e1d6518c389"},"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":"7adc332f2d68b4a8e35c8868ce3df7038dc1a68ece15e2a5c16dee165f7a002c"},"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":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d61317fb52a70044a7f78710e1c4cfc9b06fa06f3941bd0187aa999f43b9c79"},"properties":{"dependency":{"package":"github.com/apple/swift-nio","version":"2.99.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"1093e3837e0c6ca0f5396e836e385b1893f3beab4a508c59cdf89be99a896f32"},"taxa":[{"id":"CICD-SEC-5","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":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): HomeService.connect: \u0060HomeService.connect\u0060 performs two independent DURABLE writes \u2014 \u0060pendingKeyStore\u0060 (a persistence store) via \u0060save\u0060 and \u0060keyStore\u0060 (a persistence store) via \u0060save\u0060 \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Home.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d80bfa947cf7158132bf3fcc794b09aba1789a9fd1dc568fdedbe17c801bf1"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): HomeService.connectWithSavedKeys: \u0060HomeService.connectWithSavedKeys\u0060 performs two independent DURABLE writes \u2014 \u0060keyStore\u0060 (a persistence store) via \u0060save\u0060 and \u0060pendingKeyStore\u0060 (a persistence store) via \u0060delete\u0060 \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Home.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"87555115b9764adabc07d2885c643a05ab97b453ed85c5d72f2c9d94a51ec99c"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"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":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isActivated || canAccessDatabaseUsingBookmark\u0060 appears character-identically in 2 files \u2014 App/Services/Messages.swift, App/Services/Notes.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/Messages.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"df90542792a956c3eeb68bf1f7320fb41025253548096f7a82757404457b6c1e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isActivated || canAccessStoreUsingBookmark\u0060 appears character-identically in 2 files \u2014 App/Services/VoiceMemos.swift, App/Services/Voicemail.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Services/VoiceMemos.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6da1a038727ac4453c233eb1a06ac5421ad513d1bc92adeb75cfcbd1c3aab83"}},{"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":"Helper/Services/HomeKitStore.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba465b513ebab252fbf3fdacd07de277ebc6196474599873d80f39832e7a8da"}},{"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":"Helper/Server/HelperAdvertisement.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0144346c1c26310c0bf57a358cbf91ac082ba4caf7cfb22329984c74abd8f11b"}},{"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":"CLI/LocalSocket.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"25779492b7137ae23e141820d0747f2326910d3f87b9f7d72551ff1d91bd2466"}},{"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":"App/Views/ServiceToggleView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1b338f85228ee58f38106f1b1fdf8c7a9e215b218399f1aea697ada32d3fd5"}},{"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":"App/Views/SettingsView.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"083b9887f0c9e4196689c8d578546b3feb2675b4dc25cb8a86b8d2d9880693ea"}},{"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":"App/Services/Home.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"16963a6d5c6b554aaf4dc12fb9359fc127c984340d2ebfd341f574885a724948"}},{"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":"App/Services/Home.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"7473ed88f9ee74b4675fe81d1c6ae532a663593ac36ce1c53bcf4ad26b339124"}},{"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":"App/Services/Home.swift"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"4178ad0db5f23438eaf815206f80d0eb4e5f83027c0231447f227fc1a5b4e65d"}},{"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":"App/Services/Home.swift"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99322d435123092d52b70985ac101a6cc98df0a82fdaf17b2c3f981f0eff08d"}},{"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":"App/Services/Mail.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"60486c2b80d5f4a4d898d1032e442896c3b6e4a1dd4328d0cca043ac7f5dc1af"}},{"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":"App/Services/Maps.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"025d8d94bafafaa261d69f7625d6e6bb69b622a52de40dfb9afbd4c1344daa90"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060disabledTools\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"App/Controllers/ServerController.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"758214ccc2e649676821d47cc2deac6388bed9ec9f6d9ab5989186bcc6787fa8"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.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-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"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/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_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-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"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":10,"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."]}]}