{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"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"]}],"properties":{"cwe":["CWE-1059"]}},{"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":"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":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"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":"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":"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 38): ThreeColumnLayout.body has cyclomatic complexity 38 (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":83}}}],"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":134}}}],"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"931c416a3a1f5d8c550fee0e4670a43f88d47b4dd9063ae745ff42dd3be5dc9a"}},{"ruleId":"D1","level":"warning","message":{"text":"MainInterfaceView.currentResourceTitle (cyclomatic 31): MainInterfaceView.currentResourceTitle 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/MainInterface.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e7312c0d81971b7cc52c46b2e52e61497bbe67f07ff79671b00e5ee9d3631a"}},{"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":"TabColumnView.selectTab (cyclomatic 28): TabColumnView.selectTab has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aae4bd63acbc6f4b0343b7bee799e226e690088102936007512300023097687"}},{"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":"ContainerDetailHeader.body (cyclomatic 22): ContainerDetailHeader.body has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetailHeader.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e556510a6315d6c895aa220eb4484cccc0dd6ff34116e031c9caae634920af"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailContentView.body (cyclomatic 20): DetailContentView.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/Layout/DetailContent.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e311a4a725225d7c50453b9d28bbbf6f483da1af2afbe451d44c314d1ce6d0"}},{"ruleId":"D1","level":"warning","message":{"text":"ContainersListView.contextMenu (cyclomatic 20): ContainersListView.contextMenu 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/Features/Containers/ListContainers.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9010715380dcb56133efbdbd55367a08e52c89587e9e854529820dc96387065"}},{"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":"ContainerTable.body (cyclomatic 19): ContainerTable.body 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/Components/ContainerTable.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d245614c11f1c4a35710d68d1d9b8269785a1ec8a43e6bd5e87ae563e0dfa9"}},{"ruleId":"D1","level":"warning","message":{"text":"ANSIText.segments (cyclomatic 18): ANSIText.segments 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/ANSIText.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ee1c4a689d5303f744646749f29f255e8fa4aa94524137af9b58bf8fada012"}},{"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":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e2f258d39cda844f1c1b3c8a512f66a1b613713105147d68acae6000330d64"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepLink.parse (cyclomatic 16): DeepLink.parse 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/DeepLink.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"514448def0a71b496d561ba3575ac84a537e7a85a5f93092fbd8b7c40d9bea23"}},{"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":"ContentView.body (cyclomatic 16): ContentView.body 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. This is NOT this file\u0027s highest cyclomatic complexity: ContentView.handlePaletteAction (cyclomatic 33) 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":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c35deae27f81639a3679121022fcabc697eac1f6e723bcf70755be9e459f1c"}},{"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":694}}}],"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 102): ThreeColumnLayout.body has cognitive complexity 102 (threshold 15). Drivers by points: if/else 25 (53 pts), ternaries 12 (46 pts), boolean chains 3 (nesting depth added 62). 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":83}}}],"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":229}}}],"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). 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":"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":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b0b2008afa6b01a20cd08f7b2b8b2b81b908d2970addd68efe92ed54c46a17"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerTable.body (cognitive 35): ContainerTable.body has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 5 (11 pts), boolean chains 4 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Components/ContainerTable.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d2300ad1d08f5d664ae2772fc61ccb662c686aa0f15bd3aa87e76e9c6ef1a2"}},{"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":402}}}],"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":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93f12f4703fe67cda9e2735c66c8d2d546a1cda9d181288afbfac1dd0792e0a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerListService.deleteMounts (cognitive 28): ContainerListService.deleteMounts has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 6 (10 pts), error handling 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/ContainerListService.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8f547704b2979a8979f65632acfcd3563f9d0996e0c69f91d5119e5d2067d0"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerDetailHeader.body (cognitive 27): ContainerDetailHeader.body has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 10 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetailHeader.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6e2f86f04c4da5751d0428be31faa72208c23765ffbcda25864f10ee995100"}},{"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":"ContainersListView.contextMenu (cognitive 26): ContainersListView.contextMenu has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 5 (9 pts), boolean chains 6, loops 3 (6 pts), if/else 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/Containers/ListContainers.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"9baf5f1217858031b578dcf4e61b4ae11de12e208d196c6dceda6b2f94ab9586"}},{"ruleId":"D2","level":"warning","message":{"text":"TabColumnView.selectTab (cognitive 25): TabColumnView.selectTab has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 5, match/switch 2 (nesting depth added 9). 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":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"f700ed699b6d187c60cacd76931535434e6fceda71fa5ff7246535b826e6b15b"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerRow.body (cognitive 22): ContainerRow.body has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 4 (7 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/Views/Components/UIComponents.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0bbea1e324c88457db7ccb8d159d36a164bdc6069f7a3b4d8c2e32e2b37c06"}},{"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":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d453be9b366b783963ba54f788299791cb1007c60a67924c44efeb223227d01"}},{"ruleId":"D2","level":"warning","message":{"text":"ContainerDetailView.containerNetworkSection (cognitive 20): ContainerDetailView.containerNetworkSection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, 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":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"410f362ac02c3d824402d7b49d39c989fa710c2d37552db10c08fd760ab43443"}},{"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":"LiveContainerBackend.createContainer (cognitive 19): LiveContainerBackend.createContainer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (4 pts), ternaries 2 (4 pts), boolean chains 1, error handling 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/Services/ContainerBackend.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4716ebb1828e5695aeebd798bbfc1631a8d204fc473c97cac0c307c4d579cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"orchard-ax.swift.trimTransparentMargins (cognitive 19): orchard-ax.swift.trimTransparentMargins has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (3 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":"scripts/orchard-ax.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bcb0c35467bc7f37169fdaef78aaf5b3a57ecd4f96442df1d66030345487c5"}},{"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":"DeepLink.parse (cognitive 18): DeepLink.parse has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 3 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/DeepLink.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"331167ac833a4f5f41311972faee5b5374024dd36a22aa99082e7e9ecdf8f1d1"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemService.startSystem (cognitive 18): SystemService.startSystem has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Services/SystemService.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c77d346658a6db39d108f253d59bfc0f51cb1079ec126ffcc39da7c9576e929"}},{"ruleId":"D2","level":"warning","message":{"text":"ListItemRow.body (cognitive 16): ListItemRow.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 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":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5483a23eaeeddd78a6f5d95860940fa2bd0447077e182e9e660825b28951363"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailContentView.body (cognitive 16): DetailContentView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), 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":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"449f566517e8ab9d23c76387fe831e57a3571886cf7b015e47be1df24f958a9f"}},{"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":389}}}],"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":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"0926dee7f27930eceb9fd4e8fa21d2c4b3bde4bf444e4506686fe46bba221f09"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ThreeColumnLayout.body: MethodTooLong \u2014 body runs 312 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 212 over it, 3.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98d92bbeea640da88a917aaf0895674ce5527433d6789ab49fe309f81d2f10a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Containers/ContainerDetail.swift: FileTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 253 over it, 1.51\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 716 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 216 over it, 1.43\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: Orchard/Models.swift: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 162 over it, 1.32\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":"ClassTooLong: ContentView: ClassTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 114 over it, 1.29\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 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/Services/CommandPaletteCatalog.swift"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"44807fc030d022ee936b1653ec8dae53ed9865fb7a86a2eee0e8eb12c93e296d"}},{"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":"MethodTooLong: ContainerDetailHeader.body: MethodTooLong \u2014 body runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/ContainerDetailHeader.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"73268b458efcff4407f3836120aa49bcfc0eccd4cb8bdb4ebe2cd6e2beda42e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Layout/Content.swift: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ContentView (4-688). The bar is 500 significant lines; this is 16 over it, 1.03\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":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Orchard/Views/Features/Clusters/ListClusters.swift:56-74 | Orchard/Views/Features/Clusters/ListClusters.swift:77-99 | Orchard/Views/Features/Compose/ListComposeProjects.swift:88-107 | Orchard/Views/Features/Machines/ListMachines.swift:51-68 | Orchard/Views/Features/Machines/ListMachines.swift:70-86 | Orchard/Views/Features/Networks/ListNetworks.swift:46-60 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Clusters/ListClusters.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e86dd2b7db1737cff5e5a6d058432e9baad6d22cb0d119a0359c64342af877"}},{"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:41-119 | Orchard/Views/Features/Clusters/ClusterDetail.swift:238-304 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:31-66 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:70-113 \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":"031579c5ec7d79f1055c8c5298d03cfbaae10a2748ee3bc5ed12f181516537a8"}},{"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-360 | Orchard/Views/Features/Containers/ContainerDetail.swift:894-966 | Orchard/Views/Features/Containers/ContainerDetail.swift:1090-1164 \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":"a0689732a1de0e46208a3ccc8116a3cd83f5e23c27374372898264c2ec35ac92"}},{"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:362-371 | Orchard/Views/Features/Containers/ContainerDetail.swift:968-977 | Orchard/Views/Features/Containers/ContainerDetail.swift:1166-1175 \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":"89e6add5f549c290805034611fb5d6fc8c5119efb7b9383cce170def52ddf832"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Orchard/Views/Features/Clusters/ClusterDetail.swift:181-196 | Orchard/Views/Features/Clusters/ClusterDetail.swift:200-215 | Orchard/Views/Features/Machines/CreateMachine.swift:91-106 | Orchard/Views/Features/Machines/DetailMachine.swift:48-63 \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/Clusters/ClusterDetail.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"416b3398dcbd814850c4c5753e32680200f16b9fadc7db57dd094e7ba43a992a"}},{"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":"Duplicated block (37 lines \u00D7 2): Orchard/Views/Layout/Content.swift:89-125 | Orchard/Views/Layout/MainInterface.swift:120-156 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/Content.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac1a62b68f576fb45e91efb091e24951aa97a14cc0648ff8dfed5e6db42054c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Orchard/Views/Components/ContainerTable.swift:105-136 | 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:105\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/Components/ContainerTable.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a956373ea4d0bf06d3758414bf832a4f693eb69a59da5d19931653e33f5934a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Orchard/Views/Layout/Sidebar/SidebarTabSelection.swift:19-50 | Orchard/Views/Layout/Sidebar/SidebarTabSelection.swift:52-83 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/Sidebar/SidebarTabSelection.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b330d0500c91882f9d379b11d2fcd348376dad49c8bd7f694cc0a5ef1b9930a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Orchard/Views/Layout/ThreeColumnLayout.swift:384-414 | Orchard/Views/Layout/ThreeColumnLayout.swift:439-469 \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:384\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:474\u0060 calls \u0060padding\u0060 and \u0060Orchard/Views/Layout/ThreeColumnLayout.swift:415\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":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c2ba45ae8708853797e604af7295aea8404f17d33e0701b11f7074e81fb1cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:389-409 | Orchard/Views/Features/Containers/ContainerDetail.swift:504-524 \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:389\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":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6cb82458a3bc473b46cc6c396a8688af88c0c598cc897fffbecfaa17fd2762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:914-934 | Orchard/Views/Features/Containers/ContainerDetail.swift:1113-1132 \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:914\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":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0350fc2f5c169ed4a2364b1e7bb21e418f827cc1b402fa05a587733a847174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Orchard/Views/Layout/ThreeColumnLayout.swift:85-105 | Orchard/Views/Layout/ThreeColumnLayout.swift:418-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Layout/ThreeColumnLayout.swift:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Layout/ThreeColumnLayout.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8fc6a5f61e5291995f436593b709ffcc259b0880580a5c7451cfe38cc96a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201318 lines \u00D7 2): Orchard/Views/Features/Containers/RunContainer.swift:100-117 | Orchard/Views/Features/Models/RunModelContainer.swift:223-231 \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:100\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":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e67bae095e8965e6a162aaa8177920722eadb95a4ab2a7c52c6fdcbf1f09a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:894-910 | Orchard/Views/Features/Containers/ContainerDetail.swift:1090-1106 \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:894\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":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"0706d24a1a3876a54aa7818736693bfb5a10827c4df2173b1a7823821bc00711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Orchard/Views/States/NewerVersion.swift:36-52 | Orchard/Views/States/VersionIncompatibility.swift:28-44 \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:36\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/States/VersionIncompatibility.swift:24\u0060 calls \u0060multilineTextAlignment\u0060, \u0060padding\u0060 and \u0060Orchard/Views/States/NewerVersion.swift:33\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":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"324cfa7900fe3b90acef7d3776f775f9b41c16f636e6f96c72402d6ae7409b45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Orchard/Views/Features/Clusters/ClusterDetail.swift:181-196 | Orchard/Views/Features/Machines/CreateMachine.swift:91-106 | Orchard/Views/Features/Machines/DetailMachine.swift:48-63 \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 \u00600\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":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"289806e93aebb4a287b0160c345e10939af7d84e31b13cf77dc1eee52608f65a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Orchard/Views/Layout/Content.swift:90-104 | Orchard/Views/Layout/MainInterface.swift:121-135 | Orchard/Views/Layout/ThreeColumnLayout.swift:344-358 \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":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"01846c9b3c98cf791092ad7689bc5ffb69aae2fde74b1ea9a7db39fba0e7a1dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Orchard/Services/SystemService.swift:170-184 | Orchard/Services/SystemService.swift:197-211 \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:170\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":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7368688c92d25730ff9fb2235f843c79bfdb5d874e9a28d561644df0d37e1803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Orchard/Views/Features/DNS/AddDNS.swift:11-25 | Orchard/Views/Features/Networks/AddNetwork.swift:18-32 \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/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."},"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 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 (15 lines \u00D7 2): Orchard/Views/Features/Images/ImageSearch.swift:144-158 | Orchard/Views/Features/Images/ImageSearch.swift:206-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Images/ImageSearch.swift:144\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Images/ImageSearch.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cf46122485f42cd7b8aedc6f06d3d3409144b6418be06b0841d88b2ca0e7fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Orchard/Services/ContainerListService.swift:243-256 | Orchard/Services/ContainerListService.swift:272-285 \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:243\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/ContainerListService.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbcbc8a496258df1c77f7173ba72372fcb3307e68ee80cea3977a88bac481660"}},{"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:104-116 | Orchard/Views/Features/Machines/CreateMachine.swift:76-88 | 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:104\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":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c6759516291c3785d0ceb102b4d0ed04afa28778f607f3858f45329d108d17"}},{"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 (6\u201313 lines \u00D7 2): Orchard/Views/Features/Machines/CreateMachine.swift:117-122 | Orchard/Views/Features/Networks/AddNetwork.swift:21-33 \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/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":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c993d7350fe2634e23450948ee4bbd467a36ef59c643d161e91e45ff7fce6be"}},{"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:71-83 \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:424-433 \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:371-382 | Orchard/Services/MachineService.swift:127-136 \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:371\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":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34e6ec5b059c1777064cc8cbb65837828dfb849f07c87e0f4d2b5955c0ca819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Orchard/Views/Components/ContainerTable.swift:68-79 | Orchard/Views/Components/ContainerTable.swift:85-96 \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/ContainerTable.swift:68\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/Components/ContainerTable.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"085f04d479fc1872db9b75e6c32c661818df72201b47694f2eb86572f4e6d40a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 2): Orchard/Views/Features/Clusters/ClusterDetail.swift:361-367 | Orchard/Views/Features/Networks/AddNetwork.swift:145-156 \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/Clusters/ClusterDetail.swift:361\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":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ffae5d48d39ec5c6e365369090627dd2ef6903bbfa9a02c0ccd62317ceffdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerConfigForm.swift:706-717 | Orchard/Views/Features/Containers/ContainerConfigForm.swift:734-745 \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:706\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":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"1598b57477be295a4af9eae991ec019813fffa65c6ae115f8037b0f85ac1d39a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:947-958 | Orchard/Views/Features/Containers/ContainerDetail.swift:1144-1155 \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:947\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/ContainerDetail.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5da90be3e6a5d46b8899ddd0fb09a58353846e4d25ad0538ae72917984f6643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Orchard/Views/Features/Containers/EditContainer.swift:100-111 | Orchard/Views/Features/Containers/RunContainer.swift:87-98 \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:100\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":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52475f2e0703ca9c01fcbbc89334b1860f4f7abafae360d7f24488900caaa52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): Orchard/Views/Features/Containers/EditContainer.swift:114-125 | Orchard/Views/Features/Stats/DashboardView.swift:82-90 \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/EditContainer.swift:114\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 \u006012\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Orchard/Views/Features/Stats/DashboardView.swift:91\u0060 calls \u0060fixedSize\u0060 and \u0060Orchard/Views/Features/Containers/EditContainer.swift:126\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Containers/EditContainer.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c652d2dc66d6fe892397a15bcbd9daff9468286b9d44f23f4d360a072ad82d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Orchard/Views/Layout/ThreeColumnLayout.swift:554-565 | Orchard/Views/Layout/ThreeColumnLayout.swift:570-581 \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:554\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":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89636e6be386760779caac15b7208287d10e36c88e6d651ec3525bd3ee30637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Orchard/Views/Features/Clusters/ListClusters.swift:80-90 | Orchard/Views/Features/Compose/ListComposeProjects.swift:91-101 | 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:80\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:102\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":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"055dd9af70fa936ebffa7ba9eb1e4364a012ae2e17488e23a096d6724c36bd0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Orchard/Services/ContainerBackend.swift:156-166 | Orchard/Services/MachineBackend.swift:251-259 \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":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3534e26ea2a3a25442e6506c9e9bd1cae9c14b2afeb3811ab701147deefc45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetailHeader.swift:268-278 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:289-299 \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:268\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":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cd1ea51f49d94022d97473a35ae3b0c6ad8cab16ae468e3d542575baa71cdb"}},{"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:362-371 | Orchard/Views/Features/Containers/ContainerDetail.swift:968-977 | Orchard/Views/Features/Containers/ContainerDetail.swift:1166-1175 \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:1163\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 (10 lines \u00D7 4): Orchard/Views/Features/Clusters/ClusterDetail.swift:185-194 | Orchard/Views/Features/Clusters/ClusterDetail.swift:204-213 | Orchard/Views/Features/Machines/CreateMachine.swift:95-104 | Orchard/Views/Features/Machines/DetailMachine.swift:52-61 \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:185\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":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"688d32af269cfeed37d4656b8a8ac316263703a9af04084047930d963453e495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Orchard/Services/ContainerListService.swift:419-428 | Orchard/Services/ContainerListService.swift:571-580 \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/Services/ContainerListService.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"85536344952d99851ab13c3fffbd79b3906369e1023dc1cd32c9fdbf027bad79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Orchard/Views/Components/ListItemRow.swift:61-70 | Orchard/Views/Components/ListItemRow.swift:71-80 \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:61\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":61}}}],"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:243-252 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"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 6): Orchard/Views/Features/Clusters/ListClusters.swift:58-66 | Orchard/Views/Features/Clusters/ListClusters.swift:79-87 | Orchard/Views/Features/Compose/ListComposeProjects.swift:90-98 | Orchard/Views/Features/Machines/ListMachines.swift:53-61 | Orchard/Views/Features/Machines/ListMachines.swift:72-80 | Orchard/Views/Features/Networks/ListNetworks.swift:48-56 \u2014 there are 6 copies across 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Orchard/Views/Features/Clusters/ListClusters.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde25b28e0594e32614f3f9f3a56e404b8a094420f27c28a18748067cc29119d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Orchard/Views/Features/Clusters/CreateCluster.swift:268-276 | Orchard/Views/Features/Images/BuildImage.swift:143-151 | Orchard/Views/Features/Machines/CreateMachine.swift:140-148 \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 \u0060alignment\u0060 to \u0060.top\u0060 in one and \u0060.leading\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/CreateCluster.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce6a5538fd53cbd09f78f62f4bb8d19ed2742a8a709b7c826d94f0254b459b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Orchard/Services/ContainerListService.swift:111-119 | Orchard/Services/ContainerListService.swift:127-135 \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:111\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/ContainerListService.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95bd479f0ba05b1da989096b4ca463b4876d6c1284ee0856f5c4594cc6ee786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Orchard/Views/Layout/ThreeColumnLayout.swift:212-220 | Orchard/Views/Layout/ThreeColumnLayout.swift:246-255 \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:212\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":212}}}],"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:944-951 | Orchard/Views/Features/Containers/ContainerDetail.swift:956-963 | Orchard/Views/Features/Containers/ContainerDetail.swift:1141-1148 | Orchard/Views/Features/Containers/ContainerDetail.swift:1153-1160 \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:1163\u0060 calls \u0060help\u0060 and \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:966\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:48-55 | 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:48\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":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d3c43df5b5e0324de67ddea4646d7a146294be5f0396bbf1f90707726ef075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Orchard/Views/Features/DNS/MultiDNSCards.swift:147-154 | 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:147\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":147}}}],"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/CommandPaletteCatalog.swift:433-440 | Orchard/Services/CommandPaletteCatalog.swift:452-459 \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/CommandPaletteCatalog.swift:433\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/CommandPaletteCatalog.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e6c1990b465d978df923251f776841471d51e8e9b8fcfcfcd28af953c9c624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Orchard/Services/ContainerListService.swift:229-236 | Orchard/Services/ContainerListService.swift:259-266 \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:229\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":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6204d87d2a11dda9a04d825221b9e8b76afa306e381a5949ec9c890d555b41e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:433-440 | Orchard/Views/Features/Containers/ContainerDetail.swift:528-535 \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:433\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:443\u0060 calls \u0060HStack\u0060, \u0060contains\u0060 and \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:538\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":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4bc20258a3731c8201eb1d9e9753e3ac57fda097c3700ab7dc0a1f48a979e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Orchard/Views/Features/Stats/DashboardView.swift:22-29 | Orchard/Views/Features/Stats/DashboardView.swift:37-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:22\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":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebe4b98126e923d71e7bd67971ded45a70d09f79cc5b7674a66a67974ba27f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Services/CommandPaletteCatalog.swift:476-482 | Orchard/Services/CommandPaletteCatalog.swift:485-491 \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/CommandPaletteCatalog.swift:476\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/CommandPaletteCatalog.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"6168e5b62bff35b361682ec47fba37943526411060617461abb27ae686c79369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:235-241 | Orchard/Views/Features/Stats/ContainerStatsPanel.swift:33-39 \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/Containers/ContainerDetail.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"77692dab04ad3fb2a1fe9d3b60d38e009ed6afdef65fd33f9fe5d7baf43ede5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetailHeader.swift:34-40 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:73-79 \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:34\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":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f880a2004fa2298e7feb4d72a17b5249b1330cf6e454560aa9e4336d86287521"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Orchard/Views/Features/Machines/DetailMachine.swift:127-133 | Orchard/Views/Features/Networks/DetailNetwork.swift:70-76 \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:127\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":127}}}],"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:60-65 | Orchard/Views/Components/ListItemRow.swift:70-75 \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/CreateCluster.swift:243-248 | Orchard/Views/Features/Machines/CreateMachine.swift:119-124 | 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:243\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 \u0060alignment\u0060 to \u0060.top\u0060 in one and \u0060.leading\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/CreateCluster.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffdfc43b1720de5c88d0e3ed37567bd3e63017e138a79edc7569f3ec2c8a671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Orchard/Services/CommandPaletteCatalog.swift:158-163 | Orchard/Services/CommandPaletteCatalog.swift:217-222 \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/CommandPaletteCatalog.swift:158\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/CommandPaletteCatalog.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de3bfabf85c32510e77441f10eab63e82a5bca66dd63e16dd9aa15e63369559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Orchard/Views/Components/ListItemRow.swift:69-74 | Orchard/Views/Features/Clusters/ClusterDetail.swift:266-271 \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":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"88427d2d8a53018319e9b25c8982f43c1a5429934d956b864c704eba1d2319c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Orchard/Views/Features/Clusters/CreateCluster.swift:86-91 | Orchard/Views/Features/Machines/CreateMachine.swift:47-52 \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/Clusters/CreateCluster.swift:86\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":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4f61386ef7198ad98f435ab90cb1545e4b4750679e12d98ffbdcd3319a192e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:656-661 | Orchard/Views/Features/Containers/ContainerDetail.swift:676-681 \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:656\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":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0bd880fe207bbd909a7ea9d4dcd061cbd8d59bb6c4edf689021bd20890c7ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Orchard/Views/Features/Containers/ContainerDetail.swift:711-716 | Orchard/Views/Features/Containers/ContainerDetail.swift:727-732 \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:711\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:719\u0060 calls \u0060InfoRow\u0060 and \u0060Orchard/Views/Features/Containers/ContainerDetail.swift:733\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":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadc637b632b0ba547c88742de5766bb791de65b28d21bffce5512cc6fd530b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Orchard/Views/Features/MenuBar/MenuBarDashboard.swift:168-173 | Orchard/Views/Features/MenuBar/MenuBarDashboard.swift:180-185 \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/MenuBar/MenuBarDashboard.swift:168\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/MenuBar/MenuBarDashboard.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"63becef7ba5f772cbcd27e0c17c1e1958c7c6fb5f27999f1a74161b5f7fe2bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Orchard/Views/Features/Clusters/CreateCluster.swift:243-247 | Orchard/Views/Features/Machines/CreateMachine.swift:119-123 | Orchard/Views/Features/Machines/EditMachine.swift:91-95 | Orchard/Views/Features/Networks/AddNetwork.swift:23-35 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Features/Clusters/CreateCluster.swift:243\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.top\u0060 in one and \u0060.leading\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/CreateCluster.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce44d6014fc12ac77b550720d511fd94eeb6d3840fc5452a3da62022784545d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Orchard/Views/Components/ListItemRow.swift:60-64 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:34-38 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:73-77 \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:60\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":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c6e69a41950f3abef657eaf37ff08fca5c40d1c72b2483ef760c81f1b8f8d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Orchard/Views/Features/DNS/ListDNS.swift:180-184 | Orchard/Views/Features/Images/ListImages.swift:209-213 | Orchard/Views/Features/Networks/ListNetworks.swift:172-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:180\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":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bded74c3d6a9b5e4cbf47bdf6b8c3a8c6e8d98ae67d03e3b35f144b10d21c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Orchard/Views/Components/StatsTableView.swift:187-191 | Orchard/Views/Components/StatsTableView.swift:230-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Components/StatsTableView.swift:187\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/StatsTableView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9e0aedcb890be29e717759c8dc6c46e9fe210f079b2cf22c8e98bae242375b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Orchard/Views/Components/StatsTableView.swift:199-203 | Orchard/Views/Components/StatsTableView.swift:239-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Components/StatsTableView.swift:199\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/StatsTableView.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6fdaba88ee3a1f73de25fde2a3df121520af8c5beabccb6d1ecc3881f33d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Orchard/Views/Components/StatsTableView.swift:211-215 | Orchard/Views/Components/StatsTableView.swift:248-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Orchard/Views/Components/StatsTableView.swift:211\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/StatsTableView.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7d3652b9de0362827eac2702786145eb613910fda91f953c0ad529d0b19ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Orchard/Views/Features/Builds/DetailBuild.swift:135-139 | Orchard/Views/Features/Containers/ContainerDetailHeader.swift:308-312 \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/Builds/DetailBuild.swift:135\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/Builds/DetailBuild.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f018050d6b5a9fd1211ff76a681566939207fe796bcffec98ef770259b50fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Orchard/Views/Features/Models/ModelsView.swift:553-557 | Orchard/Views/Features/Models/SandboxesView.swift:184-188 \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:553\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/Models/ModelsView.swift"},"region":{"startLine":553}}}],"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:24-28 \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":"4aaad6617e2a5b7d146d3e4665873efbf8d81a7c6fb4a4a7079e899876c6cc49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Orchard/Services/BuildsPersistence.swift:12-17 | Orchard/Services/ComposeProjects.swift:111-116 | 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:576-582 | 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:584-591 \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:253-257 | Orchard/Services/MachineBackend.swift:196-202 \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":253}}}],"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 2): Orchard/Views/Features/DNS/ListDNS.swift:154-163 | Orchard/Views/Features/Images/ListImages.swift:189-197 \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/DNS/ListDNS.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d8ad27268c47133073934c288269d2a77eb7bb9721003f860fff95efbadb72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): 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 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/Mounts/ListMounts.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7815d62eacdbf7a51b04e3119709ed0594ef014fe4518b2a9782bc62ee8e872"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Orchard/Services/ImageBuildService.swift:104-108 | 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":104}}}],"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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, 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 38 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in ThreeColumnLayout.body at line 83. 3 of those changes were fix/bug commits, and the other 35 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01: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":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"329b553745d9f775897d58f2fb9d1d08d2ede1e5ccd573ede26ecdca73d35d01"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Layout/Content.swift: Orchard/Views/Layout/Content.swift changed 30 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in ContentView.applyServiceSyncHandlers at line 134. 2 of those changes were fix/bug commits, and the other 28 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01: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":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"89119794af56215c0e0db1bdec87a154842379839da4fc0f7942f88321e5219c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Layout/MainInterface.swift: Orchard/Views/Layout/MainInterface.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in MainInterfaceView.currentResourceTitle at line 47. 1 of those changes was a fix/bug commit, and the other 14 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01: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":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e156a57236295298197761a6e4dbc9bdc9f7090bd2bde02525030b6a2359338"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Layout/DetailContent.swift: Orchard/Views/Layout/DetailContent.swift changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in DetailContentView.body at line 35. 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01: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":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a06ea1b1ebe4f38e38b8a3df665fd779d1793cbcc88ecc9298a44e75b0bb5c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Features/Containers/ContainerDetailHeader.swift: Orchard/Views/Features/Containers/ContainerDetailHeader.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ContainerDetailHeader.body at line 186. 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01: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":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"44710eccb9301d7019d0aa08314852988d7a3197e9a5078a5e7f57cc0193655b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Services/StatsService.swift: Orchard/Services/StatsService.swift changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in StatsService.load at line 246. 2 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01: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/Services/ContainerListService.swift: Orchard/Services/ContainerListService.swift changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in ContainerListService.deleteMounts at line 522. 3 of those changes were fix/bug commits, and the other 16 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01:00\u0027 --full-history --no-merges -- Orchard/Services/ContainerListService.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/ContainerListService.swift"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcaf5c8eb09e2d43116fbca6980cb680b6d341c5563844df704edbf523a262b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Features/Containers/ListContainers.swift: Orchard/Views/Features/Containers/ListContainers.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ContainersListView.contextMenu at line 199. 2 of those changes were fix/bug commits, and the other 11 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01: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":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"59618a721741d76987672a28fb6aae546549d7035f846ddfaa037332fcf7ee9a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Features/Containers/ContainerDetail.swift: Orchard/Views/Features/Containers/ContainerDetail.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in ContainerDetailView.containerNetworkSection at line 222. 1 of those changes was a fix/bug commit, and the other 16 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01:00\u0027 --full-history --no-merges -- Orchard/Views/Features/Containers/ContainerDetail.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/ContainerDetail.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a9d3b3fd32ec01ea92576c2244a2d8643be765acc58a830ebc95140cd96c84"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Views/Layout/Sidebar/SidebarTabSelection.swift: Orchard/Views/Layout/Sidebar/SidebarTabSelection.swift changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in TabSelection.icon at line 19. 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01:00\u0027 --full-history --no-merges -- Orchard/Views/Layout/Sidebar/SidebarTabSelection.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/Sidebar/SidebarTabSelection.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3158e338e574e817bd234a175aa2b3a7417cc614ceea14785a767a3d9e3926f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Orchard/Services/OrchardError.swift: Orchard/Services/OrchardError.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in OrchardError.errorDescription 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01:00\u0027 --full-history --no-merges -- Orchard/Services/OrchardError.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/OrchardError.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81ff490fb6b032d0eef89b03f7cd2db0314ac6a354e0bf8428ba9b7a7b5b96e"}},{"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 19 in ContainerTable.body at line 27. 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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01: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":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9033a7dd46412f43613a6e0bd9a7397443da93baba78661891e35e4b9418aa4"}},{"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-07-02..2026-09-30, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-02 14:08:07 \u002B01:00\u0027 --until=\u00272026-09-30 14:08:07 \u002B01: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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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 65% of the time (13 of the 20 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 13 shared commits counted here, the most recent 3 are \u0060bdeec94d\u0060 Builds: replace the menu-bar menu with a sidebar tab; \u0060951a5c86\u0060 Add a Clusters view for container k8s local Kubernetes clusters; \u00600cb8ef07\u0060 Add Machines UI: sidebar, list, detail, and lifecycle \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 54% of the time (20 of the 37 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 20 shared commits counted here, the most recent 3 are \u0060bdeec94d\u0060 Builds: replace the menu-bar menu with a sidebar tab; \u0060c24edf16\u0060 Builds: persist the registry across launches and move it to a menu-ba\u2026; \u0060f872722f\u0060 Images: Build Image sheet driving container build with a streamed log \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":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"}},{"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":"01617c8618e3c4e3878dbf35ba9ff053ccec9d7cd1ea559a8db623472c13a49c"}},{"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":"M3","level":"note","message":{"text":"No src/ separation: Production code isn\u0027t grouped under a src/ folder \u2014 it\u0027s spread across several top-level directories, so there\u0027s no one place that says \u0027this is the product\u0027."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README advertises Docker containerisation, but no Dockerfile/compose file exists \u2014 searched for: \u0060dockerfile\u0060, \u0060docker-compose\u0060, \u0060compose.yaml\u0060, \u0060compose.yml\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"343bbbd51ceb8de7a9ff88d79f7c797abf9b5921f8727b67b4d0f4f8a22c5e49"}},{"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 32146 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":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"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":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1e6977009a2805f975ca777b80a157e703263b378788c2ba02c105d0f0a574"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.status.lowercased() != \u0022running\u0022 \u0026\u0026 !$0.isK8sNode\u0060 appears character-identically in 2 files \u2014 Orchard/Views/Features/Containers/ListContainers.swift, Orchard/Views/Features/Containers/MultiContainerCards.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/Containers/ListContainers.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0b0027e852724f1114c11ff631b259570383208763f6893048885387dce49a"}},{"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"}}],"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":"CWE-1104","shortDescription":{"text":"CWE-1104"},"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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":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."]}]}