{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D22","name":"Internal API Consistency","shortDescription":{"text":"Internal API Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D22"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"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":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"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":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"InteractivePresentationController.onPanGesture (cyclomatic 104): InteractivePresentationController.onPanGesture has cyclomatic complexity 104 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"8541cad0037e0cf7e02f1106790e6f40af94cdc8093fb3ccbe9ff8b0eead9a5c"}},{"ruleId":"D1","level":"warning","message":{"text":"MatchedGeometryViewControllerTransitionAnimator.animateTransition (cyclomatic 72): MatchedGeometryViewControllerTransitionAnimator.animateTransition has cyclomatic complexity 72 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/MatchedGeometryViewControllerTransition.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb72c7665e0907b7941e6233863619067846a921453783086ef8e34ce17d62df"}},{"ruleId":"D1","level":"warning","message":{"text":"DestinationLinkDelegateProxy.panGestureDidChange (cyclomatic 71): DestinationLinkDelegateProxy.panGestureDidChange has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cd8b27e28d36d605d6820438426479ae399041e07adc6da702b9751678effa"}},{"ruleId":"D1","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.onUpdate (cyclomatic 62): PresentationLinkCoordinatorAdapter.onUpdate has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bee732c8387e4801cd3c3334b7106db1205596d3924eb3c48168b7fdd947794"}},{"ruleId":"D1","level":"warning","message":{"text":"UIContextMenuInteraction.makeUIAccessoryView (cyclomatic 59): UIContextMenuInteraction.makeUIAccessoryView has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuAccessoryView.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"448eab7e8d8e911c45fb1aa9074f79238699bb573a2937c98ab142527a641524"}},{"ruleId":"D1","level":"warning","message":{"text":"PresentationHostingController.viewDidLayoutSubviews (cyclomatic 57): PresentationHostingController.viewDidLayoutSubviews has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Hosting/PresentationHostingController.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1091522838b231c7d780415df65a563bc7d0e318f2b0e71b76ab1854c9dde7ee"}},{"ruleId":"D1","level":"warning","message":{"text":"PushNavigationControllerTransition.configureTransitionAnimator (cyclomatic 36): PushNavigationControllerTransition.configureTransitionAnimator has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/PushDestinationLinkTransition.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ea14ba420502240f8a4fa532d118b35f0cbdfbd43ec70f4643ac4747a1bf24"}},{"ruleId":"D1","level":"warning","message":{"text":"Detent.toUIKit (cyclomatic 34): Detent.toUIKit has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/PresentationLink Transitions/SheetPresentationLinkTransition.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"75628da8f7fc552135bcdb75bddb85513d2b07eddcc9db954bb270d743913d30"}},{"ruleId":"D1","level":"warning","message":{"text":"DestinationLinkDelegateProxy.gestureRecognizerShouldBegin (cyclomatic 29): DestinationLinkDelegateProxy.gestureRecognizerShouldBegin 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":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"724cc599cdb3593373bfd55ac24ee87ab1e79f101c895e2516e67fe5f26bbdf4"}},{"ruleId":"D1","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.present (cyclomatic 27): PresentationLinkCoordinatorAdapter.present has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"597879f1aa0b16556a249cc0b64879b85b17871a49124f2f6a5f33fa0bffb737"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractivePresentationController.isAtTop (cyclomatic 24): InteractivePresentationController.isAtTop has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb2bb9065f9a941880d074ece58dc26fdcf83e6c3e786d3cc989daf28f1a309"}},{"ruleId":"D1","level":"warning","message":{"text":"UIView.swizzled_magicMorph_setCenter (cyclomatic 24): UIView.swizzled_magicMorph_setCenter has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuAccessoryView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc29a71ca1cb97b7136b89c34490e397d1846b1608fd138e97afd3f7901f26a"}},{"ruleId":"D1","level":"warning","message":{"text":"LuminanceTrackingReader.init (cyclomatic 22): LuminanceTrackingReader.init has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/AdaptiveColorSchemeModifier.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"301899d68e565d40984cec2d7a5f55f0832982299051d84261e74f36d527460c"}},{"ruleId":"D1","level":"warning","message":{"text":"DestinationLinkCoordinatorAdapter.onPop (cyclomatic 22): DestinationLinkCoordinatorAdapter.onPop has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"3338be0cd7de7ae74b22b5ebccc2251731c0cd8d2fbb98d1d9d449c105c6b95c"}},{"ruleId":"D1","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.makePresentationController (cyclomatic 22): PresentationLinkCoordinatorAdapter.makePresentationController has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"d517664a2aac67143c5356e004c0290bd2210197c366e977ce547847ca802d93"}},{"ruleId":"D1","level":"warning","message":{"text":"MatchedGeometryPresentationController.dismissalTransitionShouldBegin (cyclomatic 22): MatchedGeometryPresentationController.dismissalTransitionShouldBegin has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/MatchedGeometryPresentationController.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c1b31575b981053a7ed250ea369f2b8d41b2876e741fa4b3d97eef79c59f60"}},{"ruleId":"D1","level":"warning","message":{"text":"DestinationLinkCoordinatorAdapter.onUpdate (cyclomatic 21): DestinationLinkCoordinatorAdapter.onUpdate has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9c82f56202332f2862927b5d670a8d6b0f49f39481a0e791025ab0b325fe23"}},{"ruleId":"D1","level":"warning","message":{"text":"DestinationLinkCoordinatorAdapter.navigationController (cyclomatic 21): DestinationLinkCoordinatorAdapter.navigationController has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"69074c68bbab7a6882b398a1b06503b18dcb01376036fa767be528ec869a7b2d"}},{"ruleId":"D1","level":"warning","message":{"text":"MenuSourceViewLink_Previews.previews (cyclomatic 20): MenuSourceViewLink_Previews.previews has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuSourceViewLink.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92bb7a6fa6a02695d64ea3d5c6380070353021faf1d27035e7eb671da3e21e2"}},{"ruleId":"D1","level":"warning","message":{"text":"TransitionReaderCoordinator.transitionDidChange (cyclomatic 20): TransitionReaderCoordinator.transitionDidChange has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/TransitionReader.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f6ea381a7e6b5efb24374481f9ced7c6c68b40176fd9954bebe0423cbb7602"}},{"ruleId":"D1","level":"warning","message":{"text":"PassthroughView.hitTest (cyclomatic 20): PassthroughView.hitTest has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Supporting Files/PassthroughView.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"868b049a09364b1f4d32409d6cfe12a6988dbb5d9c45582bdd825655c5382fbf"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextMenuLinkCoordinator.onUpdate (cyclomatic 18): ContextMenuLinkCoordinator.onUpdate 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":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0676c75094d936803c523a926b40ca3dc8f2190fe0a2c6df8268e803030fda"}},{"ruleId":"D1","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.presentationControllerWillDismiss (cyclomatic 18): PresentationLinkCoordinatorAdapter.presentationControllerWillDismiss 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":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"b392fbc19659a0fcfede09938336ed455d75ee59703675265d902cfb2dabb8fc"}},{"ruleId":"D1","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.animationController (cyclomatic 18): PresentationLinkCoordinatorAdapter.animationController 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":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdcd04049d72fdfcb891de9ac3068a933e4ec9db920377a92feafe8c16fe9bb"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractivePresentationController.gestureRecognizer (cyclomatic 18): InteractivePresentationController.gestureRecognizer 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":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65580f9015b90cf2a80d64bc57367a2a9cf221b6d522d1b496e7c74c8faa1f7"}},{"ruleId":"D1","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.presentationControllerShouldDismiss (cyclomatic 17): PresentationLinkCoordinatorAdapter.presentationControllerShouldDismiss 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":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b8146fb09eca8818e59000a34bf65e5f950ca5926a22987e96c1517980122f"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractivePresentationController.dismissalTransitionShouldBegin (cyclomatic 17): InteractivePresentationController.dismissalTransitionShouldBegin has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f66f1aaa0330d15f945a719b71d80799789a0e29fed21bf77f0a3c9b705526"}},{"ruleId":"D1","level":"warning","message":{"text":"ToastPresentationControllerTransition.configureTransitionAnimator (cyclomatic 17): ToastPresentationControllerTransition.configureTransitionAnimator has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"770592dc3f33b4b4c2bea545ec94653c58752e8538fed95f64a6c76f1f04f1ec"}},{"ruleId":"D1","level":"warning","message":{"text":"PopoverPresentationControllerTransition.configureTransitionAnimator (cyclomatic 17): PopoverPresentationControllerTransition.configureTransitionAnimator has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45cad143212e5880b399ccc702ee412419d130790134e8709f46c6e7f964c10"}},{"ruleId":"D1","level":"warning","message":{"text":"CrossDissolveTransitionAnimator.animateTransition (cyclomatic 17): CrossDissolveTransitionAnimator.animateTransition has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3826cea909cbd13dd4ef292cdb1aba3def2ad4fad8448a97e71f0cc7ea41da8"}},{"ruleId":"D1","level":"warning","message":{"text":"SlideTransitionAnimator.animateTransition (cyclomatic 17): SlideTransitionAnimator.animateTransition 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":"Sources/Transmission/Sources/Transitions/View Controller Transitions/SlideTransitionAnimator.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b929944e1b9328ab8f55d8c6cb5e8bd911d2fa86c0fcd641a04500d2e40a367"}},{"ruleId":"D1","level":"warning","message":{"text":"DestinationLinkDelegateProxy.triggerHapticsIfNeeded (cyclomatic 16): DestinationLinkDelegateProxy.triggerHapticsIfNeeded 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":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66c50e9217ab7402df4ca24ec37b0ae7e77f757681f8f335900a4c6f9d096b2"}},{"ruleId":"D1","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.presentationController (cyclomatic 16): PresentationLinkCoordinatorAdapter.presentationController 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":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1cc688b3e227e709dbfea7e3bdeeab5035c19605e0f22e15b4fc8e3bc79f03"}},{"ruleId":"D1","level":"warning","message":{"text":"GlassEffect.makeUIVisualEffect (cyclomatic 16): GlassEffect.makeUIVisualEffect 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":"Sources/Transmission/Sources/VisualEffectView.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c494b0728242bbd7c55bba4d282f1eb8499cf044a33021799ab0bf98f70fbb5"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractivePresentationController.onPanGesture (cognitive 235): InteractivePresentationController.onPanGesture has cognitive complexity 235 (threshold 15). Drivers by points: if/else 63 (164 pts), boolean chains 38, ternaries 9 (29 pts), match/switch 2 (4 pts) (nesting depth added 123). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa793e362c48a1e44e8b9b9c136a6da557dcfafd8383c37357f13fae544c161"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkDelegateProxy.panGestureDidChange (cognitive 180): DestinationLinkDelegateProxy.panGestureDidChange has cognitive complexity 180 (threshold 15). Drivers by points: if/else 53 (143 pts), boolean chains 19, ternaries 5 (12 pts), loops 1 (5 pts), match/switch 1 (nesting depth added 101). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c4cf0a0e5f3eaf7da1191ac8f4c911598ca70eb4b1a7b19fb326dcc3698a53"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.onUpdate (cognitive 158): PresentationLinkCoordinatorAdapter.onUpdate has cognitive complexity 158 (threshold 15). Drivers by points: if/else 38 (129 pts), boolean chains 14, ternaries 3 (9 pts), match/switch 2 (6 pts) (nesting depth added 101). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a36868d4b74015e8fd3ad1b3e7e12e9f0eff7ac14f4168d776e0d59da2342e"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationHostingController.viewDidLayoutSubviews (cognitive 107): PresentationHostingController.viewDidLayoutSubviews has cognitive complexity 107 (threshold 15). Drivers by points: if/else 36 (77 pts), boolean chains 28, ternaries 1 (2 pts) (nesting depth added 42). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Hosting/PresentationHostingController.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d57d7e97220c2b5bf13119d823840d9ca931f2bb090aa636593eead2d0a6c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchedGeometryViewControllerTransitionAnimator.animateTransition (cognitive 105): MatchedGeometryViewControllerTransitionAnimator.animateTransition has cognitive complexity 105 (threshold 15). Drivers by points: if/else 46 (68 pts), ternaries 16 (18 pts), boolean chains 17, loops 1, match/switch 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/MatchedGeometryViewControllerTransition.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f721d93970b314afefb37c34233dd131dd3656eda0fe96618198eff2bd8ef06"}},{"ruleId":"D2","level":"warning","message":{"text":"UIContextMenuInteraction.makeUIAccessoryView (cognitive 91): UIContextMenuInteraction.makeUIAccessoryView has cognitive complexity 91 (threshold 15). Drivers by points: if/else 30 (51 pts), ternaries 5 (16 pts), boolean chains 12, match/switch 6 (12 pts) (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuAccessoryView.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dc018477948365491610742c19f659ad954970a20d4d2afeac57a45f299e36"}},{"ruleId":"D2","level":"warning","message":{"text":"PushNavigationControllerTransition.configureTransitionAnimator (cognitive 55): PushNavigationControllerTransition.configureTransitionAnimator has cognitive complexity 55 (threshold 15). Drivers by points: if/else 20 (33 pts), ternaries 11 (15 pts), boolean chains 6, match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/PushDestinationLinkTransition.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2bb84e80e068f49bd462c0776b7a43a84b7d70625ca111dc935bc2fa7a0d53"}},{"ruleId":"D2","level":"warning","message":{"text":"Detent.toUIKit (cognitive 55): Detent.toUIKit has cognitive complexity 55 (threshold 15). Drivers by points: if/else 23 (44 pts), boolean chains 10, match/switch 1 (nesting depth added 21). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/PresentationLink Transitions/SheetPresentationLinkTransition.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c48923f4086f58d2c893b7bf4cdf7abd776ab8625a92bf0f3b23d1b666c7653"}},{"ruleId":"D2","level":"warning","message":{"text":"UIView.swizzled_magicMorph_setCenter (cognitive 53): UIView.swizzled_magicMorph_setCenter has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (37 pts), boolean chains 10, loops 2 (6 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuAccessoryView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c69dc6e2eee842f7528aa0d0e92811c41c2ca6f8a2c863aeebe0524710150ae"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.present (cognitive 46): PresentationLinkCoordinatorAdapter.present has cognitive complexity 46 (threshold 15). Drivers by points: if/else 24 (35 pts), boolean chains 8, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2325a2f538e1f430c1ae54755fcc2d1221088cc1d273b200f8c596378debe6"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkCoordinatorAdapter.onUpdate (cognitive 45): DestinationLinkCoordinatorAdapter.onUpdate has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (32 pts), boolean chains 6, ternaries 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"67dd0175f2b6ab9abc875e70545beb6b7a274081641888f0d05691831b0484d4"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkCoordinatorAdapter.navigationController (cognitive 41): DestinationLinkCoordinatorAdapter.navigationController has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 6, ternaries 2 (5 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"1508ccd153aff19debe6f589b51eca4673deb6ca634d1c18cf0bf66387fbec15"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkDelegateProxy.gestureRecognizerShouldBegin (cognitive 40): DestinationLinkDelegateProxy.gestureRecognizerShouldBegin has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 12 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eef1ca3aff84f6468c7e61d756c404163f81fed833b64c8f87124136da8634"}},{"ruleId":"D2","level":"warning","message":{"text":"PassthroughView.hitTest (cognitive 40): PassthroughView.hitTest has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 3 (10 pts), boolean chains 5, ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Supporting Files/PassthroughView.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6261d7f6a1e2bd1757efaeb4fc31b2b82098b14823aae4c587ace0024931c799"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkCoordinatorAdapter.onPop (cognitive 38): DestinationLinkCoordinatorAdapter.onPop has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (29 pts), boolean chains 9 (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":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a41d80536bca2a919f37444116fcf6d4f18cefc5d0029550db2be326c9af7e8"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuSourceViewLink_Previews.previews (cognitive 38): MenuSourceViewLink_Previews.previews has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 6 (15 pts), loops 5 (8 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuSourceViewLink.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c128c362970992dacffcaa5c8dbe9c1f44277982b1834495b4eb81fb1bd31f22"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.presentationControllerShouldDismiss (cognitive 36): PresentationLinkCoordinatorAdapter.presentationControllerShouldDismiss has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (28 pts), boolean chains 5, ternaries 1 (2 pts), match/switch 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad495a6cc7b1630949b76c213502613f71780feb238d7740d4002da2eb6afe8"}},{"ruleId":"D2","level":"warning","message":{"text":"PopoverDimmingView.hitTest (cognitive 36): PopoverDimmingView.hitTest has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (27 pts), loops 2 (7 pts), boolean chains 2 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/PopoverPresentationController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4377fc09c7b166570f0ec009989d7bf4daba1e9da0521ad8868b1615b54b087a"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.makePresentationController (cognitive 35): PresentationLinkCoordinatorAdapter.makePresentationController has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (22 pts), match/switch 2 (6 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48c62e39aa053779e5750683dba40a0c61ca48074ce991b98569f8610eb268e"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.sheetPresentationControllerDidChangeSelectedDetentIdentifier (cognitive 35): PresentationLinkCoordinatorAdapter.sheetPresentationControllerDidChangeSelectedDetentIdentifier has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (27 pts), ternaries 1 (4 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"e091c4d70d3da9157878c32fed2e528115a4d3bc0eb5887c2f0287201de82f0b"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionReaderCoordinator.transitionDidChange (cognitive 33): TransitionReaderCoordinator.transitionDidChange has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 7 (14 pts), boolean chains 4 (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":"Sources/Transmission/Sources/TransitionReader.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c59d7bc7930419235adc6139f8b8b60d60394abac750f1acb671938c50bea3a"}},{"ruleId":"D2","level":"warning","message":{"text":"LuminanceTrackingReader.init (cognitive 31): LuminanceTrackingReader.init has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 12 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/AdaptiveColorSchemeModifier.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d35711d80930441650f6074c817ea805b2f561e45086ecb590ebe17bf3e1393"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.presentationControllerWillDismiss (cognitive 30): PresentationLinkCoordinatorAdapter.presentationControllerWillDismiss has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 7 (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"272379c520d16150e0237f6e4e8d0c47ed94b8f0297f873123129edd9351c032"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextMenuLinkCoordinator.contextMenuPreview (cognitive 27): ContextMenuLinkCoordinator.contextMenuPreview has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffd6ea768dd0558607092c92b1238f385450e8334e4409a432e40e2a4c20b99"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowLinkCoordinatorAdapter.onUpdate (cognitive 27): WindowLinkCoordinatorAdapter.onUpdate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, ternaries 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/WindowLinkAdapter.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"85534b2e72df01d6f2b34b836357df142ec8050dcd3f573f031ed636a8dc56f0"}},{"ruleId":"D2","level":"warning","message":{"text":"CardPresentationController.setCornerRadius (cognitive 27): CardPresentationController.setCornerRadius has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 3 (9 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/CardPresentationController.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afcc3fa8630daeae81395ae52716d61437470ee4d7770213521689e2dbd72d0"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractivePresentationController.isAtTop (cognitive 27): InteractivePresentationController.isAtTop has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 13 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0f74b150c50f72101aa4e1da132ec5e7c96890e5cd8fe1cc20ab1676af276c"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionReaderCoordinator.transitionCoordinatorDidChange (cognitive 26): TransitionReaderCoordinator.transitionCoordinatorDidChange has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (21 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/TransitionReader.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a8827e60794e9a50dbb35081da936fc85e0c2d5cc55a8ff5f6e618ee5a6788"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextMenuLinkCoordinator.onUpdate (cognitive 25): ContextMenuLinkCoordinator.onUpdate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad780101a67cd418c671a65a5d09321ded0d5094ba6a2573590b9dc2ff8cab5"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkDelegateProxy.triggerHapticsIfNeeded (cognitive 25): DestinationLinkDelegateProxy.triggerHapticsIfNeeded has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 6, ternaries 1 (2 pts), match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4286e8d4e3e7cb098af092971984f27ebe277b9ca0e0ddccc9c97b3a3614249"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.animationController (cognitive 25): PresentationLinkCoordinatorAdapter.animationController has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc7c1625a64f3d63a2bc0ea383aae8e7484429a3569b992aa42e60c2c6e7237"}},{"ruleId":"D2","level":"warning","message":{"text":"Preview.body (cognitive 25): Preview.body has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 9 (17 pts), if/else 8 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/TransitionSourceHostingView.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f205da8bf154da2c6ad55b87372fb4184946c2e905426a7af8c122ecd528d6"}},{"ruleId":"D2","level":"warning","message":{"text":"SlideTransitionAnimator.animateTransition (cognitive 25): SlideTransitionAnimator.animateTransition has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 4, boolean chains 3, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/SlideTransitionAnimator.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"713901ef0aac62f17af96edb4d4911716c25eb5a2784ce77e310a80a48d8148a"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractivePresentationController.gestureRecognizer (cognitive 24): InteractivePresentationController.gestureRecognizer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 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":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"859a785b4a8189838a0a9abdc66e547e3b9c62a97bbcb059f77341e076c0cc03"}},{"ruleId":"D2","level":"warning","message":{"text":"GlassEffect.makeUIVisualEffect (cognitive 23): GlassEffect.makeUIVisualEffect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 8 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/VisualEffectView.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc04a6e8a45c00fdaaac05aae2a3cd68abf54efc5e18d4e7330fffc2eb847bf0"}},{"ruleId":"D2","level":"warning","message":{"text":"CornerMask.toCoreAnimation (cognitive 22): CornerMask.toCoreAnimation has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 6 (10 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/CornerRadiusOptions.swift"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"7493327f0df4337d95b5984af8b5546942bd5a6b8e0153ed00fdd4df880950eb"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkDelegateProxy.gestureRecognizer (cognitive 21): DestinationLinkDelegateProxy.gestureRecognizer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 6 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"6224fcdcfb8877da0e47b6e13abbfe417f06bc1a12a03fa89ec540bf53802a60"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.gestureDidChange (cognitive 21): PresentationLinkCoordinatorAdapter.gestureDidChange has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1646}}}],"partialFingerprints":{"codehealthFindingId/v1":"b156768988a817c0c3b2940175dbcdc1218d040aa0679d780e78950cf6f83f36"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchedGeometryPresentationController.dismissalTransitionShouldBegin (cognitive 21): MatchedGeometryPresentationController.dismissalTransitionShouldBegin has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 16, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/MatchedGeometryPresentationController.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce3eca0e27338ea02575942b983caa139458698f9a50e22db605e8f20e5c8dc"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.presentationController (cognitive 20): PresentationLinkCoordinatorAdapter.presentationController has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"7faa01f8e2010dc9a17e85bcb65f403204a5972e5ba630dac3eb446366981ace"}},{"ruleId":"D2","level":"warning","message":{"text":"ToastPresentationControllerTransition.configureTransitionAnimator (cognitive 20): ToastPresentationControllerTransition.configureTransitionAnimator has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 3 (5 pts), ternaries 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc32af8b86256fa517a56fcc97b3ac33df6152c17e2cb9f49ed4afc61abecad8"}},{"ruleId":"D2","level":"warning","message":{"text":"PopoverPresentationControllerTransition.configureTransitionAnimator (cognitive 20): PopoverPresentationControllerTransition.configureTransitionAnimator has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, ternaries 4, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ed13d07cb2d26a015bab6f5924fbde5552c3f1dbeb5d0c8b90883cbb0f49f9"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossDissolveTransitionAnimator.animateTransition (cognitive 20): CrossDissolveTransitionAnimator.animateTransition has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, ternaries 5, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cab5fcf09e1a90faebc6a542020982de3acf13dd475112c6ee26e297adb233"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayMode.isCollapsed (cognitive 20): DisplayMode.isCollapsed has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 3 (11 pts), match/switch 2 (5 pts), if/else 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Extensions/UISplitViewController\u002BExtensions.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d125a31779a2be68484838334d8e0f81a4e40ef32dc3760415b1cb316e922542"}},{"ruleId":"D2","level":"warning","message":{"text":"UIViewController.swizzled_dismiss (cognitive 19): UIViewController.swizzled_dismiss has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/StatusBarModifier.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0528df2d8dd465f0a43427f3fd4c37f7aa7c569ce375ef2c09041a58a6c6709"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkCoordinatorAdapter.navigationController (cognitive 18): DestinationLinkCoordinatorAdapter.navigationController has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6e8637a1db8584878bd9a122087701676a82f8ba0a69aa6cda186fce47ead5"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkCoordinatorAdapter.gestureDidChange (cognitive 18): DestinationLinkCoordinatorAdapter.gestureDidChange has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ca93d319c200738a677d1c1ed1ee1f8ff08c2a00a9fa23bb0c01b29c8d3260"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractivePresentationController.triggerHapticsIfNeeded (cognitive 18): InteractivePresentationController.triggerHapticsIfNeeded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b81194881624a196f230249006cf4da967960cb462b0ef3ef3e3c8123281ffb"}},{"ruleId":"D2","level":"warning","message":{"text":"SheetPresentationController.frameOfPresentedViewInContainerView (cognitive 17): SheetPresentationController.frameOfPresentedViewInContainerView has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (6 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/SheetPresentationController.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63a459c075d9e2889dfb93bd64713a6e1ab3c0acc907c3429bca63d1880e79d"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewControllerTransition.configureTransitionAnimator (cognitive 17): ViewControllerTransition.configureTransitionAnimator has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 5, boolean chains 3, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Sources/Transmission/Sources/Transitions/View Controller Transitions/ViewControllerTransition.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60fbd6ff40c85b2ce588e8a6517085a3df1724dbfb5d398a921fa8605e9f5a5"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkCoordinatorAdapter.navigationController (cognitive 16): DestinationLinkCoordinatorAdapter.navigationController has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9dcc2d9d1af7d9f6a69546e2c56283bfd100566dfe7ba31c37df987344b887f"}},{"ruleId":"D2","level":"warning","message":{"text":"DestinationLinkDelegateProxy.gestureRecognizer (cognitive 16): DestinationLinkDelegateProxy.gestureRecognizer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0987b4b51e5ecf80b5113ccfed8c5563c87f61cc1f0b73ec138ef41fd76295"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationLinkCoordinatorAdapter.animationController (cognitive 16): PresentationLinkCoordinatorAdapter.animationController has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, match/switch 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":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ce3643b168cdc87f1bf9a3804a6f407a2f457eb946bda7213b522a54169121"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractivePresentationController.dismissalTransitionShouldBegin (cognitive 16): InteractivePresentationController.dismissalTransitionShouldBegin has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"96366c0e8e02d294a73487bd6c2a66fe1808eebc78660461cb167fd327c7ce02"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationController.layoutDimmingView (cognitive 16): PresentationController.layoutDimmingView has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/PresentationController.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"c918f7f7549d538f3aaef5b026fca089f7ccb247e2dd49c5d2d30c45d0856bd7"}},{"ruleId":"D2","level":"warning","message":{"text":"PresentationControllerTransition.configureTransitionAnimator (cognitive 16): PresentationControllerTransition.configureTransitionAnimator has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4, boolean chains 3, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedd5fcf35f49be79779398cbf18b89359ec0d891db0b7fc934ae7a9b46a7705"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/DestinationLinkAdapter.swift: FileTooLong \u2014 1367 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 867 over it, 2.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fee692c34320d272a9fa589d42026b2437098c02bdc3d422459cec85a93d3b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Detent.resolution: MethodTooLong \u2014 resolution runs 266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 166 over it, 2.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/PresentationLink Transitions/SheetPresentationLinkTransition.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fc4ed05f5683324e6e0565af401403997f5ee8f934512efbc840d1451a066f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/PresentationLinkAdapter.swift: FileTooLong \u2014 1322 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: PresentationLinkCoordinatorAdapter (341-1699). The bar is 500 significant lines; this is 822 over it, 2.64\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fcbeb5bec75c4d865d698f574c9d35621fdfdd764aa6e3c719b4173da48f2c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MenuSourceViewLink_Previews.previews: MethodTooLong \u2014 previews runs 248 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 148 over it, 2.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuSourceViewLink.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"465b60161ce8d211c7bfaee44137ea67838df0d572bf391780fd7f963e39c7d1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PresentationLinkCoordinatorAdapter: ClassTooLong \u2014 976 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 576 over it, 2.44\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c561c9ca08009929bf1b6e5c27fc800856468bfda0d550b1e06cd4a42276926"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InteractivePresentationController.onPanGesture: MethodTooLong \u2014 onPanGesture runs 242 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 142 over it, 2.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0265fa7f59530ec8f82a89b75c0522582beb79c71eadd9de23397facebe2b352"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Preview.body: MethodTooLong \u2014 body runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/VisualEffectView.swift"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac362d790953b58f5f4d92999109c3daa33b7c6ca314812a28fe09ee5e0b6c4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PresentationLinkCoordinatorAdapter.onUpdate: MethodTooLong \u2014 onUpdate runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"125bbdac165682e050fcc7c8237deeea0f69fadff7e4a494ed81bb67ff85e0db"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MatchedGeometryViewControllerTransitionAnimator.animateTransition: MethodTooLong \u2014 animateTransition runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/MatchedGeometryViewControllerTransition.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a19cd78ee380aab73b0dce9c16d7dc5dfe7180fa9c577c3fce2ab317ea9734"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Transitions/CornerRadiusOptions.swift: FileTooLong \u2014 885 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 385 over it, 1.77\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/CornerRadiusOptions.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40c19a40b5f7073a5989e9050edacf19eb92e4c45f46df6cd38ffec5c16da39"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UIContextMenuInteraction.makeUIAccessoryView: MethodTooLong \u2014 makeUIAccessoryView runs 161 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 61 over it, 1.61\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuAccessoryView.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78defaa8d20673186a27a020ec80c5cf3c7485629dd2598c95db9a3a25849f2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UIView.isInRetargetableAnimationBlock: MethodTooLong \u2014 isInRetargetableAnimationBlock runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuAccessoryView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c816aa748201e36a3d9f46dbf7131f7a5b4e6c30974b8f260724160d14df3814"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DestinationLinkDelegateProxy.panGestureDidChange: MethodTooLong \u2014 panGestureDidChange runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1e262981591fa8407ca1370f7c428adf2a30a128b9e6cbe800e70fedb02907"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/ContextMenuLinkAdapter.swift: FileTooLong \u2014 739 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 239 over it, 1.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72de9603e01146f105a12f829ca15d6721727e65737e368cfbdfcda5d7ded07c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DestinationLinkDelegateProxy: ClassTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 188 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3fa92dbf548e21899cacd72e74f2f39db45ff4688018ee998ce615dc176980"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PortalView_Previews.previews: MethodTooLong \u2014 previews runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Supporting Files/PortalView.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b3c5686a95a0c64db7b3e02817e3db8d912e97bd9d42b8d0c3e26c04fa7439"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PresentationHostingController.viewDidLayoutSubviews: MethodTooLong \u2014 viewDidLayoutSubviews runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Hosting/PresentationHostingController.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"9250044c7b086e644c7f9e29e7f1789f32cc65a415c816d2e9fc859fad4ceb5c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InteractivePresentationController: ClassTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 141 over it, 1.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb2bedb0611381b9052d0784d29ec725f812aeee4b72c685b0f7a2796f30ef5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/MenuElement.swift: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 144 over it, 1.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuElement.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b7d1c0f46bc6563e7745627fc3b8e2d155c33aefe5158d7d84259cf2122867"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/VisualEffectView.swift: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 134 over it, 1.27\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/VisualEffectView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5041e7fd4c9cb672dc19391404d1fde99959914ee80f7d63e436a27f3d6701ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: View: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/AdaptiveColorSchemeModifier.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"07afdebcfc7803e265f46e7d53899734970a70660c9c067bc37966f1e270cc67"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DestinationLinkCoordinatorAdapter: ClassTooLong \u2014 483 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 83 over it, 1.21\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb5143f682e428423b1288a5696293049366d0833fd461fa251728d7f08fcad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Sources/MenuSourceViewLink.swift: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 101 over it, 1.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuSourceViewLink.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"549f9b4c3c643c117833b02bc673fd017632a2ed9bbba7fcad06697c82d642cb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SheetPresentationController: ClassTooLong \u2014 476 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods, 2 blocks, lines 13-728. The bar is 400 significant lines; this is 76 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/SheetPresentationController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cfeaa395c4af9eb61e36f47affa3bdcec07c1ba4a9e5c7532f1076e79a6e9f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PresentationLinkCoordinatorAdapter.makePresentationController: MethodTooLong \u2014 makePresentationController runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"589f61e2b714718cb4246ad0c76eaca29f0724300b88ef4e75cdeb3f5530e7f2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PresentationLinkCoordinatorAdapter: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac348478e89b4a1ff8c67f4ab3c0b45b0cab196a4477c03a6c26f8ab91cb334"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Presentation Controllers/SheetPresentationController.swift: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: SheetPresentationController (213-728). The bar is 500 significant lines; this is 73 over it, 1.15\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/SheetPresentationController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0142d3e1c28be738acc27db9b88a63e0e99f57ae02554023ac19d881ece34e28"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Preview.body: MethodTooLong \u2014 body runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fcc3371f23850c267b1219f88ed7afd9ff7083356ca45ced41d526a9fa4d66"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Presentation Controllers/InteractivePresentationController.swift: FileTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: InteractivePresentationController (17-795). The bar is 500 significant lines; this is 48 over it, 1.10\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7475383775db68acb45256e0d420f9d8fdc70c3e3f932b328780d41ba2e053fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Preview.body: MethodTooLong \u2014 body runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/CornerRadiusOptions.swift"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d09b02ee5642e0e4f54dd25c69ab53819a75dcb32e0ceb639b1a0a3689d1697"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Detent.toUIKit: MethodTooLong \u2014 toUIKit runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/PresentationLink Transitions/SheetPresentationLinkTransition.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"88788177dc1b9f3067361cd330d533c5dacd49029bcbc488abb89f416141da20"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PushNavigationControllerTransition.configureTransitionAnimator: MethodTooLong \u2014 configureTransitionAnimator runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/PushDestinationLinkTransition.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bdf6064b6af8f9b9aa4c5c77e4fb832c274ed52d100daec0071e1c5d396ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Transmission/Sources/DestinationLink.swift:136-152 | Sources/Transmission/Sources/DestinationSourceViewLink.swift:171-191 | Sources/Transmission/Sources/PresentationLink.swift:138-154 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:172-192 | Sources/Transmission/Sources/WindowLink.swift:145-163 \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":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e720939154a7c59e130095dd2a81a468fb76cfdf2df880a0af45473f3c20cedf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Example/Example/DynamicIslandTransition.swift:167-230 | Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift:133-215 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift:112-202 | Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift:28-94 \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":"Example/Example/DynamicIslandTransition.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c04fd6419417a5e70392bfc43aed3c09672bd553ff88fbc102e4d18223e0cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Transmission/Sources/DestinationLinkAdapter.swift:103-121 | Sources/Transmission/Sources/DestinationLinkAdapter.swift:123-141 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:104-122 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:124-142 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d83679d44f2e2567aebf8ad4cb293ff68402560c63bf21c6e98b8a8a904cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Transmission/Sources/DestinationLinkAdapter.swift:885-928 | Sources/Transmission/Sources/DestinationLinkAdapter.swift:1328-1381 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:1646-1698 | Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift:604-648 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb516e368006e24a2398e7ba53188e6ab90fe52514f595069a315ad8bf8c0471"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift:25-92 | Sources/Transmission/Sources/Transitions/View Controller Transitions/MatchedGeometryViewControllerTransition.swift:39-294 | Sources/Transmission/Sources/Transitions/View Controller Transitions/SlideTransitionAnimator.swift:26-124 | Sources/Transmission/Sources/Transitions/View Controller Transitions/ViewControllerTransition.swift:194-244 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f24f87a47ab92b703950da63dfa583a45d11d78114b7dd930a33f4acf5240f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Sources/Transmission/Sources/MenuSourceViewLink.swift:814-844 | Sources/Transmission/Sources/MenuSourceViewLink.swift:848-878 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift:814\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuSourceViewLink.swift"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47871652aad708bf7f7048c55ee6c2cd23d72f44f646394f3f634b56f652fea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201328 lines \u00D7 2): Sources/Transmission/Sources/Transitions/View Controller Transitions/ViewControllerTransition.swift:170-192 | Sources/Transmission/Sources/Transitions/View Controller Transitions/ViewControllerTransitionAnimator.swift:30-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/ViewControllerTransition.swift:170\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/ViewControllerTransition.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"947076356970d8c6fa433121f06e3d3038bb717f9cff3ce371a9a01f8badd3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): Sources/Transmission/Sources/DestinationLinkAdapter.swift:898-919 | Sources/Transmission/Sources/DestinationLinkAdapter.swift:1349-1371 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:1668-1689 | Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift:616-638 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:898\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6c2431933c62a6bb4a35f7d2b12eab309e1c85fe1fda534cae4471ba28e3be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): Sources/Transmission/Sources/DestinationLinkAdapter.swift:1629-1651 | Sources/Transmission/Sources/DestinationLinkAdapter.swift:1656-1678 | Sources/Transmission/Sources/DestinationLinkAdapter.swift:1683-1705 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:1629\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb722f938bb6d12a21ffffcecf6b659a951c734ea2e1a967e218de72e78e9ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/Transmission/Sources/Transitions/DestinationLink Transitions/MatchedGeometryDestinationLinkTransition.swift:161-183 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift:247-269 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/DestinationLink Transitions/MatchedGeometryDestinationLinkTransition.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/MatchedGeometryDestinationLinkTransition.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c3c863652c3f5d576e1c54f54191810e10ecfed84d9162539dc88ebcf0bcbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift:141-162 | Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift:35-56 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3630f41e82b36444bd4ffff74ee180d65cb0b2b11754e71dd07ce5df1072d80a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): Sources/Transmission/Sources/DestinationLinkAdapter.swift:1529-1549 | Sources/Transmission/Sources/DestinationLinkAdapter.swift:1564-1584 | Sources/Transmission/Sources/DestinationLinkAdapter.swift:1604-1624 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:1529\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1529}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c557c59a88a063f906fa5f908acd67f180242bd456a78f82a5bd162228a7ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkPathAdapter.swift:190-210 | Sources/Transmission/Sources/PresentationLinkPathAdapter.swift:190-210 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkPathAdapter.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkPathAdapter.swift\u0060 as WHOLE FILES: this scan already matched 5 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 \u0060Sources/Transmission/Sources/DestinationLinkPathAdapter.swift:190\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkPathAdapter.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8273c2b225d779f86f32f7f7fbfaba2df645ed7d86827f862dc3987a2113fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/Transmission/Sources/MenuSourceViewLink.swift:524-544 | Sources/Transmission/Sources/MenuSourceViewLink.swift:548-568 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift:524\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuSourceViewLink.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"deea84ea7bc64dc6bb9cd381bf88ab4f4ee4656ff9b486a4df2108bcd0452fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:172-191 | Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:195-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:172\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:194\u0060 calls \u0060frame\u0060 and \u0060Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:171\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuSourceViewLink.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbab1b16fbf4062d214e996967c3407e6213f77ba63162ef107256c51330ba48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkAdapter.swift:160-179 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:161-180 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:160\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8482e1d2d5c81eead13e32cc0ead8a95057f91435fe47e16bf6c35db98d7d7c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Sources/Transmission/Sources/PresentationLinkAdapter.swift:1149-1168 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:1211-1229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/PresentationLinkAdapter.swift:1149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b735a89e6f7ac7ff56a2a2a5647ab27ed5bd9cd19b2f58f2baa6d1cddc52fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:151-169 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:152-170 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:151\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"668296f0ff31b494edaa5b32b2e4c8a609af909f7020c8383dacfbf28de6cfb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:173-191 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:174-192 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:173\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8cc8e722a02bfd4e013f0daa88c23405a54e54bf6addefabbc67a478925acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:196-214 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:197-215 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:196\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbac0d61c8c09b49ba1a3daee8c05f87bd89d5d5a5eb1fc559465e43019a0c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:218-236 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:219-237 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:218\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"217dbb20ad26df77090f328164dffeb74d2c6a099037944b51fe26e53a533ea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:241-259 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:242-260 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:241\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbec554b7638ddade9563ad25574b77769dd6dfdd86e5575d145b9b408217781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 3): Sources/Transmission/Sources/DestinationLinkAdapter.swift:181-198 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:182-199 | Sources/Transmission/Sources/TransitionLinkAdapter.swift:197-211 \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":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e76885682ccaa3a0f03be27321cdec793f9c057691cc1fce566aff3069e52ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkPathAdapter.swift:172-189 | Sources/Transmission/Sources/PresentationLinkPathAdapter.swift:171-188 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkPathAdapter.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkPathAdapter.swift\u0060 as WHOLE FILES: this scan already matched 5 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 \u0060Sources/Transmission/Sources/DestinationLinkPathAdapter.swift:172\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkPathAdapter.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa04f2f329c03132ca27de005d46905b838b46541a311f63a712865ff8759b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkPathAdapter.swift:139-155 | Sources/Transmission/Sources/PresentationLinkPathAdapter.swift:138-154 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkPathAdapter.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkPathAdapter.swift\u0060 as WHOLE FILES: this scan already matched 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkPathAdapter.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fb9be6f05f7ca10b1abd64080169c7344bfb7683f7bafc4e8ea0752364d5bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:131-147 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:132-148 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:131\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6aae1f540bf7ca218e1c933983a432916693716bb9776b50e58d3c0f98243b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Sources/Transmission/Sources/TransitionSourceHostingView.swift:215-230 | Sources/Transmission/Sources/TransitionSourceHostingView.swift:232-248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/TransitionSourceHostingView.swift:215\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":"Sources/Transmission/Sources/TransitionSourceHostingView.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9934b613fbfbad24c77425b733a7d99cb5a2df132016ceb7c4f2bd879fc3d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): Sources/Transmission/Sources/TransitionSourceHostingView.swift:216-230 | Sources/Transmission/Sources/TransitionSourceHostingView.swift:233-247 | Sources/Transmission/Sources/TransitionSourceHostingView.swift:249-264 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/TransitionSourceHostingView.swift:216\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Transmission/Sources/TransitionSourceHostingView.swift:231\u0060 calls \u0060rounded\u0060 and \u0060Sources/Transmission/Sources/TransitionSourceHostingView.swift:265\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/TransitionSourceHostingView.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"754c6c7976a4680dffc04880e16c5f9e8373066dca7e114477b5fb7608d19009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Transmission/Sources/MenuSourceViewLink.swift:734-749 | Sources/Transmission/Sources/MenuSourceViewLink.swift:751-766 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060id\u0060 to \u0060\u0022a\u0022\u0060 in one and \u0060\u0022b\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuSourceViewLink.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6aa7f1ae360d889075505bd79a48dc4397525e4dff3d5788d682f6e4394cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift:47-62 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/SlidePresentationLinkTransition.swift:45-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift:47\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f23bf55fc6b834eb6e3c74ffed836104211580c237757edc07fe0af6a1af3ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift:148-162 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift:144-158 | Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift:42-56 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc94a17b6e5a9869e3db96bd0b44ed6f0a04f3a40d0a0d80356079edbda43d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/ContextMenuAccessoryView.swift:610-624 | Sources/Transmission/Sources/ContextMenuAccessoryView.swift:626-640 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.topTrailing\u0060 in one and \u0060.center\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Transmission/Sources/ContextMenuAccessoryView.swift:641\u0060 calls \u0060padding\u0060 and \u0060Sources/Transmission/Sources/ContextMenuAccessoryView.swift:626\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuAccessoryView.swift"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3594958bb2ef8a42c15c1c6dc58fcdbe5aea8dd9e56d9a1cca5164bbe5521f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/DestinationLink.swift:120-134 | Sources/Transmission/Sources/PresentationLink.swift:122-136 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLink.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:120\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7144fc17357b9969907d96de89819c86288d88dc90a62d57b25d3d42bf5e585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/DestinationLink.swift:138-152 | Sources/Transmission/Sources/PresentationLink.swift:140-154 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLink.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:138\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb6ce7b3556f727555770f8a863c969045f5cd3a222320f262b95eeabbc5570"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/DestinationLink.swift:157-171 | Sources/Transmission/Sources/PresentationLink.swift:159-173 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLink.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:157\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1034d65768e37144fe03afb06482d97ed85e53686c5b3112a8e6797992296576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/DestinationLink.swift:175-189 | Sources/Transmission/Sources/PresentationLink.swift:177-191 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLink.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:175\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6490ad8c03869643a58bf0cc69a2aa633be171121130c3a2cb878b1b6b98a46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/DestinationLink.swift:194-208 | Sources/Transmission/Sources/PresentationLink.swift:196-210 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLink.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:194\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a591a3417b106e0436eb51e4b7069346e179fcd80b60b27d33fede8bb5de7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkAdapter.swift:105-119 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:106-120 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:105\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"976e40ee624200bd1f3e7f9caddc95c1388827e2ce7e10a6ac29f11a8681a4d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkAdapter.swift:125-139 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:126-140 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:125\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5803183d459d36eff735bdb1f103be813bfa6d3c466070cffd7c7e1b110fe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:69-83 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:70-84 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:69\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d77c3fa376841a6243babb9afc0020cdaa4df609a42140d0715ade50574632a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:111-125 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:112-126 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:111\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6792a149b488b635b9a6886970dd17c42026c5dca50b8ae96634be2fe8ef0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/MenuDialogLinkModifier.swift:172-186 | Sources/Transmission/Sources/MenuDialogLinkModifier.swift:197-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/MenuDialogLinkModifier.swift:172\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 after the matched lines, \u0060Sources/Transmission/Sources/MenuDialogLinkModifier.swift:214\u0060 calls \u0060available\u0060 and \u0060Sources/Transmission/Sources/MenuDialogLinkModifier.swift:188\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuDialogLinkModifier.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"7871a59117b182fd83f4ad0d6a418f8de26f26460b58627b8dcb4baee76fd60c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/StatusBarModifier.swift:79-93 | Sources/Transmission/Sources/StatusBarModifier.swift:189-203 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/StatusBarModifier.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8253fc05d32f9ad45cf0f0bb2e27ec45ec68e640d7d6e9903109657caa057729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/Supporting Files/PortalView.swift:295-309 | Sources/Transmission/Sources/Supporting Files/PortalView.swift:314-328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Supporting Files/PortalView.swift:295\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Supporting Files/PortalView.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fa8978b1ce44769a80baccecc0b5ce75d09ff6892d94240cea251d0bc27acf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Transmission/Sources/Transitions/DestinationLink Transitions/CrossDissolveDestinationLinkTransition.swift:128-142 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/CrossDissolvePresentationLinkTransition.swift:167-181 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/DestinationLink Transitions/CrossDissolveDestinationLinkTransition.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/CrossDissolvePresentationLinkTransition.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/CrossDissolveDestinationLinkTransition.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"89405e90a79a091aa91f2404a7b7a60918b07eb69148b0cfe24b5bd1d95b0878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/Transmission/Sources/DestinationSourceViewLink.swift:114-127 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:115-128 | Sources/Transmission/Sources/WindowLink.swift:171-184 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:114\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a324e747a8099012bb502bd8c479c41edcccbace4199ccb1bba053b61731b867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Example/Example/DynamicIslandTransition.swift:190-203 | Sources/Transmission/Sources/Transitions/View Controller Transitions/ViewControllerTransition.swift:211-224 \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":"Example/Example/DynamicIslandTransition.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"757dd6d4ee24f8d9df838646dab5ce2152873266ddce1592c72758270d5a39aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkAdapter.swift:855-868 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:1599-1612 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"625a02bc9a8bab9745bfd5fa4527de28977e5ba46a819edb4479f188c4ba3dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:52-65 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:53-66 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:52\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4274c3d48aa51eadb816b0d4e78d2dd5ed83e71011e8b2f35899d1b9aa1a1947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Transmission/Sources/Transitions/DestinationLink Transitions/MatchedGeometryDestinationLinkTransition.swift:185-198 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift:271-284 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/DestinationLink Transitions/MatchedGeometryDestinationLinkTransition.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/MatchedGeometryDestinationLinkTransition.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"3628a3d47834852bf9d27d8af078006703b1723c2987cc32853c67e6a49c53e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/Transmission/Sources/DestinationLinkAdapter.swift:109-121 | Sources/Transmission/Sources/DestinationLinkAdapter.swift:129-141 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:110-122 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:130-142 \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 \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:109\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5d01d73921a2610d97336d05c30b5555d4c9962bcf67f5ea74650054fdd30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:43-55 | Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:65-77 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:43\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuSourceViewLink.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da64dc44d9076e12530b62cef305018764d75bebd69303e2334c73a218aa830"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Transmission/Sources/DestinationLink.swift:88-100 | Sources/Transmission/Sources/PresentationLink.swift:90-102 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLink.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:88\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"718ae00b552308b81ba2489ef65590dbbee8662b7ccd09ee013c610b8c3fc59b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Transmission/Sources/DestinationLink.swift:104-116 | Sources/Transmission/Sources/PresentationLink.swift:106-118 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLink.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:104\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"46794ae2b7817a488ae9c4af1153f4cc422655ef7f76fbe2a25d89248845459d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkAdapter.swift:67-79 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:68-80 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:67\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e8e2cf334731561bbe34108b93e2ffe0743e846a81babeca261175845ecc99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:268-280 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:268-280 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a184fb09be481f8676b387c38910bb1c5522479a765f6d48b067996c7fb902"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Transmission/Sources/MenuDialogLink.swift:51-63 | Sources/Transmission/Sources/MenuDialogLink.swift:94-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/MenuDialogLink.swift:51\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuDialogLink.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12c750df16b24785b1b68d688fb4b09cb32e4d66d9a188144368a3bc113cdf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Transmission/Sources/Transitions/DestinationLink Transitions/CrossDissolveDestinationLinkTransition.swift:149-161 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/CrossDissolvePresentationLinkTransition.swift:188-200 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/DestinationLink Transitions/CrossDissolveDestinationLinkTransition.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/CrossDissolvePresentationLinkTransition.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/CrossDissolveDestinationLinkTransition.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf8621620229b5cd981513bb5909e1ec8812565f82ffb1da05152e4a799072d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift:178-189 | Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift:62-74 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift:178\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2929cdc86ad2ecdf9126a8121689df0bca41714dd68aca9fc413f043ec66dff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/Transmission/Sources/ContextMenuAccessoryView.swift:245-256 | Sources/Transmission/Sources/ContextMenuAccessoryView.swift:376-386 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/ContextMenuAccessoryView.swift:245\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuAccessoryView.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc524b4a3c0eef53e9619c4452959cd238447618aeae5243ece1139762fdce5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkModifier.swift:111-122 | Sources/Transmission/Sources/PresentationLinkModifier.swift:114-125 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkModifier.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 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 \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift:111\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkModifier.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8c343ab0e5f26e7157899ac927636fb9d91bd9526c5b5c40ec1d9c5979437e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkModifier.swift:127-138 | Sources/Transmission/Sources/PresentationLinkModifier.swift:130-141 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkModifier.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 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 \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift:127\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkModifier.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb1199bc7eab9d644c6c445c68145c081efbab6078620475e3886d234d7bbe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Transmission/Sources/Supporting Files/UIGestureRecognizerDelegateProxy.swift:20-31 | Sources/Transmission/Sources/Supporting Files/UINavigationControllerDelegateProxy.swift:20-31 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Supporting Files/UIGestureRecognizerDelegateProxy.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a44c860498ebb66806dc1a6a7a03262cf71b0a2b48c9f8be47b852ab885eb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Transmission/Sources/Supporting Files/UIGestureRecognizerDelegateProxy.swift:33-44 | Sources/Transmission/Sources/Supporting Files/UINavigationControllerDelegateProxy.swift:33-44 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Supporting Files/UIGestureRecognizerDelegateProxy.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09740bf6e167ad193997997efb221a813675ee2cbce5b02fe51c754422b55b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Transmission/Sources/Transitions/CornerRadiusOptions.swift:873-884 | Sources/Transmission/Sources/Transitions/CornerRadiusOptions.swift:944-955 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/CornerRadiusOptions.swift"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"4727bc4afe5ec67da0803cc0ca8c5b3bbe201dbb7f3f5590b3e00593f3cb24e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift:183-194 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift:208-218 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift:183\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060presentationController\u0060 to \u0060MatchedGeometryPresentationController\u0060 in one and \u0060UIPresentationController\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afb21efb0689b089459cedc3890eedba85ac912eaec52f09b8d8352826cf3e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/Transmission/Sources/DestinationLinkAdapter.swift:1822-1832 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:1725-1735 | Sources/Transmission/Sources/WindowLinkAdapter.swift:340-350 \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 \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:1822\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cd8753119c681b78198e5c6c9ac34067bd10676bd9ffa4610500dcb8997118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Transmission/Sources/ContextMenuLinkAdapter.swift:761-771 | Sources/Transmission/Sources/ContextMenuLinkAdapter.swift:781-791 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e924c30e7b5b8411ba2ed5e5754ce9b6aafb4334c5978524c9df7bfb69247bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Transmission/Sources/DestinationLink.swift:51-61 | Sources/Transmission/Sources/PresentationLink.swift:53-63 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLink.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:51\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"912f71a28af6509537600b7a86a794f32b879efad2ed1dc4ff19ba2de270a028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkModifier.swift:68-78 | Sources/Transmission/Sources/PresentationLinkModifier.swift:71-81 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkModifier.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 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 \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift:68\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkModifier.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c13136258ea73222b62f237ddca0143639cfa5b2d00f8b15e515222e0aa8df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkModifier.swift:82-92 | Sources/Transmission/Sources/PresentationLinkModifier.swift:85-95 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkModifier.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 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 \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift:82\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkModifier.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6b476507b15cb0fe9c99052131b757bdc776d2410c464b29298ac93e233532"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkModifier.swift:97-107 | Sources/Transmission/Sources/PresentationLinkModifier.swift:100-110 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkModifier.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 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 \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift:97\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkModifier.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b4e93ed301fdcaf7dbd69e025d89c01b4a84005eed6da557e395d221006c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Transmission/Sources/DismissDestinationLink.swift:26-36 | Sources/Transmission/Sources/DismissPresentationLink.swift:26-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DismissDestinationLink.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"316dde657aaa5402d2de70c207d18f19cb1c8713f70cbfdf32e2fccd8fa7c704"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift:124-134 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/SlidePresentationLinkTransition.swift:87-97 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift:124\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"422695b601a1962c20e05fc714fbe1c8dc19467494a266043b17aa162fa2635a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/Transmission/Sources/ContextMenuLinkAdapter.swift:47-56 | Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:46-55 | Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:68-77 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/ContextMenuLinkAdapter.swift:47\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8640d5e231eae694653ec99a1058372a9f96e6e6dd182322c207df88dbd1035a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Sources/Transmission/Sources/DestinationSourceViewLink.swift:198-206 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:199-207 | Sources/Transmission/Sources/WindowLink.swift:169-178 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:198\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edcc1cc94711f9bd47f72696f2845394d9bef23d824e881503fc64057d99675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:108-117 | Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:135-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:108\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuSourceViewLink.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"926bab0e1d55f0788d68fcf62fa6a53be594aef0286de45593a5492734642986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Transmission/Sources/DestinationLink.swift:38-47 | Sources/Transmission/Sources/PresentationLink.swift:40-49 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLink.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:38\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44b2847f3c90a57193e61f6e0c058a15e03a661c8aae392fb1ac06e150436ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Transmission/Sources/MenuSourceViewLink.swift:100-109 | Sources/Transmission/Sources/MenuSourceViewLink.swift:138-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift:100\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuSourceViewLink.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"851286df2eb660aa27566ad357104209e58fda19747dc5e53a48e4af5d45398d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Sources/Transmission/Sources/DestinationLink.swift:51-59 | Sources/Transmission/Sources/DestinationSourceViewLink.swift:71-79 | Sources/Transmission/Sources/PresentationLink.swift:53-61 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:72-80 | Sources/Transmission/Sources/WindowLink.swift:53-61 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:51\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9b1b1ed03303de1cfd463379b058389d40d82881ed1d7f30c19bc3e9b66a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): Sources/Transmission/Sources/DestinationLink.swift:138-146 | Sources/Transmission/Sources/DestinationSourceViewLink.swift:175-182 | Sources/Transmission/Sources/PresentationLink.swift:140-148 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:176-183 | Sources/Transmission/Sources/WindowLink.swift:148-155 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:138\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea666f5e027398982b1781033d751b031a97ad409c5aaf51d6a4fd5a5a2790e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/Transmission/Sources/DestinationSourceViewLink.swift:55-63 | Sources/Transmission/Sources/DestinationSourceViewLink.swift:73-81 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:56-64 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:74-82 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:55\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c162cb1c20df76835e9042088a291ea59c4220322b50f898ddb418ea9521c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Transmission/Sources/DestinationSourceViewLink.swift:153-161 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:154-162 | Sources/Transmission/Sources/WindowLink.swift:128-136 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:153\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"64dd8cf014a6e82a7871cd40629eb7197f9a3a8f6179f64a5a4f5a7d41b2a87d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Transmission/Sources/DestinationSourceViewLink.swift:243-251 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:244-252 | Sources/Transmission/Sources/WindowLink.swift:210-218 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:243\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"814e0f8dc2a498f9835b14aefb2f9e5b369a5a51352f59e9350390b2cd705469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/MenuDialogLink.swift:31-39 | Sources/Transmission/Sources/MenuDialogLink.swift:72-80 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/MenuDialogLink.swift:31\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuDialogLink.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f89d089c7aaeb632163429537b436916fe341d85b7d6b80b7b7821273c97f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/MenuLink.swift:247-255 | Sources/Transmission/Sources/MenuSourceViewLink.swift:423-431 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/MenuLink.swift\u0060 and \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 99 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":"Sources/Transmission/Sources/MenuLink.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"53530a4acf8194f25a243c2be64f60b186c89ad13a79d9cee0b4827e2cd94334"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/PresentationLinkAdapter.swift:1277-1285 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:1300-1308 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/PresentationLinkAdapter.swift:1277\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"501b4519b886dda2dcd04014f717171778c59a70fe3bf1f6fe670eed68ee77a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Sources/Transmission/Sources/DestinationLink.swift:175-182 | Sources/Transmission/Sources/DestinationSourceViewLink.swift:220-227 | Sources/Transmission/Sources/PresentationLink.swift:177-184 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:221-228 | Sources/Transmission/Sources/WindowLink.swift:189-196 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060Sources/Transmission/Sources/DestinationLink.swift:175\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6504c9360678726d6d6dbaa7b0577de3e42a68315bf6daa8a6bfe9ccc7afd9ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/Transmission/Sources/DestinationSourceViewLink.swift:223-230 | Sources/Transmission/Sources/DestinationSourceViewLink.swift:246-253 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:224-231 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:247-254 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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 \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift:223\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b60a9a923736ccec8f3c96d7441d8fc39c29f650e0bcea2a1b6b392517201c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 3): Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift:33-40 | Sources/Transmission/Sources/Transitions/View Controller Transitions/MatchedGeometryViewControllerTransition.swift:48-53 | Sources/Transmission/Sources/Transitions/View Controller Transitions/ViewControllerTransition.swift:202-209 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78021725a7a47c890c914188fb3be5597bcb6f38b592e6fb3e3780cddeec106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Transmission/Sources/ContextMenuLinkAdapter.swift:38-45 | Sources/Transmission/Sources/ContextMenuSourceViewLink.swift:59-66 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/ContextMenuLinkAdapter.swift:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"86423f15f9566892b1bff8c1da1310c918d407bd4137d0c4f1a5c25bac91f5a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Transmission/Sources/Transitions/DestinationLink Transitions/ZoomDestinationLinkTransition.swift:18-25 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/ZoomPresentationLinkTransition.swift:20-27 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Transitions/DestinationLink Transitions/ZoomDestinationLinkTransition.swift:18\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/ZoomDestinationLinkTransition.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35c5147b5c03be103118c6eb909f5d088d782eb956069feac53b96085c537fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 3): Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift:25-32 | Sources/Transmission/Sources/Transitions/View Controller Transitions/SlideTransitionAnimator.swift:26-33 | Sources/Transmission/Sources/Transitions/View Controller Transitions/ViewControllerTransition.swift:197-201 \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 \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift:25\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ff035eea8d8591efe01451b818f830bc890b76723b0991b6371740ae6d30be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 3): Sources/Transmission/Sources/DestinationLinkAdapter.swift:361-367 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:609-611 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:632-638 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/PresentationLinkAdapter.swift:609\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b00b68b47250eff98695355642c0b0dc249abc85cef8d37124640b6acbcda5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Transmission/Sources/MenuElement.swift:941-947 | Sources/Transmission/Sources/MenuElementView.swift:130-136 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/MenuElement.swift:941\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuElement.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d690b46a85a647394d4ceabb4ceb9d8b4a3b1f5f80732d4488e30fd507f9ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Transmission/Sources/ShareSheetLink.swift:71-77 | Sources/Transmission/Sources/ShareSheetLink.swift:85-91 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/ShareSheetLink.swift:71\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ShareSheetLink.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9ab2f0b2e3dcfb5908f267b521fec39bcbce1ffb782d1cd2a1ed90b81698f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift:112-119 | Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift:28-34 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift:112\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, \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift:109\u0060 calls \u0060available\u0060 and \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift:26\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d1ab1ab5817ef7abc5df324cba8da905870c8e98273051066ce8491d2ff5b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Example/Example/DynamicIslandTransition.swift:175-180 | Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift:141-146 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift:120-125 | Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift:35-40 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"Example/Example/DynamicIslandTransition.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de53901ce6b7c4bd8f8d5c8574de4b06ed6a7464d74e51eaa0eb2f4ed4fb85a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift:33-38 | Sources/Transmission/Sources/Transitions/View Controller Transitions/MatchedGeometryViewControllerTransition.swift:48-53 | Sources/Transmission/Sources/Transitions/View Controller Transitions/SlideTransitionAnimator.swift:34-39 | Sources/Transmission/Sources/Transitions/View Controller Transitions/ViewControllerTransition.swift:202-207 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/CrossDissolveTransitionAnimator.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"42de56959720801ca2711635f678b04e86e7958e25d808c9cfdd8a4c1a93ec12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Example/Example/DynamicIslandTransition.swift:167-174 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift:113-119 | Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift:29-34 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Example/DynamicIslandTransition.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift:109\u0060 calls \u0060available\u0060 and \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift:26\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":"Example/Example/DynamicIslandTransition.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa98f9187b4a2ca27d0c06d1617912c953653e099f5c15fcb5eb752bbf869ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Transmission/Sources/MenuDialogLink.swift:69-74 | Sources/Transmission/Sources/MenuDialogLinkModifier.swift:167-173 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuDialogLink.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3970e8bc9032ac1e0035d8d3d4675b4db52a40c3c603a54bf7d95ddd9ddcda57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Transmission/Sources/MenuDialogLink.swift:91-96 | Sources/Transmission/Sources/MenuDialogLinkModifier.swift:192-198 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuDialogLink.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55487337d67597590b91704c08979cd8c1d2d12783d5a115f379d3783fe679b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Example/Example/DynamicIslandTransition.swift:169-174 | Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift:135-140 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/PopoverPresentationLinkTransition.swift:114-119 | Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift:30-34 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/View Controller Transitions/PresentationControllerTransition.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Example/Example/DynamicIslandTransition.swift:169\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":"Example/Example/DynamicIslandTransition.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"996016a476fcf0f15ac4ac77ae6b0f40259a7d67309a04481a4661f422714b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Transmission/Sources/DestinationLinkAdapter.swift:353-357 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:603-607 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:624-628 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:353\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ae9e4d2436149f4f7eba388aba6192ddb5076bb12130ca462c2edc73cc39c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkModifier.swift:285-350 | Sources/Transmission/Sources/WindowLinkModifier.swift:310-375 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkModifier.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dcb860f10b8e81ab6ed8c3f46ba2627b48535f5fc7b5c19a32d7d614f1fcaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (81 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkPath.swift:15-121 | Sources/Transmission/Sources/PresentationLinkPath.swift:25-105 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkPath.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkPath.swift\u0060 as WHOLE FILES: 89% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060Sources/Transmission/Sources/DestinationLinkPath.swift:15\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkPath.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf67b8212e8560c4301d1754e8df4f387fa470d59daf18a276a41d87f5b321e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): Sources/Transmission/Sources/ContextMenuLinkAdapter.swift:129-136 | Sources/Transmission/Sources/DestinationLinkAdapter.swift:200-207 | Sources/Transmission/Sources/MenuLink.swift:129-136 | Sources/Transmission/Sources/MenuSourceViewLink.swift:253-260 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:201-208 | Sources/Transmission/Sources/TransitionLinkAdapter.swift:213-220 | Sources/Transmission/Sources/TransitionSourceHostingView.swift:319-326 | Sources/Transmission/Sources/VisualEffectView.swift:513-520 \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 8 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c420de892f1528044d4d12ff279abefc0369b54c5ee6d1fe927c863c5f19818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): Sources/Transmission/Sources/ContextMenuLinkAdapter.swift:138-144 | Sources/Transmission/Sources/DestinationLinkAdapter.swift:209-215 | Sources/Transmission/Sources/MenuLink.swift:138-144 | Sources/Transmission/Sources/MenuSourceViewLink.swift:262-268 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:210-216 | Sources/Transmission/Sources/TransitionLinkAdapter.swift:222-228 | Sources/Transmission/Sources/TransitionSourceHostingView.swift:328-334 | Sources/Transmission/Sources/VisualEffectView.swift:522-528 \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 8 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Transmission/Sources/DestinationLinkAdapter.swift:217\u0060 calls \u0060_modifyBridgedViewInputs\u0060, \u0060bridgeHostingView\u0060 and \u0060Sources/Transmission/Sources/TransitionSourceHostingView.swift:335\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6f45411ba14deec34ab5405d107972e20ea4952de4656304076377e94509e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Transmission/Sources/DestinationCoordinator.swift:28-38 | Sources/Transmission/Sources/PresentationCoordinator.swift:30-40 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationCoordinator.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationCoordinator.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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":"Sources/Transmission/Sources/DestinationCoordinator.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0e81d18ff1f876615e12d9c8a6d6925b19dacb7a61ad5e477ab855cb2cf6c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Transmission/Sources/DestinationCoordinator.swift:40-49 | Sources/Transmission/Sources/PresentationCoordinator.swift:42-51 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationCoordinator.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationCoordinator.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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":"Sources/Transmission/Sources/DestinationCoordinator.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee03fec637cff70a02c9f95b13e232615f69dcca38598a9c2fbed55dcd9912c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Transmission/Sources/DestinationCoordinator.swift:59-70 | Sources/Transmission/Sources/PresentationCoordinator.swift:61-72 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationCoordinator.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationCoordinator.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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":"Sources/Transmission/Sources/DestinationCoordinator.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df7a70f221224e7b67422dd082dfa513ba63e3c95a95cae3f5f29b5507dd65b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/Transmission/Sources/DestinationLinkAdapter.swift:22-27 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:22-27 | Sources/Transmission/Sources/TransitionLinkAdapter.swift:20-25 | Sources/Transmission/Sources/WindowLinkAdapter.swift:21-26 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3b59bc9372435fdf79e70999d734118b373fbe8e1373688eac5287ed7c0cdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkAdapter.swift:1834-1842 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:1737-1745 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1834}}}],"partialFingerprints":{"codehealthFindingId/v1":"740ddb7faf82476fda8f4034249dee0cc9939431cce8141f0a42170d6724fa1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Transmission/Sources/DestinationLinkModifier.swift:278-283 | Sources/Transmission/Sources/PresentationLinkModifier.swift:281-286 | Sources/Transmission/Sources/WindowLinkModifier.swift:303-308 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkModifier.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 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":"Sources/Transmission/Sources/DestinationLinkModifier.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf528d93edeb2a6c0646872fc8ece35131590dcefbf8e2cddf85bf316944a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkPathAdapter.swift:93-101 | Sources/Transmission/Sources/PresentationLinkPathAdapter.swift:92-100 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkPathAdapter.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkPathAdapter.swift\u0060 as WHOLE FILES: this scan already matched 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkPathAdapter.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b846218b5ac3e82e28af6e33d8ace592cf4289f4c730e7eb68f13f015cdabfa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/Transmission/Sources/Extensions/CALayer\u002BCornerRadii.swift:46-56 | Sources/Transmission/Sources/Extensions/UISheetPresentationController\u002BExtensions.swift:224-234 | Sources/Transmission/Sources/Extensions/UISheetPresentationController\u002BExtensions.swift:236-246 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Extensions/CALayer\u002BCornerRadii.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e885ba83e2f59379d9566b5ba17e6e8f133387ad8a8c763a045581606fdb126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Transmission/Sources/Extensions/UIAlertController\u002BExtensions.swift:22-31 | Sources/Transmission/Sources/MenuElementView.swift:183-192 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Extensions/UIAlertController\u002BExtensions.swift:22\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Extensions/UIAlertController\u002BExtensions.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2fb9494f6e03d1b461637114ed4f2a732b5264e05094db74a81dae7fe00465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Transmission/Sources/Extensions/UIContextMenuConfiguration\u002BExtensions.swift:22-33 | Sources/Transmission/Sources/Extensions/UITargetedPreview\u002BExtensions.swift:22-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/Extensions/UIContextMenuConfiguration\u002BExtensions.swift:22\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Extensions/UIContextMenuConfiguration\u002BExtensions.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d912f952e71769541e9c6a28f5e21126857a6a406e6417d428b6b56489e924"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/Transmission/Sources/Extensions/UIPopoverPresentationController\u002BExtensions.swift:11-21 | Sources/Transmission/Sources/Extensions/UISheetPresentationController\u002BExtensions.swift:248-258 | Sources/Transmission/Sources/Extensions/UISheetPresentationController\u002BExtensions.swift:260-270 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Extensions/UIPopoverPresentationController\u002BExtensions.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd5188c7472b90af22f7a2830aaca11194ca48432935eba74663500fbf4fddd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Transmission/Sources/Hosting/DestinationHostingController.swift:17-26 | Sources/Transmission/Sources/Hosting/PresentationHostingWindowController.swift:76-86 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Hosting/DestinationHostingController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f130057ae808a922c440170dcb09ac060071d85b8b967e7b0a03ef4a13bb4a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Transmission/Sources/MenuLink.swift:213-220 | Sources/Transmission/Sources/MenuSourceViewLink.swift:367-374 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/MenuLink.swift\u0060 and \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 99 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":"Sources/Transmission/Sources/MenuLink.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9128468fa35b900b14baeb301869868a08742b2ad765c7684e488fbcd30c038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/MenuLink.swift:263-271 | Sources/Transmission/Sources/MenuSourceViewLink.swift:439-447 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/MenuLink.swift\u0060 and \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 99 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":"Sources/Transmission/Sources/MenuLink.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9ed993d1f105ab55542ed9bc483149743ca4ffec2690efe32933f04e3d727a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Transmission/Sources/MenuLink.swift:273-280 | Sources/Transmission/Sources/MenuSourceViewLink.swift:449-456 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/MenuLink.swift\u0060 and \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 99 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":"Sources/Transmission/Sources/MenuLink.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a380987cf655d0fb81ccc4de827477cdc85a72b7ad988c18977aba91f3a8b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Transmission/Sources/MenuLink.swift:282-289 | Sources/Transmission/Sources/MenuSourceViewLink.swift:458-465 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/MenuLink.swift\u0060 and \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 99 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":"Sources/Transmission/Sources/MenuLink.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7a5d43e31435edd406f85ab049c9e55b0ab90d170012a9b383adbcf58a450a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/MenuLink.swift:291-299 | Sources/Transmission/Sources/MenuSourceViewLink.swift:467-475 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/MenuLink.swift\u0060 and \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 99 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":"Sources/Transmission/Sources/MenuLink.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32586550b130795b99fc5cbfb89716afc6eaf293332f239611a3454ab657f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/MenuLink.swift:301-309 | Sources/Transmission/Sources/MenuSourceViewLink.swift:477-485 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/MenuLink.swift\u0060 and \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 99 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":"Sources/Transmission/Sources/MenuLink.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"69943119ad93ff891e722ad88b3f84d6db798af7766d1a0feef77566ce181d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Transmission/Sources/MenuLink.swift:311-322 | Sources/Transmission/Sources/MenuSourceViewLink.swift:487-498 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/MenuLink.swift\u0060 and \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 99 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":"Sources/Transmission/Sources/MenuLink.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f18c543433eac5366ff3d2a02ec65164c30a3ffb3ff81f581b9db807e8bbb43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Transmission/Sources/MenuLink.swift:324-335 | Sources/Transmission/Sources/MenuSourceViewLink.swift:500-511 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/MenuLink.swift\u0060 and \u0060Sources/Transmission/Sources/MenuSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 99 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":"Sources/Transmission/Sources/MenuLink.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30975385f50aaad5e7d6ace172a15841e077c50efab33a14f036def1028d382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/Transitions/DestinationLink Transitions/CrossDissolveDestinationLinkTransition.swift:68-76 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/CrossDissolvePresentationLinkTransition.swift:65-73 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/DestinationLink Transitions/CrossDissolveDestinationLinkTransition.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/CrossDissolvePresentationLinkTransition.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/CrossDissolveDestinationLinkTransition.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4830e379f601d92c9e9bb360d5be5d22303eb708de78c88c15e06f3aab14bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Transmission/Sources/Transitions/DestinationLink Transitions/ZoomDestinationLinkTransition.swift:109-113 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/ZoomPresentationLinkTransition.swift:133-137 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/ZoomDestinationLinkTransition.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"59662c1b3181ede1d0400715720a51aff3610a22ff4b55835e8f17cdeb7428c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Transmission/Sources/DestinationCoordinator.swift:115-119 | Sources/Transmission/Sources/PresentationCoordinator.swift:117-121 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationCoordinator.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationCoordinator.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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":"Sources/Transmission/Sources/DestinationCoordinator.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21bf3d772c755fd2d20e1a8cc5cd06b3a4c5ec30b005cb43baa9c1f1f553500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/Transmission/Sources/DestinationLink.swift:63-79 | Sources/Transmission/Sources/PresentationLink.swift:65-81 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLink.swift\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 165 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":"Sources/Transmission/Sources/DestinationLink.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c9fc4d18bac9b729b97c980b189a3396bd131ccf386ee8e104f359d284ca70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkAdapter.swift:81-97 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:82-98 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb689f2decfc63f23422cf11d868abe172f223a5af140304b88af1513f27ebd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkAdapter.swift:463-472 | Sources/Transmission/Sources/PresentationLinkAdapter.swift:813-822 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060options\u0060 to \u0060DestinationLinkTransition.Options\u0060 in one and \u0060PresentationLinkTransition.Options\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6eff0601f0ac218079cffe587b9382582eef8f18d33bc8583790f809a345412"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkModifier.swift:33-43 | Sources/Transmission/Sources/PresentationLinkModifier.swift:36-46 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkModifier.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 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":"Sources/Transmission/Sources/DestinationLinkModifier.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0414a229ffab1cdf41fa047396d13adefe93b5885d2be291e40e4ec5e6b71f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkModifier.swift:45-60 | Sources/Transmission/Sources/PresentationLinkModifier.swift:48-63 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkModifier.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkModifier.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 90 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":"Sources/Transmission/Sources/DestinationLinkModifier.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1b0c3a5881fdfdf60ba8dfde60a4f47f720eed83578ee6c7ef551ce1131aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkPathAdapter.swift:37-52 | Sources/Transmission/Sources/PresentationLinkPathAdapter.swift:36-51 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationLinkPathAdapter.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationLinkPathAdapter.swift\u0060 as WHOLE FILES: this scan already matched 5 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkPathAdapter.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa504e49c0302daa7900f5c74b94d9612163bb3847b195208c5cfe7b9c2ef7e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/DestinationLinkTransition.swift:77-85 | Sources/Transmission/Sources/PresentationLinkTransition.swift:112-122 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkTransition.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f955bfcddf9294f4d2a56f6058c30c2cb9b92b496d61f21cb16c3f5bf4088d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/Transmission/Sources/DestinationSourceViewLink.swift:85-102 | Sources/Transmission/Sources/PresentationSourceViewLink.swift:86-103 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/DestinationSourceViewLink.swift\u0060 and \u0060Sources/Transmission/Sources/PresentationSourceViewLink.swift\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 272 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":"Sources/Transmission/Sources/DestinationSourceViewLink.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7495df03507cf9a2168f6bda9bccf0541ccb8468641101c313a6ae2068f037"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/DismissDestinationLink.swift:38-46 | Sources/Transmission/Sources/DismissPresentationLink.swift:38-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DismissDestinationLink.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e215e9993a7696b928e2ed2ab6e9cd496a677d26956b4ddd2b23512461ddec69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/MenuButton.swift:215-223 | Sources/Transmission/Sources/MenuPicker.swift:49-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuButton.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"703e1bb209474a8bd587c34713449b88776712a3f71e0d0da131708ed8a28b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Transmission/Sources/Transitions/DestinationLink Transitions/MatchedGeometryDestinationLinkTransition.swift:19-27 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift:19-27 \u2014 before extracting anything, compare \u0060Sources/Transmission/Sources/Transitions/DestinationLink Transitions/MatchedGeometryDestinationLinkTransition.swift\u0060 and \u0060Sources/Transmission/Sources/Transitions/PresentationLink Transitions/MatchedGeometryPresentationLinkTransition.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060options\u0060 to \u0060DestinationLinkTransition.Options = .init()\u0060 in one and \u0060PresentationLinkTransition.Options = .init()\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/MatchedGeometryDestinationLinkTransition.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0506d0983edce4d38c795a9c8f08f55003d03ee65ba0aa6178af5e948d39f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Transmission/Sources/Transitions/DestinationLink Transitions/SlideDestinationLinkTransition.swift:107-114 | Sources/Transmission/Sources/Transitions/Presentation Controllers/ToastPresentationController.swift:124-131 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/SlideDestinationLinkTransition.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94a66b9a801e526d71242ded58615d66c6321b755ebed6a24a6cd7cfc0cc012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/Transmission/Sources/Transitions/DestinationLink Transitions/ZoomDestinationLinkTransition.swift:42-51 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/SheetPresentationLinkTransition.swift:87-96 | Sources/Transmission/Sources/Transitions/PresentationLink Transitions/ZoomPresentationLinkTransition.swift:44-53 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060options\u0060 to \u0060DestinationLinkTransition.Options = .init()\u0060 in one and \u0060PresentationLinkTransition.Options = .init()\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/DestinationLink Transitions/ZoomDestinationLinkTransition.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9ffcdf67ec9da1cfc5b60c1850f64c11cf06da3220b1bb7b5876c8f714df27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Transmission/Sources/MenuGroup.swift:242-247 | Sources/Transmission/Sources/MenuGroup.swift:252-257 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Transmission/Sources/MenuGroup.swift:242\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Transmission/Sources/MenuGroup.swift:248\u0060 calls \u0060toUIKit\u0060 and \u0060Sources/Transmission/Sources/MenuGroup.swift:258\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuGroup.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0030e88fc8249470db66ac7c771222d53cb2cb2e3a7c21838b15515f37887f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (122 shared lines): Example/Example/DestinationLinkExamples.swift:58-306 | Example/Example/PresentationLinkExamples.swift:92-502 \u2014 These two members are variants of one another: 122 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":"Example/Example/DestinationLinkExamples.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d6da78f02a9337fbc3333a366839e8000aa6e89324b531f7a1c3fa7df50e61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Example/Example/PresentationLinkExamples.swift:92-502 | Example/Example/PresentationLinkExamples.swift:612-690 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Example/PresentationLinkExamples.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ec4a7eadb4f44f907d67307cafe88c679316a055a0e007af3ee523e289545f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Example/Example/PresentationLinkExamples.swift:465-497 | Example/Example/PresentationLinkExamples.swift:655-687 \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 \u0060Example/Example/PresentationLinkExamples.swift:465\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Example/Example/PresentationLinkExamples.swift:498\u0060 calls \u0060buttonStyle\u0060, \u0060frame\u0060 and \u0060Example/Example/PresentationLinkExamples.swift:688\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":"Example/Example/PresentationLinkExamples.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"473536755b56cdd25bcd8351f233fbab5b5fdef46f72c9d3dea67f7d488980a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Example/Example/DestinationLinkExamples.swift:113-135 | Example/Example/PresentationLinkExamples.swift:198-220 \u2014 before extracting anything, compare \u0060Example/Example/DestinationLinkExamples.swift\u0060 and \u0060Example/Example/PresentationLinkExamples.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 105 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 \u0060Example/Example/DestinationLinkExamples.swift:113\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":"Example/Example/DestinationLinkExamples.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc40e58c62d1382086d7070bc3aff5bf17da11eb51567de89d429b448f8b7d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): Example/Example/PresentationLinkExamples.swift:252-268 | Example/Example/PresentationLinkExamples.swift:271-289 \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 \u0060Example/Example/PresentationLinkExamples.swift:252\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Example/PresentationLinkExamples.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8773fda043e0fe4e5b3674421e840f51d552c54173d841a8b65efa99f642ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Example/Example/DestinationLinkExamples.swift:167-183 | Example/Example/PresentationLinkExamples.swift:252-268 | Example/Example/PresentationLinkExamples.swift:271-287 \u2014 before extracting anything, compare \u0060Example/Example/DestinationLinkExamples.swift\u0060 and \u0060Example/Example/PresentationLinkExamples.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 105 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 \u0060Example/Example/DestinationLinkExamples.swift:167\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":"Example/Example/DestinationLinkExamples.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"794a3fbb2fce699e206e25c659703b4e7b9e462823c494f7eec9f7d35674a989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): Example/Example/DestinationLinkExamples.swift:203-218 | Example/Example/DestinationLinkExamples.swift:234-249 | Example/Example/DestinationLinkExamples.swift:267-282 | Example/Example/PresentationLinkExamples.swift:421-436 \u2014 before extracting anything, compare \u0060Example/Example/DestinationLinkExamples.swift\u0060 and \u0060Example/Example/PresentationLinkExamples.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 105 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 \u0060Example/Example/DestinationLinkExamples.swift:203\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":"Example/Example/DestinationLinkExamples.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef50b654099f7a13be878f1be444bb50a1bce702a5ba2c34449d52864e17db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Example/Example/DestinationLinkExamples.swift:70-85 | Example/Example/PresentationLinkExamples.swift:108-123 \u2014 before extracting anything, compare \u0060Example/Example/DestinationLinkExamples.swift\u0060 and \u0060Example/Example/PresentationLinkExamples.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 105 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 \u0060Example/Example/DestinationLinkExamples.swift:70\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":"Example/Example/DestinationLinkExamples.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0566a06ecabef801dd14bf741d479c2bdae211ac94ea1b8553333adef604bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Example/Example/QuickLookPreviewLinkExamples.swift:18-32 | Example/Example/QuickLookPreviewLinkExamples.swift:37-51 \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 \u0060Example/Example/QuickLookPreviewLinkExamples.swift:18\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":"Example/Example/QuickLookPreviewLinkExamples.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ebf08ab31b6841d1acd3d745300e81ff35fee4e010f05287b0e7dc5c60ef37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Example/Example/ShareSheetLinkExamples.swift:29-43 | Example/Example/ShareSheetLinkExamples.swift:49-63 \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 \u0060Example/Example/ShareSheetLinkExamples.swift:29\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":"Example/Example/ShareSheetLinkExamples.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6efc8c0c9c6f7632a53b09f273ab79d45ee850028736ccbe1c5aea7b21630d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Example/Example/DestinationLinkExamples.swift:150-163 | Example/Example/PresentationLinkExamples.swift:235-248 \u2014 before extracting anything, compare \u0060Example/Example/DestinationLinkExamples.swift\u0060 and \u0060Example/Example/PresentationLinkExamples.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 105 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 \u0060Example/Example/DestinationLinkExamples.swift:150\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":"Example/Example/DestinationLinkExamples.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed14425aaf61dbcaab2c2e464279cb93e8f42d5e13cf1346287e39933153132"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Example/Example/PresentationLinkExamples.swift:393-405 | Example/Example/PresentationLinkExamples.swift:442-454 \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 \u0060Example/Example/PresentationLinkExamples.swift:393\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":"Example/Example/PresentationLinkExamples.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"3549ace2dc28a3fda34a253e717b684b658b58d961b44a6c3eef1ba264ac42e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Example/Example/DestinationLinkExamples.swift:88-98 | Example/Example/PresentationLinkExamples.swift:145-155 \u2014 before extracting anything, compare \u0060Example/Example/DestinationLinkExamples.swift\u0060 and \u0060Example/Example/PresentationLinkExamples.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 105 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 \u0060Example/Example/DestinationLinkExamples.swift:88\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":"Example/Example/DestinationLinkExamples.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a621d1a9e550782d4d5f2685fbc77afbbd345d25eb17a99510fec02004ebbfb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Example/Example/DestinationLinkExamples.swift:110-120 | Example/Example/DestinationLinkExamples.swift:147-157 \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 \u0060Example/Example/DestinationLinkExamples.swift:110\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":"Example/Example/DestinationLinkExamples.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d739c964f0db6717c47f1b8460c9884b7b24f57df3db444d3ad08451b51ed96f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Example/Example/PresentationLinkExamples.swift:195-205 | Example/Example/PresentationLinkExamples.swift:232-242 \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 \u0060Example/Example/PresentationLinkExamples.swift:195\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":"Example/Example/PresentationLinkExamples.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f65217e5a288b673e8eba5dac7df2d608ed40adf1e5d7463d5d5019b74ce8a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Example/Example/DestinationLinkExamples.swift:58-65 | Example/Example/PresentationLinkExamples.swift:92-99 \u2014 before extracting anything, compare \u0060Example/Example/DestinationLinkExamples.swift\u0060 and \u0060Example/Example/PresentationLinkExamples.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 105 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 \u0060Example/Example/DestinationLinkExamples.swift:58\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":"Example/Example/DestinationLinkExamples.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece228d533ea4838fa5a59c01e7fff6dcf2463d5890e2aa251880860bdb690ed"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIViewController (LCOM4 12): UIViewController\u0027s methods fall into 12 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 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/StatusBarModifier.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"000a04e0c245ac90c017568283b82bbe98a0a980761416dcdc3e7d23486fbe5a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UINavigationController (LCOM4 10): UINavigationController\u0027s methods fall into 10 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 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de79ac487e406036ac8bc0fd21dc4ea6e44c6291fc1ef8e261dbb5fa93dd798"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIView (LCOM4 9): UIView\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":"Sources/Transmission/Sources/ContextMenuAccessoryView.swift"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dc144390dace205bfda32c1f36dc0472ed29fe5c034d0e2cca38728801f8ec"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MenuLinkSourceView (LCOM4 6): MenuLinkSourceView\u0027s methods fall into 6 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 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuSourceViewLink.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"4201b1dfa1788fb8bb2c70501de35834bec42870320539b93e10ce5029365dd0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MatchedGeometryPresentationController (LCOM4 5): MatchedGeometryPresentationController\u0027s methods fall into 5 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 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/MatchedGeometryPresentationController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e792b689b9271922669c4f221c3feca385e965e87a19268d051aabb8bc82073"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MenuLinkView (LCOM4 4): MenuLinkView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/MenuLink.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9005c2466db0e85895ae6d5864540de3ef5440aedb3c578553245085767e9152"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DynamicIslandPresentationController (LCOM4 4): DynamicIslandPresentationController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Example/Example/DynamicIslandTransition.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde3e0c865ad666875657d124598373cce877d18fce4fec11dc03eff476a59f0"}},{"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":"D9","level":"note","message":{"text":"No tests found: No test suite could be collected \u2014 no discoverable tests to count. If this repository does test, wiring the suite to a framework a runner can collect (XCTest or Swift Testing) is what makes it countable here; a pipeline step that invokes a runner is not evidence on its own, because a runner over an empty suite passes. Tests written as plain executables or shell/PowerShell harnesses are not collectible this way and are not scored here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9bf64cbb5a4ae13d6bcd01fa3bc8d2879d860c73bc67f176ee3c2cecb8adce3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Transmission/Sources/PresentationLinkAdapter.swift: Sources/Transmission/Sources/PresentationLinkAdapter.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in PresentationLinkCoordinatorAdapter.onUpdate at line 394. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-19..2026-09-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-19 14:37:24 -07:00\u0027 --until=\u00272026-09-17 14:37:24 -07:00\u0027 --full-history --no-merges -- Sources/Transmission/Sources/PresentationLinkAdapter.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/PresentationLinkAdapter.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79ea3eb096356efbb7fa45b4c39c90e58bf916b3be58f3bc8f9c23340edd14e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Transmission/Sources/DestinationLinkAdapter.swift: Sources/Transmission/Sources/DestinationLinkAdapter.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in DestinationLinkDelegateProxy.panGestureDidChange at line 1093. 1 of those changes was a fix/bug commit, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-19..2026-09-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-19 14:37:24 -07:00\u0027 --until=\u00272026-09-17 14:37:24 -07:00\u0027 --full-history --no-merges -- Sources/Transmission/Sources/DestinationLinkAdapter.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/DestinationLinkAdapter.swift"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb49f8d79d71298fc11ab5c29bdbacfe6d46208763e56f25732dc5d7364e1247"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift: Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 104 in InteractivePresentationController.onPanGesture at line 244. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-19..2026-09-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-19 14:37:24 -07:00\u0027 --until=\u00272026-09-17 14:37:24 -07:00\u0027 --full-history --no-merges -- Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/InteractivePresentationController.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16416f32dd3a4593d440f0c6f4587146c2c8937a1a0438a611c75bb0d00c723"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Transmission/Sources/Transitions/View Controller Transitions/MatchedGeometryViewControllerTransition.swift: Sources/Transmission/Sources/Transitions/View Controller Transitions/MatchedGeometryViewControllerTransition.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in MatchedGeometryViewControllerTransitionAnimator.animateTransition at line 39. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-19..2026-09-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-19 14:37:24 -07:00\u0027 --until=\u00272026-09-17 14:37:24 -07:00\u0027 --full-history --no-merges -- Sources/Transmission/Sources/Transitions/View Controller Transitions/MatchedGeometryViewControllerTransition.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/View Controller Transitions/MatchedGeometryViewControllerTransition.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd21bb2ac898a8a0831b725b1b3925310d34e951bc359b9ac145192ec9005701"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Transmission/Sources/ContextMenuAccessoryView.swift: Sources/Transmission/Sources/ContextMenuAccessoryView.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 59 in UIContextMenuInteraction.makeUIAccessoryView at line 198. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-19..2026-09-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-19 14:37:24 -07:00\u0027 --until=\u00272026-09-17 14:37:24 -07:00\u0027 --full-history --no-merges -- Sources/Transmission/Sources/ContextMenuAccessoryView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuAccessoryView.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f456a8d327095b807b85dce862c270920f37216cef4c9d8f8e51538f27dc1b23"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Transmission/Sources/Hosting/PresentationHostingController.swift: Sources/Transmission/Sources/Hosting/PresentationHostingController.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in PresentationHostingController.viewDidLayoutSubviews at line 32. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-19..2026-09-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-19 14:37:24 -07:00\u0027 --until=\u00272026-09-17 14:37:24 -07:00\u0027 --full-history --no-merges -- Sources/Transmission/Sources/Hosting/PresentationHostingController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Hosting/PresentationHostingController.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8287cdfb1d1e803ba1fa10eef9f331d7e6ef6a293910f57675783db7789e25f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Transmission/Sources/ContextMenuLinkAdapter.swift: Sources/Transmission/Sources/ContextMenuLinkAdapter.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ContextMenuLinkCoordinator.onUpdate at line 229. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-19..2026-09-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-19 14:37:24 -07:00\u0027 --until=\u00272026-09-17 14:37:24 -07:00\u0027 --full-history --no-merges -- Sources/Transmission/Sources/ContextMenuLinkAdapter.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a3372e181937272b3eee8b9831d5651a2e032a6dcb59aada57b5df7cfb57eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Transmission/Sources/Transitions/Presentation Controllers/CardPresentationController.swift: Sources/Transmission/Sources/Transitions/Presentation Controllers/CardPresentationController.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in CardPresentationController.setCornerRadius at line 227. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-19..2026-09-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-19 14:37:24 -07:00\u0027 --until=\u00272026-09-17 14:37:24 -07:00\u0027 --full-history --no-merges -- Sources/Transmission/Sources/Transitions/Presentation Controllers/CardPresentationController.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/Transitions/Presentation Controllers/CardPresentationController.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b42eb7ed9a6b6c60891f0e254eb9dfaa53fcd8dda36bc6e1e868637d13ddb0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Transmission/Sources/VisualEffectView.swift: Sources/Transmission/Sources/VisualEffectView.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in GlassEffect.makeUIVisualEffect at line 246. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-19..2026-09-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-19 14:37:24 -07:00\u0027 --until=\u00272026-09-17 14:37:24 -07:00\u0027 --full-history --no-merges -- Sources/Transmission/Sources/VisualEffectView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/VisualEffectView.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"a779cfc735566888e539cc0a30016951e5d021dbb58c5fd4b835c82133822818"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Transmission/Sources/WindowLinkAdapter.swift: Sources/Transmission/Sources/WindowLinkAdapter.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in WindowLinkCoordinatorAdapter.onUpdate at line 141. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-19..2026-09-17, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-19 14:37:24 -07:00\u0027 --until=\u00272026-09-17 14:37:24 -07:00\u0027 --full-history --no-merges -- Sources/Transmission/Sources/WindowLinkAdapter.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/WindowLinkAdapter.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f459b27e3112d67572d51bd341fbce7a65004947bb3962d7eec44ebb656f95"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no architecture or design documentation: The document does not mention any architecture or design documentation for Transmission. Add a short Architecture section describing the bridging layer, dependency graph, and how UIKit presentation APIs are exposed to SwiftUI."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"086460f2da112d94904fac5439f54a7780bc7778ff9375a067e428a1cc9a8a4c"}},{"ruleId":"D22","level":"warning","message":{"text":"Semantic duplication with inconsistent naming. \u0060DestinationCoordinator\u0060 uses \u0027pop\u0027 (navigation stack terminology) while \u0060PresentationCoordinator\u0060 uses \u0027dismiss\u0027 (modal terminology). However, both classes expose identical method signatures (\u0060pop/dismiss\u0060, \u0060popToRoot/dismissToRoot\u0060, \u0060popToView/dismissToView\u0060) and likely share the same underlying implementation logic for stack manipulation. This forces developers to learn two different verb sets for the same conceptual action (removing items from a presentation stack).: Unify the naming convention. If the library supports both navigation controllers and modals, consider a unified \u0060StackCoordinator\u0060 or standardizing on one verb (e.g., \u0060pop\u0060 for all stack-like behaviors, or \u0060dismiss\u0060 for all presentation removals) to reduce cognitive load. (signatures: DestinationCoordinator.pop(...) | DestinationCoordinator.popToRoot(...) | DestinationCoordinator.popToView(...) | PresentationCoordinator.dismiss(...) | PresentationCoordinator.dismissToRoot(...) | PresentationCoordinator.dismissToView(...))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"85ec95b8ef30ef0e93a9d11ef7aadd76c74d57d1211a479a76eea4bf816a215f"}},{"ruleId":"D22","level":"warning","message":{"text":"Redundant types with overlapping intent. \u0060DestinationLink\u0060, \u0060PresentationLink\u0060, \u0060MenuDialogLink\u0060, and \u0060ContextMenuLink\u0060 all serve as SwiftUI views that trigger a presentation action. They share nearly identical constructor signatures (transition, animation, isPresented/value bindings, destination/content, label). The distinction between \u0027Destination\u0027 (navigation), \u0027Presentation\u0027 (modal), and \u0027MenuDialog\u0027 (alert/action sheet) is often implementation detail rather than API surface difference, leading to API sprawl where users must choose the correct \u0027Link\u0027 type for the specific UIKit container, despite the SwiftUI usage pattern being identical.: Consolidate into a single \u0060PresentationLink\u0060 or \u0060DestinationLink\u0060 type that accepts a \u0060PresentationStyle\u0060 or \u0060Transition\u0060 enum to determine the underlying UIKit behavior (Navigation vs Modal vs Alert), or provide a single \u0060Link\u0060 type that infers the behavior from the \u0060Transition\u0060 type passed. (signatures: DestinationLink.init(...) | PresentationLink.init(...) | MenuDialogLink.init(...) | ContextMenuLink.init(...))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c4f4d1727450d6d50e767f0bb53dad54e1e7ca8fb7a9b8ab507c07a25a2c4e9"}},{"ruleId":"D22","level":"warning","message":{"text":"Redundant Modifier types. Similar to the Link types, there are distinct Modifier types for every presentation style (\u0060DestinationLinkModifier\u0060, \u0060PresentationLinkModifier\u0060, etc.). They all wrap a view and add presentation logic. This violates the DRY principle and creates maintenance overhead. A user wanting to add a modal presentation to a view must find the specific \u0060PresentationLinkModifier\u0060 rather than using a generic \u0060presentation\u0060 modifier.: Create a single \u0060PresentationModifier\u0060 (or extend an existing generic one) that accepts a \u0060PresentationStyle\u0060 or \u0060Transition\u0060 to handle all presentation types, removing the need for separate modifier types for each UIKit presentation mode. (signatures: DestinationLinkModifier.init(...) | PresentationLinkModifier.init(...) | MenuDialogLinkModifier.init(...) | ContextMenuLinkModifier.init(...))"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5bcf5ebf4ffb32a9ac2f0fb7a9cde2d30478430351adc24a66effed4cb862d8d"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (31116 LoC, 220 public types across 9 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b38720db37cd540e3dc09fe3d5c0b3652d2f9d051cf0e85dbbd366b46c6f1a79"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8729817d98d42eae03b91ddb2679b32cedd1f45b88b226b12f6c9cdf01c36cd2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9658270ba49f37ed04e99ab1263b6393cd42aed8bdfb7aafd9fa1070f5491895"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): ContextMenuLinkCoordinator.onUpdate: \u0060ContextMenuLinkCoordinator.onUpdate\u0060 performs two independent DURABLE writes \u2014 \u0060adapter\u0060 (a persistence store) via \u0060update\u0060 and \u0060interaction\u0060 (a persistence store) via \u0060update\u0060 \u2014 in one command path with no shared transaction or outbox. A crash between the two leaves the stores diverged (one write committed, the other lost) or emits a phantom record. Wrap both in one transaction, or record the second write in the same store and dispatch it afterwards (a transactional outbox)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Transmission/Sources/ContextMenuLinkAdapter.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"78815b673d5b8cc7b8051aa39eb01f4994d852bb4d2dc174ba049ed1bb293d30"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README advertises Docker containerisation, but no Dockerfile/compose file exists \u2014 searched for: \u0060dockerfile\u0060, \u0060docker-compose\u0060, \u0060compose.yaml\u0060, \u0060compose.yml\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"343bbbd51ceb8de7a9ff88d79f7c797abf9b5921f8727b67b4d0f4f8a22c5e49"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 2441 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":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":4,"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."]}]}