{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"SWFireworkShowCanvas.body (cyclomatic 29): SWFireworkShowCanvas.body has cyclomatic complexity 29 (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":"ShipSwift/View/SWConfettiShowcase.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56701c6af5aecf64965178a7f5cbe4b52791233d66d48179808165350ea7e7a"}},{"ruleId":"D1","level":"warning","message":{"text":"SWNetworkGraph.drawGraph (cyclomatic 20): SWNetworkGraph.drawGraph has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWChart/SWNetworkGraph.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a7ede5fdeaf58acfd59699793c1680c2d7d17d844eb5daab9e40327573e400"}},{"ruleId":"D1","level":"warning","message":{"text":"SWConfettiCanvas.body (cyclomatic 18): SWConfettiCanvas.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWConfetti.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbda555d08289b3f8e212c07e5165a7610660f993454f9df5675070c83c9d534"}},{"ruleId":"D1","level":"warning","message":{"text":"SWBurstEmitterView.body (cyclomatic 18): SWBurstEmitterView.body 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":"ShipSwift/SWPackage/SWAnimation/SWParticleTransition.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6058f242dcb0bcc6bbb068f8bb8d6638196d1e9fa003cd446ccd1d7d003e8dd"}},{"ruleId":"D1","level":"warning","message":{"text":"SWMarkdownText.parseBlocks (cyclomatic 17): SWMarkdownText.parseBlocks has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWComponent/Display/SWMarkdownText.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30841704f728432ecaf1981570935f1d6f39b34a929d26326df05ade501a37f"}},{"ruleId":"D1","level":"warning","message":{"text":"SWVolcEngineASRService.processWebSocketFrames (cyclomatic 16): SWVolcEngineASRService.processWebSocketFrames 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":"ShipSwift/SWPackage/SWModule/SWChat/SWVolcEngineASRService\u002BiOS.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"3547c58315e3c6fbf4d997ce5624f416c7d7a14221c63684547cb97266c91f84"}},{"ruleId":"D2","level":"warning","message":{"text":"SWFireworkShowCanvas.body (cognitive 64): SWFireworkShowCanvas.body has cognitive complexity 64 (threshold 15). Drivers by points: if/else 13 (36 pts), loops 6 (12 pts), ternaries 3 (10 pts), boolean chains 6 (nesting depth added 36). 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":"ShipSwift/View/SWConfettiShowcase.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"065122ed6666fcdb1d1a9d82d34f8fde79061cf1634f526ccb11ce3d78048b3f"}},{"ruleId":"D2","level":"warning","message":{"text":"SWNetworkGraph.drawGraph (cognitive 33): SWNetworkGraph.drawGraph has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 7 (12 pts), boolean chains 6, loops 2 (nesting depth added 12). Of this number, 32 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWChart/SWNetworkGraph.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"081d2525e17f16e44d0ee0bbd6122195bf4267358f0397a1a1ce154a76c14b82"}},{"ruleId":"D2","level":"warning","message":{"text":"SWMarkdownText.parseBlocks (cognitive 30): SWMarkdownText.parseBlocks has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 3 (6 pts), boolean chains 5 (nesting depth added 14). 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":"ShipSwift/SWPackage/SWComponent/Display/SWMarkdownText.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43c91bcaee23486797badfdd096e90d61c2d05566b38750d892111bbae20ed2"}},{"ruleId":"D2","level":"warning","message":{"text":"SWVolcEngineASRService.processWebSocketFrames (cognitive 27): SWVolcEngineASRService.processWebSocketFrames has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 3 (7 pts), match/switch 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":"ShipSwift/SWPackage/SWModule/SWChat/SWVolcEngineASRService\u002BiOS.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a13d59411d8ea91c4b89e9bcb5794124f6d3f16b9ccba84f5fd05a6924edb49"}},{"ruleId":"D2","level":"warning","message":{"text":"SWTypewriterText.runTypingLoop (cognitive 24): SWTypewriterText.runTypingLoop has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWTypewriterText.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91ba07e27a796e7c103e11769483c9165c6de513908ae2286e11cdd94344cb9"}},{"ruleId":"D2","level":"warning","message":{"text":"SWBurstEmitterView.body (cognitive 23): SWBurstEmitterView.body has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWParticleTransition.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b224c638b5821398286143cbdb616411de82cb44f063667f53421317c3ef55fb"}},{"ruleId":"D2","level":"warning","message":{"text":"SWCameraManager.setupCamera (cognitive 22): SWCameraManager.setupCamera has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2, boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWCamera/SWCameraManager\u002BiOS.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef0a80de5da1179f3a0efa9f92b64465a9827a6dfa625a81f5b168a8e933a7b"}},{"ruleId":"D2","level":"warning","message":{"text":"Date.timeAgo (cognitive 20): Date.timeAgo has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 6 (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":"ShipSwift/SWPackage/SWUtil/SWDateExtension.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2084f2b348d0362b3fe3dd8d167e8cd50366421212d2138d20f66804b6cf2aca"}},{"ruleId":"D2","level":"warning","message":{"text":"SWConfettiCanvas.body (cognitive 18): SWConfettiCanvas.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, match/switch 1 (2 pts), loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWConfetti.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e817035b6dbd91bfed3484222d7c6fc29a74df2ddf701978a3b72607ad3c3e"}},{"ruleId":"D2","level":"warning","message":{"text":"SWVolcEngineASRService.handleServerResponse (cognitive 18): SWVolcEngineASRService.handleServerResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWChat/SWVolcEngineASRService\u002BiOS.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f190f5c2ceb41fc0f7a3c809610e75380ff385b403a92a127465b0b2ec921ec"}},{"ruleId":"D2","level":"warning","message":{"text":"StreakInfo.displayText (cognitive 16): StreakInfo.displayText has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"ShipSwift/SWPackage/SWChart/SWActivityHeatmap.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99e8b40549e2021869abb75ab7a343ba0de0b13417b3ef6f2ea7825a0aa657c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnimationListView.body: MethodTooLong \u2014 body runs 396 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 296 over it, 3.96\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":"ShipSwift/View/AnimationListView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"616f3ac957691c6253c1da17ca6a78d3730c99568edb50af70c80f3dca7200dc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UIListView.displaySection: MethodTooLong \u2014 displaySection runs 352 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 252 over it, 3.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/View/UIListView.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f5c4a602f24356ab1d60d698dd3e78ac9fc71706571b2c23572824982466bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChartListView.body: MethodTooLong \u2014 body runs 275 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 175 over it, 2.75\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":"ShipSwift/View/ChartListView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1636d891a1755efc81231a5de0ac17af25b2063f05c0abc761acaad2a7943860"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SWAuthView: ClassTooLong \u2014 685 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 285 over it, 1.71\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b565d76ff70bd599e4e06343a6a0cbfb40bdcf036e566b878f1a214e24c143"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SWFireworkShowCanvas.body: MethodTooLong \u2014 body runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\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":"ShipSwift/View/SWConfettiShowcase.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db2282677993077a08e3004532e90f157d350cb6a2cd1eefb62ebd159b298ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SWAuth/SWAuthView\u002BiOS.swift: FileTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: SWAuthView (48-1083). The bar is 500 significant lines; this is 241 over it, 1.48\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d32a491cb681d172c1f611741f61ee11973183fe938d00b7907974d394edc4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UIListView: ClassTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 179 over it, 1.45\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":"ShipSwift/View/UIListView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e574f0e8d1965dfc511551c4f5ec8a9200c1ef8b24b3028a503785596c9c7d92"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UIListView.feedbackSection: MethodTooLong \u2014 feedbackSection runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"ShipSwift/View/UIListView.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da5fd8c1e647e51b3adfe0d28f59eaf4d718283bfc5b05fe7c5dd8c7593795c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/UIListView.swift: FileTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: UIListView (13-863). The bar is 500 significant lines; this is 82 over it, 1.16\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":"ShipSwift/View/UIListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c5c6838ee68abe468cb0f559d59b9a2c868b8b2f87fc29f50bbb3488df62b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:218-294 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:152-222 \u2014 These two members are variants of one another: 46 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd97cbe82a7c3b599358d27c62b75f026f0364fc1336e824fd541ae0106580a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): ShipSwift/SWPackage/SWComponent/Feedback/SWLoading.swift:170-213 | ShipSwift/View/UIListView.swift:555-728 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWComponent/Feedback/SWLoading.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"24366e5985456ec68882cfe81b6784879bbc5ce0c4311fe11cef1a889695ee16"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (22 members, 50\u002B identical tokens): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:507-518 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:383-394 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift:203-214 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:382-393 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWDots.swift:393-404 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:205-216 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWFractalClouds.swift:303-314 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlassLogo.swift:421-432 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlitter.swift:201-212 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGrainGradient.swift:261-272 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWHalftone.swift:458-469 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWInkSmoke.swift:293-304 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:209-220 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWLiquidChrome.swift:315-326 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWNeuroNoise.swift:244-255 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPlasma.swift:418-429 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPolishedAluminum.swift:203-214 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:272-283 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:326-337 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWStarNest.swift:311-322 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:361-372 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWWater.swift:295-306 \u2014 These 22 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 22 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 22 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c066a477a05e60a1c57dc360c8a6a2fe30faedf3454e28780fc659c53665ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:307-373 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:229-268 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:172-196 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlitter.swift:168-192 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGrainGradient.swift:223-252 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWInkSmoke.swift:253-284 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:176-200 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWLiquidChrome.swift:270-306 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWLiquidMetal.swift:258-282 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWMetaballs.swift:289-336 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWNeuroNoise.swift:206-235 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:213-263 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:258-317 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:291-352 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:233-274 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWWater.swift:255-286 \u2014 These 16 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 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6726c19b9246abd85e4fccee16fe287cb56a41e7311071c37601c8753232b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:426-498 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:325-373 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:307-373 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:213-263 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:258-317 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:291-352 \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":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"546b5bbfddc58020f1838564c59d378385b0c9882b933e0b7dc0a2c68205ede3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift:584-595 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:277-288 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWMetaballs.swift:345-356 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWStarfield.swift:293-304 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:283-294 \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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8393a3aed989dc093af6fede8b2b21646c222b6ee330c2425f62e41d2259309"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:155-190 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:104-136 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:127-161 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:148-184 \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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc62e45499c69acffba8004041e75dad1bf352ca8b1637d11e6ad0c01cbaf74"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:157-163 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:153-159 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:158-164 | ShipSwift/SWPackage/SWChart/SWScatterChart.swift:109-115 \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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2337cc63832527ace5b2f23a961cdda2532abfa7c5bb0ffc340a9f81e4b072eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:293-376 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:301-381 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:302-377 | ShipSwift/View/ChartListView.swift:17-409 \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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89ca4f4d67ef4b7798538333ba59ec52af23d3b9b9fe8b60c3303047871456e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 62\u002B corresponding lines): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:179-240 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:176-239 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:180-252 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 62 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19da22e7d01e5b1ce67497d80198629e9e77d40619d7ff5c93cfad782419ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:159-197 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:99-135 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5479bf95ef5ee5bc09ba5af0a6a05f269cb36bd9ee8b94e4a9d556e46f5771ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:413-472 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:698-761 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a98056ffa96ce06e4704c5177ae0ad82fa3a48ddc9033d37f7aface2854085"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:268-303 | ShipSwift/View/ShipSwiftAuthView.swift:286-330 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe873d08c1ba21d23319b656f2dc789e44dc84e3614ede39e55fd4a5cfc4611d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:105-137 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:102-131 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93c018fbdc15ad6a067c146ed2c915841338034d3b453b3aa630d094d515592"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:351-396 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:269-308 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ac5f0b21424112593d6face7f8adcff53b32eb7f48b9b2aeb94ceb1e8c2cac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift:172-194 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPolishedAluminum.swift:173-194 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8cb6b9479e766e32c39d8871a8da49ebbb0de24370ca24925a583372c37e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:239-285 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:229-271 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9f5aa977a2bd6f1c0e7700adc59d4fb677c3fa402dda60d1611195074683d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): ShipSwift/View/SWParticleTransitionShowcase.swift:101-126 | ShipSwift/View/SWTransitionShowcase.swift:143-162 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/View/SWParticleTransitionShowcase.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"87277d6ffd356620c4d229f1d7164889017ad5befd3b7453ca7b01e71d381d70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:174-212 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:172-214 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b04f808ad2b49d963f2af7f9421c88551d1a6b64ad5d4dcf1041c304ae8978f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift:60-103 | ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.swift:61-106 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e9c0ac9525a7a11e67bcd737542b8a1cbca5c4396ed729396a2dde81904862"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:222-237 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:214-227 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab8f80b8ba2a415f4386e3e4568e6562550262edb54d814963989f95e7fd46b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:262-288 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:272-296 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:273-297 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b274ac4bcf020dad5505d37d01cf279114041b505da38bd98e359ac73b9f971f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): ShipSwift/Service/ShipSwiftAPIService.swift:64-77 | ShipSwift/Service/ShipSwiftAPIService.swift:80-94 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/Service/ShipSwiftAPIService.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e723b13a9c2181ceeb2286d5cbb005e139534191e62deeb6ce7045a8b6769f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 29\u002B corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift:130-159 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:130-159 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlitter.swift:126-155 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:134-163 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPolishedAluminum.swift:133-161 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"33cbec4f269abf4fd84f01200bff2d6e3afb8bf1e434adb1513f0308ade82b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1109-1134 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:568-581 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaea21ed6552c1f367f5ae3486dde445d38b589c77288f9411efb1bc16af700b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDots.swift:213-238 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPlasma.swift:225-249 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDots.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef59a5c191610a4cb151a619deaba36b647e40ca99a0709907c48ad18fc012af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:161-172 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:157-170 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd835df7203c89bfabff549274fa1cdd60db89688b082ad7a00b3136661e29b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWFractalClouds.swift:146-171 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWStarNest.swift:147-176 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWFractalClouds.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"545f21876a66af8e2ed9d1db17e3bbb1a30f6b34afbce5b4e9c67cceb429c561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWUserManager.swift:660-679 | ShipSwift/SWPackage/SWModule/SWAuth/SWUserManager.swift:682-701 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWUserManager.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae64c057b494174a4043091a44f7ae54d37634d0db5d4407634659414e6efe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDots.swift:259-272 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWStarfield.swift:180-191 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDots.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb72d06b5e81b4299efa7ec7825aa192cec6f3d8d4603f47b1812b5c247bbbb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:320-330 | ShipSwift/View/ShipSwiftAuthView.swift:367-382 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cf711a2d9ecff2306a3f9f311f3f44a17f78af4d5276f0ba4e2e8231d27bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): ShipSwift/View/ProPaywallView.swift:305-318 | ShipSwift/View/SettingView.swift:357-369 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/View/ProPaywallView.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a88cdb92756c76b2ef19614d0a4a19808689d8cbe9c44ce1acc7de60d7746d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift:242-269 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift:385-408 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d26d8449e9bc2b9a1a2135c287db868ee15177d2d2bd7f557f301bc54d215c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:962-982 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:496-515 | ShipSwift/View/ShipSwiftAuthView.swift:490-506 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8eba070bccd493e88876156711daf4ec534930532382034efb78ebde92a20f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:94-107 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlitter.swift:90-103 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:98-111 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef65d56a5264889c3e9851108bddb13eae93cb44e4b061f0a9b3162b758caaa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:337-349 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:258-267 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"7913e4c19e7a777ebd8fa069590983b9ff522a23ead92adf9383207554d28f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 16\u002B corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:881-896 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:898-916 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:986-1003 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:421-436 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:438-454 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f462b445882abd8fc03a35bfcac48ce5d6616fc45a2de1fc479c8c26e20a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWGrainGradient.swift:127-147 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWInkSmoke.swift:144-167 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWLiquidChrome.swift:150-174 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWGrainGradient.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3b36b799c3f1396188b181010907809322170e7569628a729b253df52b72ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): ShipSwift/View/HomeView.swift:64-85 | ShipSwift/View/ProPaywallView.swift:85-104 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/View/HomeView.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5da0e337816dd6e77ad7120e34d26df230f710a2e76ee6ce88b9f6a036f8e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift:169-191 | ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.swift:127-155 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"077ad97e9539790f03e7a3eae63f45d46aaa82f62fe818e1ba051f1b079bb8bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:384-394 | ShipSwift/View/ShipSwiftAuthView.swift:384-394 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c753a748e70fad3731bddce785d4a93fde6e25d892c9c531f49c73d0c51d361"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): ShipSwift/SWPackage/SWComponent/Feedback/SWAlert.swift:143-159 | ShipSwift/SWPackage/SWComponent/Feedback/SWAlert.swift:176-192 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWComponent/Feedback/SWAlert.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d694655e06a9c946009348c41705e81e582de6b0ce8510a3860a22f621094fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): ShipSwift/SWPackage/SWModule/SWChat/SWVolcEngineASRService\u002BiOS.swift:459-473 | ShipSwift/SWPackage/SWModule/SWChat/SWVolcEngineASRService\u002BiOS.swift:475-486 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWChat/SWVolcEngineASRService\u002BiOS.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ec2a3d1fac506c0941d8803bba77a10ba70bd830dee96dcb733d185e61ef3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1032-1045 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1047-1060 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:517-530 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:532-545 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"30422bac53d6387570cf3672f8ec1d541f322d72b52f29217458e5f78abdf80e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:118-135 | ShipSwift/View/ShipSwiftAuthView.swift:112-128 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"da48b248ebd404978d3945840bbe2f120d9bd1e784dddd1c1913343ca4fd6341"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): ShipSwift/SWPackage/SWModule/SWChat/SWChatInputView\u002BiOS.swift:100-114 | ShipSwift/SWPackage/SWModule/SWChat/SWChatView\u002BiOS.swift:139-152 | ShipSwift/SWPackage/SWModule/SWChat/SWChatView\u002BiOS.swift:162-176 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWChat/SWChatInputView\u002BiOS.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"433690e9cd38c9a7dd441148b766e910187726d1f60b7dc05cae0b7f805ee30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift:122-128 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:122-128 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlitter.swift:118-124 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:126-132 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPolishedAluminum.swift:125-131 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db591ab9894661e756a882df0b5bb65f85b45e2437932ac0850401f8fc66f49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:918-930 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1005-1016 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:456-468 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e366d1d3a483ea2265b46bfc4ccc8be683b5dc163ae2ac2bd2ef7a18e944f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWScanningOverlay.swift:81-95 | ShipSwift/SWPackage/SWChart/SWRingChart.swift:108-122 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWScanningOverlay.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e0e893f1481ed63a754434aba6572f31b9382b81334c6e2a9d90ccba9eba1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:932-944 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:946-960 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:482-494 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94ed2c6f7f3b7f7e012befe51727a49d6ef5a41b7eba8b86a76062b181e2766"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift:62-74 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlitter.swift:59-71 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3baabfc2c9ca33d9553f86c6e5081cf6d734392bfd3a0bad69c673e42cb7a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWHalftone.swift:474-490 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWWater.swift:311-331 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWHalftone.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c50b50bd154ad59c4234253b8a6b0a218ba22a5a41cd7690f12481f842704d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): ShipSwift/SWPackage/SWModule/SWTikTokTracking/SWTikTokTrackingManager\u002BiOS.swift:150-158 | ShipSwift/SWPackage/SWModule/SWTikTokTracking/SWTikTokTrackingManager\u002BiOS.swift:161-169 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWTikTokTracking/SWTikTokTrackingManager\u002BiOS.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c7bc29df972e1d436d1ea3cae0982833db44ecff166d9dc21632400d3ce6f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift:91-107 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPolishedAluminum.swift:97-110 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca36dfd3e08242ef77443716c91c6d13130372d4333f9cbe9afd7c2436407c3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWGlowSweep.swift:57-69 | ShipSwift/SWPackage/SWAnimation/SWLightSweep.swift:51-63 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWGlowSweep.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc49a11dfdd5f65dd248a95b74475b248f0205558492a1d610181146f8014d3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift:599-607 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:296-300 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4285bd5a7bf09fcc96541d7d90118c812f60ded9585e37a53a82b42de8f8ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): ShipSwift/View/ComponentListShared.swift:86-105 | ShipSwift/SWPackage/SWModule/SWChat/SWChatView\u002BiOS.swift:250-263 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/View/ComponentListShared.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e605aed78b90731de6113ac984a1cdc6962e2d20930a343ec2a828c34dc84091"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift:233-240 | ShipSwift/SWPackage/SWModule/SWSubjectLifting/SWSubjectLiftingView\u002BiOS.swift:172-179 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"8947a6cdb42ca219851fcdd74d70a7f29022fc9b2508c6148441492eff349903"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift:220-231 | ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.swift:184-194 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"427a33c0967d492d6e816220b14db2c3cae2a52bbf5efc0249a90f4082d3e92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56\u201361 lines \u00D7 2): ShipSwift/SWPackage/SWComponent/Display/SWKPICard.swift:235-295 | ShipSwift/View/UIListView.swift:472-527 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00604\u0060 in one and \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":"ShipSwift/SWPackage/SWComponent/Display/SWKPICard.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7bb3c0c10ba835f51f145fcea4500efa05b3ee1268b2f40846dbdc9e214f0f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201339 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWTypewriterText.swift:325-363 | ShipSwift/View/AnimationListView.swift:73-94 \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 \u0060ShipSwift/SWPackage/SWAnimation/SWTypewriterText.swift:325\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":"ShipSwift/SWPackage/SWAnimation/SWTypewriterText.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94cce96755e82c0d84d687bc2da850542732147774500a3ff47b0eeda63e214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): ShipSwift/SWPackage/SWComponent/Feedback/SWThinkingIndicator.swift:71-109 | ShipSwift/View/UIListView.swift:676-714 \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":"ShipSwift/SWPackage/SWComponent/Feedback/SWThinkingIndicator.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e141068d9526b65c6abac05bda3830823cd9f408613adfb76d95cf7aa0fe125a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201337 lines \u00D7 2): ShipSwift/SWPackage/SWComponent/Display/SWRotatingQuote.swift:211-247 | ShipSwift/View/UIListView.swift:94-129 \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 \u0060ShipSwift/SWPackage/SWComponent/Display/SWRotatingQuote.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":"ShipSwift/SWPackage/SWComponent/Display/SWRotatingQuote.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9686852550fc622fe092aafc20ca72ce05f9863e5ee0ca341140f758c080453a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): ShipSwift/SWPackage/SWComponent/Feedback/SWLoading.swift:171-204 | ShipSwift/View/UIListView.swift:629-662 \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 \u0060ShipSwift/SWPackage/SWComponent/Feedback/SWLoading.swift:171\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":"ShipSwift/SWPackage/SWComponent/Feedback/SWLoading.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1e22eed9ce569b991a48830706f85a986d336d25a89950caa6ecb8710bd4d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:211-240 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:210-239 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:223-252 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a30bd7cedd3c5968aa56c7d03a617d64809ce76061a0e91f9e45b27d185678c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWRingChart.swift:263-293 | ShipSwift/View/ChartListView.swift:303-331 \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 \u0060ShipSwift/SWPackage/SWChart/SWRingChart.swift:263\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 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":"ShipSwift/SWPackage/SWChart/SWRingChart.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6df307d3f8621a886f81ed7603bc03439f28731f92034be0c460241566a1eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 2): ShipSwift/SWPackage/SWComponent/Display/SWLabel.swift:71-99 | ShipSwift/View/UIListView.swift:191-215 \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 \u0060ShipSwift/SWPackage/SWComponent/Display/SWLabel.swift:71\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":"ShipSwift/SWPackage/SWComponent/Display/SWLabel.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"599e706a10c08b5b7fbfd6e35d8d0b7d63a2293677069f69937eea6c0574919d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): ShipSwift/SWPackage/SWComponent/Display/SWStatusBadge.swift:130-155 | ShipSwift/View/UIListView.swift:324-349 \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 \u0060ShipSwift/View/UIListView.swift:324\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWComponent/Display/SWStatusBadge.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a5097dbfa5b340de92a3083ab03632ea3b15b4c572eceb9c1cbc76d2ed917b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:453-476 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:328-351 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:453\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":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4830bd66999e10b213a5636436357d75e466911216fe79e5c751c30a945061"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201324 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1138-1161 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:583-598 \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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0109ff6ee6fdff8393963643a88651e2ef84e7f02c92b54359762c80a7aa5b9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:240-262 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:171-193 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:240\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":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae242e21de23d2be1d6724c0806b6b4caa044687becdcfc1c5d7e8f2e025697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWActivityHeatmap.swift:472-494 | ShipSwift/View/ChartListView.swift:341-359 \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 \u0060ShipSwift/SWPackage/SWChart/SWActivityHeatmap.swift:472\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":"ShipSwift/SWPackage/SWChart/SWActivityHeatmap.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb94c2ef51d68abbe5145073350954b53eac14c9d9c11ebfa97d2f3146afbeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWOrbitingLogos.swift:369-390 | ShipSwift/View/AnimationListView.swift:507-527 \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 \u0060ShipSwift/SWPackage/SWAnimation/SWOrbitingLogos.swift:369\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":"ShipSwift/SWPackage/SWAnimation/SWOrbitingLogos.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"209c02e7cd1185b43960d004d91e06f1a4707b5d6771783ed2793ec4da762be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWScanningOverlay.swift:212-233 | ShipSwift/View/AnimationListView.swift:197-214 \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":"ShipSwift/SWPackage/SWAnimation/SWScanningOverlay.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81fad92c1eb4fd7e9b54b4b64b39c46378eb6112cdceb8bd334047b784d4fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWShimmer.swift:97-118 | ShipSwift/View/AnimationListView.swift:118-135 \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":"ShipSwift/SWPackage/SWAnimation/SWShimmer.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"22807c92ae66e7ee9757d7444e62e93d8de6a98a957824082ca4287e57b8c517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:320-340 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:223-243 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:271-291 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:304-324 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:320\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b3fad8e27eb6dd0b5eeb91b65ddfe60af0bd81bb8b77ee582ceaf6d71e10d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWLineChart.swift:312-332 | ShipSwift/View/ChartListView.swift:29-48 \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 \u0060ShipSwift/SWPackage/SWChart/SWLineChart.swift:312\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":"ShipSwift/SWPackage/SWChart/SWLineChart.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f863efb33c9cb6ac82eb21b6b40ff7676842ae3da6ea7d57d543aa450aa09ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift:109-129 | ShipSwift/View/SettingView.swift:264-284 \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":"ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ada5989fde55c27b7020747928dd496c33e0cdedd12cf81f891de97227dc8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWActivityHeatmap.swift:497-516 | ShipSwift/View/ChartListView.swift:361-380 \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 \u0060ShipSwift/SWPackage/SWChart/SWActivityHeatmap.swift:497\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, \u0060ShipSwift/SWPackage/SWChart/SWActivityHeatmap.swift:496\u0060 calls \u0060Section\u0060 and \u0060ShipSwift/View/ChartListView.swift:360\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":"ShipSwift/SWPackage/SWChart/SWActivityHeatmap.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8783865a6da199a472b02ec76d65fe80754ca7f1e554c4cfe8b0679136bd0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:303-322 | ShipSwift/View/ChartListView.swift:146-164 \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 \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:303\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d66f61e9c9a4a15744b8403160a0e327740d1596982ae06d9751305955aa362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift:132-151 | ShipSwift/View/SettingView.swift:226-245 \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":"ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e17b6842abfca3bd65372e1bb6dee72f5a8d0f35c0624b3a44aedeb9232ba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWBarChart.swift:311-329 | ShipSwift/View/ChartListView.swift:88-105 \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 \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift:311\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":"ShipSwift/SWPackage/SWChart/SWBarChart.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30a39241a38fe23e98812dd210b725dd350a8fde117865320f1d56508b221aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201319 lines \u00D7 4): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:358-360 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:364-366 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:333-351 | ShipSwift/View/ChartListView.swift:49-67 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:358\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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"130eafb7c421608355104df80dfd1859f2dc2788745fd4a38726ec11583e2359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:218-235 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:152-169 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:218\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":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbf4348d3bc59e32d904f05dbe0073c7005c7de403aacefd5cc7c1ec72bf37e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:413-430 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:698-715 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:413\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"663ecd89f35b86a377ae0bf139c83efade7e022e66c3a18bb9eae2e511b9e4dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): ShipSwift/View/ProPaywallView.swift:54-71 | ShipSwift/View/SettingView.swift:73-90 \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 \u0060ShipSwift/View/ProPaywallView.swift:54\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":"ShipSwift/View/ProPaywallView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc1bdfac37c427d4cc805ef7cbfd9d80559f1c193347d6b074618261a72ca2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:133-149 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:137-153 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPolishedAluminum.swift:136-152 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:133\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"feabc83b19202c7a68561bfa1b5a149d1d9876ece8da69fafd0f4bba07be1d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWScatterChart.swift:221-252 | ShipSwift/View/ChartListView.swift:213-243 \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 \u0060ShipSwift/SWPackage/SWChart/SWScatterChart.swift:221\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":"ShipSwift/SWPackage/SWChart/SWScatterChart.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc0f34872c0f95b3fee8be2e46eef675f3b9ed81ba3e3066e34bdc0b51337c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWUserManager.swift:663-679 | ShipSwift/SWPackage/SWModule/SWAuth/SWUserManager.swift:685-701 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWUserManager.swift:663\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWUserManager.swift"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fccc20b404a03471135f473aba38ba51c365723baa7e435bb033e3c3f16429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWGlowSweep.swift:110-125 | ShipSwift/View/AnimationListView.swift:146-161 \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":"ShipSwift/SWPackage/SWAnimation/SWGlowSweep.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5912a3a8e3734ad247e624bfc12fdff57d5b5c8b4c57a936acdfbce8854a7c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:279-294 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:477-492 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:279\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a16af9da2e777319e5e5d3d795fbe8ec2067194944b5009a851a5166c2a1f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:365-379 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:280-294 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:365\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":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6012737429baf897bcb4d89fb84011fdc1447366def364856c9d27aca3b4ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:482-498 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:357-373 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:482\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":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0d15666216dac479892730bcc7f91f54e80f027b211209769a166d26c2abb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWLightSweep.swift:93-107 | ShipSwift/View/AnimationListView.swift:172-186 \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":"ShipSwift/SWPackage/SWAnimation/SWLightSweep.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"568357b0ea0b5cf071470e48661677e9567a575dc771227887e4c98eb2bbd93a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:229-243 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:233-247 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:248\u0060 calls \u0060ColorPicker\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:244\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a5973e2c1fd0cda741b3058ac37ae0bb50620bc2da6c6b86f09a2a343fb397"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:898-912 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:438-450 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:898\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"070c9f973d408a6a798b99bf22d3081739edbfc17755378accf181e59abefb2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:432-445 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:717-730 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:432\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"3374a32d5237a86540249d3782297bce368cacead5d441a5dc25ccaf19ac0cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift:121-134 | ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.swift:110-123 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift\u0060 and \u0060ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87f0b7927c8bf9322039438d7e3c53a3fb84e374387679b31a08862278f570d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift:82-95 | ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BmacOS.swift:53-66 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift\u0060 and \u0060ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BmacOS.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc1f075421f7d18951c1b9641b0f5034570863919d7a856ec9c34dac2b4117c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): ShipSwift/View/SWParticleTransitionShowcase.swift:86-99 | ShipSwift/View/SWTransitionShowcase.swift:128-141 \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 \u0060ShipSwift/View/SWParticleTransitionShowcase.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":"ShipSwift/View/SWParticleTransitionShowcase.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc41f27da4db8c85e2998cdae5ffa5497522f4e392288f9df2098aa96ef2289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:63-75 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:67-79 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPolishedAluminum.swift:68-80 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab205d69135033a6f5200b461489392e5fbfb3b477499086a8cf2727722b1d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:268-276 | ShipSwift/View/ShipSwiftAuthView.swift:286-298 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:268\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ShipSwift/View/ShipSwiftAuthView.swift:281\u0060 calls \u0060padding\u0060 and \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:263\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9e0a36aacc241077f4029c46f1d5df916432acf5468ff1c0982a791f283dc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 22): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:507-518 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:383-394 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift:203-214 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:382-393 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWDots.swift:393-404 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:205-216 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWFractalClouds.swift:303-314 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlassLogo.swift:421-432 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlitter.swift:201-212 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGrainGradient.swift:261-272 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWHalftone.swift:458-469 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWInkSmoke.swift:293-304 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:209-220 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWLiquidChrome.swift:315-326 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWNeuroNoise.swift:244-255 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPlasma.swift:418-429 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPolishedAluminum.swift:203-214 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:272-283 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:326-337 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWStarNest.swift:311-322 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:361-372 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWWater.swift:295-306 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"18419762ff1015384b25bfdfa97cd11d441e82acf8d4d9c4a33e2c07e828b44e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift:584-595 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:277-288 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWMetaballs.swift:345-356 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWStarfield.swift:293-304 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:283-294 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ab5fec8d38d1bdc9f7c45dca31d972a7c0f70d1f7f66b89ba5fe12bcb6739a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlass.swift:422-433 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlassOrb.swift:310-321 \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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlass.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b51360ac1a4aea8694a54a653bcba71296b1b066703e62d1ce884128742377"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlassLogo.swift:400-411 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWLiquidMetal.swift:291-302 \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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlassLogo.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26c38e70512b88df7e3f9907f50656df03fbf6ff50f187998b3541495739ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:881-892 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:421-432 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:881\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"611a25b6d0121e475860e379c0e273bc1b28bfdca3f6d592ca82667a349e89f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift:205-216 | ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.swift:169-180 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift\u0060 and \u0060ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b044e15d2cc5098a43dc241884ebb1cf38a3b4502a6dc239a4fc77c96e14d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift:211-222 | ShipSwift/View/SettingView.swift:298-309 \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":"ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6e6df4cb0b9c759a943b6f9de6ab161f1d3c339bc56cba004aa88f8de31adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ShipSwift/View/HomeView.swift:345-356 | ShipSwift/View/ProPaywallView.swift:241-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":"ShipSwift/View/HomeView.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0505ed50adc30762d1d0edfd97339a8ab995e3a612eb9c17659188fc2031bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 16): ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:363-373 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:258-268 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:186-196 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlitter.swift:182-192 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGrainGradient.swift:242-252 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWInkSmoke.swift:274-284 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:190-200 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWLiquidChrome.swift:296-306 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWLiquidMetal.swift:272-282 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWMetaballs.swift:326-336 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWNeuroNoise.swift:225-235 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:253-263 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:307-317 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:342-352 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:264-274 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWWater.swift:276-286 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:363\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1a4681f4ab0067b3c518dca39479bb20bcf52290f2d7feeb0d27ace20bf0dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 6): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:462-470 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:337-345 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:319-329 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:222-232 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:270-280 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:303-313 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:462\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:459\u0060 calls \u0060ColorPicker\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:221\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":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeed64c010f464569740108ece735eb63fafac087f6fce0d7e1f0481dc5564aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:232-242 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWMetaballs.swift:300-310 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:236-246 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:232\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, \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:248\u0060 calls \u0060ColorPicker\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:244\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae3056333a001208ef7d486c7330fc6168a7696a8201419fad30d74bcc6ce15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): ShipSwift/SWPackage/SWChart/SWLineChart.swift:321-332 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:349-360 | ShipSwift/View/ChartListView.swift:38-48 \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 \u0060ShipSwift/SWPackage/SWChart/SWLineChart.swift:321\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":"ShipSwift/SWPackage/SWChart/SWLineChart.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3ea4bd691f0171c9a6887b7a25ece6919fd5cdec54c1634c67c52c52776d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:167-182 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:104-123 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:167\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bdb9c3fd59a057ab34af95ed33042fd9fa5871a2cbd57de94874d88c1d0bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift:298-308 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWDots.swift:213-223 \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 \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift:298\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWAnimatedLoop.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d1860894411b1518a0c829cae46654a07620f148f2016992d9e32b3ea377b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ShipSwift/View/UIListView.swift:412-422 | ShipSwift/View/UIListView.swift:426-436 \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 \u0060ShipSwift/View/UIListView.swift:412\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":"ShipSwift/View/UIListView.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc51ade5692edae65b41b008ce70df90dd4b2c99d4132468c3e884a25ca1f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:181-190 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:127-136 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:152-161 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:175-184 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:181\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0216ffda26d8d28dc420ef336be31c69c67fffc08f7d10712d81ef9a0aa5f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:155-164 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:127-136 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:148-157 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:155\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"62de917ea9de72328f8f1523867a7457d387078c421af49bced93087c51b1a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:269-278 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:278-287 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:269\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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"08880453a15233807f6fc8d8c9d3af3449214afd7616a61ae1a406c68dbcd646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:328-337 | ShipSwift/View/ChartListView.swift:170-176 \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 \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:328\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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"08741b165544b8a9a9852b18f68270471d44e1df5a2e7c870b544fd61bd81167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWBarChart.swift:335-344 | ShipSwift/View/ChartListView.swift:111-117 \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 \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift:335\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":"ShipSwift/SWPackage/SWChart/SWBarChart.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a3d53cb0450ad46a006622d5b76b0987ea7b60c3b082f56280b662505aed38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1032-1041 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:517-526 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1032\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba5523521ef7277555aa92f81f4aac9e3d1f6e2908309f0872fc8033f3d7c54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1047-1056 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:532-541 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1047\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08e21ff9565c8250aacf14d86a94c2267922f89eafe398d02cff44086a8b6ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ShipSwift/View/ProPaywallView.swift:305-314 | ShipSwift/View/SettingView.swift:357-366 \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 \u0060ShipSwift/View/ProPaywallView.swift:305\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ShipSwift/View/ProPaywallView.swift:302\u0060 calls \u0060dismiss\u0060 and \u0060ShipSwift/View/SettingView.swift:354\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":"ShipSwift/View/ProPaywallView.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"66337c8699f7a53022a08ee39f36028ba3ba0d026bbbeeae52b2c904e0f92018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:138-154 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:134-150 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6c47588c07608220961bb06700c3220795d8421eb18420f4a57bd8afcfd893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:918-926 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:456-464 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:918\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a68a5c4292be374a655e914997bcc0357739fe83d81e93968ddd4b3e73dfbef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:946-956 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:482-490 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:946\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b08b22769c9738aca72893a2c6e200f7542854379f134d3eab7627407afbb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:962-970 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:496-504 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:962\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b0723151581f4e639aba4a75b248ec36705d18236c6cf4d4fa17c786ec8a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:332-340 | ShipSwift/View/ShipSwiftAuthView.swift:384-392 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:332\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06563a99faec46a914048bf22fab3005538f9855e8231ca99c102b338d62f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ShipSwift/Service/ShipSwiftAPIService.swift:65-74 | ShipSwift/Service/ShipSwiftAPIService.swift:81-90 \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":"ShipSwift/Service/ShipSwiftAPIService.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc781ef1fcacfb007f277c6e87b5d1dd6f3165701158a16d9e14268595729ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ShipSwift/View/SWConfettiShowcase.swift:237-246 | ShipSwift/View/SWConfettiShowcase.swift:264-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/View/SWConfettiShowcase.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9889d7e83fcf3fc91efca21516d794e1fde2d581b31a24c7cfe1acd10464d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:304-310 | ShipSwift/SWPackage/SWChart/SWAreaChart.swift:328-335 | ShipSwift/View/ChartListView.swift:147-153 | ShipSwift/View/ChartListView.swift:170-176 \u2014 there are 4 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 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 \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:304\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:327\u0060 calls \u0060init\u0060, \u0060random\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:303\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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a517b95b3f8301fb23d64e47f2d02fb6be5b5ecfe6eca2226968b067fa145e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): ShipSwift/SWPackage/SWChart/SWBarChart.swift:312-318 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:335-342 | ShipSwift/View/ChartListView.swift:89-95 | ShipSwift/View/ChartListView.swift:111-117 \u2014 there are 4 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 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 \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift:312\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift:334\u0060 calls \u0060init\u0060, \u0060random\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift:311\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":"ShipSwift/SWPackage/SWChart/SWBarChart.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfaf545644482bfd4f998062c7f4a69addbe8e06f0e9aedc32ab1389729d25d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:105-112 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:102-109 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:105\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa36866364951dca693f3a0d8a0604f59b13e44cfda5208134ef9d92983b4124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:418-424 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:703-709 | ShipSwift/View/ShipSwiftAuthView.swift:372-378 \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 \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:418\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"610fd5b8e42e5b2ad919695c749967c3dae9c7a4e0b062df6ee59b856fc15de5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:189-197 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:127-135 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:189\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":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b8340c9d749a2be7108cf995bb5a7c1c0781e544b0b3115152ba0aee2863ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:122-128 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWMetaballs.swift:175-181 \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 \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:122\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f9c59025a2080234465ce5b4cfec51a2c4eaf5f01fbec2088bee2c4dcb98ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:121-127 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:118-124 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:121\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc45f99357a6be6fe020446626ff4da916d7150a39d7948dafc51d548d3abcc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:201-207 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:192-198 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWLineChart.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5ec1d8dfd71d50b66b1e844ff2dfbb5323664f2b220531054b233feb2694fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWRadarChart.swift:223-231 | ShipSwift/View/ChartListView.swift:285-292 \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 \u0060ShipSwift/SWPackage/SWChart/SWRadarChart.swift:223\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":"ShipSwift/SWPackage/SWChart/SWRadarChart.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d611b7e67926465122d92a63dc93b52c0da3e7e003957d1db09b5ae1e6af436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ShipSwift/SWPackage/SWComponent/Display/SWStatusBadge.swift:118-124 | ShipSwift/View/UIListView.swift:310-316 \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":"ShipSwift/SWPackage/SWComponent/Display/SWStatusBadge.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cebb944920d3bc1f0589d5ee0486d0fe4d5d45242bb629074c0bf98ef40756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift:195-201 | ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.swift:159-165 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift\u0060 and \u0060ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aab76ad6afe1c4eb316d9ae4367434a98bf21c7c0d8cd81c00f2521f3d9d7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ShipSwift/View/SWConfettiShowcase.swift:232-238 | ShipSwift/View/SWConfettiShowcase.swift:305-311 \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 \u0060ShipSwift/View/SWConfettiShowcase.swift:232\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":"ShipSwift/View/SWConfettiShowcase.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0264a940331d4c7296be0b1958cc64171bcd3b612cdf457a464b8cf0286cec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:123-128 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:127-132 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPolishedAluminum.swift:126-131 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060initial\u0060 to \u0060SWFoil\u003CContent\u003E\u0060 in one and \u0060SWIntenseBling\u003CContent\u003E\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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a428d6b9dd2a3bdc37e8edce98ef84a8514efeb097d3551af162a61aa99e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:308-317 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:232-241 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2126c2faf262bf03db4080260fa1c2e77f9fa5c14cc42c38b0373a17c09ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:340-345 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:260-265 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060initial\u0060 to \u0060SWCharSphere\u0060 in one and \u0060SWDotSphere\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":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b45210cad01fb528f28b0a375a90e62b5d8ac94dc1dcf63609369ab0e459446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:303-307 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:311-315 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:312-316 | ShipSwift/View/ChartListView.swift:29-33 | ShipSwift/View/ChartListView.swift:88-92 | ShipSwift/View/ChartListView.swift:146-150 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:303\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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bdd791afbfe31d0413fc06adb34450a75e2c0b326d4325e54ab62bca760958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): ShipSwift/View/SWConfettiShowcase.swift:234-240 | ShipSwift/View/SWConfettiShowcase.swift:261-267 | ShipSwift/View/SWConfettiShowcase.swift:307-313 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/View/SWConfettiShowcase.swift:234\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ShipSwift/View/SWConfettiShowcase.swift:233\u0060 calls \u0060addFilter\u0060, \u0060blur\u0060 and \u0060ShipSwift/View/SWConfettiShowcase.swift:258\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":"ShipSwift/View/SWConfettiShowcase.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b216cc23b4d26152b196f612ea4902a209592be45c4a35d6223528e9ae93ac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): ShipSwift/View/SWConfettiShowcase.swift:243-247 | ShipSwift/View/SWConfettiShowcase.swift:270-274 | ShipSwift/View/SWConfettiShowcase.swift:318-322 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/View/SWConfettiShowcase.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7ef7d4352f9b39cf75e0fd8fdbbd00f56b5ac2d9ab212fc901c665d7b7612f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWTransition.swift:268-273 | ShipSwift/SWPackage/SWAnimation/SWTransition.swift:326-331 \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":"ShipSwift/SWPackage/SWAnimation/SWTransition.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"af297d512dd27c4a89c41325eb6a9939ab38c2777a918bf39a86edb7bcc15126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:297-303 | ShipSwift/SWPackage/SWChart/SWAreaChart.swift:320-326 \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 \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:297\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, \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:329\u0060 calls \u0060init\u0060, \u0060random\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift:306\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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6ba04a835cafc056f26f3c9d1d74b675e89d989362cc8a046bca8abd6a557d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWBarChart.swift:305-311 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:327-333 \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 \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift:305\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, \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift:336\u0060 calls \u0060init\u0060, \u0060random\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift:314\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":"ShipSwift/SWPackage/SWChart/SWBarChart.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"057d7a362f7fb24621fd5de2389d9280113f7ffd8e614952df2bc0b4fb613d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWDonutChart.swift:206-210 | ShipSwift/View/ChartListView.swift:267-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ShipSwift/SWPackage/SWChart/SWDonutChart.swift:206\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":"ShipSwift/SWPackage/SWChart/SWDonutChart.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"5489a1aeebd394ecdf58ba7918ccf130442ef16e8a8f381122a759371bf4a6a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWScatterChart.swift:208-213 | ShipSwift/SWPackage/SWChart/SWScatterChart.swift:233-238 \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 \u0060ShipSwift/SWPackage/SWChart/SWScatterChart.swift:208\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":"ShipSwift/SWPackage/SWChart/SWScatterChart.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1567fa854e97c7b9d19b11dc5be9ed3c7eb3a20a59ba5815f9f16f807c1b00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWScatterChart.swift:220-224 | ShipSwift/SWPackage/SWChart/SWScatterChart.swift:241-245 \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 \u0060ShipSwift/SWPackage/SWChart/SWScatterChart.swift:220\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":"ShipSwift/SWPackage/SWChart/SWScatterChart.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"66045e7ce33cbe5eca840ddcdf39f498d071de0a9084f01f2621005a300ccea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ShipSwift/View/ChartListView.swift:82-88 | ShipSwift/View/ChartListView.swift:103-109 \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 \u0060ShipSwift/View/ChartListView.swift:82\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, \u0060ShipSwift/View/ChartListView.swift:112\u0060 calls \u0060init\u0060, \u0060random\u0060 and \u0060ShipSwift/View/ChartListView.swift:91\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":"ShipSwift/View/ChartListView.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1f66397f42f7154f313e79618739dd8a1902a1e7abbc6b3ab45c88efffa1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ShipSwift/View/ChartListView.swift:140-146 | ShipSwift/View/ChartListView.swift:162-168 \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 \u0060ShipSwift/View/ChartListView.swift:140\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, \u0060ShipSwift/View/ChartListView.swift:171\u0060 calls \u0060init\u0060, \u0060random\u0060 and \u0060ShipSwift/View/ChartListView.swift:149\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":"ShipSwift/View/ChartListView.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d70582fa3f4bde2e5548837b26bfce576412f83cfbf8e85f9e0203973c32b5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ShipSwift/View/ChartListView.swift:200-205 | ShipSwift/View/ChartListView.swift:224-229 \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 \u0060ShipSwift/View/ChartListView.swift:200\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":"ShipSwift/View/ChartListView.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6d8de5f3df5a81bf08fd8cc632dc8f6d96ec9f72df198312be87f8a0774d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ShipSwift/View/ChartListView.swift:212-216 | ShipSwift/View/ChartListView.swift:232-236 \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 \u0060ShipSwift/View/ChartListView.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/View/ChartListView.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bd28b33bcd92ab65e5faca38d230670ee4845bf3508ae96ea85221c95eba5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:527-537 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:403-413 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"15de357ca4d0d031382287739b4849cef3a06be487a78f6ea9dc5045946870bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift:195-200 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:139-144 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift:141-146 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSmokeRing.swift:166-171 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWSwirl.swift:189-194 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWVoronoi.swift:133-138 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWSimplexNoise.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWColorPanels.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d54c6d8e805307d6f26c9c72cba94db6e45925892c7707501e953db2359b5d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift:290-294 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWMetaballs.swift:359-363 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWStarfield.swift:307-311 \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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWDotOrbit.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"333a2eafd5bf2c766de3532bd4a6ae611216a442f1da67bdf3026afc3549c496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:85-90 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:84-89 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:81-86 | ShipSwift/SWPackage/SWChart/SWScatterChart.swift:72-77 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee45486bd2c0ce9f740bbfa67fe62faffc2ac5253d8c89737995749bc039d5bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:166-170 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:167-171 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWLineChart.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d241e711a1ef46ec6020201c4f94c77cedb175b2c16778249cfa73948622e986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWBarChart.swift:162-167 | ShipSwift/SWPackage/SWChart/SWScatterChart.swift:118-124 \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":"ShipSwift/SWPackage/SWChart/SWBarChart.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8b9e314636888179b95e87500794e4c478c456f33b889a6dbcbe3ee8c9a2eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ShipSwift/SWPackage/SWChart/SWRadarChart.swift:104-113 | ShipSwift/SWPackage/SWChart/SWRingChart.swift:216-225 \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":"ShipSwift/SWPackage/SWChart/SWRadarChart.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb299360018f28fab2698364942396c2ba87ea1f9c3d869b18af61553bc0e40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:875-879 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:415-419 \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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58f33246ebe1c6046b81dad2d7f0ff29b3f3047ac0e9f7208f3d0c5beb1f8e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1097-1105 | ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:558-566 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift:551\u0060 calls \u0060frame\u0060 and \u0060ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift:1087\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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BiOS.swift"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"7436f6cc8ac6ef4eb53cc9ec9b8bd2a9dd9e5c3f82a2313119b9462f88841073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift:226-234 | ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BmacOS.swift:155-163 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift\u0060 and \u0060ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BmacOS.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"812d2aabc071770dfebe84cf316cbb9c72431d65c4de8a39731f4fcc05530955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift:236-244 | ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BmacOS.swift:165-173 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift\u0060 and \u0060ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BmacOS.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9504b87b58e928fb20248019d5bc7dcf9c2652b4ca04a6fd516847f5341ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift:76-82 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift:77-83 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlitter.swift:73-79 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWHalftone.swift:203-209 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWIntenseBling.swift:81-87 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWLiquidMetal.swift:105-111 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPolishedAluminum.swift:82-88 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWWater.swift:124-130 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWFoil.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWMetal/SWGlitter.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWChromaticGlass.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e85458df654018f9c96c7de30a465cce69be50752543cd01225c2b26095814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift:274-278 | ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift:201-205 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift\u0060 and \u0060ShipSwift/SWPackage/SWAnimation/SWDotSphere.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 181 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWCharSphere.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe07c21195e74985bcaf474909bca553f120b06c9be8da353d566a034f0c29e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): ShipSwift/SWPackage/SWAnimation/SWMetal/SWPlasma.swift:110-116 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPlasma.swift:118-124 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPlasma.swift:126-132 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPlasma.swift:134-140 | ShipSwift/SWPackage/SWAnimation/SWMetal/SWPlasma.swift:142-148 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"ShipSwift/SWPackage/SWAnimation/SWMetal/SWPlasma.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"896d22886e28cce736f3e8def0996487830b9e439a3242ded96000efb2fae39c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): ShipSwift/SWPackage/SWChart/SWAreaChart.swift:157-163 | ShipSwift/SWPackage/SWChart/SWBarChart.swift:153-159 | ShipSwift/SWPackage/SWChart/SWLineChart.swift:158-164 | ShipSwift/SWPackage/SWChart/SWScatterChart.swift:109-115 \u2014 before extracting anything, compare \u0060ShipSwift/SWPackage/SWChart/SWAreaChart.swift\u0060 and \u0060ShipSwift/SWPackage/SWChart/SWBarChart.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"ShipSwift/SWPackage/SWChart/SWAreaChart.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bdefb58de440c4e4cc340229943c80827564dc96c80d18c7d71d3ca0a81fea"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Date (LCOM4 9): Date\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWUtil/SWDateExtension.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8896b5b1e89543860ed096c0b428fb6c408455a21eb87fc6948536c7c775658"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (XCTest or Swift Testing), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with actual sign-out logic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21f4a5cd15ba043becdaa28065be8b0133daf38e75a830d7fb3142b27b06573"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with actual sign-out logic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BmacOS.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a536356687d74f03e775c643298f3441978f9cdb994268596df92f4c32d520e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with actual account deletion logic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BiOS.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f81ff2f01ef4c59ddcfd91980d473bf7ff2549df93ad962bc12f1e770e08b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with actual account deletion logic \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWSetting/SWSettingView\u002BmacOS.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7b4da0c97f7f411e4c938d561c80e223c1129286e2617cd287b1d29894cfc8"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060ShipSwift.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ba3eb1305876093eccee5f3a10c0092814376759f3ae1566bd51703b07e4e6"}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5237a5242360a83d39861ed8ea25c38edc85a8040b16edde8d3b4cce7b38bf9"},"properties":{"dependency":{"package":"github.com/apple/swift-nio","version":"2.93.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"0ecbff1f64031c2456ea7f2fdf97480205c68bc68e7bd7712c9c9d24ee9bb0df"},"properties":{"dependency":{"package":"github.com/apple/swift-nio-http2","version":"1.39.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"dbc611bfd3ff4c1d3e90470b426ac00a114a820561d133b9c11739529459f228"},"properties":{"dependency":{"package":"github.com/apple/swift-nio-extras","version":"1.32.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"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) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 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!cameraManager.isAuthorized || isCapturing\u0060 appears character-identically in 2 files \u2014 ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift, ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.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":"ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df156428dd1b62c5be64533141bfa6c4492670998667788b709443f9250869a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!confirmNewPassword.isEmpty \u0026\u0026 !newPasswordsMatch\u0060 appears character-identically in 2 files \u2014 ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift, ShipSwift/View/ShipSwiftAuthView.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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a1cafca95ea3c5757a5a164b949e80c06a7307d2725e9a41bdc0302c264fd0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!confirmPassword.isEmpty \u0026\u0026 !passwordsMatch\u0060 appears character-identically in 2 files \u2014 ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift, ShipSwift/View/ShipSwiftAuthView.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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12a207336ede197f5500b97cffb47c8a422f81cbe29ecda47453e1ef6fdc49d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isValidResetCode || !isValidNewPassword || !newPasswordsMatch\u0060 appears character-identically in 2 files \u2014 ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift, ShipSwift/View/ShipSwiftAuthView.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":"ShipSwift/SWPackage/SWModule/SWAuth/SWAuthView\u002BmacOS.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"7199c2e16a21adf48b75e5d31051d5cb81686438b30b0e11b39e84b1ee869f3f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cameraManager.isAuthorized \u0026\u0026 !isCapturing\u0060 appears character-identically in 2 files \u2014 ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift, ShipSwift/SWPackage/SWModule/SWCamera/SWFaceCameraView\u002BiOS.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":"ShipSwift/SWPackage/SWModule/SWCamera/SWCameraView\u002BiOS.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5653be3ce97e2b799d7f1436f30a6a4b0f0470a6cfd9f5ec7c50c7dc2f2c96b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWModule/SWAuth/SWUserManager.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d061817c304120b815e2aaa5d7da18d5137f86170bf54b97ec2d5c01e269a4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ShipSwift/SWPackage/SWAnimation/SWTypewriterText.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee19dbc1e5e745cb4bec381ae52bdca3664b47808a266da9a526fbb4750beee"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":3,"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."]}]}