{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"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":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"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":"ThreeColumnLayout.body (cyclomatic 42): ThreeColumnLayout.body has cyclomatic complexity 42 (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":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c0e197e6d635190a14d8a0fe98d9e86d8d003599d9184a07431c14c7123d3a"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentView.applyServiceSyncHandlers (cyclomatic 37): ContentView.applyServiceSyncHandlers has cyclomatic complexity 37 (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":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2553b162538eb87fdc03d073e55cd70f201cd388cd8c86069ab302f6e5bf22a2"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentView.applySelectionSyncHandlers (cyclomatic 36): ContentView.applySelectionSyncHandlers has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ContentView.handlePaletteAction (cyclomatic 37) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"931c416a3a1f5d8c550fee0e4670a43f88d47b4dd9063ae745ff42dd3be5dc9a"}},{"ruleId":"D1","level":"warning","message":{"text":"MainInterfaceView.currentResourceTitle (cyclomatic 32): MainInterfaceView.currentResourceTitle has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/MainInterface.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e7312c0d81971b7cc52c46b2e52e61497bbe67f07ff79671b00e5ee9d3631a"}},{"ruleId":"D1","level":"warning","message":{"text":"TabColumnView.selectTab (cyclomatic 31): TabColumnView.selectTab has cyclomatic complexity 31 (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":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aae4bd63acbc6f4b0343b7bee799e226e690088102936007512300023097687"}},{"ruleId":"D1","level":"warning","message":{"text":"StatsService.load (cyclomatic 30): StatsService.load has cyclomatic complexity 30 (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":"Orchard/Services/StatsService.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"73276ec09e49a1ab67bae1137b11c2a5412d07e90906d0e4881fad6ed038f500"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerDetailHeader.body (cyclomatic 27): ContainerDetailHeader.body has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetailHeader.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e556510a6315d6c895aa220eb4484cccc0dd6ff34116e031c9caae634920af"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainersListView.contextMenu (cyclomatic 25): ContainersListView.contextMenu has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ListContainers.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9010715380dcb56133efbdbd55367a08e52c89587e9e854529820dc96387065"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandPaletteView.installKeyMonitor (cyclomatic 23): CommandPaletteView.installKeyMonitor has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/CommandPalette.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"96921f2e5712618cd61a3b75499b0a2b24c290432bf88bae0f9d5f199b62822f"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailContentView.body (cyclomatic 23): DetailContentView.body has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/DetailContent.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e311a4a725225d7c50453b9d28bbbf6f483da1af2afbe451d44c314d1ce6d0"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerTable.body (cyclomatic 20): ContainerTable.body has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/ContainerTable.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d245614c11f1c4a35710d68d1d9b8269785a1ec8a43e6bd5e87ae563e0dfa9"}},{"ruleId":"D1","level":"warning","message":{"text":"ANSIText.apply (cyclomatic 19): ANSIText.apply has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ANSIText.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a809e5d3894732c333b953982013b8005bdf3c45ed8444e0f9ddb8162be48f"}},{"ruleId":"D1","level":"warning","message":{"text":"ClusterDetailView.header (cyclomatic 19): ClusterDetailView.header has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0d1537377e262c59af10f117748a6f93fb3b88fb0761a48b6c5fd513741441"}},{"ruleId":"D1","level":"warning","message":{"text":"ANSIText.segments (cyclomatic 18): ANSIText.segments has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ANSIText.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ee1c4a689d5303f744646749f29f255e8fa4aa94524137af9b58bf8fada012"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepLink.parse (cyclomatic 18): DeepLink.parse has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/DeepLink.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"514448def0a71b496d561ba3575ac84a537e7a85a5f93092fbd8b7c40d9bea23"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageService.fetchSearchPage (cyclomatic 18): ImageService.fetchSearchPage has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ImageService.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e2f258d39cda844f1c1b3c8a512f66a1b613713105147d68acae6000330d64"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentView.body (cyclomatic 18): ContentView.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: ContentView.handlePaletteAction (cyclomatic 37) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c35deae27f81639a3679121022fcabc697eac1f6e723bcf70755be9e459f1c"}},{"ruleId":"D1","level":"warning","message":{"text":"ClusterService.performCreate (cyclomatic 17): ClusterService.performCreate has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ClusterService.swift"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dc080379d963eec3db04b2dba88a9c449115de6d872fad473d9fed4606ea38"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveContainerBackend.createContainer (cyclomatic 17): LiveContainerBackend.createContainer has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ContainerBackend.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"32577ff5a4aa99159af5402fa581ec0191577ca9053833f636b55e0c16b88f0a"}},{"ruleId":"D1","level":"warning","message":{"text":"CreateClusterView.create (cyclomatic 17): CreateClusterView.create has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Clusters/CreateCluster.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fa205433819608768de878fd044012476d417428241e34f509f698a3652854"}},{"ruleId":"D1","level":"warning","message":{"text":"FuzzyMatch.score (cyclomatic 16): FuzzyMatch.score has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/FuzzyMatch.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e3f91609ad6643fb40fc39ddf126fa1c5d8c4e45e773faa4a15d8a743f7dc8"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerRow.body (cyclomatic 16): ContainerRow.body has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/UIComponents.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abc4fbf4e34b6bcb9ee4f71d1cca725625173b6b2d1167ee7b55f23001a9255"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerDetailView.containerNetworkSection (cyclomatic 16): ContainerDetailView.containerNetworkSection has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e651f978b8d4bdf16715a449d8e13635637367010bb07c05c19508e86592754"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainerImageDetailView.imageConfigSection (cyclomatic 16): ContainerImageDetailView.imageConfigSection has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28ea262ddae9ee5d9df28766da753e1b2c306650cd97945746aacb337a358a0"}},{"ruleId":"D1","level":"warning","message":{"text":"changelog_to_html.to_html (cyclomatic 16): changelog_to_html.to_html has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/scripts/changelog_to_html.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8429afd0affd7cbd2c1f60814e5fb8180f5bbb928eeb1916991b3b3fc33fa69e"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreeColumnLayout.body (cognitive 112): ThreeColumnLayout.body has cognitive complexity 112 (threshold 15). Drivers by points: if/else 27 (55 pts), ternaries 14 (54 pts), boolean chains 3 (nesting depth added 68). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b594820fa8b2b3698cf7a3216a0e684d0eced814e171a2c077b96702d815511"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.applySelectionSyncHandlers (cognitive 60): ContentView.applySelectionSyncHandlers has cognitive complexity 60 (threshold 15). Drivers by points: if/else 40 (55 pts), boolean chains 5 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"342b1c0b5d60a93329c7f15b49aa3643f9e97698cf4f7ab83e055f3ff1ac8dab"}},{"ruleId":"D2","level":"warning","message":{"text":"ANSIText.segments (cognitive 50): ANSIText.segments has cognitive complexity 50 (threshold 15). Drivers by points: if/else 11 (36 pts), loops 3 (9 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 33). Of this number, 49 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ANSIText.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b531ad35b9605efa255842aeaf0437032941ec7e8968bd60f585144f524bbf9"}},{"ruleId":"D2","level":"warning","message":{"text":"StatsService.load (cognitive 40): StatsService.load has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 7, loops 6, error handling 2 (4 pts), match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/StatsService.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c0d07932a7fbb29e37304ba5db6cff067707df74d5daa814e5faab7b3a7c23"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerTable.body (cognitive 37): ContainerTable.body has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (22 pts), ternaries 5 (11 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/ContainerTable.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d2300ad1d08f5d664ae2772fc61ccb662c686aa0f15bd3aa87e76e9c6ef1a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentView.applyServiceSyncHandlers (cognitive 36): ContentView.applyServiceSyncHandlers has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 20, if/else 16. 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":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b0b2008afa6b01a20cd08f7b2b8b2b81b908d2970addd68efe92ed54c46a17"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerDetailHeader.body (cognitive 34): ContainerDetailHeader.body has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (23 pts), boolean chains 11 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetailHeader.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6e2f86f04c4da5751d0428be31faa72208c23765ffbcda25864f10ee995100"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainersListView.contextMenu (cognitive 33): ContainersListView.contextMenu has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 5 (10 pts), boolean chains 7, loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ListContainers.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9baf5f1217858031b578dcf4e61b4ae11de12e208d196c6dceda6b2f94ab9586"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveContainerBackend.createContainer (cognitive 30): LiveContainerBackend.createContainer has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (4 pts), ternaries 2 (4 pts), match/switch 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ContainerBackend.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4716ebb1828e5695aeebd798bbfc1631a8d204fc473c97cac0c307c4d579cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageService.fetchSearchPage (cognitive 30): ImageService.fetchSearchPage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 6, ternaries 1 (2 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ImageService.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"f292f2d6997921b59f7b5dbb0cfa6edd6207c0100585401f9037166188e14fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"MainInterfaceView.currentResourceTitle (cognitive 29): MainInterfaceView.currentResourceTitle has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 5 (10 pts), boolean chains 5, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/MainInterface.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93f12f4703fe67cda9e2735c66c8d2d546a1cda9d181288afbfac1dd0792e0a"}},{"ruleId":"D2","level":"warning","message":{"text":"TabColumnView.selectTab (cognitive 28): TabColumnView.selectTab has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 6, match/switch 2 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"f700ed699b6d187c60cacd76931535434e6fceda71fa5ff7246535b826e6b15b"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandPaletteView.installKeyMonitor (cognitive 26): CommandPaletteView.installKeyMonitor has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 11, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/CommandPalette.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6610acdbe906b5de481dfe88c8359666360a853b9a0ef5d7301a32fe937b7900"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerRow.body (cognitive 26): ContainerRow.body has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 4 (7 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/UIComponents.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0bbea1e324c88457db7ccb8d159d36a164bdc6069f7a3b4d8c2e32e2b37c06"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterDetailView.header (cognitive 25): ClusterDetailView.header has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 6 (8 pts), boolean chains 5 (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":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8241657154eb4ccbde5edd0e0db9c1951844f624a1b288acf52b9358393d3e0"}},{"ruleId":"D2","level":"warning","message":{"text":"DiskPurge.purge (cognitive 23): DiskPurge.purge has cognitive complexity 23 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 5 (8 pts), ternaries 2 (4 pts), loops 3 (nesting depth added 9). Of this number, 21 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/DiskPurge.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12ddbfe59cbdf939cfd8267483f6e4ade7b16189a46173df6e16185241a4744"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterDetailView.body (cognitive 23): ClusterDetailView.body has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"48377e3c363b651c6756ff0d3b8c85d73ded522fcd21bfa2b9d99a2c6e84d85c"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerListService.deleteMounts (cognitive 22): ContainerListService.deleteMounts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (6 pts), error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ContainerListService.swift"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8f547704b2979a8979f65632acfcd3563f9d0996e0c69f91d5119e5d2067d0"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerDetailView.containerNetworkSection (cognitive 22): ContainerDetailView.containerNetworkSection has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"410f362ac02c3d824402d7b49d39c989fa710c2d37552db10c08fd760ab43443"}},{"ruleId":"D2","level":"warning","message":{"text":"FuzzyMatch.score (cognitive 21): FuzzyMatch.score has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/FuzzyMatch.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"05191e2ba212402b16728fbccbf1178cf58c54db077bef38cc4ed2c1f5648fed"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerListService.startContainerWithRetry (cognitive 20): ContainerListService.startContainerWithRetry has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ContainerListService.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d453be9b366b783963ba54f788299791cb1007c60a67924c44efeb223227d01"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepLink.parse (cognitive 20): DeepLink.parse has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 3 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/DeepLink.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"331167ac833a4f5f41311972faee5b5374024dd36a22aa99082e7e9ecdf8f1d1"}},{"ruleId":"D2","level":"warning","message":{"text":"MachineAccountSpec.init (cognitive 20): MachineAccountSpec.init has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4 (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":"Orchard/Services/MachineBackend.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbf7f32d698204abcbe35df5cdc15ea6d3f82ae5e99cd00adf5550d6409dd49"}},{"ruleId":"D2","level":"warning","message":{"text":"changelog_to_html.to_html (cognitive 20): changelog_to_html.to_html has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2, loops 1, ternaries 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":".github/scripts/changelog_to_html.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53e815d44511a3f670b51071ae6bd57dfb4cd44e69e59a2643caf2283007ebb"}},{"ruleId":"D2","level":"warning","message":{"text":"DNSService.load (cognitive 19): DNSService.load has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 2, ternaries 1 (2 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":"Orchard/Services/DNSService.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8fc3ce6d6c8f80afcd5c74495113ad174b9e1c915539eab3ab6fdca3515efc"}},{"ruleId":"D2","level":"warning","message":{"text":"CLIParsers.swift.parseSystemProperties (cognitive 19): CLIParsers.swift.parseSystemProperties has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, ternaries 1 (3 pts) (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":"Orchard/Services/CLIParsers.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd8f2a7a85fe105d8cc324b7d0ef9057e26b30b3360aaee30cda6ea23830992"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemService.startSystem (cognitive 18): SystemService.startSystem has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 1 (2 pts), ternaries 1 (2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/SystemService.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c77d346658a6db39d108f253d59bfc0f51cb1079ec126ffcc39da7c9576e929"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailContentView.body (cognitive 18): DetailContentView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/DetailContent.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"449f566517e8ab9d23c76387fe831e57a3571886cf7b015e47be1df24f958a9f"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandPaletteCatalog.entries (cognitive 17): CommandPaletteCatalog.entries has cognitive complexity 17 (threshold 15). Drivers by points: loops 10, ternaries 4 (7 pts) (nesting depth added 3). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/CommandPaletteCatalog.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"1753faf88fc6af55e220f6b966c5045f270f820106d8cd283adf8cd95f9c8e26"}},{"ruleId":"D2","level":"warning","message":{"text":"ListItemRow.body (cognitive 17): ListItemRow.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (7 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/ListItemRow.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5483a23eaeeddd78a6f5d95860940fa2bd0447077e182e9e660825b28951363"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterService.recreateSettings (cognitive 16): ClusterService.recreateSettings has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 2, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ClusterService.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff9711695117dd787345e1df49793b39043cba32984f6e9f0ce83745cb91657"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterService.performCreate (cognitive 16): ClusterService.performCreate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, ternaries 1 (2 pts), match/switch 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":"Orchard/Services/ClusterService.swift"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"265c27d63a3aed6f7a9389c108e7d3ab60647aaf9f7026e3db9808876c733ed5"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerInstallService.installPackage (cognitive 16): ContainerInstallService.installPackage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 1 (2 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ContainerInstallService.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee22a80b2bf1ac2d0a9b68476b787e56328a3a63bfe5163bfea0c05fbb9b3fbc"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateClusterView.create (cognitive 16): CreateClusterView.create has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (4 pts), boolean chains 2, match/switch 2 (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":"Orchard/Views/Features/Clusters/CreateCluster.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbc84c27c38efb4bb94ee032b1067381313dc9653437a175c5ceec45e4efb8d"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvironmentVariablesTable.body (cognitive 16): EnvironmentVariablesTable.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f06d74bf54ed0e621ba66e24182bb10711db95ecc5f8ce34bf3f69f8e5bc5f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerImageDetailView.imageConfigSection (cognitive 16): ContainerImageDetailView.imageConfigSection has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"0926dee7f27930eceb9fd4e8fa21d2c4b3bde4bf444e4506686fe46bba221f09"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ThreeColumnLayout.body: MethodTooLong \u2014 body runs 334 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 234 over it, 3.34\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":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98d92bbeea640da88a917aaf0895674ce5527433d6789ab49fe309f81d2f10a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Orchard/Models.swift: FileTooLong \u2014 787 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 287 over it, 1.57\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":"Orchard/Models.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c9fee4e1b7ec3e11bb4f9c301645a01a1a32f121b0950fe30968e0a74eca80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Containers/ContainerDetail.swift: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 271 over it, 1.54\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":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d5447e792b9bb76bd1b89c8975d24508e08814642150e5ff8c4d58ca5dcb44"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Layout/ThreeColumnLayout.swift: FileTooLong \u2014 758 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 258 over it, 1.52\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":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e1d540bcba664962f684dd572d26bee097cc4e56552ffa0829c27c616fc108"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Containers/ContainerConfigForm.swift: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: ContainerConfigForm (15-858). The bar is 500 significant lines; this is 205 over it, 1.41\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":"Orchard/Views/Features/Containers/ContainerConfigForm.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3481c75e6f85a4172598d887ac906e0503b8dac25d2a15f3dfc8f5b88f0a9945"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClusterService: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"Orchard/Services/ClusterService.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed40bcfa9541e84d25faff7425159a3701a276a9865001f08b2518013a3b157"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContainerDetailHeader.body: MethodTooLong \u2014 body runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetailHeader.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"73268b458efcff4407f3836120aa49bcfc0eccd4cb8bdb4ebe2cd6e2beda42e8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ContentView: ClassTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 158 over it, 1.40\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":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6278ac18f5aac2892a3998cc1377807725d5db6b62784f9eacc2e36856199345"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommandPaletteCatalog.actionEntries: MethodTooLong \u2014 actionEntries runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"Orchard/Services/CommandPaletteCatalog.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"44807fc030d022ee936b1653ec8dae53ed9865fb7a86a2eee0e8eb12c93e296d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ContainerConfigForm: ClassTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 124 over it, 1.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerConfigForm.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a4eb692ec3455bd501238873d0b1abc883e3691ab94e1baabd38a5064fe041"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/ContainerBackend.swift: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: LiveContainerBackend (347-1027). The bar is 500 significant lines; this is 147 over it, 1.29\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":"Orchard/Services/ContainerBackend.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51de2761907a8704ca5fbcec22ce94208115d65f6ae98d7a3e7f6abfa73d519c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/ClusterService.swift: FileTooLong \u2014 620 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: ClusterService (323-1152). The bar is 500 significant lines; this is 120 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":"Orchard/Services/ClusterService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f20f4e48119246becd5c88865f1e2411e6b5f932622104810c11f5139ab9471"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiveContainerBackend: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. Most of these members implement repository.ContainerBackend (34 of 36 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ContainerBackend.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"871fe2099a6d7f0ebf3aff5884522546c9d2300c89821e4038d0ac8dbb896b6e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StatsTableView.body: MethodTooLong \u2014 body runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"Orchard/Views/Components/StatsTableView.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"840d7d3d5c52017b89159e95eebb29228636018f1db534fc550e5baa20203df4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UITestBackend: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. Most of these members implement repository.ContainerBackend (34 of 35 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/UITestSupport.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abe7b2c79d0c224621b71dd05f884c7dbc938a360feefc284a328dd87cec1aa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ContainerListService: ClassTooLong \u2014 466 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 66 over it, 1.17\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":"Orchard/Services/ContainerListService.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da77fbef50682d8435dcb9a7d1049a294424ef101fe476ff2b078f0c044ca10"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LiveContainerBackend: ClassTooLong \u2014 452 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 52 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":"Orchard/Services/ContainerBackend.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"690a71fb9154edb174284f25a95bfe35be0f706385902a21f1fcbd3a6c842124"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClusterService: ClassTooLong \u2014 449 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 49 over it, 1.12\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":"Orchard/Services/ClusterService.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e914276626c31f6e308811f173d47dd2f12cedf506246f864140425074a4c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Layout/Content.swift: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ContentView (4-746). The bar is 500 significant lines; this is 60 over it, 1.12\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":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7146fbdb73a3c41b98656a156e1a9d3a4ce74e29ad3d73fc60168abe7a2bffeb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComposeService: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ComposeService.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e876e06c5f352f5bbf265475fdc36dcaddc856fa91ea18313c94a9628fd2900f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LiveContainerBackend.createContainer: MethodTooLong \u2014 createContainer runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.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":"Orchard/Services/ContainerBackend.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee670771759b8084714b6cbb8094f2f7b62e122eb6d5d5dff52999ad5178858a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ComposeService: ClassTooLong \u2014 415 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 15 over it, 1.04\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":"Orchard/Services/ComposeService.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"009b52e659480a08d169a147e409af815b8076a60e2669b1ed7e83903ca4ca8f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ThreeColumnLayout: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 8 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":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acff33f1e32c5002ce87fd4629f8541f2d8dc95ca9708369fc80ae45efcdfbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Orchard/Views/Components/CommandPalette.swift:232-285 | Orchard/Views/Components/ListItemRow.swift:54-142 | Orchard/Views/Features/Clusters/ClusterDetail.swift:411-477 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:34-78 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:98-141 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/CommandPalette.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3eda5e7815bfbeb8f6c5023168a9e9ff769aa40de11eacd6ddb43d7989ccb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Orchard/Views/Components/UIComponents.swift:46-129 | Orchard/Views/Components/UIComponents.swift:165-212 | Orchard/Views/Components/UIComponents.swift:253-367 | Orchard/Views/Features/Containers/ContainerDetail.swift:904-976 | Orchard/Views/Features/Containers/ContainerDetail.swift:1111-1185 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/UIComponents.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e129446d3fe2641edd1783880346c6f4ab2e4daed833d58e9abbd2d3d1f91410"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Orchard/Views/Components/UIComponents.swift:131-140 | Orchard/Views/Components/UIComponents.swift:214-223 | Orchard/Views/Components/UIComponents.swift:369-378 | Orchard/Views/Features/Containers/ContainerDetail.swift:978-987 | Orchard/Views/Features/Containers/ContainerDetail.swift:1187-1196 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/UIComponents.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34935ff86ec9181aeb2b2fa3db21ee0d7015163852ffb08a0ffc1e91dad80f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Orchard/Views/Features/DNS/MultiDNSCards.swift:18-49 | Orchard/Views/Features/Images/MultiImageCards.swift:18-47 | Orchard/Views/Features/Mounts/MultiMountCards.swift:17-46 | Orchard/Views/Features/Networks/MultiNetworkCards.swift:18-49 \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":"Orchard/Views/Features/DNS/MultiDNSCards.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f56634a528d2dec8a52647bb3daecb289090fbabac335e54c964f27714666b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): Orchard/Views/Features/DNS/AddDNS.swift:11-97 | Orchard/Views/Features/Volumes/AddVolume.swift:23-88 \u2014 These two members are one piece of code written twice and then edited apart: 66 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":"Orchard/Views/Features/DNS/AddDNS.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"39eac740b8c5d975745eb260f7b6ca93e7294ad4b6a0b0dd0e191d7a4fed4838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 51\u002B corresponding lines): Orchard/Views/Features/DNS/MultiDNSCards.swift:90-149 | Orchard/Views/Features/Images/MultiImageCards.swift:106-164 | Orchard/Views/Features/Mounts/MultiMountCards.swift:81-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 51 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":"Orchard/Views/Features/DNS/MultiDNSCards.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51a7beedbc22f5c919ad46d3eedbf5b41e407aa11848e84ffb9edfa9638193a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): Orchard/Views/States/NewerVersion.swift:5-64 | Orchard/Views/States/VersionIncompatibility.swift:5-56 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"Orchard/Views/States/NewerVersion.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da00343fe1499aee0e65078a9ca81f6aecfd2dd889aea328d9336439df79ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Orchard/Services/UITestSupport.swift:24-68 | Orchard/Views/Features/Containers/EditContainer.swift:217-254 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"Orchard/Services/UITestSupport.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"58df6f9c508bc4ec05d9403d8a343fb10be4130e8e8e51eaf82c13e427eda691"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): Orchard/Views/Features/DNS/ListDNS.swift:62-118 | Orchard/Views/Features/Networks/ListNetworks.swift:62-106 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"Orchard/Views/Features/DNS/ListDNS.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb546c512a7d34b2486948dcc2a8f0c50d69f5987b2ee42c568bd0c9db6d54d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Orchard/Services/ContainerListService.swift:274-302 | Orchard/Services/ContainerListService.swift:304-331 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"Orchard/Services/ContainerListService.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf6f7094ec75d2bc4f40110410f159113dfde02ae25aea8fca9aef6fa396578"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Orchard/Views/Features/Compose/InstallComposePlugin.swift:88-119 | Orchard/Views/States/NotInstalled.swift:103-134 \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":"Orchard/Views/Features/Compose/InstallComposePlugin.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5f37fabfe65875e2e4d31c9d30d6a41849f364deff8f086d4cdada51a76fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Orchard/Views/Features/Compose/AddComposeProject.swift:109-129 | Orchard/Views/Features/Compose/ComposeProjectDetail.swift:275-304 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"Orchard/Views/Features/Compose/AddComposeProject.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c51adf38583b2ab8a02406b9ba999f9aecde2d9ddecb11e7ec71ba5e3f94e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Orchard/Views/Features/DNS/ListDNS.swift:166-178 | Orchard/Views/Features/Images/ListImages.swift:204-216 | Orchard/Views/Features/Networks/ListNetworks.swift:167-179 \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":"Orchard/Views/Features/DNS/ListDNS.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a477c7d88780e05112d9f280daed172a3cbd993e64184fef4356982b46a989"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Orchard/Views/Features/Containers/EditContainer.swift:98-125 | Orchard/Views/Features/Containers/RunContainer.swift:86-115 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"Orchard/Views/Features/Containers/EditContainer.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2dab765b6784a3773c2fdfa0e889507fbca03b73edf1f7e63f8dc0e16e4dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): Orchard/Views/Features/Clusters/ClusterDetail.swift:275-290 | Orchard/Views/Features/Clusters/ClusterDetail.swift:335-350 | Orchard/Views/Features/Machines/CreateMachine.swift:106-121 | Orchard/Views/Features/Machines/DetailMachine.swift:48-63 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 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":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be818838d61fc6575367d890cd89a035bb273e6916d1cf4ca1bb2a3aa0549d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Orchard/Services/ContainerListService.swift:454-473 | Orchard/Services/MachineService.swift:130-144 \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":"Orchard/Services/ContainerListService.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8e36bd01b5c20abfa8d3a126fcb66d907a6092a3fe05419faa2d8f17c86f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Orchard/Views/Features/Containers/ContainerConfigForm.swift:1075-1096 | Orchard/Views/Features/Containers/ContainerConfigForm.swift:1103-1124 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerConfigForm.swift"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"0928ee887f72fbb8545180e2ce60980e5c77a710fdaf064a46c4601d7b633d4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Orchard/Services/ContainerListService.swift:149-164 | Orchard/Services/ContainerListService.swift:166-181 | Orchard/Services/ContainerListService.swift:333-353 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Orchard/Services/ContainerListService.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca92cb1d9865917970543de4ae9fa5a9dfb764feac9c26fa1cdd41521ebee83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Orchard/Views/Features/Stats/DashboardView.swift:17-29 | Orchard/Views/Features/Stats/DashboardView.swift:32-44 \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":"Orchard/Views/Features/Stats/DashboardView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ffd2c973c7432715e742c35ec9bedade869428ab9a04e6b833724af0993380"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Orchard/Views/Features/Machines/DetailMachine.swift:127-142 | Orchard/Views/Features/Networks/DetailNetwork.swift:69-83 \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":"Orchard/Views/Features/Machines/DetailMachine.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"944bb8d7176f487141e1265726df69da5d61596bdb3a71cba4d954f45bc6a0e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 17\u002B corresponding lines): Orchard/Views/Features/Clusters/ListClusters.swift:67-85 | Orchard/Views/Features/Clusters/ListClusters.swift:88-110 | Orchard/Views/Features/Compose/ListComposeProjects.swift:161-180 | Orchard/Views/Features/Machines/ListMachines.swift:51-68 | Orchard/Views/Features/Machines/ListMachines.swift:70-86 \u2014 These 5 members are one piece of code written 5 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Clusters/ListClusters.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8da9704de7c0da450e4bfdf9145a35ccf4cf33d0b41b81772aecd582133dac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Orchard/Views/Features/MenuBar/MenuBarDashboard.swift:87-95 | Orchard/Views/Features/MenuBar/MenuBarDashboard.swift:104-112 \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":"Orchard/Views/Features/MenuBar/MenuBarDashboard.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c08154f10fbed558aa0b43206cd2ad4154e9b623f6bbc7fb9c326242df52455"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Orchard/Views/Features/Containers/CommitContainer.swift:154-165 | Orchard/Views/Features/Images/BuildImage.swift:97-108 | Orchard/Views/Features/Stats/FreeUpSpace.swift:70-81 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Orchard/Views/Features/Containers/CommitContainer.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"5169c3dd66f00f4227116ceb086a95e8ae4e2987d3a8c34e933323037e9ac6cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Orchard/Views/Features/Clusters/ClusterDetail.swift:354-369 | Orchard/Views/Features/Clusters/CreateCluster.swift:216-227 \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":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb53f243684af90f78c4929ddf40634792dee840d187ffbd5f5d2fceaa258449"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Orchard/Views/Features/DNS/MultiDNSCards.swift:51-69 | Orchard/Views/Features/Networks/MultiNetworkCards.swift:51-69 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/DNS/MultiDNSCards.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f494ad657969061c9a68ee19cd23ea38e4d7df178e8ec0e53267af65c8a06646"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Orchard/Views/Features/Containers/ContainerConfigForm.swift:774-791 | Orchard/Views/Features/Models/SandboxesView.swift:83-99 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"Orchard/Views/Features/Containers/ContainerConfigForm.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"771f10c2148bc6a200f496c0f3710e1be1ff79d413586cbd19d4a1a70456b0c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Orchard/Views/Features/Images/ImageSearch.swift:206-223 | Orchard/Views/States/NotInstalled.swift:12-37 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Images/ImageSearch.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c74b13681bfe175311d95e784a588c546ebab4888158914f46c1f220ddcc042"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Orchard/Views/Features/DNS/ListDNS.swift:46-60 | Orchard/Views/Features/Networks/ListNetworks.swift:46-60 | Orchard/Views/Features/Volumes/ListVolumes.swift:50-66 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"Orchard/Views/Features/DNS/ListDNS.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f690307505d2cf98b9b484e06ea80a62ceb0409b068605dafe48be05d9993d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Orchard/Services/ImageService.swift:483-500 | Orchard/Services/NetworkService.swift:67-85 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ImageService.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f3f081cb697e68e8d042a814f2abebdd0c810851dca2cff7cf2dfdc41addfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Orchard/Services/ComposePluginService.swift:456-465 | Orchard/Services/ContainerInstallService.swift:250-259 \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":"Orchard/Services/ComposePluginService.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79e6bffd9def4a6e3ab61a40c567f2fee24e6787b7088af6f4906ec75412739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Orchard/Views/Features/Containers/EditContainer.swift:127-146 | Orchard/Views/Features/Models/RunModelContainer.swift:112-128 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"Orchard/Views/Features/Containers/EditContainer.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"51393b6a46d93ca7ed14d135e31bbd98f8da89de4a590b627c901913ab605aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Orchard/Views/Features/Images/BuildImage.swift:160-176 | Orchard/Views/Features/Images/BuildImage.swift:178-190 \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":"Orchard/Views/Features/Images/BuildImage.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"40abba6009bd739714abee35fab3b9e85c70b118f99536665639c0fff0a97a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Orchard/Views/Features/Containers/EditContainer.swift:163-187 | Orchard/Views/Features/Containers/RunContainer.swift:132-156 | Orchard/Views/Features/Models/RunModelContainer.swift:241-255 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"Orchard/Views/Features/Containers/EditContainer.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4c0b5428acae7cb5fb1a5f7818b80c9e532ab2aad6f6c7885644804779be31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Orchard/Views/Features/Stats/FreeUpSpace.swift:162-174 | Orchard/Views/Features/Stats/FreeUpSpace.swift:176-190 | Orchard/Views/Features/Stats/FreeUpSpace.swift:192-206 \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":"Orchard/Views/Features/Stats/FreeUpSpace.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"31994189d9714efae070cba2ab2697b67bb1ae9678ce5b9765195bb28ff408c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 12\u002B corresponding lines): Orchard/Views/Features/Clusters/ListClusters.swift:320-333 | Orchard/Views/Features/DNS/DNSDetailHeader.swift:43-54 | Orchard/Views/Features/Machines/ListMachines.swift:141-152 | Orchard/Views/Features/Mounts/ListMounts.swift:121-134 | Orchard/Views/Features/Networks/NetworkDetailHeader.swift:48-59 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 12 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":"Orchard/Views/Features/Clusters/ListClusters.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f824fd71a78fcad69e211c9ce4d4361517a349336de6fd3fb39a9638f923ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Orchard/Views/Features/Images/MultiImageCards.swift:49-64 | Orchard/Views/Features/Mounts/MultiMountCards.swift:48-63 \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":"Orchard/Views/Features/Images/MultiImageCards.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2c78c543c054c0f8c97ff1fa3a734048af86981ab082fdcafb0dd9fde80439"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Orchard/Views/Features/Clusters/CreateCluster.swift:453-461 | Orchard/Views/Features/Machines/CreateMachine.swift:177-185 | Orchard/Views/Features/Machines/EditMachine.swift:88-96 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Clusters/CreateCluster.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"7376f43dfd411ecce019770c3bc6614e7994f0f2b91942ecc789e44f146ad2ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Orchard/Services/ClusterService.swift:841-854 | Orchard/Services/ClusterService.swift:857-865 | Orchard/Services/ClusterService.swift:967-975 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ClusterService.swift"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28266039f9a7519480ef544e003fcd76a8dcfff1c2a1c04939af3231b2b07f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Orchard/Services/OrchardError.swift:103-114 | Orchard/Services/OrchardError.swift:126-135 \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":"Orchard/Services/OrchardError.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"61376bf94de1e421a3cb946e204e0355610cc4fc128316794c95f44c09775208"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Orchard/Views/Features/Compose/ComposeProjectDetail.swift:463-468 | Orchard/Views/Features/Compose/ComposeProjectDetail.swift:522-527 \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":"Orchard/Views/Features/Compose/ComposeProjectDetail.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"68845e3b889fc26fb0d6642d445b32e8f330816ad2c5693c0dc25bb94be66a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Orchard/Views/Features/Stats/ResourceStatsPanel.swift:103-111 | Orchard/Views/Features/Stats/ResourceStatsPanel.swift:113-121 \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":"Orchard/Views/Features/Stats/ResourceStatsPanel.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfacbe3b4b394ae919ee65241fd6aef21f56f4b94d529dd92cd9b462fcb1590"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Orchard/Services/ImageBuildService.swift:106-113 | Orchard/Services/UITestSupport.swift:96-100 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"Orchard/Services/ImageBuildService.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"63da3a3c250fe6fd9b4348256f0d23263cbbbf611ee30742915ab9bf69963bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Orchard/Views/Features/Containers/ContainerDetail.swift:165-172 | Orchard/Views/Features/Stats/SystemStatsDashboard.swift:104-116 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c1e0734dca22edf4cb92e323e8b3815938332a92183a3d2fc8cdfb2c23916b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Orchard/Services/TerminalLauncher.swift:60-73 | Orchard/Services/TerminalLauncher.swift:75-91 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/TerminalLauncher.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a682ded7efe12e3a79f8d9930cefa5d23dd3c7d314292ce2f2d871f134d9e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Orchard/Views/Features/Containers/ContainerDetail.swift:339-349 | Orchard/Views/Features/Containers/ContainerDetail.swift:351-361 \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":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"33cad9af7c2083d6b33d9bcb2b61f6e3a7d582898bf096e7b5224949cd251869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Orchard/Views/Components/UIComponents.swift:543-555 | Orchard/Views/Components/UIComponents.swift:569-582 \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":"Orchard/Views/Components/UIComponents.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4de18f5a6eab8e3fc9be9cab1e0e74f816e85c12de45519ffa63e1b09df5856"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Orchard/Views/Features/Compose/AddComposeProject.swift:131-140 | Orchard/Views/Features/Compose/InstallComposePlugin.swift:38-52 \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":"Orchard/Views/Features/Compose/AddComposeProject.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"632211647edbea2f6d712afe1e97e816fdaad695aa2dd200d6fe99c9aa8d5448"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Orchard/Services/ModelService.swift:132-140 | Orchard/Views/Features/Models/RunModelContainer.swift:64-71 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ModelService.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"be48852e78a257d9e06e939d41348f2739addec3745bf8533badcbb78fce372c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Orchard/Views/Features/DNS/ListDNS.swift:139-143 | Orchard/Views/Features/DNS/MultiDNSCards.swift:85-88 \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":"Orchard/Views/Features/DNS/ListDNS.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"552ff4ef60ed3c950a0f49356712917cbc56e00b4bda4ce204c48934b5bac094"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Orchard/Views/Features/Builds/DetailBuild.swift:168-183 | Orchard/Views/Features/Containers/ContainerDetail.swift:780-793 | Orchard/Views/Features/Containers/ContainerDetail.swift:1083-1096 \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":"Orchard/Views/Features/Builds/DetailBuild.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce616f5de031bae23c106ec95551d26f6194f528897b635fe98d2a03c478eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Orchard/Services/MachineService.swift:110-117 | Orchard/Services/NetworkService.swift:59-66 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/MachineService.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bac35af0e9f058b8bb6ca8130cfd49b518ce49de7f67f77b03370400be17af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Orchard/Views/Features/MenuBar/MenuBarDashboard.swift:380-384 | Orchard/Views/Features/Models/SandboxesView.swift:200-204 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"Orchard/Views/Features/MenuBar/MenuBarDashboard.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d157b7bdaa81c8a7c8d994803b932f12965f89aa0166ab192c28cf7733d31b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Orchard/Views/Features/Networks/ListNetworks.swift:128-135 | Orchard/Views/Features/Networks/MultiNetworkCards.swift:85-92 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Networks/ListNetworks.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1ee5aaee58f623bce57f640f7bbaab86231df23098957a17b7dae60a6bbd92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Orchard/Services/CLIParsers.swift:63-68 | Orchard/Services/K8sNodeImages.swift:35-40 \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":"Orchard/Services/CLIParsers.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfa7dce20f1f330e9b3a17db563d2f7f10f0c5c237600a2c919954e5e111785"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Orchard/Services/ComposePluginService.swift:326-336 | Orchard/Services/ContainerInstallService.swift:121-127 \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":"Orchard/Services/ComposePluginService.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"71350ce749663a723c1e4204362fadf2b1791774b9ef06072ca8ddbd71834747"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Orchard/Services/ComposeService.swift:218-224 | Orchard/Services/ImageBuildService.swift:282-288 \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":"Orchard/Services/ComposeService.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfa753a6d531e214ab94eb40ffdb022e3fc52da5000c2279d10c8e3c74bfc5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Orchard/Views/Features/Networks/ListNetworks.swift:138-144 | Orchard/Views/Features/Networks/MultiNetworkCards.swift:94-100 \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":"Orchard/Views/Features/Networks/ListNetworks.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca3374927e934244a0ffd56d3d30a7b3afcd7b7248441e8a86edae09b34b517"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Orchard/Views/Features/Machines/CreateMachine.swift:211-214 | Orchard/Views/Features/Models/RunModelContainer.swift:73-79 \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":"Orchard/Views/Features/Machines/CreateMachine.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2013c9f0af56bf7f038a224f73579cff65efe6cd27f5a0b39edee0e76164d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Orchard/Views/Features/MenuBar/MenuBarDashboard.swift:386-388 | Orchard/Views/Features/Models/SandboxesView.swift:221-223 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/MenuBar/MenuBarDashboard.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"60142d5f5899952cb5a503d8c8dc5654f309ce958f2994a8e3ff694ec53d5121"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): Orchard/Services/ModelServerService.swift:51-51 | Orchard/Services/SettingsStore.swift:289-289 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"Orchard/Services/ModelServerService.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad3209d9adc89edc327ce25f4916b482f2142cd68dd909c711dab43aab53107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): Orchard/Views/Layout/Content.swift:99-135 | Orchard/Views/Layout/MainInterface.swift:124-160 \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":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac1a62b68f576fb45e91efb091e24951aa97a14cc0648ff8dfed5e6db42054c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Orchard/Views/Components/ContainerTable.swift:119-150 | Orchard/Views/Components/NetworkTable.swift:63-94 \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 \u0060Orchard/Views/Components/ContainerTable.swift:119\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00602\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":"Orchard/Views/Components/ContainerTable.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a956373ea4d0bf06d3758414bf832a4f693eb69a59da5d19931653e33f5934a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Orchard/Views/Layout/ThreeColumnLayout.swift:428-458 | Orchard/Views/Layout/ThreeColumnLayout.swift:483-513 \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 \u0060Orchard/Views/Layout/ThreeColumnLayout.swift:428\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, \u0060Orchard/Views/Layout/ThreeColumnLayout.swift:518\u0060 calls \u0060padding\u0060 and \u0060Orchard/Views/Layout/ThreeColumnLayout.swift:459\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":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c2ba45ae8708853797e604af7295aea8404f17d33e0701b11f7074e81fb1cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:399-419 | Orchard/Views/Features/Containers/ContainerDetail.swift:514-534 \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 \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:399\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":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6cb82458a3bc473b46cc6c396a8688af88c0c598cc897fffbecfaa17fd2762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:924-944 | Orchard/Views/Features/Containers/ContainerDetail.swift:1134-1153 \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 \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:924\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":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0350fc2f5c169ed4a2364b1e7bb21e418f827cc1b402fa05a587733a847174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Orchard/Views/Layout/ThreeColumnLayout.swift:101-121 | Orchard/Views/Layout/ThreeColumnLayout.swift:462-482 \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 \u0060Orchard/Views/Layout/ThreeColumnLayout.swift:101\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":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8fc6a5f61e5291995f436593b709ffcc259b0880580a5c7451cfe38cc96a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201318 lines \u00D7 2): Orchard/Views/Features/Containers/RunContainer.swift:132-149 | Orchard/Views/Features/Models/RunModelContainer.swift:241-249 \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 \u0060Orchard/Views/Features/Containers/RunContainer.swift:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Orchard/Views/Features/Containers/RunContainer.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e67bae095e8965e6a162aaa8177920722eadb95a4ab2a7c52c6fdcbf1f09a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:904-920 | Orchard/Views/Features/Containers/ContainerDetail.swift:1111-1127 \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 \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:904\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":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"0706d24a1a3876a54aa7818736693bfb5a10827c4df2173b1a7823821bc00711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Orchard/Views/Features/Clusters/ClusterDetail.swift:317-332 | Orchard/Views/Features/Clusters/ClusterDetail.swift:373-388 \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 \u0060spacing\u0060 to \u00604\u0060 in one and \u00602\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":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2472af12fd3e862f87cd1e8c2ca48d28d81bc1ed39e809ce2f53b5752e419a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 3): Orchard/Views/Features/DNS/AddDNS.swift:11-25 | Orchard/Views/Features/Networks/AddNetwork.swift:18-32 | Orchard/Views/Features/Volumes/AddVolume.swift:23-32 \u2014 before extracting anything, compare \u0060Orchard/Views/Features/Networks/AddNetwork.swift\u0060 and \u0060Orchard/Views/Features/Volumes/AddVolume.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/DNS/AddDNS.swift:11\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":"Orchard/Views/Features/DNS/AddDNS.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb761fa976b7ae7e6a06276754182d34fc507f012c1b1432e527bc23ef3bd45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Orchard/Views/Layout/Content.swift:100-114 | Orchard/Views/Layout/MainInterface.swift:125-139 | Orchard/Views/Layout/ThreeColumnLayout.swift:388-402 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"01846c9b3c98cf791092ad7689bc5ffb69aae2fde74b1ea9a7db39fba0e7a1dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Orchard/Services/SystemService.swift:198-212 | Orchard/Services/SystemService.swift:225-239 \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 \u0060Orchard/Services/SystemService.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. 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":"Orchard/Services/SystemService.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7368688c92d25730ff9fb2235f843c79bfdb5d874e9a28d561644df0d37e1803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Orchard/Views/Features/DNS/MultiDNSCards.swift:55-69 | Orchard/Views/Features/Networks/MultiNetworkCards.swift:55-69 \u2014 before extracting anything, compare \u0060Orchard/Views/Features/DNS/MultiDNSCards.swift\u0060 and \u0060Orchard/Views/Features/Networks/MultiNetworkCards.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/DNS/MultiDNSCards.swift:55\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":"Orchard/Views/Features/DNS/MultiDNSCards.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2db9bcf7bd57dcda1135809130af934714356a2d414b946a3fcf508501b3f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): Orchard/Views/Features/Clusters/ClusterDetail.swift:277-290 | Orchard/Views/Features/Clusters/ClusterDetail.swift:337-350 | Orchard/Views/Features/Machines/CreateMachine.swift:108-121 | Orchard/Views/Features/Machines/DetailMachine.swift:50-63 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Clusters/ClusterDetail.swift:277\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006010\u0060 in one and \u00608\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":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"73350350a10f99dce083fe3f1ef430a842646c4aca26966614d90857bc2f65a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Orchard/Views/Features/Containers/EditContainer.swift:148-161 | Orchard/Views/Features/Containers/RunContainer.swift:117-130 | Orchard/Views/Features/Models/RunModelContainer.swift:226-239 \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. 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 \u00606\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":"Orchard/Views/Features/Containers/EditContainer.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1cd3a8596279adc1b303752afd9a4ad64c8ced5b583a9b47556cc6f1283d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 2): Orchard/Views/Features/Networks/AddNetwork.swift:145-158 | Orchard/Views/Features/Volumes/AddVolume.swift:80-88 \u2014 before extracting anything, compare \u0060Orchard/Views/Features/Networks/AddNetwork.swift\u0060 and \u0060Orchard/Views/Features/Volumes/AddVolume.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Networks/AddNetwork.swift:145\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":"Orchard/Views/Features/Networks/AddNetwork.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5c29a1e1e173e863c777b6552fdc24cd3ba26a6b32a277ba8f2e6e0e7e5e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Orchard/Views/Features/DNS/MultiDNSCards.swift:31-43 | Orchard/Views/Features/Images/MultiImageCards.swift:31-43 | Orchard/Views/Features/Mounts/MultiMountCards.swift:30-42 | Orchard/Views/Features/Networks/MultiNetworkCards.swift:31-43 \u2014 before extracting anything, compare \u0060Orchard/Views/Features/DNS/MultiDNSCards.swift\u0060 and \u0060Orchard/Views/Features/Networks/MultiNetworkCards.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/DNS/MultiDNSCards.swift:31\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":"Orchard/Views/Features/DNS/MultiDNSCards.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8671b580d7ee922c8db0179e9599686a6a49343d9361bed9ca9940a13d16fa51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): Orchard/Views/Features/Clusters/CreateCluster.swift:161-173 | Orchard/Views/Features/Machines/CreateMachine.swift:91-103 | Orchard/Views/Features/Machines/EditMachine.swift:74-85 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Clusters/CreateCluster.swift:161\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":"Orchard/Views/Features/Clusters/CreateCluster.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c6759516291c3785d0ceb102b4d0ed04afa28778f607f3858f45329d108d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201313 lines \u00D7 3): Orchard/Views/Features/Machines/CreateMachine.swift:178-183 | Orchard/Views/Features/Networks/AddNetwork.swift:21-33 | Orchard/Views/Features/Volumes/AddVolume.swift:25-32 \u2014 before extracting anything, compare \u0060Orchard/Views/Features/Networks/AddNetwork.swift\u0060 and \u0060Orchard/Views/Features/Volumes/AddVolume.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Networks/AddNetwork.swift:21\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":"Orchard/Views/Features/Machines/CreateMachine.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c993d7350fe2634e23450948ee4bbd467a36ef59c643d161e91e45ff7fce6be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Orchard/Views/Features/Compose/InstallComposePlugin.swift:93-105 | Orchard/Views/States/NotInstalled.swift:108-120 \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 \u0060Orchard/Views/Features/Compose/InstallComposePlugin.swift:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Compose/InstallComposePlugin.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"819f645f0f026e92f198b413cde76c982038bc6d3c36508d5fa007cf5db4d2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Orchard/Views/Features/Logs/MultiLogView.swift:200-212 | Orchard/Views/Features/Logs/ViewLogs.swift:75-87 \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 \u0060Orchard/Views/Features/Logs/MultiLogView.swift:200\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":"Orchard/Views/Features/Logs/MultiLogView.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab751756a167ca021ec22fb9f68dac34f1f2addf1bf39670fe8bfec53f94fe8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Orchard/Views/Features/Models/ModelsView.swift:129-141 | Orchard/Views/Features/Models/SandboxesView.swift:83-95 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Models/ModelsView.swift:129\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":"Orchard/Views/Features/Models/ModelsView.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e7d75ab0ecb134533d0a17a22a62d745b15daa419209eb173e5d472632417e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Orchard/Services/CLIParsers.swift:167-178 | Orchard/Services/ImageService.swift:435-444 \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 \u0060Orchard/Services/CLIParsers.swift:167\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Orchard/Services/CLIParsers.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ffa1c00b59c8ca7fed469d5641f42348b91c063af45bf7319600e9406449a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Orchard/Services/ContainerListService.swift:462-473 | Orchard/Services/MachineService.swift:135-144 \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 \u0060Orchard/Services/ContainerListService.swift:462\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":"Orchard/Services/ContainerListService.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34e6ec5b059c1777064cc8cbb65837828dfb849f07c87e0f4d2b5955c0ca819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerConfigForm.swift:1085-1096 | Orchard/Views/Features/Containers/ContainerConfigForm.swift:1113-1124 \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 \u0060Orchard/Views/Features/Containers/ContainerConfigForm.swift:1085\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":"Orchard/Views/Features/Containers/ContainerConfigForm.swift"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"1598b57477be295a4af9eae991ec019813fffa65c6ae115f8037b0f85ac1d39a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:953-968 | Orchard/Views/Features/Containers/ContainerDetail.swift:1161-1176 \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 \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:953\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:950\u0060 calls \u0060help\u0060 and \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:1158\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":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5da90be3e6a5d46b8899ddd0fb09a58353846e4d25ad0538ae72917984f6643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Orchard/Views/Features/Containers/EditContainer.swift:114-125 | Orchard/Views/Features/Containers/RunContainer.swift:104-115 \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 \u0060Orchard/Views/Features/Containers/EditContainer.swift:114\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":"Orchard/Views/Features/Containers/EditContainer.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52475f2e0703ca9c01fcbbc89334b1860f4f7abafae360d7f24488900caaa52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Orchard/Views/Layout/ThreeColumnLayout.swift:600-611 | Orchard/Views/Layout/ThreeColumnLayout.swift:617-628 \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 \u0060Orchard/Views/Layout/ThreeColumnLayout.swift:600\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":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89636e6be386760779caac15b7208287d10e36c88e6d651ec3525bd3ee30637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Orchard/Views/Features/Clusters/ListClusters.swift:91-101 | Orchard/Views/Features/Compose/ListComposeProjects.swift:164-174 | Orchard/Views/Features/Machines/ListMachines.swift:73-83 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Clusters/ListClusters.swift:91\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, \u0060Orchard/Views/Features/Compose/ListComposeProjects.swift:175\u0060 calls \u0060Button\u0060, \u0060present\u0060, \u0060buttonStyle\u0060 and \u0060Orchard/Views/Features/Machines/ListMachines.swift:84\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":"Orchard/Views/Features/Clusters/ListClusters.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"055dd9af70fa936ebffa7ba9eb1e4364a012ae2e17488e23a096d6724c36bd0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Orchard/Services/ContainerBackend.swift:331-341 | Orchard/Services/MachineBackend.swift:335-343 \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. 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":"Orchard/Services/ContainerBackend.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3534e26ea2a3a25442e6506c9e9bd1cae9c14b2afeb3811ab701147deefc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Orchard/Views/Features/Clusters/ClusterDetail.swift:279-288 | Orchard/Views/Features/Clusters/ClusterDetail.swift:321-330 | Orchard/Views/Features/Clusters/ClusterDetail.swift:339-348 | Orchard/Views/Features/Clusters/ClusterDetail.swift:377-386 | Orchard/Views/Features/Machines/CreateMachine.swift:110-119 | Orchard/Views/Features/Machines/DetailMachine.swift:52-61 \u2014 there are 6 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Clusters/ClusterDetail.swift:279\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":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"688d32af269cfeed37d4656b8a8ac316263703a9af04084047930d963453e495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): Orchard/Views/Components/UIComponents.swift:131-140 | Orchard/Views/Components/UIComponents.swift:214-223 | Orchard/Views/Components/UIComponents.swift:369-378 | Orchard/Views/Features/Containers/ContainerDetail.swift:978-987 | Orchard/Views/Features/Containers/ContainerDetail.swift:1187-1196 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:1184\u0060 calls \u0060help\u0060 and \u0060Orchard/Views/Components/UIComponents.swift:211\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":"Orchard/Views/Components/UIComponents.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a177bf9f2c6b1b3068f424e39c5c002d6b84654501c467e5c925e5a682a9af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): Orchard/Services/UITestSupport.swift:44-53 | Orchard/Views/Features/Containers/EditContainer.swift:232-238 \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 \u0060Orchard/Services/UITestSupport.swift:44\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/UITestSupport.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98c4bafd891bf10394aa90ba78dcf247286c6f8fb5cc4bb772d32ceb0045f8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Orchard/Views/Components/ListItemRow.swift:74-83 | Orchard/Views/Components/ListItemRow.swift:94-103 \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 \u0060Orchard/Views/Components/ListItemRow.swift:74\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":"Orchard/Views/Components/ListItemRow.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5316a2bdcf10f6a9ff4b90b31e1dc479cedef941ad951e34fcb954832a9e48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Orchard/Views/Features/Models/CreateModelServer.swift:61-70 | Orchard/Views/Features/Models/RunModelContainer.swift:259-268 \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":"Orchard/Views/Features/Models/CreateModelServer.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfabba06d880e77c43aeaed8d6c114f0194e7c90964ddc83319e92237852fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Orchard/Views/States/NewerVersion.swift:5-14 | Orchard/Views/States/VersionIncompatibility.swift:5-14 \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 \u0060Orchard/Views/States/NewerVersion.swift:5\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, \u0060Orchard/Views/States/VersionIncompatibility.swift:16\u0060 calls \u0060Text\u0060, \u0060padding\u0060, \u0060multilineTextAlignment\u0060 and \u0060Orchard/Views/States/NewerVersion.swift:16\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":"Orchard/Views/States/NewerVersion.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1ff9f030f7e53c86ecbc91ce071a4df37c7ba153ffeae6187b83ab6e4c9fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Orchard/Views/Features/Clusters/CreateCluster.swift:481-489 | Orchard/Views/Features/Images/BuildImage.swift:143-151 | Orchard/Views/Features/Machines/CreateMachine.swift:201-209 \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":"Orchard/Views/Features/Clusters/CreateCluster.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce6a5538fd53cbd09f78f62f4bb8d19ed2742a8a709b7c826d94f0254b459b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Orchard/Views/Layout/ThreeColumnLayout.swift:236-244 | Orchard/Views/Layout/ThreeColumnLayout.swift:270-279 \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 \u0060Orchard/Views/Layout/ThreeColumnLayout.swift:236\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"142668e699c7eee7350a0b0e4ce9d2397de506f190b9c3c077757df610563c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): Orchard/Views/Components/UIComponents.swift:75-82 | Orchard/Views/Components/UIComponents.swift:86-93 | Orchard/Views/Components/UIComponents.swift:192-199 | Orchard/Views/Components/UIComponents.swift:203-210 | Orchard/Views/Components/UIComponents.swift:283-290 | Orchard/Views/Features/Containers/ContainerDetail.swift:954-961 | Orchard/Views/Features/Containers/ContainerDetail.swift:966-973 | Orchard/Views/Features/Containers/ContainerDetail.swift:1162-1169 | Orchard/Views/Features/Containers/ContainerDetail.swift:1174-1181 \u2014 there are 9 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 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Components/UIComponents.swift:75\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, \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:1184\u0060 calls \u0060help\u0060 and \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:976\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":"Orchard/Views/Components/UIComponents.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b23ddc97c9b8bd0e1c3128270cd2e74b2e8fa5303696e29b4312c111cf3ac6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Orchard/Views/Features/DNS/DNSDetailHeader.swift:44-51 | Orchard/Views/Features/Images/MultiImageCards.swift:130-137 | Orchard/Views/Features/Networks/NetworkDetailHeader.swift:49-56 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/DNS/DNSDetailHeader.swift:44\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":"Orchard/Views/Features/DNS/DNSDetailHeader.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d3c43df5b5e0324de67ddea4646d7a146294be5f0396bbf1f90707726ef075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Orchard/Views/Features/DNS/MultiDNSCards.swift:142-149 | Orchard/Views/Features/Images/MultiImageCards.swift:157-164 | Orchard/Views/Features/Networks/MultiNetworkCards.swift:147-154 \u2014 before extracting anything, compare \u0060Orchard/Views/Features/DNS/MultiDNSCards.swift\u0060 and \u0060Orchard/Views/Features/Networks/MultiNetworkCards.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/DNS/MultiDNSCards.swift:142\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":"Orchard/Views/Features/DNS/MultiDNSCards.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e905ef9c7712cac5ac35066b7c5a6d2ab4d5fcc27274907def55bb5b75650c4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Orchard/Services/BuildsPersistence.swift:36-43 | Orchard/Services/StatsPersistence.swift:26-33 \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 \u0060Orchard/Services/BuildsPersistence.swift:36\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/BuildsPersistence.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70d268785d9d1a5d5195adcc55c4cc45f08a4d13981679f27b51b54442c5b06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Orchard/Services/ContainerListService.swift:275-282 | Orchard/Services/ContainerListService.swift:305-312 \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 \u0060Orchard/Services/ContainerListService.swift:275\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":"Orchard/Services/ContainerListService.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6204d87d2a11dda9a04d825221b9e8b76afa306e381a5949ec9c890d555b41e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:443-450 | Orchard/Views/Features/Containers/ContainerDetail.swift:538-545 \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 \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:443\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, \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:453\u0060 calls \u0060HStack\u0060, \u0060contains\u0060 and \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:548\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":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4bc20258a3731c8201eb1d9e9753e3ac57fda097c3700ab7dc0a1f48a979e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Orchard/Views/Features/Mounts/MultiMountCards.swift:124-131 | Orchard/Views/Features/Volumes/DetailVolume.swift:185-192 \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 \u0060Orchard/Views/Features/Mounts/MultiMountCards.swift:124\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":"Orchard/Views/Features/Mounts/MultiMountCards.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ecdf34d039d740a1c35e1d784eaf6187b3586ed7086fed4157cbc1a2e70816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Orchard/Views/Features/Stats/DashboardView.swift:21-29 | Orchard/Views/Features/Stats/DashboardView.swift:36-44 \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 \u0060Orchard/Views/Features/Stats/DashboardView.swift:21\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Stats/DashboardView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebe4b98126e923d71e7bd67971ded45a70d09f79cc5b7674a66a67974ba27f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Orchard/Views/Features/Clusters/ClusterDetail.swift:275-281 | Orchard/Views/Features/Clusters/ClusterDetail.swift:335-341 | Orchard/Views/Features/Clusters/ClusterDetail.swift:354-360 | Orchard/Views/Features/Machines/CreateMachine.swift:106-112 | Orchard/Views/Features/Machines/DetailMachine.swift:48-54 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Clusters/ClusterDetail.swift:275\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 \u00602\u0060 in one and \u006012\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":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0c4cd97bc1716a672bf2482970a19927e6279de41d491fa35df08dbc15fa6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetailHeader.swift:37-43 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:101-107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Containers/ContainerDetailHeader.swift:37\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":"Orchard/Views/Features/Containers/ContainerDetailHeader.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f880a2004fa2298e7feb4d72a17b5249b1330cf6e454560aa9e4336d86287521"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Features/Machines/DetailMachine.swift:129-135 | Orchard/Views/Features/Networks/DetailNetwork.swift:71-77 \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 \u0060Orchard/Views/Features/Machines/DetailMachine.swift:129\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":"Orchard/Views/Features/Machines/DetailMachine.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5c820b9ea3f0369aeeaa92fdb3deadbb4a4f1aeee0e5c610bed12eddc99231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Orchard/Views/Components/CommandPalette.swift:261-266 | Orchard/Views/Components/ListItemRow.swift:73-78 | Orchard/Views/Components/ListItemRow.swift:93-98 \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 \u0060Orchard/Views/Components/CommandPalette.swift:261\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":"Orchard/Views/Components/CommandPalette.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abd333db85b9be53f19d6a2f6c9cc8f0091d530f7779b65877387b9f1dc6853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Orchard/Views/Features/Clusters/ClusterDetail.swift:543-548 | Orchard/Views/Features/Networks/AddNetwork.swift:145-155 | Orchard/Views/Features/Volumes/AddVolume.swift:80-85 \u2014 before extracting anything, compare \u0060Orchard/Views/Features/Networks/AddNetwork.swift\u0060 and \u0060Orchard/Views/Features/Volumes/AddVolume.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Clusters/ClusterDetail.swift:543\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":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ffae5d48d39ec5c6e365369090627dd2ef6903bbfa9a02c0ccd62317ceffdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Orchard/Views/Features/Clusters/CreateCluster.swift:456-461 | Orchard/Views/Features/Machines/CreateMachine.swift:180-185 | Orchard/Views/Features/Machines/EditMachine.swift:91-96 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Clusters/CreateCluster.swift:456\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":"Orchard/Views/Features/Clusters/CreateCluster.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"0488cb1aff1564a47cae24dafbdbc55590904d456f936961816d894e14030201"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Orchard/Views/Components/ListItemRow.swift:92-97 | Orchard/Views/Features/Clusters/ClusterDetail.swift:439-444 \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":"Orchard/Views/Components/ListItemRow.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"88427d2d8a53018319e9b25c8982f43c1a5429934d956b864c704eba1d2319c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:666-671 | Orchard/Views/Features/Containers/ContainerDetail.swift:686-691 \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 \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:666\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":"Orchard/Views/Features/Containers/ContainerDetail.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0bd880fe207bbd909a7ea9d4dcd061cbd8d59bb6c4edf689021bd20890c7ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Orchard/Views/Features/Clusters/CreateCluster.swift:456-460 | Orchard/Views/Features/Machines/CreateMachine.swift:180-184 | Orchard/Views/Features/Machines/EditMachine.swift:91-95 | Orchard/Views/Features/Networks/AddNetwork.swift:23-35 | Orchard/Views/Features/Volumes/AddVolume.swift:27-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Clusters/CreateCluster.swift:456\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Clusters/CreateCluster.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"5371171b6a8bcd245fee6356f584b583f6852c37e0cadbc73dff84d197eaee64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Orchard/Views/Components/ListItemRow.swift:73-77 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:37-41 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:101-105 \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 \u0060Orchard/Views/Components/ListItemRow.swift:73\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":"Orchard/Views/Components/ListItemRow.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c6e69a41950f3abef657eaf37ff08fca5c40d1c72b2483ef760c81f1b8f8d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Orchard/Views/Features/DNS/ListDNS.swift:167-175 | Orchard/Views/Features/Images/ListImages.swift:205-213 | Orchard/Views/Features/Networks/ListNetworks.swift:168-176 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/DNS/ListDNS.swift:167\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":"Orchard/Views/Features/DNS/ListDNS.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bded74c3d6a9b5e4cbf47bdf6b8c3a8c6e8d98ae67d03e3b35f144b10d21c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Components/StatsTableView.swift:185-191 | Orchard/Views/Components/StatsTableView.swift:228-234 \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":"Orchard/Views/Components/StatsTableView.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9e0aedcb890be29e717759c8dc6c46e9fe210f079b2cf22c8e98bae242375b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Components/StatsTableView.swift:197-203 | Orchard/Views/Components/StatsTableView.swift:237-243 \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":"Orchard/Views/Components/StatsTableView.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6fdaba88ee3a1f73de25fde2a3df121520af8c5beabccb6d1ecc3881f33d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Components/StatsTableView.swift:209-215 | Orchard/Views/Components/StatsTableView.swift:246-252 \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":"Orchard/Views/Components/StatsTableView.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7d3652b9de0362827eac2702786145eb613910fda91f953c0ad529d0b19ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Features/Models/ModelsView.swift:551-557 | Orchard/Views/Features/Models/SandboxesView.swift:292-298 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Models/ModelsView.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"978c55993d0b3498a4440d047ebee663da58ba9dbc6b94a4049b9b1207d5f76f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Orchard/Services/BuilderService.swift:35-39 | Orchard/Services/DNSService.swift:75-79 \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":"Orchard/Services/BuilderService.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f96a500c6ae884969c4d65287e1ee60ee69e41877d4bc2011b648d3f5e7860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Orchard/Services/BuildsPersistence.swift:12-17 | Orchard/Services/ComposeProjects.swift:149-154 | Orchard/Services/StatsPersistence.swift:12-17 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/BuildsPersistence.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3ec1115f0ffa04b8889b0e3a05b919d55add3a05e9a57d18bd9ef32c4cbf6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Orchard/Views/Components/UIComponents.swift:14-21 | Orchard/Views/Features/Containers/ContainerDetail.swift:586-592 | Orchard/Views/Features/Images/ImageDetailHeader.swift:16-22 \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. 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":"Orchard/Views/Components/UIComponents.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b0e5ebcf6ce643e396e240a39a91c28bf3ce7acea109e575554b21a2381b2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Orchard/Views/Components/UIComponents.swift:23-31 | Orchard/Views/Features/Containers/ContainerDetail.swift:594-601 \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":"Orchard/Views/Components/UIComponents.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"20665d1a6b3e61775970a533cf9328e1094dea06814448d56427784b0f35e354"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Features/Images/ListImages.swift:126-132 | Orchard/Views/Features/Images/MultiImageCards.swift:90-96 \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":"Orchard/Views/Features/Images/ListImages.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3da0f20d974bada30bd90aea11e7af229228b4dfdf95c0ba1b3111038a3a1e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Features/Images/ListImages.swift:134-140 | Orchard/Views/Features/Images/MultiImageCards.swift:98-104 \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":"Orchard/Views/Features/Images/ListImages.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c91c384e8d9a912a534df0dcfddc5e4b9a4f332298622baa44046d0a4ec551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Orchard/Views/Features/Logs/MultiLogView.swift:237-245 | Orchard/Views/Features/Logs/ViewLogs.swift:96-104 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also 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":"Orchard/Views/Features/Logs/MultiLogView.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de15b6b8bb4c9c7e751b28e8ad3a5ef525b12e47490b508a53bad3485e87fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Orchard/Views/Features/Machines/ListMachines.swift:40-49 | Orchard/Views/Features/Networks/ListNetworks.swift:35-44 \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":"Orchard/Views/Features/Machines/ListMachines.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6229f836810a68a07c810fa74001b17efb508ba796eed6a89a18b1885ca4cbd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Orchard/Services/ContainerBackend.swift:634-638 | Orchard/Services/MachineBackend.swift:279-285 \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":"Orchard/Services/ContainerBackend.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"851b14ade8c1aada8032a5c8408c1844a7a356e30aba78d2a22721414e52f743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Orchard/Views/Features/DNS/ListDNS.swift:13-22 | Orchard/Views/Features/Machines/ListMachines.swift:17-25 | Orchard/Views/Features/Networks/ListNetworks.swift:13-22 \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":"Orchard/Views/Features/DNS/ListDNS.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c78e547cf10369b18883b53ce7c001b4b7ff30bfe8dca33afbd226d432dad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Orchard/Views/Features/DNS/ListDNS.swift:145-154 | Orchard/Views/Features/Images/ListImages.swift:189-197 | Orchard/Views/Features/Mounts/ListMounts.swift:106-114 | Orchard/Views/Features/Networks/ListNetworks.swift:146-155 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/DNS/ListDNS.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d8ad27268c47133073934c288269d2a77eb7bb9721003f860fff95efbadb72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Orchard/Services/ImageBuildService.swift:107-111 | Orchard/Services/ImageService.swift:57-61 \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":"Orchard/Services/ImageBuildService.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d889a21d1c3d6ae5b67aeaddb923cdebb7517445c589265d5e9352494e8bdba2"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: example: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OrchardTests/OrchardTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8faa9e5ec393f4f74774247c54ceaf7565f0e234c3170193fc5f210004337c4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunch: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OrchardUITests/OrchardUITestsLaunchTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b882c23375a1660bc16f04535c477dc30f37f9be414319c870bce0441e072f7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: builderStatusNotRunning: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OrchardTests/CLIParserTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"833dc9cb2a86d29afcc5f6a98ad3a02cbc35cf45f08335be14ec16e89fca2d3b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: menuBarLifecycleIdempotent: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"OrchardTests/MenuBarStatsLifecycleTests.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a1452bd335508439248b08c0be49524dff1d5fe55d73ddbde16043903004bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Layout/ThreeColumnLayout.swift: Orchard/Views/Layout/ThreeColumnLayout.swift changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ThreeColumnLayout.body at line 99. 2 of those changes were fix/bug commits, and the other 25 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Views/Layout/ThreeColumnLayout.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":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"329b553745d9f775897d58f2fb9d1d08d2ede1e5ccd573ede26ecdca73d35d01"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Layout/Content.swift: Orchard/Views/Layout/Content.swift changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in ContentView.applyServiceSyncHandlers at line 144. 3 of those changes were fix/bug commits, and the other 21 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Views/Layout/Content.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":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"89119794af56215c0e0db1bdec87a154842379839da4fc0f7942f88321e5219c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: scripts/orchard-ax.swift: scripts/orchard-ax.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 102 in orchard-ax.swift.top-level code at line 6. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- scripts/orchard-ax.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":"scripts/orchard-ax.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a10aea4b66e08c040c65a25f818e57e083d55ba3e1a080a2e2e591dad696b0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Services/ContainerBackend.swift: Orchard/Services/ContainerBackend.swift changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in LiveContainerBackend.createContainer at line 647. 2 of those changes were fix/bug commits, and the other 24 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Services/ContainerBackend.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":"Orchard/Services/ContainerBackend.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"da50d23ff343033cc248e948d224c05829a39cf3ba2023d746a1dc5727ebc08c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Features/Containers/ListContainers.swift: Orchard/Views/Features/Containers/ListContainers.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ContainersListView.contextMenu at line 211. 2 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Views/Features/Containers/ListContainers.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":"Orchard/Views/Features/Containers/ListContainers.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"59618a721741d76987672a28fb6aae546549d7035f846ddfaa037332fcf7ee9a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Features/Containers/ContainerDetailHeader.swift: Orchard/Views/Features/Containers/ContainerDetailHeader.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ContainerDetailHeader.body at line 219. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Views/Features/Containers/ContainerDetailHeader.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":"Orchard/Views/Features/Containers/ContainerDetailHeader.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"44710eccb9301d7019d0aa08314852988d7a3197e9a5078a5e7f57cc0193655b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Layout/DetailContent.swift: Orchard/Views/Layout/DetailContent.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in DetailContentView.body at line 36. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Views/Layout/DetailContent.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":"Orchard/Views/Layout/DetailContent.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a06ea1b1ebe4f38e38b8a3df665fd779d1793cbcc88ecc9298a44e75b0bb5c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Layout/MainInterface.swift: Orchard/Views/Layout/MainInterface.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in MainInterfaceView.currentResourceTitle at line 49. 1 of those changes was a fix/bug commit, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Views/Layout/MainInterface.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":"Orchard/Views/Layout/MainInterface.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e156a57236295298197761a6e4dbc9bdc9f7090bd2bde02525030b6a2359338"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Services/ClusterService.swift: Orchard/Services/ClusterService.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ClusterService.performCreate at line 869. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Services/ClusterService.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":"Orchard/Services/ClusterService.swift"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c68af60627d2ee470c9823238896fdd2fdda34db6866d687371e1548ad765e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Features/Clusters/ClusterDetail.swift: Orchard/Views/Features/Clusters/ClusterDetail.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ClusterDetailView.header at line 113. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Views/Features/Clusters/ClusterDetail.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":"Orchard/Views/Features/Clusters/ClusterDetail.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"984e84d684a65f317cd420f66db2f8c37e274f018f901979865e5119f5da362a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Features/Clusters/CreateCluster.swift: Orchard/Views/Features/Clusters/CreateCluster.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in CreateClusterView.create at line 500. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Views/Features/Clusters/CreateCluster.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":"Orchard/Views/Features/Clusters/CreateCluster.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3c4a582af9fbc5a6115eb99f55556e4fbe8c6873159a6b42fb34b661ab8e64"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Components/ContainerTable.swift: Orchard/Views/Components/ContainerTable.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ContainerTable.body at line 30. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Views/Components/ContainerTable.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":"Orchard/Views/Components/ContainerTable.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9033a7dd46412f43613a6e0bd9a7397443da93baba78661891e35e4b9418aa4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Services/StatsService.swift: Orchard/Services/StatsService.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in StatsService.load at line 246. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Services/StatsService.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":"Orchard/Services/StatsService.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec52ede01cc340eaa1e261a42992f4963266f03e596937f6e3692f663eae2e6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Components/CommandPalette.swift: Orchard/Views/Components/CommandPalette.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in CommandPaletteView.installKeyMonitor at line 158. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 21:50:04 \u002B00:00\u0027 --until=\u00272026-11-12 21:50:04 \u002B00:00\u0027 --full-history --no-merges -- Orchard/Views/Components/CommandPalette.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":"Orchard/Views/Components/CommandPalette.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"171b575b36c3cda9c1b583c1fb5815b5ec03741fca08894c6e1f81a6aef7c540"}},{"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 \u0060Orchard.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fa37016f95bdffad31e9258be8ab495f2a0aa5a961f0827c9690e8ab2b6108"}},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b4b84274ded7e6b21af20f24c3c1abbd7c2623cc940e96b12bd49088aeb7e024"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1aeaa6ef068e8b70909d0eb459d7be0c53b43fc480df140fe819fac41c7c2b73"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e31915ae4cd850add14593d1bba14cd6b635166de420ff57e3c8336a5a43d518"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d30a973bc1b0cbde4242c78592c66a317c3b4a03c04738a9712a2d4ab5f5f192"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: DetailContent.swift \u2194 MainInterface.swift: \u0060Orchard/Views/Layout/DetailContent.swift\u0060 and \u0060Orchard/Views/Layout/MainInterface.swift\u0060 change together 68% of the time (15 of the 22 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are \u006063bd5777\u0060 Create clusters with worker nodes (#138); \u0060bdeec94d\u0060 Builds: replace the menu-bar menu with a sidebar tab; \u0060951a5c86\u0060 Add a Clusters view for container k8s local Kubernetes clusters \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/DetailContent.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d46f261bcf5d11740ba555bb7a8e0825286fe3f7bb780e194a742fe90d8ab1c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ListContainers.swift \u2194 ListImages.swift: \u0060Orchard/Views/Features/Containers/ListContainers.swift\u0060 and \u0060Orchard/Views/Features/Images/ListImages.swift\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060a01f745b\u0060 Select the first row the list is actually showing; \u00609dac34a6\u0060 Adds container an image sorting; \u00600dd3cf0e\u0060 Update list views \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ListContainers.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a8adb553fbf92a53d3a153896821609491bf3fae346866ec6276c608a778d8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Content.swift \u2194 ThreeColumnLayout.swift: \u0060Orchard/Views/Layout/Content.swift\u0060 and \u0060Orchard/Views/Layout/ThreeColumnLayout.swift\u0060 change together 52% of the time (23 of the 44 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 23 shared commits counted here, the most recent 3 are \u00608065515e\u0060 Keep the header buttons visible in full screen (#167) (#168); \u006063bd5777\u0060 Create clusters with worker nodes (#138); \u0060bdeec94d\u0060 Builds: replace the menu-bar menu with a sidebar tab \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bc9ef6e9e2f7f8dbfc9cf642f17a28ce91156b0f1192b83631fd71596ea694"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Content.swift \u2194 DetailContent.swift: \u0060Orchard/Views/Layout/Content.swift\u0060 and \u0060Orchard/Views/Layout/DetailContent.swift\u0060 change together 50% of the time (14 of the 28 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are \u006063bd5777\u0060 Create clusters with worker nodes (#138); \u0060bdeec94d\u0060 Builds: replace the menu-bar menu with a sidebar tab; \u0060799bf901\u0060 Address CodeRabbit review: guards, pruning, and demo-script ownership \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c1e0923b70745aa767eb1ef8012e192ec1427b5a2640dff960ac2cd5a0055d"}},{"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":"c6eb5a94052c328a9f9d4f3228923a5f2d4d56700f96d3ddbb1b358415402983"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"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 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060top-level code\u0060 is async and calls usleep, .wait() \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/orchard-ax.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"26648b9dc7f44ee6e06610fc2e65c08e0682d42fe1eef05f4e8d59dbab294efe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!lastSegment.contains(\u0022:\u0022) \u0026\u0026 !lastSegment.contains(\u0022@\u0022)\u0060 appears character-identically in 2 files \u2014 Orchard/Services/ImageBuildService.swift, Orchard/Services/ImageService.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":"Orchard/Services/ImageBuildService.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1e6977009a2805f975ca777b80a157e703263b378788c2ba02c105d0f0a574"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.isEnabled \u0026\u0026 $0.isUserConfigured \u0026\u0026 !answering.contains($0.id)\u0060 appears character-identically in 2 files \u2014 Orchard/Views/Features/Models/ModelsView.swift, Orchard/Views/Layout/ThreeColumnLayout.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":"Orchard/Views/Features/Models/ModelsView.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3e0c4edbe09e9a2ede030c84883b4486595ac8d8023770d3ce3cae49ccb63e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060container.configuration.image.reference == image.reference \u0026\u0026 container.status.lowercased() == \u0022running\u0022\u0060 appears character-identically in 2 files \u2014 Orchard/Views/Components/UIComponents.swift, Orchard/Views/Features/Images/ListImages.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":"Orchard/Views/Components/UIComponents.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d223727fe10ed0f0dc035a707d8c69e896c8559ea6bf0f9b2ac641f3aea7e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.contains(\u0022User canceled\u0022) || message.contains(\u0022-128\u0022)\u0060 appears character-identically in 2 files \u2014 Orchard/Services/ComposePluginService.swift, Orchard/Services/ContainerInstallService.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":"Orchard/Services/ComposePluginService.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a9a4210ebab59c5ad1b4289937d055bfe9de084518747ad295f3db91b3d496"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060systemService.systemStatus == .notInstalled || containerInstallService.currentStep != nil\u0060 appears character-identically in 2 files \u2014 Orchard/Views/Features/MenuBar/MenuBarDashboard.swift, Orchard/Views/Layout/Content.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":"Orchard/Views/Features/MenuBar/MenuBarDashboard.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c49a740df8b97ac5490ffed208309a28b60b0a37b11561145885abe3e1832e"}},{"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":"Orchard/Services/ComposeProjects.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"078a711b1ee695d80a3e4cac7c75a5a4d58cd773dbe99ef62d999581e1651140"}},{"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":"Orchard/Services/DNSService.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f341d8c30fdd21ed659952dfba4c5afb01d259603a89eefe709d0cc4e0861211"}},{"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":"Orchard/Services/ImageService.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6e00f18ec60b37bce87c85a965e48fa5dde3d9774673248aee30af58937803"}},{"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":"Orchard/Services/ImageService.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"700b9f9f54489ee46a23cfb93b94bd2b6296ac33732c6d9a346f9c96d7d43e21"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-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-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-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":8,"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."]}]}