{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"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":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"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":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"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":"AppState.loadSessions (cyclomatic 26): AppState.loadSessions has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9caabf982aa535ea2391ca3366acc5c7c769f7fbdba1ad4084a18ea4e3a0511"}},{"ruleId":"D1","level":"warning","message":{"text":"CronScheduleFormatter.humanReadableDescription (cyclomatic 23): CronScheduleFormatter.humanReadableDescription has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2eff094bc3f4f1c8fb5afde10a0873ee5672fde878e16cc6d34b747ffcd8b0a"}},{"ruleId":"D1","level":"warning","message":{"text":"CronScheduleDraft.from (cyclomatic 22): CronScheduleDraft.from has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6b8af53a4d320c7ffb2d3ebcbfb658aa681241d07f5715fbe68d0a196dd30a"}},{"ruleId":"D1","level":"warning","message":{"text":"SSHTransport.formattedRemoteFailure (cyclomatic 22): SSHTransport.formattedRemoteFailure has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/SSH/SSHTransport.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb63b77c75fb0b0defb48dd7bacac70c4aff84365cf751c34acc74fb1da2e2f4"}},{"ruleId":"D1","level":"warning","message":{"text":"KanbanTaskDetailView.actionPanel (cyclomatic 22): KanbanTaskDetailView.actionPanel has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ee5ab684c8cc4c861864bf460d3dd127ce1b716607f1b3cb8ebbf9a565c26b"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalViewHost.deliverInitialInputIfNeeded (cyclomatic 20): TerminalViewHost.deliverInitialInputIfNeeded has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/Terminal/TerminalViewHost.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a31f0ad49ac4d094bdacb80c1f1325227e5a07ff266727609b2e2906cd7a99"}},{"ruleId":"D1","level":"warning","message":{"text":"AppState.canRefreshCurrentSection (cyclomatic 18): AppState.canRefreshCurrentSection has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb43bfde2f635e93a0083231dda93a7e23d1667e5e4e8c712ecb101f26f79528"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.loadSessions (cognitive 44): AppState.loadSessions has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (31 pts), boolean chains 6, ternaries 2 (6 pts), error handling 1 (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Sources/HermesDesktop/App/AppState.swift holds 6 of the 18 methods over the threshold \u2014 including the worst \u2014 and 44 of the 105 points over it (42%), 2.9\u00D7 the next-largest file (Sources/HermesDesktop/Views/Kanban/KanbanView.swift at 15). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd4ec0244360be542e147685657e30f2bf732a934490ba39406f736a32c3662"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalViewHost.deliverInitialInputIfNeeded (cognitive 28): TerminalViewHost.deliverInitialInputIfNeeded has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 4, 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":"Sources/HermesDesktop/Services/Terminal/TerminalViewHost.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"393752a40831ff5a1f1af7ed64ed8b392abe3d277cb2b440706fed3513e0c7d2"}},{"ruleId":"D2","level":"warning","message":{"text":"SSHTransport.formattedRemoteFailure (cognitive 24): SSHTransport.formattedRemoteFailure has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 7 (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":"Sources/HermesDesktop/Services/SSH/SSHTransport.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe0260409556cb698858525612672ffd4cb3b6e9bb195625aa62d820785518f"}},{"ruleId":"D2","level":"warning","message":{"text":"KanbanTaskDetailView.actionPanel (cognitive 23): KanbanTaskDetailView.actionPanel has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 9 (11 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae6b3b53c7a0487d519ad5bcd94e646f870c6cef8ac707882c6ce86429f2b25"}},{"ruleId":"D2","level":"warning","message":{"text":"CronScheduleFormatter.humanReadableDescription (cognitive 22): CronScheduleFormatter.humanReadableDescription has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 10. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b235bbdfb9f0fe98867591eb3d3e95aa0ff6d5302ae041bca99939037d48c1"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.loadSkills (cognitive 21): AppState.loadSkills has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 1, error handling 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Sources/HermesDesktop/App/AppState.swift holds 6 of the 18 methods over the threshold \u2014 including the worst \u2014 and 44 of the 105 points over it (42%), 2.9\u00D7 the next-largest file (Sources/HermesDesktop/Views/Kanban/KanbanView.swift at 15). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c95518d545be946797212ddaa200c550d14085697a9cfaa0ec4db16bb4e590"}},{"ruleId":"D2","level":"warning","message":{"text":"CronScheduleDraft.from (cognitive 21): CronScheduleDraft.from has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, boolean chains 10. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0004e7704e9b19c204ed9dbda45818975282a52ad114a8101f1e4b34873cc5"}},{"ruleId":"D2","level":"warning","message":{"text":"KanbanView.boardContent (cognitive 20): KanbanView.boardContent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acf8949250294788ba553fe450bd9731b6b7dc7647f4959020a7d05f3c1b51b"}},{"ruleId":"D2","level":"warning","message":{"text":"FoundationSSHProcessRunner.run (cognitive 19): FoundationSSHProcessRunner.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/SSH/SSHTransport.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04705e2915a6bef3365c2019141386c501d4b028d0624f544f82a8641e59b39"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionsView.sessionsPanel (cognitive 19): SessionsView.sessionsPanel has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Sessions/SessionsView.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d41a1ec70d1dc551c41e54497e21833e6bd91d393b33795dd7cc5451e6928c"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.loadKanbanBoards (cognitive 18): AppState.loadKanbanBoards has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (4 pts), boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Sources/HermesDesktop/App/AppState.swift holds 6 of the 18 methods over the threshold \u2014 including the worst \u2014 and 44 of the 105 points over it (42%), 2.9\u00D7 the next-largest file (Sources/HermesDesktop/Views/Kanban/KanbanView.swift at 15). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e568c72d5905eb320f7aa763edd5172526934980085d060897eb0c03a7cb331"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.loadKanbanBoard (cognitive 18): AppState.loadKanbanBoard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Sources/HermesDesktop/App/AppState.swift holds 6 of the 18 methods over the threshold \u2014 including the worst \u2014 and 44 of the 105 points over it (42%), 2.9\u00D7 the next-largest file (Sources/HermesDesktop/Views/Kanban/KanbanView.swift at 15). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d84b2f076254ffadd0e992980d8676ce9af7f4d4fa98559f2441c3197bd6803"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.loadUsage (cognitive 17): AppState.loadUsage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Sources/HermesDesktop/App/AppState.swift holds 6 of the 18 methods over the threshold \u2014 including the worst \u2014 and 44 of the 105 points over it (42%), 2.9\u00D7 the next-largest file (Sources/HermesDesktop/Views/Kanban/KanbanView.swift at 15). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"12beb5d0733a4676ceda33e85838259c19d1331acd3606070036b6283994d63e"}},{"ruleId":"D2","level":"warning","message":{"text":"KanbanTaskDetailView.body (cognitive 17): KanbanTaskDetailView.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"9421f67402300958cc5c833b6f31510cae1189d7e98f6ea457597476147e9add"}},{"ruleId":"D2","level":"warning","message":{"text":"AppState.refreshOverview (cognitive 16): AppState.refreshOverview has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: Sources/HermesDesktop/App/AppState.swift holds 6 of the 18 methods over the threshold \u2014 including the worst \u2014 and 44 of the 105 points over it (42%), 2.9\u00D7 the next-largest file (Sources/HermesDesktop/Views/Kanban/KanbanView.swift at 15). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a1c8db11aa872b8af2ed66f6215e7b654b75bc1865919657fb38cdcee00b7f"}},{"ruleId":"D2","level":"warning","message":{"text":"CronJobsView.jobsContent (cognitive 16): CronJobsView.jobsContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa3f3f8c21f8cdf60f14a3f3d980b6a7b55e31ab1a2734c0224995179d97f97"}},{"ruleId":"D2","level":"warning","message":{"text":"CronJobDetailView.metadataPanel (cognitive 16): CronJobDetailView.metadataPanel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"c312d117fb5b3c4d5e9aaf8d7b7631cdfe7e925325826962d3cd6d442ba47f47"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionDetailView.chatMode (cognitive 16): SessionDetailView.chatMode has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 4 (5 pts), boolean chains 2 (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":"Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"461f7b03e37d85cbd38be159df6fcfcd782ce5c0f90c52c8de50f88d6ae72da1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppState: ClassTooLong \u2014 2142 significant lines (blank, comment-only and punctuation-only lines excluded), 136 methods. The bar is 400 significant lines; this is 1742 over it, 5.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b45807925ba130716df142f3f0e82e822d19143073dd45c1db582256e0e40d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppState: TooManyMethods \u2014 136 methods. The bar is 30 methods; this is 106 over it, 4.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99abb9e4cab926fc971cc75452efedc140465c2952386d74646f87c8fb4e951"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: App/AppState.swift: FileTooLong \u2014 2173 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AppState (12-2880). The bar is 500 significant lines; this is 1673 over it, 4.35\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b58bf3bcf78117e4fd027793e95013bf33ce6f2c0e3f5f76fad181f554b8005"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SkillBrowserService.sharedSkillHelpers: MethodTooLong \u2014 sharedSkillHelpers runs 406 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 306 over it, 4.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/SkillBrowserService.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3498cc5ac5378178e48c63373f95e8415bac933b730b9c8d05ca214473cf88"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Kanban/KanbanView.swift: FileTooLong \u2014 1828 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1328 over it, 3.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71714655d93244669875a4b1aa79d31e52fbf00978b11202ce74b0a6c7b7aca0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KanbanTaskDetailView.actionPanel: MethodTooLong \u2014 actionPanel runs 273 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 173 over it, 2.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e96eb0c865df0987ded55d6817c1879fa7570a28f8cc06382b05f39c3c70d37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sessions/SessionDetailView.swift: FileTooLong \u2014 938 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 438 over it, 1.88\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bdf93aaa616ec3a049a0be4590622ad4ed1c2502d582f1fba3eaeecf527145"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Models/KanbanModels.swift: FileTooLong \u2014 899 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 399 over it, 1.80\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/KanbanModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"591489a02e4cfb7c402220e629f6d4d4e689160c9ed78af6d5b71ad2600218ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Connections/ConnectionsView.swift: FileTooLong \u2014 877 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 377 over it, 1.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Connections/ConnectionsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36be1d82f7189a41d1761ea9d05f4eab75bd59250b71565d87bfa16bde99a9dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Shared/HermesUI.swift: FileTooLong \u2014 873 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 373 over it, 1.75\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Shared/HermesUI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d7313961db844935d9163b171cace5b2d54865d9ed68ff5bf6631fc1c2307a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KanbanTaskDetailView: ClassTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded), 18 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":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1ae25c4c0e783d38a47cc2c81fb2ee00c9d3e41170624e03fbd7dabb7f3a98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Usage/UsageView.swift: FileTooLong \u2014 811 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 311 over it, 1.62\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f8d70efa262ef94732549558873ad498254dd159685ffa0b292a2dca35bd34"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CronJobs/CronJobsView.swift: FileTooLong \u2014 765 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 265 over it, 1.53\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd99ac9f755b0bc75563d6ba3842d0077574f9c7523821bbe71411ec7f0c607d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Models/CronJobModels.swift: FileTooLong \u2014 744 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 244 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaab2ded1e6685c69f7333a4e56cd31ccdffe3f2a18d7a979fb143b6fa287abf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SkillBrowserService: ClassTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 190 over it, 1.48\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/SkillBrowserService.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b90391bdd297b855f0a365d5fce5a7ba88a88f3769c3c1185da7e6dc781c043"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConnectionEditorSheet.body: MethodTooLong \u2014 body runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Connections/ConnectionEditorSheet.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03fba3462bde3a5dc42a3ad7dd50c5825453705b1da47a0d843990048388638"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KanbanView: ClassTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 105 over it, 1.26\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"29310f4991699002421805e44129469b6189ab99ef0525fb1b6bf6aba3cebf6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/SkillBrowserService.swift: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: SkillBrowserService (3-765). The bar is 500 significant lines; this is 121 over it, 1.24\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":"Sources/HermesDesktop/Services/SkillBrowserService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3616283a71fd8c211dc1526177252807177b69922d1fdb5e7bea9c2357bc16d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConnectionsView: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 80 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Connections/ConnectionsView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a7f9b2598f9389aef27bdb9b2ee88b3b3d206fc19d9c9a0600ad1c384784b4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConnectionStore: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/Storage/ConnectionStore.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2306374e6e892cb7f8e09ce00272ca0c9ef24d61f4aff04c387798c6a7a09a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Files/FilesView.swift: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 62 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Files/FilesView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e2b51e5fbd90459b99bd351e3b98c1665bce5e6d1ee240ae782818f35dbddf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Models/SessionModels.swift: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 55 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/SessionModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03abef8c4393e082c11320039eda38168b8e0de34bfc21114e4bbf809d994e15"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConnectionStore: ClassTooLong \u2014 411 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 11 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/Storage/ConnectionStore.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbe8a8af56d48a31902bc04c2eee5f224c15ba7c6fd3629ba6e987ff60ca846"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UsageView: ClassTooLong \u2014 406 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 6 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca386a5268edb7cd66b3668db474a5238dc118a54d876cdb222c082e5fef4f42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Workflows/WorkflowsView.swift: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Workflows/WorkflowsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d14e4a00dee80010ed587df9781fba31a419b797f40f7da3b08dd36901de562"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): Sources/HermesDesktop/Services/KanbanBrowserService.swift:165-187 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:189-219 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:221-244 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:246-269 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:271-293 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:295-317 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:319-341 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:343-365 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:367-389 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:391-413 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:415-445 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:447-478 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:480-502 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:504-526 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/KanbanBrowserService.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb007462453b39e222c70bf7fe17bccc20292d778944a114e2aeb8d66fc47e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/HermesDesktop/App/AppState.swift:1676-1698 | Sources/HermesDesktop/App/AppState.swift:1764-1786 | Sources/HermesDesktop/App/AppState.swift:1788-1810 | Sources/HermesDesktop/App/AppState.swift:1812-1835 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc19459493c32b18a6d2ad42f65ef5a65d0ad4224bba3d69d3e952430a63a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/HermesDesktop/Views/Usage/UsageView.swift:890-936 | Sources/HermesDesktop/Views/Usage/UsageView.swift:943-980 | Sources/HermesDesktop/Views/Usage/UsageView.swift:1013-1059 | Sources/HermesDesktop/Views/Usage/UsageView.swift:1066-1109 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86531934e66b694303c0b931ea41ce287d771f8d3df540d0b09b91c1da3496f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:90-162 | Sources/HermesDesktop/Views/Skills/SkillsView.swift:54-117 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"314dd8c7bc2cc21f1f75d2a45bec0b5ef14e795dc78a24d08b705d5d0ac194af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:20-66 | Sources/HermesDesktop/Views/Workflows/WorkflowsView.swift:13-66 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2e803636037975df37d7a2bafc8423476f966a998302a7b9bb12772ea8ecef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): Sources/HermesDesktop/App/AppState.swift:2718-2782 | Sources/HermesDesktop/App/AppState.swift:2784-2855 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":2718}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f4dacc7ded6ae79e4a1f69dff70d237fa352fa268e91ca39ffb7a433892b1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:734-769 | Sources/HermesDesktop/Views/Skills/SkillDetailView.swift:288-319 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d164ce293ff4dbd5f173d8dce1a5912bf858f11593c355245bd4999064cbb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Sources/HermesDesktop/Views/Usage/UsageView.swift:439-471 | Sources/HermesDesktop/Views/Usage/UsageView.swift:473-505 \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":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"6574ef7cdd8c138782d41ecbc0053ca192fd9057bd33d9b78a2df6f6796c29e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 31\u002B corresponding lines): Sources/HermesDesktop/App/AppState.swift:1564-1598 | Sources/HermesDesktop/App/AppState.swift:1700-1730 | Sources/HermesDesktop/App/AppState.swift:1732-1762 | Sources/HermesDesktop/App/AppState.swift:1967-2000 | Sources/HermesDesktop/App/AppState.swift:2031-2063 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 31 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":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"7873f41d958796d44442881830b678fa666ef93a2ee0bee9e932e555c33bbcdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/HermesDesktop/Models/CronJobModels.swift:198-226 | Sources/HermesDesktop/Models/KanbanModels.swift:476-502 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c279edbba680382e0a6e8d7a0d4f945f2500f285c360f4893fc3cb077a20383"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift:984-1003 | Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift:1119-1151 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"5886fd8b809a25650db1a252f6b612897268b5aefc996e1ac6371a9bcd427d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): Sources/HermesDesktop/App/AppState.swift:2065-2093 | Sources/HermesDesktop/App/AppState.swift:2258-2284 | Sources/HermesDesktop/App/AppState.swift:2320-2355 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":2065}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6540179d78bdff82803ccbc37da4c6478d05650765d1153e5deff20c5e845b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/HermesDesktop/App/AppState.swift:1379-1404 | Sources/HermesDesktop/App/AppState.swift:1406-1428 \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":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf99c8f02afa2b4ad0511926da739725646169db74746e41943fc837e387da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/HermesDesktop/Services/SkillBrowserService.swift:54-79 | Sources/HermesDesktop/Services/SkillBrowserService.swift:81-111 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/SkillBrowserService.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85f95c6c9d2abc6184f7e1535a57656eb92ef5dec6e8830774b667e6a2b5877"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Sources/HermesDesktop/Views/Kanban/KanbanView.swift:2269-2286 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:2288-2305 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:2307-2324 \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":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":2269}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59fdf21fe1ed9ffc85b76a271c37d67b79e84128d1b044678fb5a9c9bd70757"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/HermesDesktop/Models/SkillModels.swift:79-94 | Sources/HermesDesktop/Models/WorkflowModels.swift:91-100 \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":"Sources/HermesDesktop/Models/SkillModels.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fef06589f4ca9387bcd2648b2d78575a72ae68cd3a4cbe994f4850c20f4f12e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/HermesDesktop/Models/WorkflowModels.swift:55-71 | Sources/HermesDesktop/Models/WorkspaceFileModels.swift:19-33 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/WorkflowModels.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3201e3661d754acadd0d2cd8403aa88449e00c279f6e4ddb32cffdb4235cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/HermesDesktop/Models/WorkflowModels.swift:118-128 | Sources/HermesDesktop/Models/WorkflowModels.swift:149-159 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/WorkflowModels.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"52db69838fd229a837a28188171f04eb93af247c553159cad584e09a5ddd83c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/HermesDesktop/Views/Sessions/SessionsView.swift:405-420 | Sources/HermesDesktop/Views/Sessions/SessionsView.swift:422-437 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Sessions/SessionsView.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba13a5a8e00e47122423a479e7d88f8c910634c79d6b51d0e0fd308f6356d19e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/HermesDesktop/Views/Skills/SkillDetailView.swift:417-429 | Sources/HermesDesktop/Views/Skills/SkillDetailView.swift:478-490 \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":"Sources/HermesDesktop/Views/Skills/SkillDetailView.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"77779223c79db3ad8df3ea2c3fda595d67db76f3cf53092ad59c8bce8ede34a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/HermesDesktop/Models/SessionModels.swift:299-310 | Sources/HermesDesktop/Models/SessionModels.swift:694-709 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/SessionModels.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4edddaae70687c0c78371a52ff2e292a668e112e5e9c1f8c2f9fd659a3bc0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/HermesDesktop/Services/KanbanBrowserService.swift:27-43 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:45-61 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:107-131 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/KanbanBrowserService.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd652ff44132aace3fe9420e7a7cd6dac97b02e2ac903bdf15a8bbb6ba0bcd3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:248-258 | Sources/HermesDesktop/Views/Skills/SkillsView.swift:137-146 | Sources/HermesDesktop/Views/Workflows/WorkflowsView.swift:172-181 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc0bb2682bb9e99af8ad1870907de161a55cecef876f4e6b3bb6a1ee20e8793"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/HermesDesktop/Models/ConnectionProfile.swift:423-428 | Sources/HermesDesktop/Models/ConnectionProfile.swift:430-435 | Sources/HermesDesktop/Utilities/WorkflowLaunchDiagnostics.swift:242-249 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/ConnectionProfile.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"80896b4047eb0f57f9e93bb7b2d4097bfb1c6498644f3a1f2103a1b16aadb1f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Sources/HermesDesktop/Models/HermesChatModels.swift:30-40 | Sources/HermesDesktop/Models/HermesChatModels.swift:72-85 | Sources/HermesDesktop/Models/WorkflowModels.swift:244-260 \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":"Sources/HermesDesktop/Models/HermesChatModels.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8b40edc85b6da4876e061129fb3391f016969acde0e398782505e6da6f5777"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/HermesDesktop/Views/Connections/ConnectionEditorSheet.swift:302-314 | Sources/HermesDesktop/Views/Connections/ConnectionsView.swift:806-822 | Sources/HermesDesktop/Views/Shared/HermesUI.swift:209-222 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Connections/ConnectionEditorSheet.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"7298c491ef379bf150c41887d640b98de861fb497e5ce45762fc6fd756baf0c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/HermesDesktop/Views/Kanban/KanbanView.swift:668-674 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:676-682 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"94556a4437f97ca6909b12cc59a25c9f318e1527689886b87f1703bfcc64f5f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/HermesDesktop/Services/FileEditorService.swift:259-278 | Sources/HermesDesktop/Services/FileEditorService.swift:306-328 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/FileEditorService.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec6313b6ffb73180b09df7898d4777907f67e55f5e7f5f083a24b7819ece1f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/HermesDesktop/Services/SessionBrowserService.swift:33-52 | Sources/HermesDesktop/Services/SkillBrowserService.swift:32-52 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/SessionBrowserService.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b2628ebb2538ed5eb89cf4860b9f2c12fd0c538dec7df55b67923874b4b34c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Sources/HermesDesktop/App/AppState.swift:2095-2117 | Sources/HermesDesktop/App/AppState.swift:2119-2132 | Sources/HermesDesktop/App/AppState.swift:2134-2147 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e31dc880baca8e85caadb80b52df3c458a0bbda5bebb7cc224a612fe911ce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 9\u002B corresponding lines): Sources/HermesDesktop/App/AppState.swift:2149-2157 | Sources/HermesDesktop/App/AppState.swift:2169-2177 | Sources/HermesDesktop/App/AppState.swift:2189-2197 | Sources/HermesDesktop/App/AppState.swift:2199-2212 | Sources/HermesDesktop/App/AppState.swift:2214-2229 | Sources/HermesDesktop/App/AppState.swift:2231-2246 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 9 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d33933727be20892e78521b2934139367eb506cf4936a3f089c1bb7953d78de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/HermesDesktop/Views/Files/FilesView.swift:86-94 | Sources/HermesDesktop/Views/Sessions/SessionsView.swift:312-321 \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":"Sources/HermesDesktop/Views/Files/FilesView.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d84b4bde8ea0e8a2c07a8d34b568f154b1bce9480d940eef17746daae01a2bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/HermesDesktop/Models/KanbanModels.swift:1067-1074 | Sources/HermesDesktop/Models/SkillModels.swift:354-359 \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":"Sources/HermesDesktop/Models/KanbanModels.swift"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3914c682a3dc2cd91df36c64459faba06ca10ea2893f82175df940695fea746"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1490-1501 | Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift:442-453 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80c17c0c95abdf93d35da2c0a2e83340f43b6d9ee5bee146868d45a71b82171"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): Sources/HermesDesktop/Models/CronJobModels.swift:246-249 | Sources/HermesDesktop/Models/KanbanModels.swift:531-534 | Sources/HermesDesktop/Models/RemoteDiscovery.swift:115-118 | Sources/HermesDesktop/Models/SessionModels.swift:543-546 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 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":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d873bb94624e6eee6ee1dd0e5afb983bc25be851993951e1294538eeeda5896"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/HermesDesktop/Models/CronJobModels.swift:810-813 | Sources/HermesDesktop/Models/KanbanModels.swift:504-508 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9efc9de29d23ae74efc524fa9942459cedb768acc4b62e1ac7bf3fa841087c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/HermesDesktop/Models/SessionTUIModels.swift:50-55 | Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift:464-469 \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":"Sources/HermesDesktop/Models/SessionTUIModels.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c89972e1e7a696b117a8503b965f940f5d07d014f4eaf4687cd4e01087ba87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/HermesDesktop/Models/CronJobModels.swift:180-183 | Sources/HermesDesktop/Models/KanbanModels.swift:163-166 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d949809b309d4cf8b90c6136f738930f76f8a6307468a0d05d37a3ac50be5d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/HermesDesktop/Models/KanbanModels.swift:830-833 | Sources/HermesDesktop/Services/UpdateCheckService.swift:116-119 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/KanbanModels.swift"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98e2dfe91b754ba5233d9e9d3491399960bfd04593518488d84371917228fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): Sources/HermesDesktop/App/AppState.swift:2734-2776 | Sources/HermesDesktop/App/AppState.swift:2809-2851 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":2734}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec51a36ac45275ff91e3324493f552feb3fe1222db728f2a5c2bef91b4cf9ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201343 lines \u00D7 2): Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1135-1175 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1226-1268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1135\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":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e777afdc7be85ef153bafabb6b0f1487e4ed80f3a0a2fd873dcc24d683cf389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/HermesDesktop/Services/KanbanBrowserService.swift:222-244 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:247-269 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/KanbanBrowserService.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f8013b39795206b6d6b9a03a8f729ec72f5d090d5a24765fd24d4021bca4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): Sources/HermesDesktop/Services/KanbanBrowserService.swift:296-317 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:344-365 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:481-502 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:505-526 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/KanbanBrowserService.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ba28f6b2486957b959f2bda466e0a6c542b76f63e243c08e2a1964673c5a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:749-768 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1152-1171 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1243-1262 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:749\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86fa132a94602bb318c5232366e787726144d661326ecf8a696e0e7c38a69d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/HermesDesktop/Views/Kanban/KanbanView.swift:2047-2066 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:2069-2088 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e103b747609e88246e19a88c075c655fee361e7285a0ee30de7db487468d566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/HermesDesktop/Views/Usage/UsageView.swift:956-975 | Sources/HermesDesktop/Views/Usage/UsageView.swift:1085-1104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:956\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60da7f730df05243192c50364b124b3b4b5ab285f73efcadb9cdcfeaafeb88e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:956-974 | Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:987-1005 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060label\u0060 to \u0060\u0022Base URL\u0022\u0060 in one and \u0060\u0022Run At\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"99484e4a75cbc1a955535006b60130da774b09f84d6f86b1101ec872b525dadf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/HermesDesktop/Services/KanbanBrowserService.swift:324-341 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:396-413 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Services/KanbanBrowserService.swift:324\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/KanbanBrowserService.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"970c66d8140ef2d8d163ae5e9297be21391789bd8892bd4b514758de3fbf8ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 10): Sources/HermesDesktop/Services/KanbanBrowserService.swift:222-237 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:247-262 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:296-311 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:320-335 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:344-359 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:368-383 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:392-407 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:454-470 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:481-496 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:505-520 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Services/KanbanBrowserService.swift:222\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/KanbanBrowserService.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d873a1b8d6c618771d9f9dbdf43430081ab9e7581c8aeaee5124a520da40dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Sources/HermesDesktop/Services/KanbanBrowserService.swift:272-287 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:422-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Services/KanbanBrowserService.swift:272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/KanbanBrowserService.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"386add27baa544445fe8b8ae30e1801aff87cb77ca922369ef5e09b737042e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1443-1458 | Sources/HermesDesktop/Views/Skills/SkillDetailView.swift:87-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 \u0060Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1443\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c13ba671da941e98b846bb61a01a948e0d4f5df54c40981e9ce76c922188117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 6): Sources/HermesDesktop/Services/KanbanBrowserService.swift:272-282 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:320-330 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:368-378 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:392-402 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:421-433 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:453-465 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Services/KanbanBrowserService.swift:272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/KanbanBrowserService.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7104c2f24723df6076fbb0bc3afe4e57b306dd9e6d6e092b551f934f6378d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/HermesDesktop/App/AppState.swift:1686-1698 | Sources/HermesDesktop/App/AppState.swift:1774-1786 | Sources/HermesDesktop/App/AppState.swift:1798-1810 | Sources/HermesDesktop/App/AppState.swift:1823-1835 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/App/AppState.swift:1686\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"2740e48b73d50dd121525263354acb9f3eb89371064ca11ee788fa7461024044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): Sources/HermesDesktop/App/AppState.swift:540-549 | Sources/HermesDesktop/App/AppState.swift:575-587 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/App/AppState.swift:575\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"472b0b132a161f908303bf398b9fe1d40b2366a0ca1d9dedbf0a6c7c5d9f3ce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/HermesDesktop/Views/Connections/ConnectionsView.swift:298-310 | Sources/HermesDesktop/Views/Connections/ConnectionsView.swift:1197-1209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Connections/ConnectionsView.swift:298\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006016\u0060 in one and \u006018\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Connections/ConnectionsView.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9d696d43c640d8280405b0a1132225c1b80ce6d01d870a81bd0bc6d9f205b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/HermesDesktop/Views/Connections/ConnectionsView.swift:834-846 | Sources/HermesDesktop/Views/Connections/ConnectionsView.swift:880-892 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Connections/ConnectionsView.swift:834\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00604\u0060 in one and \u00600\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Connections/ConnectionsView.swift"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4c64b6ca603abb192369641e709e1aeaf192ad762dbd49a0df513ccc634e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:392-404 | Sources/HermesDesktop/Views/Files/FilesView.swift:398-410 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:392\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HermesDesktop/Views/Files/FilesView.swift:413\u0060 calls \u0060Button\u0060 and \u0060Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:405\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89555b3335a36bef53c23ffc550b7cf9ff54931335f207c22b575c3c763f83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/HermesDesktop/Views/Usage/UsageView.swift:925-936 | Sources/HermesDesktop/Views/Usage/UsageView.swift:969-980 | Sources/HermesDesktop/Views/Usage/UsageView.swift:1048-1059 | Sources/HermesDesktop/Views/Usage/UsageView.swift:1098-1109 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:925\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, \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:1045\u0060 calls \u0060lineLimit\u0060 and \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:922\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"767d633b2c2c6d1bfc679229a036b5882042157b5c1110c61eddc3c682b8f65a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:804-815 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1194-1205 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1280-1291 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:804\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1207\u0060 calls \u0060Toggle\u0060, \u0060toggleStyle\u0060 and \u0060Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:816\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fec675482608bca044e5438fbf28db56bf5a3e168cd7453b0d5cee2743083c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HermesDesktop/App/AppState.swift:1701-1712 | Sources/HermesDesktop/App/AppState.swift:1733-1744 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fa730d351d06cdb4d05e28b07f9faaa1e6da997530bc5bdabecd8b6bd14c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HermesDesktop/Views/Connections/ConnectionEditorSheet.swift:72-83 | Sources/HermesDesktop/Views/Connections/ConnectionEditorSheet.swift:86-97 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Connections/ConnectionEditorSheet.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab3a1dea057abe14baaecadc565e0e72884a8b30bf03e9514b29f8fb7d58200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:39-50 | Sources/HermesDesktop/Views/Workflows/WorkflowsView.swift:32-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb01578dec006cd02247d2d44dcf5440f500fda565e8dd47c04da4b1e1300504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:712-723 | Sources/HermesDesktop/Views/Skills/SkillDetailView.swift:255-266 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:712\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ae420c182512803b953e19b267d732460c7e26399d7f38f2e957e1c2aa8955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1983-1994 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1997-2008 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1983}}}],"partialFingerprints":{"codehealthFindingId/v1":"4562ea85addd6b23ec1f35ce0ac30bfad7676cbb484faeda05cbd45e36ffecb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HermesDesktop/Views/Kanban/KanbanView.swift:2151-2162 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:2165-2176 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"479631d8d4c8381d8136d58ff9e1ef878afb0be692ece37e1c4dd8f407be257b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HermesDesktop/Views/Usage/UsageView.swift:220-231 | Sources/HermesDesktop/Views/Usage/UsageView.swift:242-253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:242\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1c7aa137db0f6e9b2bcc8ba847d2de6f142c378877da862f681e33c3595949"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1917-1927 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:1930-1940 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d453e0f86120393c480c1a3dffb0b2706dfeff9247f0202aa72e8f073c79388"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HermesDesktop/Views/Skills/SkillDetailView.swift:340-350 | Sources/HermesDesktop/Views/Skills/SkillDetailView.swift:353-363 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Skills/SkillDetailView.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d5a175b8e9b2e135bafc2f07df9320497701ac7c022aba4c17cca8512bdc5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Sources/HermesDesktop/Views/Terminal/TerminalWorkspaceView.swift:547-557 | Sources/HermesDesktop/Views/Terminal/TerminalWorkspaceView.swift:610-617 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Terminal/TerminalWorkspaceView.swift:547\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HermesDesktop/Views/Terminal/TerminalWorkspaceView.swift:618\u0060 calls \u0060help\u0060 and \u0060Sources/HermesDesktop/Views/Terminal/TerminalWorkspaceView.swift:558\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Terminal/TerminalWorkspaceView.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f32a7fb41cf5772452f13a150d56aa698dc598645bd3f54c0aecb9c8bfacd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): Sources/HermesDesktop/Services/KanbanBrowserService.swift:166-175 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:296-305 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:344-353 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:481-490 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:505-514 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Services/KanbanBrowserService.swift:166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/KanbanBrowserService.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd802933e9b059d4f5342b293c3b498850eb5230c557b3513a240697b1f27c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/HermesDesktop/Services/KanbanBrowserService.swift:196-207 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:222-231 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:247-256 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Services/KanbanBrowserService.swift:196\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/KanbanBrowserService.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d58e456d5ae4e22ec76844a745ed47c957d2fecbadde346ee68ca346cf53ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:1008-1017 | Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:1031-1040 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:1031\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ca53b1e146dd1cdf3fdb7496e54f5e7831f5796d4d67a0eae4b81d72fe036b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HermesDesktop/Views/Usage/UsageView.swift:147-156 | Sources/HermesDesktop/Views/Usage/UsageView.swift:172-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:158\u0060 calls \u0060Spacer\u0060 and \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:183\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"399446d1c80ebf643c1e4acdd1c757282eaedfccd95d6e6a12d04db52b42087b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/HermesDesktop/Views/Connections/ConnectionsView.swift:300-308 | Sources/HermesDesktop/Views/Connections/ConnectionsView.swift:1199-1207 | Sources/HermesDesktop/Views/Terminal/TerminalWorkspaceView.swift:302-310 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00606\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Connections/ConnectionsView.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e20437057743db86d4ebe41eb9f7e58db416293738af907ad2f754e6456c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HermesDesktop/Models/WorkflowModels.swift:120-128 | Sources/HermesDesktop/Models/WorkflowModels.swift:151-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 \u0060Sources/HermesDesktop/Models/WorkflowModels.swift:120\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 matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/WorkflowModels.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6083796ed4d43a29666f419ca45ac2742d9435a2d1ce788404c48153afad5498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift:986-994 | Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift:1134-1142 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift:986\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"494bda66ce3cde074624c513ed8f4cbd250bbef8e3790f67839c5eff45f53d42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HermesDesktop/Views/Usage/UsageView.swift:161-169 | Sources/HermesDesktop/Views/Usage/UsageView.swift:184-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:161\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:158\u0060 calls \u0060Spacer\u0060 and \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:181\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"987d89d2dc4a616efa7ddf11fe8d2c63762da39709df7d278adbb62773a2e9ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HermesDesktop/Views/Usage/UsageView.swift:890-898 | Sources/HermesDesktop/Views/Usage/UsageView.swift:1013-1021 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:890\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00600\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a75568e61b210b006b0a3c6d67f1a3c93a45070a94e88e63047ef2e050440dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HermesDesktop/Models/CronJobModels.swift:198-205 | Sources/HermesDesktop/Models/KanbanModels.swift:476-483 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Models/CronJobModels.swift:198\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44907e0eb9134ee2e74e857ba4c325f87e744180b124826ccfe07e31bf7f25b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:547-553 | Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:571-577 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02d2569acd169e4e976b039065848c52fe36f0751fbad0792e5687b2e8fa06c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:734-740 | Sources/HermesDesktop/Views/Skills/SkillDetailView.swift:288-294 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:734\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e08fa1f5d3dbd2e01352162c88a086bfc6d7ccaeff5399d0bff325ec3c41fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift:136-142 | Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift:147-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Sessions/SessionDetailView.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ab38a1cfd514008ddbbe615e7c1fa71ce9f2bc50042772543188c690c60800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HermesDesktop/Views/Skills/SkillsView.swift:141-146 | Sources/HermesDesktop/Views/Workflows/WorkflowsView.swift:176-181 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Skills/SkillsView.swift:141\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 matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Skills/SkillsView.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bccc7346f463fabd7717d70b830857c8fce13056748e94a77bde736aacab37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HermesDesktop/Views/Usage/UsageView.swift:943-949 | Sources/HermesDesktop/Views/Usage/UsageView.swift:1066-1072 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:943\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:1074\u0060 calls \u0060VStack\u0060 and \u0060Sources/HermesDesktop/Views/Usage/UsageView.swift:951\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Usage/UsageView.swift"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb372deddccbe5cd170670ed35136512b87adaf3d78dcd29dc8fc002f09d74bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HermesDesktop/Models/ConnectionProfile.swift:424-428 | Sources/HermesDesktop/Models/ConnectionProfile.swift:431-435 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/ConnectionProfile.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66c2acf451e4258cfb45d03f1255be0be5034f975710a98aaa2d1edc5ded367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:372-379 | Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:382-389 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e95b2a1bc1f584be37bc4dac9d950dba4f6e98c01e9e79967a3ed4137e275a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HermesDesktop/Views/Sessions/SessionsView.swift:457-464 | Sources/HermesDesktop/Views/Sessions/SessionsView.swift:467-474 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Sessions/SessionsView.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc23677405c52eda6589a8822b71c37c595640b084f8038ce76c9ca2c95fafd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/HermesDesktop/Models/HermesChatModels.swift:24-28 | Sources/HermesDesktop/Models/HermesChatModels.swift:66-70 | Sources/HermesDesktop/Models/WorkflowModels.swift:238-242 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/HermesChatModels.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81584379ec5652c64101b885e6590cb576b830a7ddade72b6cbd4bd11a29411"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HermesDesktop/Models/SharedModelTypes.swift:58-62 | Sources/HermesDesktop/Services/SSH/SSHTransport.swift:477-481 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/SharedModelTypes.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38256d56e1ece1b820d30e39c52dab28ad7d894385cfa9908e272f9097f84a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HermesDesktop/Views/Connections/ConnectionEditorSheet.swift:286-295 | Sources/HermesDesktop/Views/Skills/SkillDetailView.swift:530-539 \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":"Sources/HermesDesktop/Views/Connections/ConnectionEditorSheet.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abeaabd6c367d5298f46fc2c7810c595d92162806ba0111c91719510fc74b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:1155-1163 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:2353-2361 \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":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bf679dd2bd03733bfaa1ba45db04423abeb1f4f33491eedbf3b4e4530e2fca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HermesDesktop/Services/CronBrowserService.swift:109-119 | Sources/HermesDesktop/Services/KanbanBrowserService.swift:552-562 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/CronBrowserService.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"50418a4c6c3318a6dec545f3bfa8f701fd19bdcd22ebffcdf94646826e6a4679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift:171-182 | Sources/HermesDesktop/Views/Kanban/KanbanView.swift:579-590 | Sources/HermesDesktop/Views/Sessions/SessionsView.swift:256-267 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"af154bade348172ffe5f99d8b4f90e3ddc92f4bb5ef7568cf1926f7b4c3ccdfe"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppState (LCOM4 4): AppState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"181ab990b2e28a7e22ec0a5d884ddea28d2bb63bf4cf6fac306db13dee111616"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/HermesDesktop/App/AppState.swift: Sources/HermesDesktop/App/AppState.swift changed 43 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in AppState.loadSessions at line 959. 3 of those changes were fix/bug commits, and the other 40 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-03-20..2026-06-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-20 13:31:44 \u002B02:00\u0027 --until=\u00272026-06-18 13:31:44 \u002B02:00\u0027 --full-history --no-merges -- Sources/HermesDesktop/App/AppState.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70acb0cf9f9061bfc14866bc6888178c69404e60b973d2d9e926d5cb7eecdaf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/HermesDesktop/Views/Kanban/KanbanView.swift: Sources/HermesDesktop/Views/Kanban/KanbanView.swift changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in KanbanTaskDetailView.actionPanel at line 1769. 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-03-20..2026-06-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-20 13:31:44 \u002B02:00\u0027 --until=\u00272026-06-18 13:31:44 \u002B02:00\u0027 --full-history --no-merges -- Sources/HermesDesktop/Views/Kanban/KanbanView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Views/Kanban/KanbanView.swift"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2dec74257b55c6faa21240c99e588645cd11e19282ec5ebe083c6c7833cff59"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/HermesDesktop/Services/Terminal/TerminalViewHost.swift: Sources/HermesDesktop/Services/Terminal/TerminalViewHost.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in TerminalViewHost.deliverInitialInputIfNeeded at line 149. 1 of those changes was a fix/bug commit, and the other 13 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-03-20..2026-06-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-20 13:31:44 \u002B02:00\u0027 --until=\u00272026-06-18 13:31:44 \u002B02:00\u0027 --full-history --no-merges -- Sources/HermesDesktop/Services/Terminal/TerminalViewHost.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/Terminal/TerminalViewHost.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5aa0e53d9a422c4542626201b00c1b4332fcbf90abae52b819e41c901a8af03"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/HermesDesktop/Services/SSH/SSHTransport.swift: Sources/HermesDesktop/Services/SSH/SSHTransport.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SSHTransport.formattedRemoteFailure at line 323. 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-03-20..2026-06-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-20 13:31:44 \u002B02:00\u0027 --until=\u00272026-06-18 13:31:44 \u002B02:00\u0027 --full-history --no-merges -- Sources/HermesDesktop/Services/SSH/SSHTransport.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/SSH/SSHTransport.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b97f637b9373606c13067a15129b94066a25dd5c1f23e18b649d35cb26d154f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/HermesDesktop/Models/CronJobModels.swift: Sources/HermesDesktop/Models/CronJobModels.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in CronScheduleFormatter.humanReadableDescription at line 845. 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-03-20..2026-06-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-20 13:31:44 \u002B02:00\u0027 --until=\u00272026-06-18 13:31:44 \u002B02:00\u0027 --full-history --no-merges -- Sources/HermesDesktop/Models/CronJobModels.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Models/CronJobModels.swift"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f159292ebd883a01c4928397381a40afccc94feb438278cbaf220c05f038447"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060Package.swift\u0060 makes this repository a deployable product (line 12)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Package.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cb68a1ee6c4cb93e1c9ac7b48b28011c2bc672548de5c6ade44fdf2c34c979"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6859d27c859d3b6156f4b628f436e8e20218ac48a3c4f3abf46c5ae7679d105a"},"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":"9ebb55606c85bf1882b02812c06bc9c104b7c07c7f25faa9f9209a2fad778395"},"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":"958b02d3591729b101fd90a1d8a339fb44dace2ae07ff27613c5489d7bdfef30"},"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":"f078f69c7161556d9aeb73856a476343922867db61291e894707cc6b05ba3a22"},"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":"367333fde83440a468a8d9b4a1ed702777f16c58ba02d4ec11282dbfa0d2d6a9"},"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":"2f0ce6ba0713c6f69188765405a1e661d2f1db40e9704cee48483c8766a538bf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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/macos-ci.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!profile.isDefault \u0026\u0026 profile.name != \u0022default\u0022\u0060 appears character-identically in 2 files \u2014 Sources/HermesDesktop/App/AppState.swift, Sources/HermesDesktop/Views/Connections/ConnectionsView.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":"Sources/HermesDesktop/App/AppState.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8dbbfdadfaa34d75b34f5bf7e2d161967386ad7aba877ea266d0ee1e20b417b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isSaving || draft.validationError != nil\u0060 appears character-identically in 2 files \u2014 Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift, Sources/HermesDesktop/Views/Kanban/KanbanView.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":"Sources/HermesDesktop/Views/CronJobs/CronJobsView.swift"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f0a57795f115433f6fd7b1003f3285cefd6190987460541673bc3e2abde0d2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Utilities/WorkflowLaunchDiagnostics.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae2c8b6f3983607f6702f8c1a8d4093ae77ae3504b9e2a7910b073357bc7db7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HermesDesktop/Services/Storage/ConnectionStore.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61ce9afb96016d7a1bb777bf16afb824bd9be8982750d79b7d277de366b3d95"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-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."]}]}