{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"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":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES2","name":"Immutable events","shortDescription":{"text":"Immutable events"},"helpUri":"https://codehealth.canine.dev/dimensions/ES2"},{"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":"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":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"EditorTransition.pushTransition (cyclomatic 99): EditorTransition.pushTransition has cyclomatic complexity 99 (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/HXPhotoPicker/Editor/Transition/EditorTransition.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"599dd7126cae5ca40ef4a280665044be1505d7928fcfeefda2e15ce4ae1335dc"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerListSwipeSelect.changedPanGestureRecognizer (cyclomatic 59): PhotoPickerListSwipeSelect.changedPanGestureRecognizer 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/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListSwipeSelect.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7dbacc489097503a01a80f53c5f21eeac249f0bef223eeb5341219f9244492"}},{"ruleId":"D1","level":"warning","message":{"text":"HXImageViewProtocol.setImage (cyclomatic 51): HXImageViewProtocol.setImage has cyclomatic complexity 51 (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/HXPhotoPicker/Picker/Extension/Picker\u002BUIImageView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5c0f6f76a25e7dc8d1eb483db05390c1995b63910ecaf7b6a0fbe78cd71a52"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerColorConfigurationViewController.colorPickerViewControllerDidSelectColor (cyclomatic 50): PickerColorConfigurationViewController.colorPickerViewControllerDidSelectColor has cyclomatic complexity 50 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerColorConfigurationViewController.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7406112f3201b9e2ab290446fdd332d866421525d168f7b0f83bb81b266ef16d"}},{"ruleId":"D1","level":"warning","message":{"text":"ParameterSliderView.panGestureRecognizerClick (cyclomatic 49): ParameterSliderView.panGestureRecognizerClick has cyclomatic complexity 49 (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/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"31832f5bdfd695f73adf8f65debd05809b70721aae2b3aecdfa5d5ffc6aa1f28"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerColorConfigurationViewController.getRowColor (cyclomatic 49): PickerColorConfigurationViewController.getRowColor has cyclomatic complexity 49 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerColorConfigurationViewController.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dddac2e39eda8e1c732dc3c282df004af4c32fb41c0ea5c56f1976f16debb6d"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoManager.createLanguageBundle (cyclomatic 41): PhotoManager.createLanguageBundle has cyclomatic complexity 41 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoManager\u002BLanguage.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"23753292c1d7e36c0a76fcf2babb1ae4e76d045928d9ce0fad5698f894e78717"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.initViews (cyclomatic 41): EditorViewController.initViews has cyclomatic complexity 41 (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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdc7421006274742fd197e7d8ce798162a266ee39e681c5ea69ae6231b1f039"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.layoutPortraitViews (cyclomatic 41): EditorViewController.layoutPortraitViews has cyclomatic complexity 41 (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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"63dd2203edf9152c19acb5a1e301e4fb7c63302bc70046436e415e6db0c7d838"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoFetchAsset.fetchPhotoAssets (cyclomatic 39): PhotoFetchAsset.fetchPhotoAssets has cyclomatic complexity 39 (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/HXPhotoPicker/Picker/Protocol/Fetch/PhotoFetchAsset.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"678f2eded45364a95080cb48d96b911ebd75f466a20fc3108259cf8e253f2ef2"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPreviewViewController.initView (cyclomatic 38): PhotoPreviewViewController.initView has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb441b03204e42a3e9fa16c3df058f44458762838aaed3f77bad699c0f5c251"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoToolBarView.configColor (cyclomatic 38): PhotoToolBarView.configColor has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c81f20eedb4f385ffd843ae70573fd445841a12b385e8fed07a373d3d2f4dd"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.filterView (cyclomatic 36): EditorViewController.filterView 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3a764fe9b7e0b7208ec04fb8dbfecb370ba153e3c62dfac9a4b49f3e804b7d"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorConfigurationViewController.getRowContent (cyclomatic 36): EditorConfigurationViewController.getRowContent 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":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4119caf0dca8b11d1c0691731bfd31371ac67ef43d2603eb58c7e69e9b0e76"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerTransition.pushTransition (cyclomatic 35): PickerTransition.pushTransition has cyclomatic complexity 35 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6feff967ac7bec0b3d3f11ea999e5f9588a81596d6555e2050cd0c771deb643"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerFilterItemView.makeMenu (cyclomatic 35): PhotoPickerFilterItemView.makeMenu has cyclomatic complexity 35 (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/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10c4a2b6373e78a4058fd56deaa6e226cb3104aebc26154ce0f70f40544b32f"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoManager.languageStr (cyclomatic 34): PhotoManager.languageStr has cyclomatic complexity 34 (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/HXPhotoPicker/Core/Util/PhotoManager\u002BLanguage.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff24122a77ec36703e9470f2165d1afb0dd8ca16ab0dc561ad5608c7367a7076"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.filterParameterView (cyclomatic 34): EditorViewController.filterParameterView 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f17907d4d667c916463e31a1e223e8d802d0342fb67554192fc95bb90388283"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorAdjusterView.cropImage (cyclomatic 33): EditorAdjusterView.cropImage has cyclomatic complexity 33 (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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d048cb537f901498a7880e7f1eb417ce589ed5a073aafb998726215db909cc"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerConfigurationViewController.getRowContent (cyclomatic 33): PickerConfigurationViewController.getRowContent has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: LanguageType.title (cyclomatic 35) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2421a62a921eff05eab862a1a9e1972827e61a2bac082843033935729cca5d"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoBrowserAnimator.presentTransition (cyclomatic 32): PhotoBrowserAnimator.presentTransition has cyclomatic complexity 32 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f488ea78ae12a0594172b17bb92434a5a4212b4b6f8b2dbf9c82f731a07f5f75"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerListViewController.collectionView (cyclomatic 31): PhotoPickerListViewController.collectionView has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe9c25abb28d523115eccd62dc2a0a871e3796cccfe720497070b5b534350cf"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.requestLivePhotoURLSuccess (cyclomatic 31): PhotoAsset.requestLivePhotoURLSuccess has cyclomatic complexity 31 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 14 belong to 4 function items inside it that branch. 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba43efb34734843bf2de6678f9ee878ac39e6a537b593591fd1a446ee13636d"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.isEqual (cyclomatic 30): PhotoAsset.isEqual has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BEquatable.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fdd582e40aa61856ba0c46810c6d9f896924dcffdca0a4b055496fa585d6f7"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerManager.canSelectAsset (cyclomatic 29): PickerManager.canSelectAsset 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/HXPhotoPicker/Picker/Model/PickerManager.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4b7eeba66d13fe4ed5e03a87e6d76e81c99f9cf7b925b1844167bede4dbf70"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.getPHAssetFileSize (cyclomatic 29): PhotoAsset.getPHAssetFileSize 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BFileSize.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"86deb57c96e29aa6ca1c747729a1a75c66b38201f6ec3f48035466bdbd7d30fa"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorAdjusterView.cropVideo (cyclomatic 28): EditorAdjusterView.cropVideo has cyclomatic complexity 28 (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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BVideo.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6372b5fb9376df86ea6fe22199900859705681ac6ef1b0cdf9580548965cf9"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.applyImageFilterParameter (cyclomatic 27): EditorViewController.applyImageFilterParameter 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"225061803f045f4a584d748872059a6e2e0d10ac3ff438ce3b577a5959d1d508"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoTools.getLivePhotoVideoMovURL (cyclomatic 26): PhotoTools.getLivePhotoVideoMovURL has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/Picker\u002BLivePhotoTools.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f145c939f1a0321a42ea8abf11430df795093187ae4753aa698ef110c05d4f25"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorStickersItemView.update (cyclomatic 26): EditorStickersItemView.update has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db162139f2ea2ac9f2cb8a107559b5ba55ac7d4b096838614ca7b866ed7042e"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.videoProcessing (cyclomatic 26): EditorViewController.videoProcessing has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BProcessing.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddea2554cf87f4b03bc94a76c3376e31c81f7c6ccb71e8dc37649b803637c01"}},{"ruleId":"D1","level":"warning","message":{"text":"AssetManager.requestLivePhoto (cyclomatic 26): AssetManager.requestLivePhoto has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbbc912fde8e32e36b12ce27159b54a844a8b43e40a7edddbac9ac49c2a296e"}},{"ruleId":"D1","level":"warning","message":{"text":"AVAsset.videoOrientation (cyclomatic 26): AVAsset.videoOrientation has cyclomatic complexity 26 (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/HXPhotoPicker/Editor\u002BView/Extension/EditorView\u002BAVAsset.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c1fabfa3419571a20a5404b9efab6142293b1e231f44071e92f30198432543"}},{"ruleId":"D1","level":"warning","message":{"text":"CIImage.apply (cyclomatic 26): CIImage.apply has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Extension/Editor\u002BCIImage.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1dd464bb1cb8dd42189d79ba84c7e963656a76c859a3fcc0e0f307aca774a5"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.loadImageFilterData (cyclomatic 25): EditorViewController.loadImageFilterData has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c03397269a1f1b88fd015f8fa152f9948cec044a6f06d6def6653eef00f63a"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerManager.fetchPhotoAssets (cyclomatic 25): PickerManager.fetchPhotoAssets has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PickerManager.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"04153c14705a86d9e808365f0b477ca45908f300b0cbf3aa50651302daa75936"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoThumbnailView.requestThumbnailImage (cyclomatic 25): PhotoThumbnailView.requestThumbnailImage has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoThumbnailView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"568d8b4acef4a0cbf59854f2e853da4f45c53e7bb4e1d60cccc0b639e9d5765f"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPreviewViewController.cell (cyclomatic 25): PhotoPreviewViewController.cell has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"520c196464f364ef93a635778fdc8da6e3c7d04c8e2e42f204e64754d25808ba"}},{"ruleId":"D1","level":"warning","message":{"text":"CameraManager.captureOutput (cyclomatic 24): CameraManager.captureOutput 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/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f821671b97f668cd1322e46f9d2c98e6a653730ae863f2c83db0c2f3f1fb13"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorAdjusterView.cropImage (cyclomatic 24): EditorAdjusterView.cropImage has cyclomatic complexity 24 (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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d3a4df342275157ac0fca58c34cedfda8e90e5ff2073c955d4a2147d6ec3d5"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerControllerInteractiveAnimator.panGestureRecognizerClick (cyclomatic 24): PhotoPickerControllerInteractiveAnimator.panGestureRecognizerClick 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/HXPhotoPicker/Picker/Transition/PhotoPickerControllerInteractiveAnimator.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cae082ffc207d77a1e78a562b96f2ec31ffbe1899b2d2ed587f9d529c52c27e"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPreviewViewController.openEditor (cyclomatic 24): PhotoPreviewViewController.openEditor 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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d2d781f92587a18ac4fe131744ca14153ff1e422630353b39c5448d726c1d0"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorVideoTool.exprotHandler (cyclomatic 23): EditorVideoTool.exprotHandler has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48eba2cb98f5761e6a52f26447ac6dbbcc6e06782377625248c60bc43b783ed"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.viewDidLayoutSubviews (cyclomatic 23): EditorViewController.viewDidLayoutSubviews has cyclomatic complexity 23 (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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ffb2503138191e922d3e7fb3b9e2062a9a2e0b91c1b37452a21e653bbf14b1"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerTransition.popTransition (cyclomatic 23): PickerTransition.popTransition has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 11 of the 23 points are its own statements and the rest belongs to one function item inside it that branches (popTransitionAnimation). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"45492a5e4e0639caf8397737401b70bf2cfd3a995d19826e7e6399950ac32c45"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerViewController.editorViewController (cyclomatic 23): PhotoPickerViewController.editorViewController has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69712fa3af44479e74da0439b92cbe6c69fc5b43db61dab2ff94fa5a5fefa62"}},{"ruleId":"D1","level":"warning","message":{"text":"CameraManager.setupWriter (cyclomatic 22): CameraManager.setupWriter 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/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e141e29a6c00586fc0850bb6550b0cc1439762b59a84a52c767b28407907d8"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerViewController.initNavItems (cyclomatic 22): PhotoPickerViewController.initNavItems 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e6cc3c30d6aeb55c8346edac10e499c99168fa879336672d00a9961dbe6b7b"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPreviewViewController.editorViewController (cyclomatic 22): PhotoPreviewViewController.editorViewController 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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8cf7ec8878855b12fa1d003a7f373a1330553b0ad4a85bef40f6495e50ffab0"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.localImageSize (cyclomatic 22): PhotoAsset.localImageSize 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c727d8e9e4babef89a2c5b4d0d032137c6fd48a94d26cfa88ebce021f616456"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoToolBarView.init (cyclomatic 22): PhotoToolBarView.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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5923989130cd7a220b16664fa9a515de212429f2afc658446a8c8954a2448d49"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorMosaicView.panGesureRecognizerClick (cyclomatic 21): EditorMosaicView.panGesureRecognizerClick 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/HXPhotoPicker/Editor\u002BView/View/EditorMosaicView.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd53c47bc5dad690590c27155f7c9635a8b9b15cd50823580281042879a95d0"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.prepareImageURLForEditing (cyclomatic 21): EditorViewController.prepareImageURLForEditing 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d82839ee6a7b1f1cec452cef073fcb7cf1b7d34f3627c42065594cd86959695"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.toolsView (cyclomatic 21): EditorViewController.toolsView 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8508f32d05141109d895b08efdb1603f832f7e9d6773579833dce8252c346cdc"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPreviewContentPhotoView.requestNetworkImage (cyclomatic 21): PhotoPreviewContentPhotoView.requestNetworkImage 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/HXPhotoPicker/Picker/View/PhotoPreviewContentPhotoView.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f430c2685748df54a8426632c15aa35f5b3637452db24f9a62db970d4942b8"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorStickerTextView.drawBackgroundPath (cyclomatic 21): EditorStickerTextView.drawBackgroundPath 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/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BDraw.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"199b1aa219f6cce005eb852e9f1d006dcb0688ae81be6d7f6d210a11e8e3d76a"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPreviewViewController.didSelectBoxControlClick (cyclomatic 21): PhotoPreviewViewController.didSelectBoxControlClick has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BSelectBox.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"79acf831c0af70bbe0a78fbfe2c27bfb12af456ac6c9b029ea9aed1ffd5a70e6"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewLivePhotoViewCell.configLiveMark (cyclomatic 21): PreviewLivePhotoViewCell.configLiveMark 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/HXPhotoPicker/Picker/View/Cell/PreviewLivePhotoViewCell.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5713a51c642126f6c3d364a6389358c2c1b13f19aa4b83b5fb9c234069881ab2"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoTools.cropImage (cyclomatic 20): PhotoTools.cropImage has cyclomatic complexity 20 (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/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3023298c774db0df5b8a761f479cd27b1a09507070b383abe258ace6def019"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoTools.transformAlbumName (cyclomatic 20): PhotoTools.transformAlbumName has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/Picker\u002BPhotoTools.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc90aecfa2be5b83c2b192603538a545f54dd2cefb1076bbd3506275bee41422"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoFetchData.fetchAssetCollections (cyclomatic 20): PhotoFetchData.fetchAssetCollections 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/HXPhotoPicker/Picker/Data/PhotoFetchData.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f2e3667d6768354f1c757be6f6d576be85e070e1a2c94b7ec434dd343be860"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerInteractiveTransition.interationChanged (cyclomatic 20): PickerInteractiveTransition.interationChanged has cyclomatic complexity 20 (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/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"12245a9f9c089aa0e49f7da8b090964e6a306ff446b871d6505db4f9462475a6"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerFilterViewController.viewDidLoad (cyclomatic 20): PhotoPickerFilterViewController.viewDidLoad 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerFilterViewController.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d03ca1f0bb6979b1e5482abb020c2b0f8af29c24fac0aad335d1eb73e2d6f4"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.saveToSystemAlbum (cyclomatic 20): PhotoAsset.saveToSystemAlbum has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Extension/Picker\u002BPhotoAsset.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c4c5aa9ce15820f161efea9dc02994221fb23801322eec54e195656e91d4ec"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.requestAssetImageURL (cyclomatic 20): PhotoAsset.requestAssetImageURL has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"045c1a94b537c277837a658f80c9c183dc2a9616ada39d9bf85a4c033e94f0c2"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.getNetworkImage (cyclomatic 20): PhotoAsset.getNetworkImage 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BNetwork.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3956e94622380c84726936d3ffaf2bec570c7bf3cf2c1b05b3990651b359f50b"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoFetchAssetCollection.fetchCameraAssetCollection (cyclomatic 20): PhotoFetchAssetCollection.fetchCameraAssetCollection has cyclomatic complexity 20 (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/HXPhotoPicker/Picker/Protocol/Fetch/PhotoFetchAssetCollection.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c956328314def73813a23be8d7af0af515f135a7e79133a94e88e4832ae009b"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoToolBarGlassView.init (cyclomatic 20): PhotoToolBarGlassView.init 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c7aad863bebe5fa89583575e92c47128297f98b4c67f2796a1499b9a82fb35"}},{"ruleId":"D1","level":"warning","message":{"text":"AvatarPickerConfigurationViewController.getRowContent (cyclomatic 20): AvatarPickerConfigurationViewController.getRowContent has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"804b03b91ea05d6c643ea8df2c9d77d6dd21fe3418a19ae84e3f1605aac8d6f3"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorAdjusterView.cropAnimateImage (cyclomatic 19): EditorAdjusterView.cropAnimateImage has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a406f42233e1c730bece6d2e181b3e05786405e5229aeac1eeeb5f63b19155"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerData.canSelectVideo (cyclomatic 19): PhotoPickerData.canSelectVideo has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Data/PhotoPickerData.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"04da9f51549b3f009fc8d2b9ef549f06b86bc6901a71ba452410b680250e1b1d"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerViewController.fetchPhotoAssets (cyclomatic 19): PhotoPickerViewController.fetchPhotoAssets has cyclomatic complexity 19 (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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BFetchAsset.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff961b39beffec4e63c5b142cb7e2f3ae8d548102949e3552bb81bc84a4d964"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.requestImageData (cyclomatic 19): PhotoAsset.requestImageData has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"397165f5e58c2cc055628cba3bc34fbc4dfee558d28308db88efffcef0280767"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorStickersView.hitTest (cyclomatic 18): EditorStickersView.hitTest 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/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"646a1b6561dafc93169e8bd36d22e5e5510820bc6058ecfefc4a5841ee83ad3a"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerAssetOptions.title (cyclomatic 18): PickerAssetOptions.title has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: LanguageType.title (cyclomatic 35) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"246b3793da1b18a1081f6dc6f129c44430ea2e5ae41429594a25a52dc6dbb6c0"}},{"ruleId":"D1","level":"warning","message":{"text":"ParameterSliderView.setValue (cyclomatic 18): ParameterSliderView.setValue 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/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5906d1de88679faec19535ada4a98bf7f606d54f0c9968e92bf29dd4c12f44"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerController.setupColor (cyclomatic 18): PhotoPickerController.setupColor 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/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8b312f55a61e0958646960ab9780fc7eae7607bb7b7126fcc0091ea6af6a88"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPreviewViewController.scrollViewDidScroll (cyclomatic 18): PhotoPreviewViewController.scrollViewDidScroll 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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b348cdd8bdc340c470ada33ffdbd06b7d47868b5e1e724be0b89236593b55da1"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPreviewViewController.didFinishClick (cyclomatic 18): PhotoPreviewViewController.didFinishClick has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7da7ead75b2334d63759acd052c9d42ec1bb3ffa2fc8c940898169a5bea807"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerView.didSelectItem (cyclomatic 18): PhotoPickerView.didSelectItem 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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb214c8cbf9fb1a4cdaf7b16b64b99e68b4db6fa0f61cfb751e8a0f31419c649"}},{"ruleId":"D1","level":"warning","message":{"text":"CameraViewController.layoutSubviews (cyclomatic 17): CameraViewController.layoutSubviews 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/HXPhotoPicker/Camera/Controller/CameraViewController.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8ea148cac3443cedf278bfaacfeee2d3d6467575b4e48ba3399eb358eab617"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorAdjusterView.canReset (cyclomatic 17): EditorAdjusterView.canReset 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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b02d97119f3e17f87ef35213a90ed01a11d647b2c510878ca9c96127c76f97b"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorChartletViewController.collectionView (cyclomatic 17): EditorChartletViewController.collectionView 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/HXPhotoPicker/Editor/Controller/EditorChartletViewController.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cca5bf5be94c16fbfabc697367118cad9f2aafd2b1ab2abce02ebe78e804a21"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.layoutNotPortraitViews (cyclomatic 17): EditorViewController.layoutNotPortraitViews 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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d621b7a85d9dd5bc3620861bdc3378107c7f2520c7a2cf1b8a544f8fe38684"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoEditorMusic.parseLrc (cyclomatic 17): VideoEditorMusic.parseLrc 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/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cb102e2c9debff91dc20da52ae70975671ebe1384c3beaeeefa9224fd3a722"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerInteractiveTransition.interationFinish (cyclomatic 17): PickerInteractiveTransition.interationFinish 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/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c245c1c818a040829997629b6142d9efc0987b20ba32586ae01f480f2ba8e6"}},{"ruleId":"D1","level":"warning","message":{"text":"PickerInteractiveTransition.startInteractiveTransition (cyclomatic 17): PickerInteractiveTransition.startInteractiveTransition 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/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c24089518274c849bcbfa1442fceded804e62e1ed713838d0c51b97d99d066"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPreviewContentVideoView.requestNetworkVideo (cyclomatic 17): PhotoPreviewContentVideoView.requestNetworkVideo 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/HXPhotoPicker/Picker/View/PhotoPreviewContentVideoView.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"db51b431f67f3327188cb790b4ec5a9559b86e210aefc9364498b3c1238b6cce"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorStickerTextView.drawTextBackgroudColor (cyclomatic 17): EditorStickerTextView.drawTextBackgroudColor 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/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BDraw.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1673e2884cba9d43c0eef851c3b35f6f5db566723394a3191dfbaec72c3f6b"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerViewController.layoutToolbar (cyclomatic 17): PhotoPickerViewController.layoutToolbar 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6b0c46d9fabcfd0101f3a44248523cd12e52ec5af3f97ff42cf1912afb7299"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoToolBarGlassView.configColor (cyclomatic 17): PhotoToolBarGlassView.configColor 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e97e0c9031f1662b361355dc237142b7aa027d8d72aae4fb05f7e231081e77"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerListSwipeSelect.updateCellSelectedState (cyclomatic 17): PhotoPickerListSwipeSelect.updateCellSelectedState has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListSwipeSelect.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97a579eb726ca13f781a71b6c61191491bee7a86529f415d4b57f64c98dbfa9"}},{"ruleId":"D1","level":"warning","message":{"text":"KFImageView.download (cyclomatic 17): KFImageView.download has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ImageView/KFImageView.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"87448430888cd42b2aa275d99d706842c5cf063e70569510e3073884022a5224"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorVideoTool.textAnimationLayer (cyclomatic 16): EditorVideoTool.textAnimationLayer 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/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e455120c4a0a9bdc103f7fe443553a9d7d10425d2671f28ab2a591641b7efa8"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorViewController.requestLocalAsset (cyclomatic 16): EditorViewController.requestLocalAsset 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7e416cdac0fb51a757470ebfe1a6264a11626ebfb0c80cbff856a7c520ffa2"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoBrowserAnimator.dismissTransition (cyclomatic 16): PhotoBrowserAnimator.dismissTransition has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3bfa0065ed055d1ead54caf0d2f418e5b0d5543a801ba892de16d1930faee0"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoBrowserInteractiveAnimator.interationFinish (cyclomatic 16): PhotoBrowserInteractiveAnimator.interationFinish has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"c200528a1d92eb3b0199efe265d3c811a75062dd5722b936a1af463b40d0ddcc"}},{"ruleId":"D1","level":"warning","message":{"text":"AssetManager.requestImageURL (cyclomatic 16): AssetManager.requestImageURL has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BImageURL.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0598c34b47496c1d4a8308e5538e5ad5e90bfada3256fb003e4fdc7b69c89cf"}},{"ruleId":"D1","level":"warning","message":{"text":"AssetManager.requestLivePhoto (cyclomatic 16): AssetManager.requestLivePhoto 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/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fe7214f7392e4e3de68ff2fd6fc004b572e94108a4adea8c400983c69a2f23"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPreviewContentLivePhotoView.requestLivePhoto (cyclomatic 16): PhotoPreviewContentLivePhotoView.requestLivePhoto has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"edab3151c31d055c338023ed26798a2da6d1da0e297f0907dde5f221433c5cf2"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorChartletViewListCell.collectionView (cyclomatic 16): EditorChartletViewListCell.collectionView 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/HXPhotoPicker/Editor/View/Chartlet/EditorChartletViewListCell.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0680eb66cf923e960759b3cc0a32d5cf25f8f79fa0d959b1c96ee7c58db37c3a"}},{"ruleId":"D1","level":"warning","message":{"text":"EditorStickerTextView.processRect (cyclomatic 16): EditorStickerTextView.processRect 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/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BDraw.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbdadb0c1e132da54bce6d6220f414d68268a0c4def02170ce36e00d8575788b"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.originalImage (cyclomatic 16): PhotoAsset.originalImage 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a235955cf3870a0e92baaf68aae727bc355f3e877741fafa88ec93ac413b1dc4"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.requestLocalImageURL (cyclomatic 16): PhotoAsset.requestLocalImageURL has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BLocal.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"975a5b2ea76b6dc6521c1dd5db7d0e5c882e6cf61a9626283352135259fcffae"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.requestLocalLivePhotoURL (cyclomatic 16): PhotoAsset.requestLocalLivePhotoURL 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"a512feae5dc9bd12db2e55572b131c2aaba208973348cb21d6f75029e393e22a"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoAsset.getVideoDuration (cyclomatic 16): PhotoAsset.getVideoDuration 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BVideo.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb20ee8ee548800a233daee48194581e8c0e616b37c39eb746b0083214d9ad61"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoToolBarView.layoutSubviews (cyclomatic 16): PhotoToolBarView.layoutSubviews 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc94b20ee6afac9f3d0b51df7c3a62087f1d1bca2fb11b071d19dedbd2e5f5f3"}},{"ruleId":"D1","level":"warning","message":{"text":"SDImageView.download (cyclomatic 16): SDImageView.download has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ImageView/SDImageView.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ad8f43e199382f49f7d45d70618497ae09d3c857117955956b6961b371c2ec"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerView.collectionView (cyclomatic 16): PhotoPickerView.collectionView has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa2a0e379e544ec464fdfb42450cfb38578f6848690dee06de8de53f631db11"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoPickerView.collectionView (cyclomatic 16): PhotoPickerView.collectionView 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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"1436b47bf07dab8be32b695ea3b90061506742663ac245a1178a97394224e1a1"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorTransition.pushTransition (cognitive 221): EditorTransition.pushTransition has cognitive complexity 221 (threshold 15). Drivers by points: if/else 99 (206 pts), boolean chains 10, match/switch 4 (5 pts) (nesting depth added 108). 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/HXPhotoPicker/Editor/Transition/EditorTransition.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f20755c9602d2247cf1000d941b30e189424289d8cc800244495f525e3b0606"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerListSwipeSelect.changedPanGestureRecognizer (cognitive 174): PhotoPickerListSwipeSelect.changedPanGestureRecognizer has cognitive complexity 174 (threshold 15). Drivers by points: if/else 34 (93 pts), loops 10 (46 pts), boolean chains 19, ternaries 4 (16 pts) (nesting depth added 107). 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/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListSwipeSelect.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"14253bc55ddf35a9f4899f38fb51699984104fd0de64d74097fdce6bcd798a14"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterSliderView.panGestureRecognizerClick (cognitive 119): ParameterSliderView.panGestureRecognizerClick has cognitive complexity 119 (threshold 15). Drivers by points: if/else 35 (96 pts), boolean chains 22, match/switch 1 (nesting depth added 61). 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/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17ff539cc245f2813c1ace38c5a141b30560b916492b37dcdcc7baaab10bd4d"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.filterView (cognitive 117): EditorViewController.filterView has cognitive complexity 117 (threshold 15). Drivers by points: if/else 31 (112 pts), boolean chains 4, match/switch 1 (nesting depth added 81). 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d18a8ff77482759cd9a30ac9ed3aa587ccb521d4b3b3faa52032faa846f866"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerFilterItemView.makeMenu (cognitive 110): PhotoPickerFilterItemView.makeMenu has cognitive complexity 110 (threshold 15). Drivers by points: if/else 27 (95 pts), boolean chains 5, match/switch 1 (4 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 74). 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/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d967f63c10ba5d499bb522ce159607793d5a98316d812c6ef2a83e1dae740b"}},{"ruleId":"D2","level":"warning","message":{"text":"HXImageViewProtocol.setImage (cognitive 105): HXImageViewProtocol.setImage has cognitive complexity 105 (threshold 15). Drivers by points: if/else 44 (89 pts), boolean chains 11, match/switch 3 (5 pts) (nesting depth added 47). 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/HXPhotoPicker/Picker/Extension/Picker\u002BUIImageView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2776b8a80f6acb3870081b8ee1ba91fa17c71e4156d88304ea8554d2ea5f41b6"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewViewController.initView (cognitive 100): PhotoPreviewViewController.initView has cognitive complexity 100 (threshold 15). Drivers by points: if/else 36 (84 pts), boolean chains 8, ternaries 2 (8 pts) (nesting depth added 54). 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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bbfc1d1ef49a9111b6f410a64524aade2343a857a567e0d4caf18b3bb79bff"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarView.configColor (cognitive 86): PhotoToolBarView.configColor has cognitive complexity 86 (threshold 15). Drivers by points: ternaries 22 (48 pts), if/else 23 (38 pts) (nesting depth added 41). 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ee89de45b2eb18e37884094fb43506c454cac46f4191315b35e590c9764976"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.layoutPortraitViews (cognitive 84): EditorViewController.layoutPortraitViews has cognitive complexity 84 (threshold 15). Drivers by points: if/else 46 (69 pts), boolean chains 10, ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 26). 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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"c171fa060df727332d68a131012b3f8d6503ca4bb830f9ef980db9d00e069b97"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.initViews (cognitive 75): EditorViewController.initViews has cognitive complexity 75 (threshold 15). Drivers by points: if/else 42 (62 pts), ternaries 5 (10 pts), boolean chains 3 (nesting depth added 25). 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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acf3d0ec5cc4532597f69ce04acbd423f66874dbf507a9a1c07332ea8adaa2b"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.getPHAssetFileSize (cognitive 71): PhotoAsset.getPHAssetFileSize has cognitive complexity 71 (threshold 15). Drivers by points: if/else 22 (57 pts), loops 3 (6 pts), boolean chains 4, match/switch 1 (4 pts) (nesting depth added 41). 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BFileSize.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"061fb8e1dd4c95a8a3d4975e9e0d7972896fb8fe9fbf19543751f3289e409e68"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerManager.canSelectAsset (cognitive 66): PickerManager.canSelectAsset has cognitive complexity 66 (threshold 15). Drivers by points: if/else 26 (61 pts), boolean chains 5 (nesting depth added 35). 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/HXPhotoPicker/Picker/Model/PickerManager.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"72932e9569f7a73d3e6a5ee4e0119912e7d5581be4dbf09b41f110f64113ec91"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorChartletViewController.collectionView (cognitive 65): EditorChartletViewController.collectionView has cognitive complexity 65 (threshold 15). Drivers by points: if/else 17 (53 pts), match/switch 2 (8 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 44). 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/HXPhotoPicker/Editor/Controller/EditorChartletViewController.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff9514ceaa29bfa045e7c316b0485313650bd7ba5ec0cd8bdaec037103a3399"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoFetchAsset.fetchPhotoAssets (cognitive 64): PhotoFetchAsset.fetchPhotoAssets has cognitive complexity 64 (threshold 15). Drivers by points: if/else 32 (57 pts), boolean chains 3, loops 2 (3 pts), match/switch 1 (nesting depth added 26). 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/HXPhotoPicker/Picker/Protocol/Fetch/PhotoFetchAsset.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"622e033a2da57fc218b3c71d1d359238daf9761e9e5bf879ed0538cd54285044"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoTools.getLivePhotoVideoMovURL (cognitive 62): PhotoTools.getLivePhotoVideoMovURL has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27 (51 pts), loops 3 (7 pts), boolean chains 4 (nesting depth added 28). 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/HXPhotoPicker/Picker/Util/Picker\u002BLivePhotoTools.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a56d0d2797d32dffa2453e2654b4bf15f201ec92659aa518a73cbb516a09951"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.applyImageFilterParameter (cognitive 62): EditorViewController.applyImageFilterParameter has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27 (59 pts), boolean chains 3 (nesting depth added 32). 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"545237933219af87dddef3905f283bc83bc8db1f670fb0009e5cd4dba84a77e0"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.loadImageFilterData (cognitive 62): EditorViewController.loadImageFilterData has cognitive complexity 62 (threshold 15). Drivers by points: if/else 24 (58 pts), boolean chains 4 (nesting depth added 34). 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8840da7704b15cc6335532894caa4c2dd3a5183a225d0bfb9ba15b18d9716d"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorStickerTextView.drawBackgroundPath (cognitive 62): EditorStickerTextView.drawBackgroundPath has cognitive complexity 62 (threshold 15). Drivers by points: if/else 22 (58 pts), boolean chains 3, loops 1 (nesting depth added 36). 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/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BDraw.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38d03ad67238c469683a0791fc7e04612fed723e89b178dd6021554c4813a91"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.filterParameterView (cognitive 59): EditorViewController.filterParameterView has cognitive complexity 59 (threshold 15). Drivers by points: if/else 13 (47 pts), match/switch 4 (8 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 39). 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"57329ff5c1b63335086d7cb41634ad1b2eceefa93bfe75d599bc7f2685c69ed1"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorStickersItemView.update (cognitive 58): EditorStickersItemView.update has cognitive complexity 58 (threshold 15). Drivers by points: if/else 32 (52 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 22). 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/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"447ee2c57f9e962e6a986fa652093263c8658ad7330fa3d9d176f67fb0198902"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerTransition.pushTransition (cognitive 58): PickerTransition.pushTransition has cognitive complexity 58 (threshold 15). Drivers by points: if/else 33 (49 pts), boolean chains 8, ternaries 1 (nesting depth added 16). Of this number, 53 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3871854de24f48203213a290ee598c790078d66879f06dc109c9fdea542c2359"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerControllerInteractiveAnimator.panGestureRecognizerClick (cognitive 56): PhotoPickerControllerInteractiveAnimator.panGestureRecognizerClick has cognitive complexity 56 (threshold 15). Drivers by points: if/else 24 (52 pts), boolean chains 3, match/switch 1 (nesting depth added 28). 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/HXPhotoPicker/Picker/Transition/PhotoPickerControllerInteractiveAnimator.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8d5b267bb5182814103f3aff0d8e31c8c28b3450b0a9c1efac5897614f6e44"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetManager.requestLivePhoto (cognitive 56): AssetManager.requestLivePhoto has cognitive complexity 56 (threshold 15). Drivers by points: if/else 23 (47 pts), error handling 1 (4 pts), boolean chains 3, loops 2 (nesting depth added 27). 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/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b678f5401d75ad9f52abf086291945b936fd0ee5ce7aee55591c3078ae95a550"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterSliderView.setValue (cognitive 56): ParameterSliderView.setValue has cognitive complexity 56 (threshold 15). Drivers by points: if/else 31 (55 pts), 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/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a22cedb3f1c154c53b1532165724a10533108fad16e4f1706a7eadcf38db32"}},{"ruleId":"D2","level":"warning","message":{"text":"Double.time (cognitive 56): Double.time has cognitive complexity 56 (threshold 15). Drivers by points: if/else 25 (56 pts) (nesting depth added 31). 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/HXPhotoPicker/Editor/View/Video/EditorVideoControlView.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbda831b155431e2f9de246d742790a5b248b60ffefa415993ecb7a2a11e8685"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoBrowserAnimator.presentTransition (cognitive 55): PhotoBrowserAnimator.presentTransition has cognitive complexity 55 (threshold 15). Drivers by points: if/else 32 (49 pts), boolean chains 5, ternaries 1 (nesting depth added 17). Of this number, 53 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa7bdca131c856b2f5d3dd207d75737dbf24846a8b61b89fb3cd120ed3d9a65"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewViewController.editorViewController (cognitive 55): PhotoPreviewViewController.editorViewController has cognitive complexity 55 (threshold 15). Drivers by points: if/else 21 (51 pts), boolean chains 4 (nesting depth added 30). 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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cfaddfa8f7b85d1af0f0349202ebcf15090d4dc641430b8ff4f4ff32de98eb"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.videoProcessing (cognitive 53): EditorViewController.videoProcessing has cognitive complexity 53 (threshold 15). Drivers by points: if/else 21 (39 pts), boolean chains 8, match/switch 2 (6 pts) (nesting depth added 22). 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BProcessing.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"232c6afcf33af0a35c45f9778272715a97ae6515daa1753bda377101a2ef3e6b"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerViewController.editorViewController (cognitive 51): PhotoPickerViewController.editorViewController has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (47 pts), boolean chains 4 (nesting depth added 24). 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c29b3749635dc6092507bf7d2b157c20e71e531c807c7b2148ef44f6b327f79"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.localImageSize (cognitive 51): PhotoAsset.localImageSize has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (47 pts), boolean chains 4 (nesting depth added 24). 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"4090446512529777bacd828ffefe2f4105db8426c602471bc5dcf57a53b38a2b"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestLivePhotoURLSuccess (cognitive 50): PhotoAsset.requestLivePhotoURLSuccess has cognitive complexity 50 (threshold 15). Drivers by points: if/else 25 (38 pts), match/switch 4 (8 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 18). Of this number, 34 points are the body\u0027s own statements and 16 belong to 4 function items inside it that branch. 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7c12e2980eb9f35fdf749f5d2d2cf441fbea6cbdca6207892fcf4d0e3efdf3"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoThumbnailView.requestThumbnailImage (cognitive 49): PhotoThumbnailView.requestThumbnailImage has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (41 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 23). 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/HXPhotoPicker/Picker/View/PhotoThumbnailView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"652b354d146bffdcf45997828e63b2fc94ad111bb8364e0469ef180ed9034ada"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerViewController.layoutToolbar (cognitive 49): PhotoPickerViewController.layoutToolbar has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (46 pts), boolean chains 3 (nesting depth added 24). 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a0a23736991a789aeed40dd66db26cab71978e72844a2fd7c2f86032debe9d"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerListSwipeSelect.updateCellSelectedState (cognitive 49): PhotoPickerListSwipeSelect.updateCellSelectedState has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (47 pts), boolean chains 2 (nesting depth added 28). Of this number, 37 points are the body\u0027s own statements and 12 belong to one function item inside it that branches. 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/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListSwipeSelect.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"404e58d218141a95adcdad40860ba5904997b959d49f69438a7e26d95276f397"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorVideoTool.exprotHandler (cognitive 48): EditorVideoTool.exprotHandler has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (33 pts), ternaries 4 (11 pts), match/switch 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 23). 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/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d51c01ca1dba177ec80c2385c7c5f1be5f5023260b612fee874ef5571e12a61"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.cropAnimateImage (cognitive 47): EditorAdjusterView.cropAnimateImage has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (43 pts), boolean chains 3, loops 1 (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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"599e00c15215464d558cce5fe507460c8204cf96cddce52e3e7fe0a0f127e550"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerData.canSelectVideo (cognitive 47): PhotoPickerData.canSelectVideo has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (43 pts), boolean chains 4 (nesting depth added 27). 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/HXPhotoPicker/Picker/Data/PhotoPickerData.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58bfe43e5e935831176de24c514fc975130599e88992a254480e1135f96dc21"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerListViewController.collectionView (cognitive 46): PhotoPickerListViewController.collectionView has cognitive complexity 46 (threshold 15). Drivers by points: if/else 26 (37 pts), boolean chains 9 (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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcfc503af6f9d9d63733d8c8877dcf98e282f9c53e0eef994682bee23feb744"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.cropImage (cognitive 45): EditorAdjusterView.cropImage has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 14, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dd4110a0e8d97d32edc0d5dea1c7805a9a0b01acb6f6ddc8e6feace6e7d6a0"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoTools.transformVideoDurationToString (cognitive 44): PhotoTools.transformVideoDurationToString has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (44 pts) (nesting depth added 24). 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/HXPhotoPicker/Core/Util/PhotoTools.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3636f8d9f889b81040ea5b5c4ec59099dd4339d8420ac8d07744ece014da47"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarView.init (cognitive 44): PhotoToolBarView.init has cognitive complexity 44 (threshold 15). Drivers by points: if/else 24 (38 pts), ternaries 3 (6 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e02a88e77bb6bd61e856bc5325ce9b1da82494d138acc14cd74c8850fcb6d39"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarView.layoutSubviews (cognitive 44): PhotoToolBarView.layoutSubviews has cognitive complexity 44 (threshold 15). Drivers by points: if/else 24 (44 pts) (nesting depth added 20). 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"3944f75ec4cd621be34dfd9c99c6e31f7371cd3ac8ae8d2de553105f090a6c39"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraManager.captureOutput (cognitive 43): CameraManager.captureOutput has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (40 pts), boolean chains 3 (nesting depth added 20). 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/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e9214937efebc6c9c83fc348cf743e3afbc525520837cbe6d7c253a5f597cd"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.saveToSystemAlbum (cognitive 43): PhotoAsset.saveToSystemAlbum has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (26 pts), match/switch 5 (11 pts), error handling 1 (6 pts) (nesting depth added 25). Of this number, 42 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Extension/Picker\u002BPhotoAsset.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c43723d044be8092307fb51c2cb86ce0d1fd89e18fc4a92830cc6f979d7d2bf"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorConfigurationViewController.getRowContent (cognitive 43): EditorConfigurationViewController.getRowContent has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 8 (24 pts), match/switch 5 (12 pts), if/else 5 (7 pts) (nesting depth added 25). 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":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7129bcd5679043c74f14a6189de20168086054e5d642c8eb7b7f3fcda2e2b13"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.cropVideo (cognitive 42): EditorAdjusterView.cropVideo has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 10, error handling 1 (3 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 8). 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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BVideo.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fee121704a097144017cf592926fb9ee99edd0f01e655ddd919f5c0a4fe972e"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorMosaicView.panGesureRecognizerClick (cognitive 42): EditorMosaicView.panGesureRecognizerClick has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (37 pts), boolean chains 4, 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/HXPhotoPicker/Editor\u002BView/View/EditorMosaicView.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4e0ffb7adc279f5d8c30aceaa4dcebd6ecdc564d0c03e673f1604c92d4785d"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorStickersView.hitTest (cognitive 42): EditorStickersView.hitTest has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (40 pts), boolean chains 2 (nesting depth added 22). 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/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7071cbb770cc522f911f4ec3fa8fcc4fa14fe1a562aba802dab33f8d2a727c1"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerResultViewController.didRequestSelectedAssetURL (cognitive 42): PickerResultViewController.didRequestSelectedAssetURL has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 6 (24 pts), if/else 6 (11 pts), error handling 1 (3 pts), loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 27). 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":"Swift/Classes/Controller/PickerResultViewController.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"924bb6680e21e03a9cee663a17d0b59943c74c6e750cb1c57365002236456fc9"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewViewController.openEditor (cognitive 41): PhotoPreviewViewController.openEditor has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (35 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 18). 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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c15d89dbb035203c6a8d334f8bcc1d27c2e9e90683279704287536ea9c9dd0"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestLocalLivePhotoURL (cognitive 41): PhotoAsset.requestLocalLivePhotoURL has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (41 pts) (nesting depth added 18). 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20502f14a3f4caf4e0f219e46a1c1e1b9fa9eb994476ffe197c28fe00b7cee7"}},{"ruleId":"D2","level":"warning","message":{"text":"CIImage.apply (cognitive 41): CIImage.apply has cognitive complexity 41 (threshold 15). Drivers by points: if/else 22 (38 pts), boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Extension/Editor\u002BCIImage.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"978e0327018975194345951fe344f2adfe57c61405ab9eea2f4e07606ce33093"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraManager.setupWriter (cognitive 39): CameraManager.setupWriter has cognitive complexity 39 (threshold 15). Drivers by points: if/else 23 (34 pts), boolean chains 2, match/switch 1 (2 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"96dafbdf093667ab7e3b81c5243ead09e640451ff95e95dd0ccaf68ed09eb983"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorVideoTool.textAnimationLayer (cognitive 39): EditorVideoTool.textAnimationLayer has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (36 pts), boolean chains 2, loops 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/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4291d0d6053c60f77a57ebb7d81477e16c37e1ce8794673f3b797f22aae6b12"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerViewController.initNavItems (cognitive 39): PhotoPickerViewController.initNavItems has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 8, loops 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4f0e094aad05ff69fc7fc9d5622d7aa8a92cab1bf40c8a109b937c6f680504"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarGlassView.init (cognitive 39): PhotoToolBarGlassView.init has cognitive complexity 39 (threshold 15). Drivers by points: if/else 27 (39 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"55492ee6527f011b2570f38fbf04cba8b92211ba346e81451c5ed8a9a42ceb14"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestAssetImageURL (cognitive 38): PhotoAsset.requestAssetImageURL has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 16). Of this number, 36 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc558b3b4723fbae79221a1a5d8e33fd57962cc76a1b902c2f57e1346815ceb2"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarGlassView.layoutSubviews (cognitive 38): PhotoToolBarGlassView.layoutSubviews has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (38 pts) (nesting depth added 18). 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee58494c729b718df6d74632b0e2c244bcdda3ca07f24f161e98cb6c74a5a153"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoManager.languageStr (cognitive 37): PhotoManager.languageStr has cognitive complexity 37 (threshold 15). Drivers by points: if/else 33 (36 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoManager\u002BLanguage.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d31a548c14b3c6fe43817ad42ee4ccd190767b11924ee23f8137ca8a3f6a07"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoEditorMusic.parseLrc (cognitive 37): VideoEditorMusic.parseLrc has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 19). 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/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4ecec073bc165a52c9a0d082f0307b1907e1592f948ec1de0417a28f4d18d2"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoFetchData.fetchAssetCollections (cognitive 37): PhotoFetchData.fetchAssetCollections has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (30 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Data/PhotoFetchData.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1cc97bd15495be192c18f8da4d323a4f3acd02c30af38019e90b57cf9125d9"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoTools.exportEditVideo (cognitive 36): PhotoTools.exportEditVideo has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (27 pts), ternaries 2 (6 pts), match/switch 1 (3 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/HXPhotoPicker/Picker/Util/Picker\u002BPhotoTools.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d7ac3a407586ea364970645d654160cc552e64eb57ec75f9a10c1d64954ad9"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewViewController.cell (cognitive 36): PhotoPreviewViewController.cell has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 8, ternaries 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60a2a3fc4ce09beec79f31ea803efa6f6732078ec7d39cc36d2239ac5a4e7a7"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewViewController.didSelectBoxControlClick (cognitive 36): PhotoPreviewViewController.didSelectBoxControlClick has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 5 (nesting depth added 15). Of this number, 28 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BSelectBox.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeff2b268262a388a41dc579cc047cd8f2355055ae3d94477376f9dc0fac1eff"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.originalImage (cognitive 36): PhotoAsset.originalImage has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (33 pts), boolean chains 2, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"51eded54f1ce9f184c7f6368a69bba101f61da6c8f5db2370e0867c028428954"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerListFectchCell.dequeueReusableAdditiveCell (cognitive 36): PhotoPickerListFectchCell.dequeueReusableAdditiveCell has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (34 pts), boolean chains 2 (nesting depth added 20). 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/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListFectchCell.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"1070cee1f06e21a8792e57e5bdb5b3fdbf6283f233e8c5561cc9bca8894798f5"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerView.getAdditiveCell (cognitive 36): PhotoPickerView.getAdditiveCell has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (34 pts), boolean chains 2 (nesting depth added 20). 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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ab5e29f86d09f814a4f838c6d885ce4192e82e4647673950300ce8c8035081"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorChartletViewListCell.collectionView (cognitive 35): EditorChartletViewListCell.collectionView has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 4, match/switch 1 (3 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/HXPhotoPicker/Editor/View/Chartlet/EditorChartletViewListCell.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02b897feea3cc98d7285be08ddd8359a9098270fcff260ecc22125a93401a0d"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorStickerTextView.drawTextBackgroudColor (cognitive 35): EditorStickerTextView.drawTextBackgroudColor has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BDraw.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60de3e4b712df03dcbd34823d366a1ca517bd179664e2a84698ca946112c191"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.isEqual (cognitive 35): PhotoAsset.isEqual has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 13 (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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BEquatable.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f75891d0f3646ed02bbb00c48ce52b11a6a2bf23659e0c8b1640e9ae4406b92"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.getLocalFileSize (cognitive 35): PhotoAsset.getLocalFileSize has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (33 pts), boolean chains 2 (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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BFileSize.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1975512710e3d91c07269616363ee5250b8de9c570444ef113f209c0a19ff01f"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestLocalImageURL (cognitive 35): PhotoAsset.requestLocalImageURL has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (31 pts), boolean chains 4 (nesting depth added 13). Of this number, 29 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BLocal.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb20351fcf1c7c75c567dd4bd0c94d8a889255848518286bb2dc5eda5382945"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.getVideoDuration (cognitive 35): PhotoAsset.getVideoDuration has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 3, match/switch 1 (3 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BVideo.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9da81b4d85d030f89b76ff05bc0bea65ac7248fb29f5c95f672fc7817024e41"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarGlassView.configColor (cognitive 35): PhotoToolBarGlassView.configColor has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 8 (22 pts), if/else 8 (13 pts) (nesting depth added 19). 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5d56a4b058eeee8ed56641e580ae975cc01aac635a77d92d661054c6ff6351"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.viewDidLayoutSubviews (cognitive 33): EditorViewController.viewDidLayoutSubviews has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 7, ternaries 2 (4 pts) (nesting depth added 5). 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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8c5b7bc0e024d1ea7e61b8d737c81ce542f141c00f3933d15c16920a5d25e9"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerController.setupColor (cognitive 33): PhotoPickerController.setupColor has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 5 (10 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c202706b5c7af07aa072fdad4348266e28afb2bc216dcbe88a5e5b7b423674"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewViewController.scrollViewDidScroll (cognitive 33): PhotoPreviewViewController.scrollViewDidScroll has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (29 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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6676c32a1689e653e1d5eea908e7cd78cab0d8857190e2c2e2a09bbbce13569"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorVideoTool.insertAudioTrack (cognitive 32): EditorVideoTool.insertAudioTrack has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 4 (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/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7c83c0f58c8e4d3a833ef63ef423aca8fa332082950b24bc938ad1f5cadfa6"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewLivePhotoViewCell.configLiveMark (cognitive 32): PreviewLivePhotoViewCell.configLiveMark has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 6 (12 pts), boolean chains 3 (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/HXPhotoPicker/Picker/View/Cell/PreviewLivePhotoViewCell.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b3d6ebc7559c59bc40b78f1a6beb7836091354eb3bcf489389db9263933728"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.loadLastEditedData (cognitive 31): EditorViewController.loadLastEditedData has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (25 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 15). 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8821b506066f70bd0a6e12704f9b68ab38b0d8f7dbcde6ba981e1f1334e1f5"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.cropImage (cognitive 30): EditorAdjusterView.cropImage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 7, ternaries 2 (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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eeb8db04770c7ba0c1de939318c3f36fa45a6e2fdeb8083837edbec7238a970"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.requestLocalAsset (cognitive 30): EditorViewController.requestLocalAsset has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (23 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55e64593867021221b3f4974d4c7d7b2ca09e0a2314fbdd0fa1aaf426b27613"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerManager.fetchPhotoAssets (cognitive 30): PickerManager.fetchPhotoAssets has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 3, loops 2, match/switch 1, ternaries 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/HXPhotoPicker/Picker/Model/PickerManager.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"469c2ea84d07c6a20fa32874ef6f83e1a95c95ea4192dc776cf1ad9d87a83cbb"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerConfigurationViewController.getRowContent (cognitive 30): PickerConfigurationViewController.getRowContent has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 8 (24 pts), match/switch 2 (4 pts), if/else 2 (nesting depth added 18). 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":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df0482c036731bdbbb45dfc47e4bf007f494f50bd75fde9e61122a28b611880"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraViewController.layoutSubviews (cognitive 29): CameraViewController.layoutSubviews has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (20 pts), match/switch 2 (5 pts), boolean chains 4 (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/HXPhotoPicker/Camera/Controller/CameraViewController.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc02a4b409a07f90a079ec99acc694fdcf49265ee21fff92c6d4770de75bf4a"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.prepareImageURLForEditing (cognitive 29): EditorViewController.prepareImageURLForEditing has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c18b5c8e92b1bc193a6c7dd4e4102455f0104296c2516d213104778ac6e09f"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewContentPhotoView.requestNetworkImage (cognitive 29): PhotoPreviewContentPhotoView.requestNetworkImage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentPhotoView.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36afad467ca3bc0ca18b7fa6ba4af2db1a8a5ad55a2b8266a77864923ddc292"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.getNetworkImage (cognitive 29): PhotoAsset.getNetworkImage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4, ternaries 1 (2 pts), 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BNetwork.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"95432e9c4af996277a53d34db3820ab61fe204ab3b2c7a6c8d764629832c73c0"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerView.collectionView (cognitive 29): PhotoPickerView.collectionView has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03c03ece900258f4bd1ba86eaa3bca7db08150113fbee2dac177294f858f416"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewContentVideoView.requestNetworkVideo (cognitive 28): PhotoPreviewContentVideoView.requestNetworkVideo has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 6 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentVideoView.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8578f51de508bdd70671f17281bee3aafcfb473dd388ea810f0a263f7182fb31"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerFilterViewController.viewDidLoad (cognitive 28): PhotoPickerFilterViewController.viewDidLoad has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerFilterViewController.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd81d0029150eaaababd6a57a5c95b09513f022202b8a96e858b112d71eeb33"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerView.editorViewController (cognitive 28): PhotoPickerView.editorViewController has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 4 (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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BEditor.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"704faebff83f99f55c0ae09a1543af9fc4a84f910325f4056bc0f53a4bf667d5"}},{"ruleId":"D2","level":"warning","message":{"text":"WeChatViewCell.photoAsset (cognitive 28): WeChatViewCell.photoAsset has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (25 pts), ternaries 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/WeChatViewController.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9399e012f30cc6a84d6c8e4563656eeed5782a39c8c0d8ea636402e570cee4ae"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorControlView.leftTopControlHandler (cognitive 27): EditorControlView.leftTopControlHandler has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (EditorControlView.leftBottomControlHandler, EditorControlView.rightTopControlHandler, EditorControlView.rightBottomControlHandler) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"936b43030201ba84c9298cd020508e5e2de31fcd311dbfcbf7440c879502c779"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorControlView.leftBottomControlHandler (cognitive 27): EditorControlView.leftBottomControlHandler has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (EditorControlView.leftTopControlHandler, EditorControlView.rightTopControlHandler, EditorControlView.rightBottomControlHandler) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c349b14b2757aff50883860810c9e42717e091c5983adf8dd7b460e157d6190"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorControlView.rightTopControlHandler (cognitive 27): EditorControlView.rightTopControlHandler has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (EditorControlView.leftTopControlHandler, EditorControlView.leftBottomControlHandler, EditorControlView.rightBottomControlHandler) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b0fd049e3c005a62d6210e46c9112ec95bd4d42a270dd39c74920decf28314"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorControlView.rightBottomControlHandler (cognitive 27): EditorControlView.rightBottomControlHandler has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (EditorControlView.leftTopControlHandler, EditorControlView.leftBottomControlHandler, EditorControlView.rightTopControlHandler) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"d329cbd485fca171463d97151709a33417ef796c0c83f7278f2cf92009ea9ca0"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.updateBottomMaskLayer (cognitive 27): EditorViewController.updateBottomMaskLayer has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (20 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe1953de34f19c6f950c52f9dcbde6bf75ee2c78c72e76ef164014556e4f1c5"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerManager.getSelectAsset (cognitive 27): PickerManager.getSelectAsset has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 1, loops 1 (nesting depth added 15). 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/HXPhotoPicker/Picker/Model/PickerManager.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ec5374e15c432737d2b8f877c7ea1094aec942d7f0f01f3c81293a8676e708"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerListViewController.pickerCell (cognitive 27): PhotoPickerListViewController.pickerCell has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 4 (nesting depth added 10). Of this number, 25 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e94eaaacab3554bfa89848e902354a1996356e4332a3ac3c41bdc6e551bd2bc"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestImageData (cognitive 27): PhotoAsset.requestImageData has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 4, match/switch 2 (3 pts), error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0550831abf9503579cf5baa0e078fe4118568a820c036a36cfc44c949289fb2"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoManager.urlSession (cognitive 26): PhotoManager.urlSession has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 3 (8 pts), match/switch 1 (2 pts), boolean chains 1 (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/HXPhotoPicker/Core/Util/PhotoManager\u002BDownload.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a094658737ca1bd6ff6ea57e2b86ba70cf18398710cff0d6bca8918b6c210e01"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectBoxView.drawBackgroundLayer (cognitive 26): SelectBoxView.drawBackgroundLayer has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 6 (8 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/View/SelectBoxView.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a891689c34200cb3b494bbc4e6f90768a495b132f6103f569aa2bbf6b9ba0585"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.layoutNotPortraitViews (cognitive 26): EditorViewController.layoutNotPortraitViews has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6083b76d9c37a84cc1c1fd8a7f3e3143531135c261afde79fe2c2948a0565c"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.didCancelButtonClick (cognitive 26): EditorViewController.didCancelButtonClick has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad58ae19dad79dc5c64e91cfd711799f8f756321634f242099ac17c2d0e0c969"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorMusicViewCell.didPlay (cognitive 26): EditorMusicViewCell.didPlay has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 2 (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/HXPhotoPicker/Editor/View/Video/EditorMusicViewCell.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4bce60627954df87622bda7067e77ace2ca127c615f4ece02a11c63e0b2409"}},{"ruleId":"D2","level":"warning","message":{"text":"AlbumViewController.initItems (cognitive 26): AlbumViewController.initItems has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Album/AlbumViewController.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"456b41ceaebabf8ed9e1679aa5e339b2804cdff4d1657b3d16fa77d4ad41df40"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerListViewController.viewDidLayoutSubviews (cognitive 26): PhotoPickerListViewController.viewDidLayoutSubviews has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 2 (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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44b6cd768972f3bdb278967b793644937fb725418fe7698b3cb39df7260240f"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.getEditedImageURL (cognitive 26): PhotoAsset.getEditedImageURL has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 10). Of this number, 19 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BEditor.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f3d45cdfc8354190c06239d1ed12a442e7f0b832a99e4e5df7557666c0fa5a"}},{"ruleId":"D2","level":"warning","message":{"text":"AVAsset.videoOrientation (cognitive 26): AVAsset.videoOrientation has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 20, if/else 6. 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/HXPhotoPicker/Editor\u002BView/Extension/EditorView\u002BAVAsset.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35ead518988a2be84411de261627922f34feec71df4c312c0e0288dd27e28b3"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerView.didSelectItem (cognitive 26): PhotoPickerView.didSelectItem has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"770a25a977edd8b5d69beeff20473944e1e247880b84d470a947806e7bde0b88"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.canReset (cognitive 25): EditorAdjusterView.canReset has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 5 (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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd612e6e2b1f908a3dd6773a58f524b7ca89805c72ea7a9d9117b6ff40d7d7c"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.ratioToolView (cognitive 25): EditorViewController.ratioToolView has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BRatio.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70ccf9be3e1e462e05431fdcc82b238bfead5a5758bf63b616cd290ae57ee75"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerData.selectResult (cognitive 25): PhotoPickerData.selectResult has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 1, loops 1 (nesting depth added 14). 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/HXPhotoPicker/Picker/Data/PhotoPickerData.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbef3ee4b6c62ddd25cf083005d95d42b33ea93ec09825152748eff48d812d57"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewContentPhotoView.requestOriginalCompletion (cognitive 25): PhotoPreviewContentPhotoView.requestOriginalCompletion has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 1, match/switch 1 (nesting depth added 14). Of this number, 19 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. 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/HXPhotoPicker/Picker/View/PhotoPreviewContentPhotoView.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bdd5717a2b88cb9179fa40d6391b997b011b739162ce36b9fdf71a82b2d326"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorStickerTextView.setupTextColors (cognitive 25): EditorStickerTextView.setupTextColors has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 1 (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/HXPhotoPicker/Editor/View/Text/EditorStickerTextView.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbb6aa652b3fc284711f236447da92818308b1f914b239b1d97f919eb35ce64"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorStickerTextView.layoutSubviews (cognitive 25): EditorStickerTextView.layoutSubviews has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (25 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"174188d098db02d8dc75185669ddd4810ffbfb725190d550fd2b740673503abd"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestLocalVideoURL (cognitive 25): PhotoAsset.requestLocalVideoURL has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BLocal.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1c8062bf5dbe1ca6cc9e2c1967a5e033cfc61895a50e132d419e9871605e42"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerView.updateCellSelectedState (cognitive 25): PhotoPickerView.updateCellSelectedState has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2 (nesting depth added 12). Of this number, 17 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. 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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99b0fd609e316079e8aaefabe216ac4e2c4bd95ca13f013f4e221daa660199e"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoTools.getVideoCoverImage (cognitive 24): PhotoTools.getVideoCoverImage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 3 (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/HXPhotoPicker/Picker/Util/Picker\u002BPhotoTools.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5dc3354eee1f26a8cf0f3520905ce9df3db34dd86c2123b1fab95d7c2e6983"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerInteractiveTransition.interationChanged (cognitive 24): PickerInteractiveTransition.interationChanged has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 5 (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/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dca88dc3dbc087a89cbfa1ec72b840782d620a3ff20f7fbf04b5732042db225"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerInteractiveTransition.interationCancel (cognitive 24): PickerInteractiveTransition.interationCancel has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4 (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/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f0747b748211a37e9f07991bab703cf93c313919fe6165bd89e9f61901ec11"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerController.photoLibraryDidChange (cognitive 24): PhotoPickerController.photoLibraryDidChange has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController\u002BPHPhotoLibrary.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f97d0f4a96d7fffec89b4c2648d3a1763b3f5d59a4235250733bb2be328a99"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerViewController.fetchPhotoAssets (cognitive 24): PhotoPickerViewController.fetchPhotoAssets has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BFetchAsset.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"600de40ed8692122758246f1cb09ef8900b95173fd200c53afdf925317c988ad"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewViewController.didFinishClick::addAsset (cognitive 24): PhotoPreviewViewController.didFinishClick::addAsset has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (24 pts) (nesting depth added 14). 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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a709a7dcb1b2aab49f9b3f504650fbbcad365034c63e9cb5f71c9439fd4dada"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerViewCell.setupState (cognitive 24): PhotoPickerViewCell.setupState has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 1 (4 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/PhotoPickerViewCell.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed270f8976142fd5f7ed940f3f86677264c8537ec8613674236f00246a4f0a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoTools.cropImage (cognitive 23): PhotoTools.cropImage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 10 (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/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b69f38b65c0a44a6d252f4664aaf8662e0d9636e152f9fc9996911b6271678"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.startEdit (cognitive 23): EditorAdjusterView.startEdit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 1 (nesting depth added 5). 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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f148ab944dd7e712b292eeb701c2ec548ff9f5f02264ae5e93fb6c1aac59ff"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.didFinishButtonClick (cognitive 23): EditorViewController.didFinishButtonClick has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5bb5a66e544c6a27c25ac24af90d55e78cccaee0869a3fdc862962c42a6a38"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.showMusicView (cognitive 23): EditorViewController.showMusicView has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 1 (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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2df40850b7d87b1af69b694ccb9db7a45ed33b29c3630c453022db2a09d691e"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerData.canSelectPhoto (cognitive 23): PhotoPickerData.canSelectPhoto has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 2 (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/HXPhotoPicker/Picker/Data/PhotoPickerData.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"1012048793548b335b5994cf292651ba9c51d0475fe957a84827c6ae2fe07171"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetManager.requestLivePhoto (cognitive 23): AssetManager.requestLivePhoto has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0318ddf7c13be9bd8baa2c8dd48fdb91467c516cf3a522c484b26f5f3c5803"}},{"ruleId":"D2","level":"warning","message":{"text":"ProgressHUD.updateFrame (cognitive 23): ProgressHUD.updateFrame has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (23 pts) (nesting depth added 5). 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/HXPhotoPicker/Core/View/ProgressHUD/ProgressHUD.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f06e268e41db7d301f5287ad7da813fffc27ad9cae4436f402436bde32be24"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorVideoControlMaskView.panGestureRecognizerAction (cognitive 23): EditorVideoControlMaskView.panGestureRecognizerAction has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 4 (7 pts) (nesting depth added 11). 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/HXPhotoPicker/Editor/View/Video/EditorVideoControlMaskView.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2441f5f2d3c2e8382ffc2214096fc9b865017184e913091bccc382aa9b0eb890"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraManager.videoInputAppend (cognitive 22): CameraManager.videoInputAppend has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), match/switch 1 (3 pts), boolean chains 1 (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/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec3a802b1c8b045fb4cea79696b7c1b24017601d47dc7fc743f501633820698"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorVideoCompositor.checkMask (cognitive 22): EditorVideoCompositor.checkMask has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, 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/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9de743ced3e163ab231d39808ae886a8999e8c66450492086ac1e974ef87eac"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorVideoTool.addWatermark (cognitive 22): EditorVideoTool.addWatermark has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, loops 3 (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/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f8090850d967765b19f95b3564157483c6272f4e39186d7322b66a00eac73e"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorControlView.topControlHandler (cognitive 22): EditorControlView.topControlHandler has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (EditorControlView.leftControlHandler, EditorControlView.rightControlHandler, EditorControlView.bottomControlHandler) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"90291336642bf7e0de01f0b0fb03bd85fd7186f20acc3004882e4365d8563b7e"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorControlView.leftControlHandler (cognitive 22): EditorControlView.leftControlHandler has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (EditorControlView.topControlHandler, EditorControlView.rightControlHandler, EditorControlView.bottomControlHandler) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"b420b35aeb68270179a78cd0753563105e18931d420a014144711cb9cd8367a0"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorControlView.rightControlHandler (cognitive 22): EditorControlView.rightControlHandler has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (EditorControlView.topControlHandler, EditorControlView.leftControlHandler, EditorControlView.bottomControlHandler) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"918be0dfa92a11c83505167eeae461fbd9d7862711c3e1de0c7819458c2fbc61"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorControlView.bottomControlHandler (cognitive 22): EditorControlView.bottomControlHandler has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 3 other methods here (EditorControlView.topControlHandler, EditorControlView.leftControlHandler, EditorControlView.rightControlHandler) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b4ca5bff090458c8ec171b9505195ed629d260b3b5daf722a2a7496aa20ec8"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.hideCanvasViews (cognitive 22): EditorViewController.hideCanvasViews has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 5 (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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b04e1b9a9f457ef7a3d14441a4da666c4159a46bd39d6a22bcc29d297b21ff9"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoBrowserAnimator.dismissTransition (cognitive 22): PhotoBrowserAnimator.dismissTransition has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 2, ternaries 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/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"18cfe45ffe4d4cd27dc61194b8d3fa353d10793400ab400cdeb0627e1567e52d"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerInteractiveTransition.interationFinish (cognitive 22): PickerInteractiveTransition.interationFinish has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a24ef42a5f62352a4c98daea79d1b736af0453abff0fc944d537ec5b4fd4d12"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerInteractiveTransition.startInteractiveTransition (cognitive 22): PickerInteractiveTransition.startInteractiveTransition has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"821938744a8fea3d05661b561cb3a12852473c06a5fc9d976c568081a7cb2633"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetManager.requestImageURL (cognitive 22): AssetManager.requestImageURL has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/HXPhotoPicker/Picker/Util/AssetManager\u002BImageURL.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b171114640de268676841511953cd404d1309db4ed735b8f379e5a060152dd"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerViewController.openVideoEditor (cognitive 22): PhotoPickerViewController.openVideoEditor has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07cc915ef525aa5742babccbba6c31097788d02b66aa322f0ea427622345c2b"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestAssetImageURL (cognitive 22): PhotoAsset.requestAssetImageURL has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fddf0d150bf149bdc92e257e07d7514f1affc7b269ab1773e533009ddc4e404"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestAssetVideoURL (cognitive 22): PhotoAsset.requestAssetVideoURL has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 3 (7 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BVideo.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1f5cb8dd2f702b66151680cc09cf27280c44bbb746d33c92e4b36f4b49973f"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoFetchAssetCollection.fetchCameraAssetCollection (cognitive 22): PhotoFetchAssetCollection.fetchCameraAssetCollection has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 10 (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/HXPhotoPicker/Picker/Protocol/Fetch/PhotoFetchAssetCollection.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0be220178064b892f923f618b3da31c7a06bd7676caac9f9af2763aebebdcd"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorCanvasData.historyDrawings (cognitive 21): EditorCanvasData.historyDrawings has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (8 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba1dafdb9c8cbefeb708a27905f43d77ae06b87fa944b87b6186234d3adb394"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorMosaicView.setMosaicData (cognitive 21): EditorMosaicView.setMosaicData has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (7 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorMosaicView.swift"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c06a33aad879bdaecfb864af13bfeedd4f5d0749cfa2eb05fca19cf1b33c0cc"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.editorView (cognitive 21): EditorViewController.editorView has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BEditorView.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"503dab96260cf2a766265232dc34b3e683eba0c8e1cffd33b8f0badf0424658b"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewContentPhotoView.requestOriginalImage (cognitive 21): PhotoPreviewContentPhotoView.requestOriginalImage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentPhotoView.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95988c645551dee22e87b23d595554e55e86634c1d6056c6f6e37b8d929ec15"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorRatioToolView.layoutSubviews (cognitive 21): EditorRatioToolView.layoutSubviews has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/CropSize/EditorRatioToolView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"2548c3695d5aa25071c03ab9621b45f14ee8ec15ce0b9f70dfd520d52e8c31b2"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerController.setupInteractiveTransition (cognitive 21): PhotoPickerController.setupInteractiveTransition has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe4bb390e6420a95bc2e9512ed53bfdd92565e88989d26bead6101b65b5e82c"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerView.scrollCellToVisibleArea (cognitive 21): PhotoPickerView.scrollCellToVisibleArea has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (21 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c56ed309a577da6bcd7466235ffb5f7476f36ea442282a599aa2350cdb654f8"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerView.panGestureRecognizerClick (cognitive 21): PhotoPickerView.panGestureRecognizerClick has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 4, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c6fa2eac044b0236e1caf9d5734d0e4662d3c2c27ad491cc2ebb0e0dff7861"}},{"ruleId":"D2","level":"warning","message":{"text":"AvatarPickerConfigurationViewController.getRowContent (cognitive 21): AvatarPickerConfigurationViewController.getRowContent has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (12 pts), match/switch 3 (7 pts), if/else 2 (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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc8a41aaaed292871eb609f0a9d83bc2d5fd2098d810ff0973bcbcdcfcc17ed"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerColorConfigurationViewController.colorPickerViewControllerDidSelectColor (cognitive 21): PickerColorConfigurationViewController.colorPickerViewControllerDidSelectColor has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 4 (12 pts), if/else 5 (9 pts) (nesting depth added 12). 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":"Swift/Classes/Controller/PickerColorConfigurationViewController.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"3243d181ef00e213893c57f40bfca84f7406269ad6e749ad707eddb073dfde29"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoManager.downloadTask (cognitive 20): PhotoManager.downloadTask has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4 (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/HXPhotoPicker/Core/Util/PhotoManager\u002BDownload.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fc17ef2bd0535a5eed7dfc1798bcfd2e5293dc73a8eba91320d12d626b2c40"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.resetVideoRotate (cognitive 20): EditorAdjusterView.resetVideoRotate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (20 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7291e28c7d94c5d7aa07d6f75ca727fa2d159c203037c1daef47745a9446450b"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorMaskView.updateFrameLayer (cognitive 20): EditorMaskView.updateFrameLayer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 5 (10 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe99c0e0b99d0a0413858ddf3a1adcfaa7efd2f45474ffd9d1bcce8f534441c"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.requestAssetImage (cognitive 20): EditorViewController.requestAssetImage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b755fd1c3e670bd926f1923c419dd2c64d984f601f46ec5edbbbeb69be6be55"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.toolsView (cognitive 20): EditorViewController.toolsView has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, match/switch 2 (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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d136383ab44ffbedaa08d31668f9597c70284bc9c0216859db4360dea7e8e1"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerFilterViewController.tableView (cognitive 20): PhotoPickerFilterViewController.tableView has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (6 pts), match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerFilterViewController.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d5b84461031d3c21fcea2f1e8122e53644fee492add6c978ea0b8ae75ecf36"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerListViewController.filterPhotoAssets (cognitive 20): PhotoPickerListViewController.filterPhotoAssets has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (20 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4684aa6b4b05050b5c23c1cf3b76fb7dbaba275bc3a9433cb0792aae9f57436"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerViewController.openPhotoEditor (cognitive 20): PhotoPickerViewController.openPhotoEditor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 1 (2 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd7b6f515b7691ceb515d85e6473de7fd71943a40a4716f359001c1449901f4"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerSelectableViewCell.updateSelectedState (cognitive 20): PhotoPickerSelectableViewCell.updateSelectedState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3 (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/HXPhotoPicker/Picker/View/Cell/PhotoPickerSelectableViewCell.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3925a8a21dcb24ecef6a60a3c9582d9689b11f947c10f4230fe99d7093df22d8"}},{"ruleId":"D2","level":"warning","message":{"text":"SDImageView.download (cognitive 20): SDImageView.download has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ImageView/SDImageView.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8c4d937ab6ab3239d63218f09a5195ba4f4f7ef67461b047e51d46e4db316e"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerView.collectionView (cognitive 20): PhotoPickerView.collectionView has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bb6110a71ac2a66d15e0aab22460d9cdfd4e5ff561733b8927075bad264a3d"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.update (cognitive 19): EditorAdjusterView.update has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2 (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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ce18279b4dfee061396da5fab78c98ad17e2199ef6a66279dcb02a841c18b4"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.compressedEditorImageData (cognitive 19): EditorViewController.compressedEditorImageData has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b60f749f33d0ec1beb90d51f283b1bb2abdee9be91bd8dd03e9f40fd166450"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.requestNetworkAsset (cognitive 19): EditorViewController.requestNetworkAsset has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc275b7d61eb63e6770f194b74758fd552bfb44e09a9ac16edeb36a27fc38d3f"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.loadThumbnailImage (cognitive 19): EditorViewController.loadThumbnailImage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec111b01abf38dc907cbfcdac1aab29003e5d945e6b9b074b3eaeaec6fa660c"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.imageProcessing (cognitive 19): EditorViewController.imageProcessing has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BProcessing.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4417472e847f5bd23dd7cadb997209cb0a4338bf384f38385cdd16f5a640913"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerData.setSelectedAssets (cognitive 19): PhotoPickerData.setSelectedAssets has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Data/PhotoPickerData.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"954c68acc22d9210c46265597dcc65c118cb61d9e894e9ab85aa7076d1086709"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureVideoPreviewView.startSession (cognitive 19): CaptureVideoPreviewView.startSession has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 2 (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/HXPhotoPicker/Picker/View/CaptureVideoPreviewView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b20532efeed9d7343207e0ff0d68a5ad843a4be91afa9d3e3fa9e4c17032e1"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewContentLivePhotoView.requestLocalLivePhoto (cognitive 19): PhotoPreviewContentLivePhotoView.requestLocalLivePhoto has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3 (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/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bcb43609f3ddae9f3b176647190cfdd8849ce76e2ee4dac536c45450ce5aff"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewVideoView.addedPlayerObservers (cognitive 19): PhotoPreviewVideoView.addedPlayerObservers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/HXPhotoPicker/Picker/View/PhotoPreviewVideoView.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddca98f6e9d145902a40e5b520f1a9918bba8f770f6efada332b9307f8322e26"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorStickerTextView.processRect (cognitive 19): EditorStickerTextView.processRect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3 (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/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BDraw.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"093d5dd3676d7b3dab45ff436cd7e48cb52b6c91bc2a03786fcb1b94a8beb6d1"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAlbumViewController.updateColors (cognitive 19): PhotoAlbumViewController.updateColors has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (7 pts), match/switch 1 (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/HXPhotoPicker/Picker/Controller/Album/PhotoAlbumViewController.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1616b424246554b62660ac8bf44c7c942a4086da94080369ccd76ebaccf59798"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestLocalImage (cognitive 19): PhotoAsset.requestLocalImage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 5 (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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BLocal.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0c2f10f56b47ef545a3102ee872de22c00f95086be202be4c8307395299a58"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarGlassView.viewHeight (cognitive 19): PhotoToolBarGlassView.viewHeight has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c155959ddbe495b2772849dc33bfeb080c728a87512bed9cc3493abcc98e4b"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarGlassView.previewListDidScroll (cognitive 19): PhotoToolBarGlassView.previewListDidScroll has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4 (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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4746b3d5e44818ae58e48213776de2964c6d74cd09492cc7764aede1eff2ee6"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarView.viewHeight (cognitive 19): PhotoToolBarView.viewHeight has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3340b0f79957ddccc082428410d2600f9e97ab916a8e88751ef01f00d1a608b3"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarView.previewListDidScroll (cognitive 19): PhotoToolBarView.previewListDidScroll has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4 (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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23609ec601db8c5062c24f7e7cc97d8dd3a7e74182c4ebccf582def141fddeb"}},{"ruleId":"D2","level":"warning","message":{"text":"Array.getURLs (cognitive 19): Array.getURLs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (2 pts), boolean chains 1, loops 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/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"18aba2838d66a640d390df1846785697a8408fc70770cddd3c92e6c369791ffe"}},{"ruleId":"D2","level":"warning","message":{"text":"UIImage.scaleToFillSize (cognitive 19): UIImage.scaleToFillSize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 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/HXPhotoPicker/Core/Extension/Core\u002BUIImage.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"656506f514500bfb95852b1f9e0097664db0d4a463d52ecf96f6136ef13e12ce"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorVideoCompositor.fixOrientation (cognitive 18): EditorVideoCompositor.fixOrientation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), 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/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5751fdebb475d61bfcd08859cc56a6dbb27338346022e4543232ee15c4bae6a7"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.rotate (cognitive 18): EditorAdjusterView.rotate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2 (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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cce5c1686c9153c3960fce65b66f2779b3e77cf23e279cd1239d9c685e2065a"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.setData (cognitive 18): EditorAdjusterView.setData has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d113baecf955116dc4f89c52c1ffe776d683514e107b852b241f969b7133160"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorChartletViewController.longPressClick (cognitive 18): EditorChartletViewController.longPressClick has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorChartletViewController.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"33944044493a022d7138884c5a9298bcd7d32b7f64cd8dcf3e336d020489b598"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.downloadNetworkVideo (cognitive 18): EditorViewController.downloadNetworkVideo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8654a87748618c4cb2dd67f3cf730425915ec4d4d3a984d72b96ab44efa1a5d5"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoBrowserInteractiveAnimator.interationFinish (cognitive 18): PhotoBrowserInteractiveAnimator.interationFinish has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 6 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"339b67f18a840f1bfc163c5a35d46254abf867cd578c1f98f84e034f31c4be14"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetManager.requestVideoURL (cognitive 18): AssetManager.requestVideoURL has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), match/switch 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BVideoURL.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2a7ca97798f87a230e8fe8d7308f3c5fdd002d3d7f6f3ad8d45962ce25e5cd"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewContentLivePhotoView.requestLivePhoto (cognitive 18): PhotoPreviewContentLivePhotoView.requestLivePhoto has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4 (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/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cf9094c6952fbd72b24b4032115db6ff88157448b8391fa95d123aa18856d6"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestImage (cognitive 18): PhotoAsset.requestImage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, match/switch 2 (3 pts), ternaries 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"553d7edd06829683f775864d2f12c99aa514fe7abf63c7bbc2fc784bcd02c56b"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAsset.requestLocalLivePhoto (cognitive 18): PhotoAsset.requestLocalLivePhoto has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 2 (4 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"356ad0363319330911e7687806114551dbb8f7ca68762833586a83e413592f15"}},{"ruleId":"D2","level":"warning","message":{"text":"AlbumGlassTitleView.makeAlbumData (cognitive 18): AlbumGlassTitleView.makeAlbumData has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, ternaries 1 (2 pts), loops 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/HXPhotoPicker/Picker/View/Album/AlbumGlassTitleView.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef4a6b6b30ee6b18e4555ce907afeb80452db7a645a69f37e68169c90d97b9c"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerViewCell.syncICloud (cognitive 18): PhotoPickerViewCell.syncICloud has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5 (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/HXPhotoPicker/Picker/View/Cell/PhotoPickerViewCell.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3747c3b82e8e3228b842e20e63aa363a46b9b779223f69a41f49fc6b6770f5df"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewSelectedView.reloadSectionInset (cognitive 18): PhotoPreviewSelectedView.reloadSectionInset has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 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/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewSelectedView.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cefa7e1a08ea6472a03e0f489d750f50fd4a8e60efe74bf16c5ff0d9a88fe7"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerListSwipeSelect.panGRChangedUpdateState (cognitive 18): PhotoPickerListSwipeSelect.panGRChangedUpdateState has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5 (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/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListSwipeSelect.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec581b8775e4b1a37063f17d15bdef5ea1b319cee0762af4a664cbe329091c8"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerView.pickerCell (cognitive 18): PhotoPickerView.pickerCell has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCell.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6cd438e725a79b032b439ddfc6b0b5fc63f45d026ae7360eaf4d48e4699eca"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoEditorMusicURL.== (cognitive 17): VideoEditorMusicURL.== has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (11 pts), if/else 5, boolean chains 1 (nesting depth added 5). 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/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff01cde9511c79405eb2973bcc82613d7472a871fd99d4a9ea56df6568766540"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorMaskView.hideMaskView (cognitive 17): EditorMaskView.hideMaskView has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 3 (5 pts) (nesting depth added 4). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (animationHnadler). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5296f5a8f04d7d71895d57fd0d9541cb7082ce9e01558bceb08aac02c682d7a"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorVideoPlayerView.setupAsset (cognitive 17): EditorVideoPlayerView.setupAsset has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4afc4d13359cb875ad80df82816b7fa2295d01457545b74cb6ed90ec91bff3"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.prepareImageDataForEditing (cognitive 17): EditorViewController.prepareImageDataForEditing has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3 (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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63dd758b85d148cbdb77bbf194d7fd7a2c881682a873f4afe76b422352e604d"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.loadMusicData (cognitive 17): EditorViewController.loadMusicData has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7bc6ed610219380295f75030dce84eefe6c0d5224156af62a363184d6772e1"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.loadCorpSizeData::loadData (cognitive 17): EditorViewController.loadCorpSizeData::loadData has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea208c3ab63af7b18eeab6e76c7dda887e5d9083312c006ac2bbd3f5f2e22d3"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.downloadNetworkImage (cognitive 17): EditorViewController.downloadNetworkImage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 pts), 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"0950a9a4b75bd8ddff959c905c14db929227d2df873149a3731915a15f4ca977"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.filtersViewDidLoad (cognitive 17): EditorViewController.filtersViewDidLoad has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e614fd37d2a9a0ef60e8c900158e399405b3416ecbb6c913caaeb5de1967af"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoBrowserInteractiveAnimator.interationChanged (cognitive 17): PhotoBrowserInteractiveAnimator.interationChanged has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3 (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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"06cc9e091859f34c5701be555e0d41599f0be1d8705aa0c3f066fb089dd91004"}},{"ruleId":"D2","level":"warning","message":{"text":"PickerTransition.popTransition::popTransitionAnimation (cognitive 17): PickerTransition.popTransition::popTransitionAnimation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c8861166823052926918dc081f3b2406d8d788c10578f31340d70331b9f11a"}},{"ruleId":"D2","level":"warning","message":{"text":"DeniedAuthorizationView.configColor (cognitive 17): DeniedAuthorizationView.configColor has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8 (13 pts), if/else 3 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/DeniedAuthorizationView.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f689c2c22796dc34e458a4165d7390c7af46c5765359105e25df77d6bc8bd409"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerBottomNumberView.updateFilter (cognitive 17): PhotoPickerBottomNumberView.updateFilter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoPickerBottomNumberView.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf5a544e92d417717da85179ce8102dd357cb700e972ede3d54b869c693e67a"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorStickerTextView.collectionView (cognitive 17): EditorStickerTextView.collectionView has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2 (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/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BCollectionView.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b671c3e6af67b60329661d107accfc346334dac7e0f7645950336d9448ef3d2d"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorVideoControlView.loadVideoFrame (cognitive 17): EditorVideoControlView.loadVideoFrame has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Video/EditorVideoControlView.swift"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c809fbc292d0e5b35f0aa3de9719caff4509e11ca907b49df1354a9b31ea7c3"}},{"ruleId":"D2","level":"warning","message":{"text":"AlbumViewController.changeSubviewFrame (cognitive 17): AlbumViewController.changeSubviewFrame has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2 (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/HXPhotoPicker/Picker/Controller/Album/AlbumViewController.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed1a605fc6112103552006a3dc9dd2aa49836b587824760761de96efc487259"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerViewController.presentCameraViewController (cognitive 17): PhotoPickerViewController.presentCameraViewController has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a086cc894ed751066053a1430f72bc3041b733bb97f6dcd5257a44c9687cb3"}},{"ruleId":"D2","level":"warning","message":{"text":"KFImageView.download (cognitive 17): KFImageView.download has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), match/switch 3 (6 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ImageView/KFImageView.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7644eb4d29634d96cc483826392ae384b695240ca5c8cf8f17584eb0444cdc7f"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraBottomView.tapGestureRecognizerClick (cognitive 16): CameraBottomView.tapGestureRecognizerClick has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Camera/View/CameraBottomView.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b78625eb68f173f4711654cfc26267a5394f85d9e1b17bcc2ff0adffb56cee1"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoManager.createLanguageBundle (cognitive 16): PhotoManager.createLanguageBundle has cognitive complexity 16 (threshold 15). Drivers by points: loops 2 (7 pts), if/else 5 (6 pts), match/switch 1 (2 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/HXPhotoPicker/Core/Util/PhotoManager\u002BLanguage.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc6af42f96f7d56bca4f012d4f2c83155fe134595aeadfd24db5f6cbf223f0f"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorAdjusterView.rotateHandler (cognitive 16): EditorAdjusterView.rotateHandler has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b36ea27641df4414d2e5c7f1fd5376c8fbc2850d8bc428d598d7214c897276"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorFrameView.hide (cognitive 16): EditorFrameView.hide has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorFrameView.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7cc411ee72d1a182d39fa1dd4a316fdd2e7ab3171dceff2ee57f210f3a271a"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorMosaicView.getAngleBetweenPoint (cognitive 16): EditorMosaicView.getAngleBetweenPoint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6 (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/HXPhotoPicker/Editor\u002BView/View/EditorMosaicView.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f28a6177da9e55fdd5e3fed49b27b2cd3902e2c975d3cf3383944b71a84d94"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorStickersItemView.contentViewPanClick (cognitive 16): EditorStickersItemView.contentViewPanClick has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf4391c7449fb77a07d0f7c0b1afcb0c24179715da29a76600116350fac76dc"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorStickersView.add (cognitive 16): EditorStickersView.add has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"209b75e6bad6077cda95a9b403853fab211054991418c14efd52664834c574a4"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.isFullScreen (cognitive 16): EditorViewController.isFullScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6ba44537294ab70b6f3444bd5f1d593d9bd69a22d971918d0de4a931d8a931"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorViewController.startCanvasDrawing (cognitive 16): EditorViewController.startCanvasDrawing has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3a5b952a946c0a74aadcab2a027693558443ab95f57f4c9d4c3dc1a0441b14"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoAssetCollection.requestCoverImage (cognitive 16): PhotoAssetCollection.requestCoverImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAssetCollection.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31f98fc5831a45967363b42261ff065d6bf60686112f764ef655360df6dd457"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoPlaySliderView.updateTimeLabels (cognitive 16): VideoPlaySliderView.updateTimeLabels has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/View/VideoPlayer/VideoPlaySliderView.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"6888d329fa151b02113c7b83e8b17fe1b7237d46bd94521648b085e47234e9be"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorBrushColorView.layoutSubviews (cognitive 16): EditorBrushColorView.layoutSubviews has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"167282de9cb0e9037f4f6ea407d3ead5cc512c075ce6617f4f862c0996aa4792"}},{"ruleId":"D2","level":"warning","message":{"text":"EditorScaleView.layoutSubviews (cognitive 16): EditorScaleView.layoutSubviews has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (16 pts) (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/HXPhotoPicker/Editor/View/CropSize/EditorScaleView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdce796dbca945a79234eebde8160153d2184d9b0270b21f15db30f3875de7e"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterSliderView.layoutSubviews (cognitive 16): ParameterSliderView.layoutSubviews has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"697a964a1666e52f91ad80e11628bc3e56aa8ca78b99819721d05c897cddba33"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPickerListViewController.didSelectItem (cognitive 16): PhotoPickerListViewController.didSelectItem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"974c167d0257bd953d8eab097fd2d2605c91e5f854ad18353e77c1d9e7f6f576"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoPreviewViewController.removeSelectedAssetWhenRemovingAssets (cognitive 16): PhotoPreviewViewController.removeSelectedAssetWhenRemovingAssets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"766d9dc4ad802385171b0d6fe8c98a20cfc80f78eeab563cee723e2baf4b9711"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarGlassView.updateFinishButtonTitle (cognitive 16): PhotoToolBarGlassView.updateFinishButtonTitle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"58034ee23aad6a2f1d2080d6563a815c40eb5bb4fdc2df7af00fe3fdfae9a74a"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoToolBarView.updateFinishButtonTitle (cognitive 16): PhotoToolBarView.updateFinishButtonTitle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe9c544e74682111bd09bdff6005ca676af3d43f4172e1c8475200cc03f3b34"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorViewController: TooManyMethods \u2014 226 methods, declared across 16 files: Controller/EditorViewController\u002BLoadAsset.swift (49), Controller/EditorViewController\u002BToolsView.swift (27), Controller/EditorViewController\u002BMusic.swift (26), Controller/EditorViewController.swift (25), \u002B12 more file(s). The bar is 30 methods; this is 196 over it, 7.53\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55fa7b2296370676cf5315eac2ccef136256ce3996a06fcea96f78fcdb5e971"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorAdjusterView: TooManyMethods \u2014 157 methods, declared across 10 files: View/EditorAdjusterView.swift (55), View/EditorAdjusterView\u002BContentView.swift (42), View/EditorAdjusterView\u002BEdit.swift (12), View/EditorAdjusterView\u002BCroper.swift (11), \u002B6 more file(s). The bar is 30 methods; this is 127 over it, 5.23\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"873f41bee61fbf493990707a56a99d354697915b1907528c971515d0e6efd372"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorView: TooManyMethods \u2014 103 methods, declared across 5 files: View/EditorView\u002BPublic.swift (57), View/EditorView\u002BAdjusterView.swift (24), View/EditorView.swift (18), View/EditorView\u002BScrollView.swift (3), \u002B1 more file(s). The bar is 30 methods; this is 73 over it, 3.43\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Editor\u002BView/View/EditorView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4467bcc577aa494c1872163977416b4522b6c6f8a4bcb7bc18babde263c083ed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoPickerViewController: TooManyMethods \u2014 100 methods, declared across 8 files: Picker/PhotoPickerViewController.swift (22), Picker/PhotoPickerViewController\u002BPhotoList.swift (15), Picker/PhotoPickerViewController\u002BPreview.swift (15), Picker/PhotoPickerViewController\u002BAlbumView.swift (13), \u002B4 more file(s). The bar is 30 methods; this is 70 over it, 3.33\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"397318ad8d7e49868c5720da8db3a86c2f865b745ffaa813cc692b5933f65ba4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoAsset: TooManyMethods \u2014 98 methods, declared across 12 files: PhotoAsset/PhotoAsset\u002BRequest.swift (22), PhotoAsset/PhotoAsset.swift (17), PhotoAsset/PhotoAsset\u002BURL.swift (15), PhotoAsset/PhotoAsset\u002BLocal.swift (8), \u002B8 more file(s). The bar is 30 methods; this is 68 over it, 3.27\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a869b847e2b10099dfcf6279d94a40033245e67d15c83eb191e848c93ed04151"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorTransition.pushTransition: MethodTooLong \u2014 pushTransition runs 314 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 214 over it, 3.14\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/HXPhotoPicker/Editor/Transition/EditorTransition.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1da14f1f1bcefa7e41431f27f6bc39c318353edc1fcee3324384900ec3580fe7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorViewController.initViews: MethodTooLong \u2014 initViews runs 298 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 198 over it, 2.98\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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"af99690a71cc67ec5e24537a7cb7992a1584f7e8b94aee1a34dd642bfbb7e875"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoTools: TooManyMethods \u2014 88 methods, declared across 9 files: Util/PhotoTools\u002BFile.swift (31), Util/PhotoTools.swift (19), Util/Editor\u002BPhotoTools.swift (11), Util/PhotoTools\u002BAlert.swift (5), \u002B5 more file(s). The bar is 30 methods; this is 58 over it, 2.93\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Core/Util/PhotoTools.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe9b4e8092e7a210f0e92f5f608fa95b6dfa7b4ebd4c385a821ae3585e0fe85"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoPickerView: TooManyMethods \u2014 79 methods, declared across 8 files: PickerView/PhotoPickerView\u002BCollectionView.swift (18), PickerView/PhotoPickerView\u002BFunction.swift (18), PickerView/PhotoPickerView\u002BPreview.swift (14), PickerView/PhotoPickerView\u002BAsset.swift (11), \u002B4 more file(s). The bar is 30 methods; this is 49 over it, 2.63\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"SwiftUI/PhotoPickerView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4463e8c5b742aae6e578fbfdf304bb42c5af036e56182574d558f2035eaf3a5c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditorViewController: ClassTooLong \u2014 1042 significant lines (blank, comment-only and punctuation-only lines excluded), 226 methods. The bar is 400 significant lines; this is 642 over it, 2.61\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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a390927f1b457679f83c0ad1de3c86c18a099bfd1e9fa97848180d49a827dfd3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoPickerController: TooManyMethods \u2014 78 methods, declared across 6 files: Photo/PhotoPickerController.swift (41), Photo/PhotoPickerController\u002BInternal.swift (20), Photo/PhotoPickerController\u002BPickerData.swift (11), Photo/PhotoPickerController\u002BTransitioning.swift (3), \u002B2 more file(s). The bar is 30 methods; this is 48 over it, 2.60\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fcfdc74fa8f05f664d26e96847eb83183799bbec921c378de0cfe21a7adafc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controller/EditorViewController\u002BLoadAsset.swift: FileTooLong \u2014 1252 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 752 over it, 2.50\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab31d1eba0273c958c199c30794cf5d8ed0852998509bea65e3d680dd3de08b7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoPreviewViewController: TooManyMethods \u2014 74 methods, declared across 6 files: Preview/PhotoPreviewViewController.swift (29), Preview/PhotoPreviewViewController\u002BCollectionView.swift (15), Preview/PhotoPreviewViewController\u002BToolbar.swift (13), Preview/PhotoPreviewViewController\u002BEditor.swift (12), \u002B2 more file(s). The bar is 30 methods; this is 44 over it, 2.47\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bf53687431a6ffbf06f0ca41deb3040a49e8bcbb8c5dab481b653306307901"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controller/EditorViewController.swift: FileTooLong \u2014 1088 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: EditorViewController (17-1354). The bar is 500 significant lines; this is 588 over it, 2.18\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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e1302d260957e26344337744cb3dce9642db1537ef016e43ad85d1f0b497e4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorContentView: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1335b736cdf52d98a93cef80af2b822c2f3f5abf1ad3722adf88fb8976e83ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PhotoAsset/PhotoAsset\u002BRequest.swift: FileTooLong \u2014 968 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 468 over it, 1.94\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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a5e297dc13c0830280f7392a48ee83fd4aafff044a0bc5f40c4ab57da03004"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controller/PickerConfigurationViewController.swift: FileTooLong \u2014 967 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 467 over it, 1.93\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":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1fc6ebd9db5fcf98ae643bacc73e4113e32c202fce372b498af3c02ab54e8e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/EditorAdjusterView.swift: FileTooLong \u2014 889 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 389 over it, 1.78\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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6b92a0842cd38a00ee21644b24721b88e57c4a94b9f8d5800c429b956b32f8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PickerTransition.pushTransition: MethodTooLong \u2014 pushTransition runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\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/HXPhotoPicker/Picker/Transition/PickerTransition.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3282d069136ce5a5ca494eee20e05334076fba1927faf0a72a7fda3ef42fb981"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorViewController.layoutPortraitViews: MethodTooLong \u2014 layoutPortraitViews runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c38037144ffd9443acd77ed82cad6639963c0dc29139cb7771e8ec9d0c07156"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CameraViewController: TooManyMethods \u2014 49 methods, declared across 6 files: Controller/CameraViewController.swift (23), Controller/CameraViewController\u002BBottomView.swift (12), Controller/CameraViewController\u002BResult.swift (6), Controller/CameraViewController\u002BEditor.swift (3), \u002B2 more file(s). The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Camera/Controller/CameraViewController.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3129a9fd562d9ab7e0454ea7586b07c75fe80e17ceed5fdae725461d3f2fee43"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PickerResultViewController: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\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":"Swift/Classes/Controller/PickerResultViewController.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6f80618da71cf0ed878c230347957bf60fb6cd837c8a16660fda33836db4e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HXImageViewProtocol.setImage: MethodTooLong \u2014 setImage runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\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/HXPhotoPicker/Picker/Extension/Picker\u002BUIImageView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"22184a9d8b194e23847729e0d2e8d4b3e422a943bc4fe5ef8acaff30df435e58"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Video/EditorVideoControlView.swift: FileTooLong \u2014 781 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 281 over it, 1.56\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/HXPhotoPicker/Editor/View/Video/EditorVideoControlView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ebd999f456ec44c9ef0b809a2a9674019d8c8a528af2cf180ea92bf8508889"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controller/PickerResultViewController.swift: FileTooLong \u2014 765 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: PickerResultViewController (19-744). The bar is 500 significant lines; this is 265 over it, 1.53\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":"Swift/Classes/Controller/PickerResultViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc294a4956b5fa8f508fc1ce1820be44caba75b55dc1ff94b75579424d2f012"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorStickerTextView.drawBackgroundPath: MethodTooLong \u2014 drawBackgroundPath runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BDraw.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb0275789a5076072e36e75384b2487382186af93a013ffe0366889eca63ed6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CameraManager: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 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/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"14025c277246d297fd47eed1bf395020d67cd603650efd6d06c11fbb6fc80b7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controller/CameraManager.swift: FileTooLong \u2014 732 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 232 over it, 1.46\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/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b959a2b1c61a391a3d338fc369167511bae5f465ac16b28a0536b994cf703ce5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorVideoControlView: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\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/HXPhotoPicker/Editor/View/Video/EditorVideoControlView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"24de0a33b1a1c3153f97683b76142675849f8ed9bac9c28b170c37be4bda7df8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoTools.getWXPickerConfig: MethodTooLong \u2014 getWXPickerConfig runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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/HXPhotoPicker/Picker/Util/Picker\u002BPhotoTools.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1030be2d8eb57565f3ecaef810c024419e3684571f986fcd4afa0a42fb6f4f0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoBrowserAnimator.presentTransition: MethodTooLong \u2014 presentTransition runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"47db07153a4429d162e9a8705910725e7eb8817a8de4368b16042df1be3281ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoPickerListViewController: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0699eb5909b5b30f80c08d998bdf1632e507da399e92caf53e2775346c103d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PickerConfigurationViewController: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2511da0b8b39d84ec1142189594361719c38ff5f199d5a4fe32e7413f1b4c548"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Picker/PhotoPickerListViewController.swift: FileTooLong \u2014 683 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 183 over it, 1.37\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fef1ffa204db862fb2c56ea07c2f3f3259e7bc24b358cdf048b8f5816d8728"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ToolBar/PhotoToolBarView.swift: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 182 over it, 1.36\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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edddc3daddabaabfb0ca1eb2c45094923e0603a16e7304b14f34854777de7ded"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PickerResultViewController: ClassTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 142 over it, 1.36\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerResultViewController.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9209ee97a6000c12ae39707535df26ac876a47e07e26a7a87d0845de64181c5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditorStickersView: ClassTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 140 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/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6072dae25a81f9e0c938441df0c7a9596e5b78fe967854aad31e51bfc7d59dcf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorFrameView: TooManyMethods \u2014 40 methods, declared across 3 files: View/EditorFrameView.swift (35), View/EditorFrameView\u002BControl.swift (3), View/EditorFrameView\u002BVideoPlay.swift (2). The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Editor\u002BView/View/EditorFrameView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7189e6d207dda86e10fa15de341351f3b2008a754019a26fb06952f8eb81ba"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AssetManager: TooManyMethods \u2014 40 methods, declared across 11 files: Util/AssetManager\u002BAsset.swift (7), Util/AssetManager\u002BAVAssetExportSession.swift (5), Util/AssetManager\u002BImage.swift (4), Util/AssetManager\u002BVideoURL.swift (4), \u002B7 more file(s). The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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/HXPhotoPicker/Picker/Util/AssetManager.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"40872ed62615864fea81e573736a39c1e863ec585aabecf816ad8525b04d97d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoToolBarGlassView: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"83654662d2d407221de5fe345daba44e35d1aa0634329523de0dcf3b319c5710"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoToolBarView: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcaf1e907227e4a1b8bb8543a9d59a901a44ce9827fd437d6e82bedc50184a1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controller/EditorConfigurationViewController.swift: FileTooLong \u2014 664 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 164 over it, 1.33\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":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74def68d85b87990b7571364b5b985804b2a021726d36ae5644381390a51263"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoPreviewViewController.initView: MethodTooLong \u2014 initView runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da7bff8866312076e1cd01a6782bbd555c06747b909749a7b3093134fe84cca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PickerTransition.popTransition: MethodTooLong \u2014 popTransition runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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/HXPhotoPicker/Picker/Transition/PickerTransition.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"8299ff2e52b6ec5dc706eb4660b94c44e54923bd24018f68dbd0ce4bda9cdbef"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorAdjusterView.cropVideo: MethodTooLong \u2014 cropVideo runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BVideo.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"653fcc7eb2b3a93f08fef2de569bd52a4db3dcc35bb2f36f776f3f4dbbbab607"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Util/EditorVideoTool.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/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"079cdc03e04e22f8e9196672e2b7bdedc35ece44a8145e5fefe585c35e27c1af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Photo/PhotoPickerController.swift: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 143 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/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7194d89d67cceca3fa28f2cf628ed5d56336a81fbb0028ca90215f69b2bf99e0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorVideoTool.addWatermark: MethodTooLong \u2014 addWatermark runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ae1dc8bfa00075d77322579d87ea4876603f89ae49d1aeae3fa17d7d9928ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoPickerListViewController.collectionView: MethodTooLong \u2014 collectionView runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"059aad0a205f97ffa8e9eb80533616c62095b107983f84626531995ffcbd92d0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoAsset.requestLivePhotoURLSuccess: MethodTooLong \u2014 requestLivePhotoURLSuccess runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8ac95518eb7e0a68d21b40ef68d0c06490fe67c08e7e446249e451eb3b74d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoPickerListSwipeSelect.changedPanGestureRecognizer: MethodTooLong \u2014 changedPanGestureRecognizer runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListSwipeSelect.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a36affdd33370ba315e66f896553577ca885fd966a29efc91b44ad24d1da6da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/EditorMaskView.swift: FileTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: EditorMaskView (10-495). The bar is 500 significant lines; this is 118 over it, 1.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09581f7cc24a10bff5b2150a86c0e278c0dc367d23241ef8ddefee097558fba5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditorStickersItemView: ClassTooLong \u2014 491 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 91 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/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"846916e4e6b4b9a7cc3b7e0504f75d36843e370dc619d0b71726f7b6fcaaae05"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorStickersView: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6ee064243608f56552f7cbacdd4c5ed78b5de5223bd7f8978e3c9991b1b746"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoTools.getLivePhotoVideoMovURL: MethodTooLong \u2014 getLivePhotoVideoMovURL runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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/HXPhotoPicker/Picker/Util/Picker\u002BLivePhotoTools.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf12e6db6693da5401fb3f4a6473fdb4585c8f8854f86609d90d919732d34cc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoFetchAsset.fetchPhotoAssets: MethodTooLong \u2014 fetchPhotoAssets runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\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/HXPhotoPicker/Picker/Protocol/Fetch/PhotoFetchAsset.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf3eb37ab3d5eacc6762322fcbf4c39d2206c551edba2c1e019eca394b4d381"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoToolBarView.init: MethodTooLong \u2014 init runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9457487014469d93e013ab853dd60f79b2ba05b071a311e5013540112ae1ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ToolBar/PhotoToolBarGlassView.swift: FileTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: PhotoToolBarGlassView (12-575). The bar is 500 significant lines; this is 78 over it, 1.16\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"374b75216cd94e11d106b0c373ccea717a8a470379280e52d9dba5b35813562e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoPreviewViewController.openEditor: MethodTooLong \u2014 openEditor runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"be03818c4a1bfce14c007c6b4cc6c9fdab12435281150d1eec2508cd850a98e4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PreviewVideoViewCell: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/PreviewVideoViewCell.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d19a4d84e9424aeab6d771e48b80a57f023d9764250cf0baf0f8d5418e30b20"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditorConfigurationViewController: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd0dc7e22d68c33ac452180bea15b6cdf49368e7aa56d6b7992de9c19461152"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PickerInteractiveTransition: ClassTooLong \u2014 450 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 50 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"775912d90d8ee2f8f37d7b3fd80a274a5ab8e972cdc7fb974462223ee754b88b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorAdjusterView.cropImage: MethodTooLong \u2014 cropImage 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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"618083829d404e42cf4e1b6b4dafc67aa43b4dad0e4a277c852a0ca7094a9da7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AssetManager.requestLivePhoto: MethodTooLong \u2014 requestLivePhoto 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/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c80ecbbdbf657e624d9d36ef31bd2552f00cb5625845f799af1972150cee4a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/EditorAdjusterView\u002BCroper.swift: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 57 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac1440c87dab58bf4d508825b4b396a56af29b9707f08a78847d61b86acb5dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/EditorStickersView.swift: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: EditorStickersView (29-755). The bar is 500 significant lines; this is 55 over it, 1.11\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/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"114b5b28139375044cef6bc5044db3b0527f204828f68414968a4f560e0c0c16"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PhotoToolBarGlassView.init: MethodTooLong \u2014 init runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"9814ba333f53d475428f453ebe700abe2a839f6077801c39a676720f709e441d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controller/EditorViewController\u002BToolsView.swift: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 41 over it, 1.08\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5139e7486b475bf7d76e5830ce79661432ec5ec422a2d351ccd5f8438d8a11bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorStickersItemView.update: MethodTooLong \u2014 update runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99e2346cfcc9f17cc940d0b59204b73e3ecfdb3ebdc69130c41c560661aabae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorViewController.filterView: MethodTooLong \u2014 filterView runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcc952cc57f3210d6a67da0b857c4e05f167e6caa07020d852c9ada7df51f28"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorViewController.filterParameterView: MethodTooLong \u2014 filterParameterView runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"814253367d65546b5a6a5ba4cefec2354f4f8192bf0addc6e301af30526d51f3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoPickerPageViewController: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerPageViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2370b80fc27e5c79a02ba9f5fbbd03625a6f2f7906f3c77c739392aaf950b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Filter/EditorFilterParameterView.swift: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 25 over it, 1.05\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/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"739f8d9b523436371b508f6dec5234438dcb8f3aca0f784ec9a0ec7ffa3a36e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Model/EditorModels.swift: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 23 over it, 1.05\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/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7c66316bacf20cde81181621987bdadfd89de924dc14bae36dde59e57b95bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Browser/PhotoBrowser.swift: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 23 over it, 1.05\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/HXPhotoPicker/Picker/Controller/Browser/PhotoBrowser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1697c6072847ec50b3c2dba705572251b9e876d461881da8595f575be229d6d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ParameterSliderView.panGestureRecognizerClick: MethodTooLong \u2014 panGestureRecognizerClick runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5b51fb730709e5e4ed625deb369639657c05f627fa28b877fb24bb1bf10f35"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorVideoControlView.initViews: MethodTooLong \u2014 initViews runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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/HXPhotoPicker/Editor/View/Video/EditorVideoControlView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adc5bd746f4e7712c1afe924611f7c46d962bf3e62aee7cba2a939c78e91a83"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/EditorControlView.swift: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 12 over it, 1.02\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae581a12517232f95cb707f17b9d87d4f773ee697ccde82a2b509d4117dd4841"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PhotoToolBarGlassView: ClassTooLong \u2014 409 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 9 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"71aaf075a43ff85788e371108a9c9a0d25332160ad08b8896bc1884150c3d926"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PickerInteractiveTransition.startInteractiveTransition: MethodTooLong \u2014 startInteractiveTransition 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/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"3398291ddb85f8f09d217d005fbb454c68413151f11a7e5016df830b71943d37"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PickerColorConfigurationViewController.colorPickerViewControllerDidSelectColor: MethodTooLong \u2014 colorPickerViewControllerDidSelectColor 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":"Swift/Classes/Controller/PickerColorConfigurationViewController.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f187c83a27b72188692d7dc67f8f987ef5e0005c0d51dc3f8046587ee114384"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/EditorStickersItemView.swift: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: EditorStickersItemView (25-649). The bar is 500 significant lines; this is 6 over it, 1.01\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/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7772594dfa1af12fa7154debb2a295f7f5f29bc7f37312df51214379e0f61d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditorVideoTool.textAnimationLayer: MethodTooLong \u2014 textAnimationLayer runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"945a42c2599fe2afe8355c37e410d22363f4b9a83c0b44ad07757f3ec00c10c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Preview/PhotoPreviewViewController.swift: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f992e75338da7594cbf52e090a60655ddf69975a9a285fcbca9563be3ba5ae79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controller/PickerColorConfigurationViewController.swift: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2 over it, 1.00\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":"Swift/Classes/Controller/PickerColorConfigurationViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4397c7c56c6f2cf3d3413aa96b568d1e6bb6562b63d44ee5ef39238918b77cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (74 shared lines): Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:96-204 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:281-419 \u2014 These two members are variants of one another: 74 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":"Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9260676da586b6b7c7d71ca62684e3c332925f55fa7901379732f7f7822bbfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (59 shared lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:115-176 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:103-164 \u2014 These two members are variants of one another: 59 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":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fa0e3271b8cf8eed56fab92f8c2c3b56c6bc4eff022e13882a4dde448730a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (56 shared lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:137-204 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:206-281 \u2014 These two members are variants of one another: 56 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":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0774eb184a026be332feee057b4089d613e59838a5b559f5611df2e0d73a4b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift:49-158 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:1110-1168 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9aff3542ac682018d86d40a068b525601e15c210320ab28d44e9464789d2307"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:174-197 | Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:288-310 | Swift/Classes/Controller/EditorConfigurationViewController.swift:445-467 | Swift/Classes/Controller/EditorConfigurationViewController.swift:601-623 | Swift/Classes/Controller/EditorConfigurationViewController.swift:624-646 | Swift/Classes/Controller/EditorConfigurationViewController.swift:647-669 | Swift/Classes/Controller/PickerConfigurationViewController.swift:370-382 | Swift/Classes/Controller/PickerConfigurationViewController.swift:461-473 | Swift/Classes/Controller/PickerConfigurationViewController.swift:483-506 | Swift/Classes/Controller/PickerConfigurationViewController.swift:529-542 | Swift/Classes/Controller/PickerConfigurationViewController.swift:639-652 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9b0060d0832b44803061f2fa3c2e2046308d3a070764412992dec5e25a1f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Swift/Classes/Controller/PickerConfigurationViewController.swift:543-558 | Swift/Classes/Controller/PickerConfigurationViewController.swift:559-574 | Swift/Classes/Controller/PickerConfigurationViewController.swift:575-590 | Swift/Classes/Controller/PickerConfigurationViewController.swift:591-606 | Swift/Classes/Controller/PickerConfigurationViewController.swift:607-622 | Swift/Classes/Controller/PickerConfigurationViewController.swift:623-638 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"65717865a6aed65be05b52c533a9fe989e881ce93635ee1af3c8651eac58aab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:214-238 | Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:258-287 | Swift/Classes/Controller/EditorConfigurationViewController.swift:480-508 | Swift/Classes/Controller/EditorConfigurationViewController.swift:566-595 | Swift/Classes/Controller/TestEditorViewController.swift:122-697 \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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f7184e0d434129ba888390c10a65f6ad9ff0907bfa13981d9a09105b772bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:452-495 | Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:563-600 | Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:765-815 | Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:817-948 \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/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"345528545cc0c74a50e42b41f1f493e1e1dd2da061265ae10ed1ec20f279be93"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:15-152 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:189-318 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:320-420 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:904-998 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d998bc6ddf7678a733531f0005e55015721299bb398260a7590b8518c7756b83"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:527-677 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:361-472 | Swift/Classes/Controller/PhotoBrowserViewController.swift:221-256 | Swift/Classes/Controller/WeChatViewController.swift:276-306 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbf99c12d42a920a844689e2e953ef71e9f02356a49683294e92ad9d92c30af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (103 corresponding lines): Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:70-175 | Swift/Classes/Controller/TestEditorViewController.swift:948-1050 \u2014 These two members are one piece of code written twice and then edited apart: 103 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d7b183288b4997b59ae313096e0707a410b0e5c155ee5ca853598a7860ac4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:16-66 | Sources/HXPhotoPicker/Editor/View/Video/EditorVideoControlView.swift:962-1020 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoTools.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bec787127ece2712aafeefa6f14ba9dd6292f1e4958eee52012d5c32289c547"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1057-1111 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1113-1167 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb195a33a46cda3a3edba8f58f9bc01ebc36e1c34ab7fa9facb0d39a1fa612e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (83 corresponding lines): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BEditor.swift:30-112 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BLocal.swift:14-134 \u2014 These two members are one piece of code written twice and then edited apart: 83 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BEditor.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad03d9a60d341eb402183c0167a06a807fd8deff93b9a64e7a22d1740298e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 54\u002B corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:389-450 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:451-508 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:509-567 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:568-621 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 54 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b1f2d018b61974c1ab98b647cca287a5a701c819c17da2e77afe6ff6ab9bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:502-562 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:449-522 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b941eba970c4afcbae23a62248378e8f99c062e2d433ecdccce1d97390ae7f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:837-882 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:889-935 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c54ebec512fe1070491e3e6f9da9d6c025e0a0c422667df367617cd9ec6b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 51\u002B corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:175-230 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:231-286 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:287-337 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:338-388 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 51 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e97a9edb32d4b8ffa804e23a11f8cbda1aebb7928203d02d98571c8822232f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:16-74 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:15-64 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e056853ad92ec2a01e0f816e28202be22059ecb105d2cf5dc35acbf501367c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:1198-1247 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:1349-1398 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff03733cbe04e59b17f5c4e0846a141fac2557ee3b53a4e74666071538b2234a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Sources/HXPhotoPicker/Core/Extension/Core\u002BAVAsset.swift:31-77 | Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:136-178 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BAVAsset.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"61dd81de7d66eee02c62461b3949e9008e13e1769adcd15746948e32dfd98d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift:32-104 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BPlayerItem.swift:22-75 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"df62fc0fa740a317520a3c6b02c7ec5efc903c116e980373092e994008e39ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Sources/HXPhotoPicker/Picker/Data/PhotoPickerData.swift:457-502 | Sources/HXPhotoPicker/Picker/Model/PickerManager.swift:273-322 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Data/PhotoPickerData.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"a954c21ec1d7cdb3861f189a8432d1ff7b5e350ca6d574eb75360eb1a57a04a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift:13-71 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift:73-126 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ac6c6379029118076e9a32645ea721c6039cc9dc153f195d9ad422f53959b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:353-390 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:397-443 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f35ed7aaa4e289dfce85f800dc5f836374114502fd7cf83d1c360e3d86625a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Swift/Classes/Controller/EditorConfigurationViewController.swift:670-690 | Swift/Classes/Controller/EditorConfigurationViewController.swift:691-711 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cda16ec98d4dbc39f3021999a98a5edab585a5c7e60817fcc70c9599947d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/HXPhotoPicker/Editor/View/Filter/EditorFilterEditView.swift:183-212 | Sources/HXPhotoPicker/Editor/View/Filter/EditorFiltersView.swift:185-215 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Filter/EditorFilterEditView.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a602c9bc95e8d612a8f1ce548af30ed0927351ab83165eb1a2228709423d78ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift:781-801 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift:803-825 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"d845d20b657fc5425810fb72b9954341b358be825afc59eb083c0760576e8e3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:759-789 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:865-899 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"040a44e307bdaca00e1f7cba085023b5a03f6cf1afcb1aba1435a7f3973f4864"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorView.swift:213-241 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView.swift:243-276 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorView.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf99343741eb794a836230417e69e9c682fd821e46ceb3eb243c2eda839d34c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift:377-407 | Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift:489-510 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5c95888df29d8c7cc23f441fed20c7ba5a3154f1e44d60103d43d616b9cc9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Swift/Classes/Controller/PhotoBrowserViewController.swift:138-166 | Swift/Classes/Controller/PhotoBrowserViewController.swift:258-296 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Swift/Classes/Controller/PhotoBrowserViewController.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1713302d5709ff7b67d7e729f982490903f6c20711de0de6bd5e29f571f8b7f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/HXPhotoPicker/Camera/Controller/CameraViewController\u002BResult.swift:29-53 | Sources/HXPhotoPicker/Camera/Controller/CameraViewController\u002BResult.swift:54-78 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Camera/Controller/CameraViewController\u002BResult.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbbd9dd422e1b527099fb168799559793ab8ea80267f4348e18fc1ee6305383"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift:36-63 | Sources/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift:71-99 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b932be883a4b2cda601ac55794aa4f6ade7211fec9e3f3d8375423a769378b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift:383-414 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift:416-447 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca588d03b8483e9dcc19d0579d62e5537cddf7a03008d87ef9d1576129f190a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1174-1200 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1202-1229 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbc335eb46bcf3913b695d5fff1058e58d5e2ff0bec4fc1b9662e25b152c892"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:172-192 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:85-108 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a088c0d50c88d65b06ade00340c79c16d8fb758ea8b512717c09c777ea4acd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:449-465 | Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:626-639 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ab7db3af43361b32d90a0d8e4f4053fe08fb7f1091aea1c87a059ee9c0e69d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift:139-183 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAssetExportSession.swift:168-210 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BPlayerItem.swift:98-136 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf4a7f45e01fde4f854e868cfbe6920873966a35f44337e9488ecd0d730933e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Swift/Classes/Controller/PickerConfigurationViewController.swift:183-205 | Swift/Classes/Controller/PickerConfigurationViewController.swift:209-226 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5524d58e50a84b215bb0b97642421258407da3c3d4eac36722edd908e28b2131"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:82-111 | Swift/Classes/Controller/TestEditorViewController.swift:894-911 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoTools.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8833f11a8ca1cc5f1cec078528fcc46c638e3fdb824c4d3fdf1ae126b1880ac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift:427-444 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift:448-465 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec1808a63cba913287b71616163f2ca0f0f87bdf836af1270b77fc12008774f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:91-114 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:81-102 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5fce81905ece4711fe6abcb2367de07c2a94798836b51d451f2b912977cfef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressImageView.swift:83-93 | Sources/HXPhotoPicker/Picker/View/Kit/TickView.swift:15-29 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressImageView.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fc968d55525d78bf8ab49c699714f2906c8fd3d178c88652dcd194190e1753"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:273-303 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:219-250 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d628bbb9f4863b4ef2cb64733f59490029147904f41694604bfeac6cdbe976"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewSelectedView.swift:360-381 | Swift/Classes/Controller/PickerResultViewController.swift:720-739 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewSelectedView.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e96104e6f7e4dc1aa9042ee61b5b26bc1bc25b607b7a39c68b85ce1bf209534"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift:296-325 | Sources/HXPhotoPicker/Picker/View/PhotoPreviewVideoView.swift:207-236 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"446a96241eaed1911862c5a970f0082365f11126e863ec578db9a6f3a381ffbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:641-657 | Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:721-737 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:137-150 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:175-189 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/NetworkAsset.swift:210-226 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b964d741f9354c899a68c9742f3d79c7a80ea3df7229883d9be8537105f4b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift:252-272 | Sources/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift:274-292 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd39e36d9da3ea2e0348a2a62cf7d336c89a60bb33e967154e43d9136c303ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:588-599 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:123-136 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:160-174 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aff2a6e58f7155613ad15a0b6dea30a274dafa215fe17023af4dd39e3285cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:86-124 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:126-151 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:153-178 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfad8c927c8cc6bcaaac383830f1cd0516653f02abcc91033707eb0121c7c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift:142-165 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListFectchCell.swift:36-54 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a677845cccf48faba938f1b688af13f1e8411dd2984ce5494d8cc3a66f342c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:475-490 | Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift:210-229 | Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift:450-469 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"068825590085aa8b54610074759e1277dd92079d8bd29543ed72eca4427c3bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:601-613 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorDrawView.swift:266-278 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorMosaicView.swift:473-487 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f23a3466c53a592a6f4951ee01aa273068ed6575585aca4f4245e8eba5c40c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:261-283 | Sources/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift:628-648 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoTools.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"d668dba8b6c1df48e939924e1c94d05ea38eeda0dcfe824d00442eaa11a0279b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Objective-C/SwiftPhotoPicker/SwiftPickerResult.swift:54-75 | Objective-C/SwiftPhotoPicker/SwiftPickerResult.swift:90-110 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Objective-C/SwiftPhotoPicker/SwiftPickerResult.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ba63516b11f4bf5863d488a83c13a70de4b926477627187601bf8d6364e650"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift:475-506 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift:507-546 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b12a55754c9f6efdb0f40c15da30cde367fe9271477a20187c5225fd8a59df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/HXPhotoPicker/Picker/View/Cell/Album/AlbumViewCell.swift:90-108 | Sources/HXPhotoPicker/Picker/View/Cell/Album/PhotoAlbumViewCell.swift:83-102 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/Album/AlbumViewCell.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c73036551874b4d7c2e0c27a68be8b4b51a35c4300814d7b0c48e89a5002cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/HXPhotoPicker/Picker/View/Cell/PreviewLivePhotoViewCell.swift:255-284 | Sources/HXPhotoPicker/Picker/View/Cell/PreviewLivePhotoViewCell.swift:286-305 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/PreviewLivePhotoViewCell.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25795db05d5091758b6184c002c549182892c89639fe47e2892f060f144d4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:696-720 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:723-749 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:752-776 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"40008276577a0cf618d1156a58ef37f2f7f220b5c81a3bf653fa8a4a3414ee7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:301-320 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerList.swift:144-166 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb641e9c193ab0308e39bc3f81e5e3d5374543eaa56b59847b130b060f08098"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:737-749 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:763-776 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35d3304e912ed087292f6b43ebdad8084b8c282cd8f851addcfb82e4232b0ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:161-197 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift:282-305 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"979ead414682cd51e67416ce13e6c317d88119d1caef26f4f3f2d7ef0d6ff7ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:76-90 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:66-80 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9c5724a829f234d551adb44887466bead24c70777085d3f4defa7b7697b856"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:435-460 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:156-179 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cacf13bcd9f1458f5f97c0121c1fbce525903496cbc323df94582a6ae9d6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1231-1244 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1246-1259 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a21ce85dc6770df0fc26328e89c029939130747872f9dd00833a792da55a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:18-36 | Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:58-78 | Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:203-221 | Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:223-243 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/HXPhotoPicker.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9869cdf1d5ccb0f0fa45195665bcdc4d34a58db63a18bd355f85e31987d0f696"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:348-366 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:387-402 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:407-425 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"1058cad98b03e7f8e0fb85ce7a975db5f4ae5fb6dc85aa5a8b14bf04ff42e561"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): Sources/HXPhotoPicker/Picker/AssetResult.swift:27-42 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:348-366 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:387-402 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:407-425 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/AssetResult.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6883c0d398382d78fe0cdc93c1ec7f19dd8a71d0b808560fdff63ecc37e9660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:96-123 | Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:140-165 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/HXPhotoPicker.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eff0a669058534151ba53bf2f653c88dc7a1162e282495a27d415664e3ab583"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BMirror.swift:12-36 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BMirror.swift:45-69 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BMirror.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf85b24699ad638dc604a71b14151a52d85c2353f6de2f7bb3b1acc0371fd8cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift:186-201 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift:203-218 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0c4962de6fed07bb8a2f82d5a30c4df77c98e9628d12ab910c43f7c1eb12c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift:133-147 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift:195-208 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab42c03e6d5e5794c6651182591e0d58469c17ce0c2ea1dea676c50be09de1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:195-212 | Swift/Classes/Controller/TestEditorViewController.swift:1070-1087 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b89ce4237cdb932584e11c4c258a27adcef0a9f7609e315338448fb8127f6c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/HXPhotoPicker/Picker/Util/AssetManager.swift:20-40 | Sources/HXPhotoPicker/Picker/Util/AssetManager.swift:49-69 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/AssetManager.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b757c5126cbb83243fa8f9cea47453d1c19a0a3d371a612a4f1de42a6fac067"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Swift/Classes/Controller/PickerConfigurationViewController.swift:298-311 | Swift/Classes/Controller/PickerResultViewController.swift:343-358 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa174cdf53f55ed31f3fb3d2d245f72ef7bbb33e8e40952fa8cbf82d0da753d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/HXPhotoPicker/Picker/View/Cell/Album/AlbumViewCell.swift:70-83 | Sources/HXPhotoPicker/Picker/View/Cell/Album/PhotoAlbumCollectionViewCell.swift:84-97 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/Album/AlbumViewCell.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd9df2d54a9293abe2e62f289e441590cf90ce27d577da3123e19bae0387f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift:455-466 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift:467-477 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d9783ef333d8632390bc536c18cc14e62bf80611a1b277651ccfa78c37f820"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift:22-43 | Sources/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift:45-63 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Util/EditorVideoTool.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"767131a8dec004be743b799193a6c58fa48c8db48aeab167d2f21af9070f9e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/HXPhotoPicker/Picker/View/Album/AlbumGlassTitleView.swift:62-80 | Sources/HXPhotoPicker/Picker/View/Album/AlbumTitleView.swift:76-93 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Album/AlbumGlassTitleView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"119aba920bd17c5c8009716fd246640a7a8c12e82253f56c515d2ecb89516222"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift:112-131 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BPlayerItem.swift:77-96 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ea4eb97ce349fed8ce3e686e57cda2179110b384b11efc54e1eb646cd9fc36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift:173-182 | Sources/HXPhotoPicker/Picker/View/PhotoTextCancelItemView.swift:48-57 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cc406edc1dca04e1d75e1d72c8aef63d90f8e568f9d8bf9d63bc65e6f3d775"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Swift/Classes/Controller/EditorConfigurationViewController.swift:23-37 | Swift/Classes/Controller/PickerColorConfigurationViewController.swift:30-43 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f35784c438cb7d6107f301840e5b658ebac07767d2cca899333c519e8c5947"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorDrawView.swift:40-50 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorMosaicView.swift:46-61 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorDrawView.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b16111ddf0d81355af0d61115565c77598cf9cd16533b3bd2afda9fc633363"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/HXPhotoPicker/Core/Controller/HXBaseViewController.swift:83-99 | Sources/HXPhotoPicker/Picker/Controller/Browser/PhotoBrowser.swift:431-446 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Controller/HXBaseViewController.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"1502beb4d855143680f4a013102bdd594d73ed6666d704d018cefc4f5133d5c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/HXPhotoPicker/Editor/Model/EditorType.swift:92-99 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:208-215 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/EditorType.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d9f48681c3924f8dd4504e128481ef50ed36497a22522d3b85a49de71f6aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:56-68 | Swift/Classes/Controller/TestEditorViewController.swift:934-946 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcee3081d02fd87becd62824c03cdf1600c5c03052115515e0f4ba1fa30f706"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift:192-206 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift:208-222 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9771fc4b2f66b6e5b3d846b1fd72f84390b0761f32a49b7cf9f3f73f506cc4aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/HXPhotoPicker/Core/Extension/Core\u002BUIImage.swift:110-122 | Swift/Classes/Extension/UIImage\u002BExtension.swift:24-36 | Swift/Classes/Extension/UIImage\u002BExtension.swift:62-71 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BUIImage.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0f581a56624d4411f80b32540163a43c0a45c1739501deeb901a8d6102c94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressHUD.swift:379-396 | Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressHUD.swift:434-451 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressHUD.swift"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1824bbb794f0c0d580724fd496f1929ce457b9d5656eefc6ca8945992261371"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift:281-297 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift:299-313 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37c1e4f4b32523ac607c1c1c1995d9026bb01563ebfcca55a546260e5d69dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController\u002BTransitioning.swift:13-31 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController\u002BTransitioning.swift:33-54 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController\u002BTransitioning.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4071d91b2ac9e8f7454781186dd2f31cdb0dfd6f0da9ff0febe0b50ffc403549"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Swift/Classes/Controller/PickerResultViewController.swift:756-771 | Swift/Classes/Controller/PickerResultViewController.swift:773-787 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerResultViewController.swift"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a624f14df1b831f07192eadc562e539e9b97b1faf0399be9400a7f5ed708fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Swift/Reachability.swift:140-148 | Swift/Reachability.swift:150-162 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Reachability.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c03ccd9c0e658ba02e8e14629142ca4ec8bf21abb8f7d3311d4ea9c959afea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/HXPhotoPicker/Camera/Controller/CameraController.swift:172-186 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAwait.swift:39-53 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Camera/Controller/CameraController.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d258f5decc594313787d531b7681eb68c622f4511001585d7ece87ec65a764ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:283-299 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift:143-161 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerList.swift:128-143 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c0cf678ff2458a579cb79eba8618abee9c9e4b83094bdd64ff13b4ba1de23a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/HXPhotoPicker/Camera/View/CameraNormalPreviewView.swift:169-187 | Sources/HXPhotoPicker/Picker/View/CaptureVideoPreviewView.swift:146-168 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Camera/View/CameraNormalPreviewView.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65277a0f7df7a310037486ad306aa3068c8444db40cf3965cd6ea304482fde0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift:220-236 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift:238-254 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11c120f6eb94d49bc40e68107bb1134bc8d42b8129dc660be771c6223357818"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift:65-86 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift:87-104 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8880fc292348c5990a304ca78eee29cf2ffa5ed108c6f07824ae47d0c8cfb63e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/HXPhotoPicker/Picker/Extension/Picker\u002BPHAsset.swift:114-127 | Sources/HXPhotoPicker/Picker/Extension/Picker\u002BPHAsset.swift:129-141 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Extension/Picker\u002BPHAsset.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"974903841a5c00166bf73e382ac1b266a18b45922170cfa6612943831c4efbd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/HXPhotoPicker/Camera/Controller/CameraController.swift:159-170 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAwait.swift:25-37 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Camera/Controller/CameraController.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73c68e5fc8449d3568bdff1888c0b09d3927b227cded0db154205a1eaf33b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:406-420 | Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:82-94 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoTools.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba560891d13f4676488094e8dec8a660a9a22d4ec129d05385062036c0f717b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:198-214 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:216-238 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:240-256 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"277525d6ef0da8b45a1567315e020985b880470e6194e84cf848ddb364730fd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoSplitViewController.swift:145-155 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoSplitViewController.swift:157-167 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoSplitViewController.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"284cf492164cda5f5da652a91bc1c6379eedf50e479e7c35fc6a1feef3295852"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/HXPhotoPicker/Camera/Controller/CameraController.swift:97-110 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController.swift:1319-1334 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Camera/Controller/CameraController.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"732b02f9e64ef8b19de5b70b79dfd5179a1f2398cbe82204c2f92a8da372d552"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressHUD.swift:179-197 | Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressHUD.swift:225-244 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressHUD.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"664f542198f625605a7a796b8214270018beec7f85ec96ef80fcfe7b5d33ad09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BAlbumView.swift:133-147 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BAlbumView.swift:151-160 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BAlbumView.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"807fcc51c49eebf0fa02383b3a5557e75114fd538899eefe923756cb09a1d60f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:500-513 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:515-525 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"b400274e9094913b34641fc5fc269871466d12e68c380b9bc2b130718586b81c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:177-193 | Swift/Classes/Controller/TestEditorViewController.swift:1052-1068 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b31a4c8556785c55a27b36696182e67e15ddf7ebaa6e1c9edc0103745eeceb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController\u002BInternal.swift:14-34 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController\u002BInternal.swift:35-55 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController\u002BInternal.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ba6001efda3f953d479bc09507ad2d5833935d268aece959e7b68a46b79bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:437-446 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:571-580 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"c946ebfed73a40c491f3ffd401e42d2a2b82d975fac7874e7906d0b60a2aa68e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:76-84 | Swift/Classes/Controller/EditorConfigurationViewController.swift:110-124 | Swift/Classes/Controller/PickerColorConfigurationViewController.swift:60-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"96dfaa69fe6f997f765243684124af7eb82b6396c70f7e44c5e7a97ff2e444fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): Objective-C/SwiftPhotoPicker/SwiftPhotoAsset.swift:39-52 | Objective-C/SwiftPhotoPicker/SwiftPhotoAsset.swift:54-67 | Objective-C/SwiftPhotoPicker/SwiftPhotoAsset.swift:94-111 | Objective-C/SwiftPhotoPicker/SwiftPhotoAsset.swift:117-130 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Objective-C/SwiftPhotoPicker/SwiftPhotoAsset.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"be997a58ba3ba70aac5c9046a7fe3910277c9918c7684114b9dcf539e767f4cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/HXPhotoPicker/Core/View/HXCollectionView.swift:13-23 | Sources/HXPhotoPicker/Core/View/HXTableView.swift:13-23 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/View/HXCollectionView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"339b8d2a83a11f7ac4e751cb1ed133b54fb72711e58f8bd3bfa40488db4bc609"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BEditor.swift:116-131 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BEditor.swift:133-148 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BEditor.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"63fcba3202c6bd6619c1c28d2f667e9399b1d8c1123a915a29b7a16a7d5a52e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPreview.swift:172-189 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPreview.swift:191-208 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPreview.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbe33fb2a2b24165b342c08c2480130b9eac1940e4faf2d20e035bbca814ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1030-1049 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:140-158 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcd1eab1db80cdffc923e72173cc4ef9e68da92942919952e39f8a781b53e71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Browser/PhotoBrowser.swift:256-268 | Sources/HXPhotoPicker/Picker/Controller/Browser/PhotoBrowser.swift:270-282 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Browser/PhotoBrowser.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9ee6e783520c6778c5874d28d7e968f11c80893ef8271847e480a4f9eb5fe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift:302-310 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift:329-336 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0499b981c5365e2db4f1c3b61ec9659aa32a70b91161deeba87a57a9a5ccb8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewListView.swift:177-188 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewListView.swift:190-201 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewListView.swift:203-213 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewListView.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cddfbfa37975131950d1260d08c6b08839d263c8cc0b2347f4676d2651a30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/HXPhotoPicker/Camera/Controller/CameraController.swift:148-157 | Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:170-179 | Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:278-287 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Camera/Controller/CameraController.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd9a5bfcafee3b82cdd0d73a5ad7c5216a11ffd0d8f061bb48b822e362c0d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift:499-514 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift:516-531 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"69090c497fa6c907ec807de32fbf047742906b5af01147ce57ec16f761bb10f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift:218-232 | Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BCollectionView.swift:18-33 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"334d604ac83c3e4f9d1ab3ffefafa7065892d67f7aaed510ab6999494148159f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressHUD.swift:360-377 | Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressHUD.swift:416-433 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressHUD.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"b137dbf9601656e9614f93ebfbf3baff7f6f3d86012638010341dbbce381c422"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift:126-140 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListFectchCell.swift:57-67 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51e61b78c34b0627688a38a5420b3d1cdf5bb9aa9ff9589107bb7a72c17f2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:398-408 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:346-356 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"944af53394b66e6b9bf6478ea5fa0d928d273ec09e831bfb897666b382a48b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 11\u002B corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:852-862 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:866-876 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:880-890 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:895-905 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:909-919 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:930-940 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"5002074d8a52c002a982296206427a21700098b5aadcfcb1e0e5cb813352accb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/HXPhotoPicker/Editor/Controller/EditorMaskListViewController.swift:76-80 | Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift:273-277 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorMaskListViewController.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aaabec01250c501323aded17d947510882cabf960c172905b7e258c0c32468e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Browser/PhotoBrowser.swift:863-873 | Sources/HXPhotoPicker/Picker/View/Cell/PreviewVideoControlViewCell.swift:101-111 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Browser/PhotoBrowser.swift"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"365154998e9004201c753076c6ada530be0d0e62833e3d961c82113c63acd349"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/HXPhotoPicker/Picker/PickerResult.swift:133-146 | Sources/HXPhotoPicker/Picker/PickerResult.swift:148-161 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerResult.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b9b6e88d9040ca0eee3b72e28710888e6ae288ca635a77fc205d849a07ead0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:273-288 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:118-135 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bc05618c5e57e10b1dbe148a8029a10edea82a1b9e60b097f39f25e12294c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/HXPhotoPicker/Picker/View/Album/AlbumGlassTitleView.swift:30-41 | Sources/HXPhotoPicker/Picker/View/Album/AlbumTitleView.swift:33-44 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Album/AlbumGlassTitleView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01067a9ce76fc5372d68876b653d05daa081897101c537a345bd65af8d7a16c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:128-138 | Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:264-274 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAwait.swift:14-23 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/HXPhotoPicker.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0006e056bd3df56fda529a1d23b31b5133cf18ce1ff9d2dedcc0869b83ae2f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift:369-385 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BToolbar.swift:124-136 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"59819beefe172566ab54a1568d835276ee915e06c6e83e0822d76d520c735930"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:93-101 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView.swift:176-181 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9f82a3d0586702daf230d3582f4ee027c9002c1d576386236507b1c54f0d8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:762-773 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift:571-578 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"1922cfc675d89ec1e94a05b156a497a9be3f7368dd88ec564766e83f97f03d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:80-94 | Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:246-260 | Sources/HXPhotoPicker/Picker/Extension/Picker\u002BUIViewController.swift:33-40 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/HXPhotoPicker.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4a8663c5e975b958fa579616e1c2c559b57984b861e918a20425f01a36dbae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewSelectedView.swift:327-339 | Swift/Classes/Controller/PickerResultViewController.swift:678-687 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewSelectedView.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"837842ba1e7446867c6efd0706311206980bca1bf8c9ffdec41b75fcba3c69ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift:249-260 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListFectchCell.swift:154-163 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"0584554349fc79cb7139086ac91fc04c0dcf912b82d0128dbcb88c25e50b8c5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Swift/Classes/Controller/PickerResultViewController.swift:533-546 | Swift/Classes/Controller/PhotoBrowserViewController.swift:125-136 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerResultViewController.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1e6b5e6e1eb7369aa7daf294f91429a9de4c8747aa722a73dae4d886ffa3bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:244-259 | Swift/Classes/Controller/TestEditorViewController.swift:1120-1135 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"9264cf2005c0ceee4ed6af11220e1e4cc1f7c81a779232232f5ff2384f51f97f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/HXPhotoPicker/Picker/Transition/PhotoPickerControllerInteractiveAnimator.swift:20-32 | Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:27-36 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoPickerControllerInteractiveAnimator.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8f784da46f7070cb6fde21bae8115026f23c131fa893464c67a8701bbd41a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift:243-251 | Sources/HXPhotoPicker/Editor/View/Video/EditorMusicView.swift:218-228 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"895d2441c6d0b4841eb26392919b0b4494a289ae84a51b529b6bac6edf10735d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:177-180 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:165-168 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ae9a8a1b068138d4e7a1870328239340aa2605d2b39da9870a118ed2e3d286"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:138-149 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:53-65 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad3c93ef4ef50dcdf7b62fe0a7d3e03572b3e2df5e461ae7d376110a7bc261e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:352-359 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:301-307 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18be9e3c50cc9047aed628376696320a336b09cc2fc431f2f2bbab654009206"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:304-311 | Sources/HXPhotoPicker/Picker/View/Album/AlbumSectionHeaderView.swift:38-45 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e25725ef34b42c17eeb7ca51fad6fb25e9723145a5fe698bf7cfeba9aa3a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Objective-C/SwiftPhotoPicker/SwiftAssetURLResult.swift:63-74 | Sources/HXPhotoPicker/Picker/AssetURLResult.swift:22-32 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Objective-C/SwiftPhotoPicker/SwiftAssetURLResult.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c55d41365479d18f7d503d7b7a1b0b61afe0e18fe7695af12bcaad5e8e477ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Swift/Classes/Controller/PhotoBrowserViewController.swift:110-119 | Swift/Classes/Controller/PickerResultViewController.swift:359-367 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PhotoBrowserViewController.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"205141950c035ac31c0e6fd2c66c0700b72348f4cc9548fb2258ea006b9f7cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorFrameView.swift:54-58 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:250-253 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorFrameView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f717f3b21c7bf3bfb5dcab90caf55a69445d85016c6523bb9c1897a68a91fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:357-359 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift:479-481 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b16581b91e26b74cb48710091e814575216eb98f7d2e6d0c286c5978c0f3a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:360-362 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift:482-484 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:183-185 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"914e733fc449e57344f27cd9fa70054c0c0d9c218bb2cd007935117da2bf0d5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Album/PhotoMyAlbumViewController.swift:71-74 | Sources/HXPhotoPicker/Picker/View/Cell/Album/PhotoAlbumCollectionCell.swift:73-76 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Album/PhotoMyAlbumViewController.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b81f9a005bd5b786076b50c0e5a182434fdf6b9e6229d84256f5b0a2373f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:340-350 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:290-299 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69627353ea255802fd7365c14ced85c240171bdef0ae7067437cd106c905eed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Swift/Classes/Controller/EditorConfigurationViewController.swift:219-227 | Swift/Classes/Controller/PickerResultViewController.swift:896-904 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdd0ae9746fca90889becc99823b933534276594279f049183a5fa8cf65f62c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerPageViewController.swift:359-361 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:88-90 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerPageViewController.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4de2e2c252bdf9778b7388e7e1f3c5450af3101fc9a0135838ec9b39b1e74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BToolbar.swift:53-57 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift:339-343 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BToolbar.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff5a6d6305fc67bb4eba365908762ab9ab5de237f39e24fa111461ddd34ba5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift:273-281 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListAssets.swift:24-32 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd02f20f6ace005bbc3be1b0e9e4a9bb66f4514519cb4959da662118398d44ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:210-213 | Swift/Classes/Controller/EditorConfigurationViewController.swift:476-479 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a60fd829d6315b00ae42df76b24e5916e3814bba9ed6cee3fa88b7eb5be6a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BFile.swift:145-150 | Sources/HXPhotoPicker/Picker/Util/Picker\u002BLivePhotoTools.swift:14-18 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BFile.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"881e7d22bc63d477fc56286a8acbec3b46fe034a2a68506fc382f458c52ce6bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BFile.swift:152-157 | Sources/HXPhotoPicker/Picker/Util/Picker\u002BLivePhotoTools.swift:20-24 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BFile.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a333af12c7cf787716484ec7e0d1b8580c477680b86d74028b5f4fbedb16eeb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/HXPhotoPicker/Editor/Controller/EditorViewControllerDelegate.swift:236-242 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerControllerProtocol.swift:660-667 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerViewProtocol.swift:307-314 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewControllerDelegate.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"376d0118595eef202ed6644b09e15d4bc2630a62a952c0e5b8e6ecbf7ce654d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/HXPhotoPicker/Picker/View/Album/AlbumGlassTitleView.swift:50-57 | Sources/HXPhotoPicker/Picker/View/Album/AlbumListView.swift:66-72 | Sources/HXPhotoPicker/Picker/View/Album/AlbumTitleView.swift:61-69 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Album/AlbumGlassTitleView.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"66694562d74e7b880492f81418ee668378f3c039cca9caf7fa9a226e55e0c2f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:13-20 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListCondition.swift:70-78 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3658afce6c321427569efce17ad5eb94f2ceaf477fea816889021f8930cc4ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:410-413 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:358-361 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b28688b8fcb27ec8ee161806e28c4b46455b174ed9ee643c5b8ae5d351502e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:579-582 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:543-546 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"543e6f14de6afa5a855cba25a99750c1dc209199503b915f818759c873226ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift:421-423 | Sources/HXPhotoPicker/Editor/View/Video/EditorMusicView.swift:543-545 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd43895f7916fd59766179b13f554e3c2c5ffea03fef422e1d6560e8359ad7ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:354-356 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift:476-478 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift:142-144 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be33c3657fe9f4e1e9cc9a7571f57573bb3e427afa8ca46e1c38601a9b8a7ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/HXPhotoPicker/Picker/View/Cell/Album/AlbumViewCell.swift:160-164 | Sources/HXPhotoPicker/Picker/View/Cell/Album/PhotoAlbumCollectionViewCell.swift:99-103 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/Album/AlbumViewCell.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb30513d6b2c40bd594187b7a1f65583adbd69e9b0bd82a991a6c25dd3225201"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/HXPhotoPicker/Picker/View/Cell/Album/AlbumViewCell.swift:166-169 | Swift/Classes/View/ConfigurationViewCell.swift:68-71 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/Album/AlbumViewCell.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b71ba0f41363e3943f75747775d729f3788107a4a8aa24d2d5dd6cb5f983650"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/HXPhotoPicker/Picker/View/Cell/PhotoPickerSelectableViewCell.swift:51-59 | Sources/HXPhotoPicker/Picker/View/Cell/PhotoPickerViewCell.swift:271-277 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/PhotoPickerSelectableViewCell.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"821f471c7631cd733899f2352d58d1f9ab562222abf131180e1acd65468981cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:74-136 | Swift/Classes/Controller/TestEditorViewController.swift:949-1011 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift\u0060 and \u0060Swift/Classes/Controller/TestEditorViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 110 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/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8600a23287b9b4c0503afb224b9cfbf368ee28853d3aa56ed2a5ba3dc9712207"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift:69-113 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:1111-1155 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 75 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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift:69\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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1876bd7f7d32a5120bababbcd68d7a82ebb7df53889635bb84e191da1e8c4f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:22-64 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListFectchCell.swift:95-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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6a15cb089d77637ad2c65e3d57c9a9e21f5cfb4f5d6547181c203e97997a7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:643-683 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:607-647 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8aab2ef26b8f6de1d2c9b9a51b3370962959994f31d1fd4004d0f6a9bad152"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift:338-376 | Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView.swift:354-392 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift:338\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/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8b6a4b14e5f5dfe59c036e30178deb5382ba9f67cc092c23f0a68722353aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): Swift/Classes/Controller/EditorConfigurationViewController.swift:305-339 | Swift/Classes/Controller/PickerResultViewController.swift:926-960 \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":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db7ab0a7a085c06cebd81d7e38fe2c88e67f617d91b10957060f95a7a1bc1f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Data/PhotoPickerData.swift:226-258 | Sources/HXPhotoPicker/Picker/Model/PickerManager.swift:496-528 \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/HXPhotoPicker/Picker/Data/PhotoPickerData.swift:226\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/HXPhotoPicker/Picker/Data/PhotoPickerData.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"1922eee76c56c7a64d49f7a4e998fcc8bcedce2aaa400bef6fdd69d6c9534589"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:35-66 | Sources/HXPhotoPicker/Editor/View/Video/EditorVideoControlView.swift:989-1020 \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/HXPhotoPicker/Core/Util/PhotoTools.swift:35\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/HXPhotoPicker/Core/Util/PhotoTools.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea53ba77629c4e264018a359e609ab8e520b9f528f8fd12c502517fb9d6916d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift:476-506 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift:515-546 \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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift:515\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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfdd8dedb65330ba37424aa555964729973aac259f389183df93dbddb3b62c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:175-204 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:252-281 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:175\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b093612c4b3541cb8d8aab801a527b925746a515af9bf2407239c473ec958d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:138-166 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:338-366 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.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/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dae5482bbee2fc9c044bd21424979650aa7680cb457ce0ab12176b002fbbe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift:153-180 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift:213-241 \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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"587c9ed81daf9a66ef2c3ab7c4497a3b68aec90e20084c45e957f303e836b4bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:937-965 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:974-1002 \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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:937\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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f668097df28a05b6ff8c1a6981fe7d5fdbf528b1e91c70b2e1b349e986d005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:932-957 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:970-996 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:932\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:931\u0060 calls \u0060handler\u0060 and \u0060Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:969\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"edea186dc414d154d2ac307f5906e2831109afc29d7b4002afb94049dcd8a6a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:150-176 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:138-164 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:150\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b5989d6d359a19f935228600a579bb7853335593ef7a136e97c95441cd5f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 3): Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift:158-183 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAssetExportSession.swift:185-210 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BPlayerItem.swift:112-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 all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift:158\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060resultHandler\u0060 to \u0060@escaping AVAssetResultHandler\u0060 in one and \u0060@escaping PlayerItemResultHandler\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/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eba339bb9890e86cff9f4558fb7b4275a54d1e85cdabfab8cca3a0d3296fa48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift:34-58 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift:89-113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BAction.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"52564bc598e193cd94ec9e6c4aee146b65655f7ab249b10fd414c2a1f330c612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:281-305 | Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:393-417 \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/HXPhotoPicker/Editor/Transition/EditorTransition.swift:281\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/HXPhotoPicker/Editor/Transition/EditorTransition.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5dc4c57304f9ee995774a16229aff501feae821be1125f700d572e179a935ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:858-882 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:911-935 \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/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:858\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/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5efbf3d0a7e14a258dc41987d771613d2407fd508a473e73c3536adba6dccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:685-709 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:649-673 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55fd47c2050a2e456af60b8dc3de80b9b2eaf0383e554adbb15d98dcea17008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/HXPhotoPicker/Editor/View/Filter/EditorFilterEditView.swift:187-211 | Sources/HXPhotoPicker/Editor/View/Filter/EditorFiltersView.swift:189-213 \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/HXPhotoPicker/Editor/View/Filter/EditorFilterEditView.swift:187\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Filter/EditorFilterEditView.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee490654938e8f0df64205cff873d073cf13f25daa29047a64ad1f87aaa0055d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift:232-255 | Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift:255-278 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"6135fb9eba44ea231c596e726fc2d39b3ce4b08b13b0bd55e5cceefef2cc6400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:26-49 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:25-48 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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. 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75bcaf43887e0475db3db8d18d726e171afe16d8668313ad64b96856a2a0cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 3): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:283-305 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:377-397 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:454-476 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:283\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e74beda6cb6664f918dacc259cde872948123cb1a2d55faf8546fdade4bd862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:176-198 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:375-397 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:176\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/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c8712f209c69bf4683618a358fc5c2fa43cb7d010510b087c3a7d4e3dea42a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift:145-165 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift:326-347 \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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift:145\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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"433e4c2541a1cecb24397efce4dced0537de33453022903e43bfa61f075d7b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BMusic.swift:83-103 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BMusic.swift:191-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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BMusic.swift:83\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BMusic.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e87354100d0d3894eb05a842da2d09db0720c1068f407d55e0d76e762d1e781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:152-172 | Swift/Classes/Controller/TestEditorViewController.swift:1027-1047 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift\u0060 and \u0060Swift/Classes/Controller/TestEditorViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 110 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/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:152\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/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa24979fe8404bf04f685c5b268017dfc613e199f4ae1b722429415d42fbf5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BEditor.swift:65-85 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BLocal.swift:57-77 \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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BEditor.swift:65\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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BEditor.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ed6eb5d1a283ec6345ae4c469cab1db5b7ec9d3dee371c283f1286a8f8741a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:105-124 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:133-151 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:160-178 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:105\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52decbfc5976594be4389a723a8b25b32613f89188016a3fa24bfafa3acac28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:37-56 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:85-104 \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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:37\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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bdaf4469f9faa712848838310bd255307924ef3984c0c2afc7ed88e79de074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift:128-147 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:988-1007 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 75 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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift:128\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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b80121c8919435103892894b165f61f2ac7a5432cecb91da6afb6226f14e486"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:44-63 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:36-54 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:44\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7fd8ca778ee42b4e7401d504f9ac6f88e17b2d547a959a6e44f68cc7672a26e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1181-1200 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1210-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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1181\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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2225a909f31ee5cc75ea3255d66fef8941566cfd392eae9b129880550db3dbd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:151-170 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:67-83 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6f030c04108d6178d0287cc2cbdbacfb8bab33867938e7e88afb8fa543e624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift:115-134 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift:183-202 \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/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift:115\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/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"0130833d17244cc8babae617d1795ff3dff74ca779ad9202edcdc79342327636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/ImageView/KFImageView.swift:23-42 | Sources/ImageView/KFImageView.swift:85-104 \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/ImageView/KFImageView.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d811f04fa72fd53edcb62957f029a8f563503d1bdc694f331ee71cf6d4de0be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:572-598 | Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:781-807 \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/HXPhotoPicker/Camera/Controller/CameraManager.swift:572\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/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0c67c454b0e20a6496c771c8ee4643ad70f5ce91f2d9fee4b64b0c381210ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift:303-321 | Sources/HXPhotoPicker/Picker/View/PhotoPreviewVideoView.swift:214-232 \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/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift:303\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/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2803d8028c74b74fcb55ff4b8d094ab60c142d2b4655dc0e7e4cdb02ea36b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift:104-122 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift:109-127 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"103581a6dfcb1b947db004d63d03ac9bc19c6d69d6093370421e394a52dcbcd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:166-181 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift:204-222 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"08de464abb8ca762e9dfa39bab05c7c1c81cba4f3cbaeae238af300fd31b4887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:243-258 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift:144-162 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:243\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcedc0be154929b7d970904cc56f96fc8c3ac16309f0d338ccefa63a99689fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift:171-189 | Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift:222-240 \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/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift:171\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/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f33c111a22c443e85aa7f2c85a046de9e8831473837012350912a88682c2c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:386-404 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:395-413 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:386\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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97ac0a8d983699eb6b9b4dbc1fe50850d5f6ba363151616338ab9d5d4fda4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:174-197 | Swift/Classes/Controller/PickerConfigurationViewController.swift:483-506 \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 \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:174\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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83f5d9c3e25089ecb9d9df3117cc794b01e30e756accc342360ebc90ad9fc83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:131-148 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:119-136 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:131\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8ad936ef9d061614984bbee3a56fb7adb57c3de87947f2f11f1eb84bd6f38c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift:276-293 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift:320-337 \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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"476c05e7f82584dba92acb11b2a2923f677d62edd2c16fcd99ed6182a2a1b6f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:303-318 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:342-359 \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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:303\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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ab5ec16a28d2cdc67cf6b179ab02a8ad865feddb89e78c89583a7879ff63e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201318 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:91-108 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:514-523 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"67646a6eeb5113165fd2692572929864ecd547487f67afad6502fcf01fa544ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:223-240 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:144-156 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:144\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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdd52d16ff87d842c96c035ddc609d0487465bc991fdaf9813a3678c69c84af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift:27-42 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift:191-208 \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/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift:27\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/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"237feb8226b632b49850e4d02840501445945252a8b3f796febad354ff40a6a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:317-334 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:268-285 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d23a99190f430589e7d5ab5d389fccd52b18b9cab3f95f0a1a030eae5d48f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Swift/Classes/Controller/EditorConfigurationViewController.swift:447-467 | Swift/Classes/Controller/EditorConfigurationViewController.swift:649-669 \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 \u0060Swift/Classes/Controller/EditorConfigurationViewController.swift:447\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":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bab908a06f872ca24b18f307435f0fff73bfddb8a1dcbf839f9686473a46b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 4): Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift:24-35 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift:58-69 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift:273-289 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift:292-308 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30524fc4f6e2f8fcb451cbabffa8ea66e411cae79b4ec81969717e984cd9c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/HXPhotoPicker/Core/Util/PhotoManager\u002BDownload.swift:158-174 | Sources/HXPhotoPicker/Core/Util/PhotoManager\u002BDownload.swift:177-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoManager\u002BDownload.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c50df93d86099792a0f9a987ef88cd22fec2cda60dba3816e7820a01e403fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:262-278 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:313-329 \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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:262\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbbb52daaf430cc577c3667533047191d3241c47ebc2c125a8115acc529ad8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:404-420 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:466-482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:404\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef858663ff25b7d16ad09c59d9cdab3ecbfa8761ad726141a89c7a52e63614e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:524-540 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:583-599 \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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2f13c61f025030540cf7d5d0d2d137b727d20473740d6165b51d39e94b3238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Swift/Classes/Controller/PhotoBrowserViewController.swift:235-251 | Swift/Classes/Controller/WeChatViewController.swift:285-301 \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":"Swift/Classes/Controller/PhotoBrowserViewController.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb9dc8c201848f8e4dc0e19ed453714b0baf18dd679cba47804e1e68f22c784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:274-289 | Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:310-325 | Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:386-401 \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/HXPhotoPicker/Editor/Transition/EditorTransition.swift:274\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/HXPhotoPicker/Editor/Transition/EditorTransition.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5bdb8fba8a27302dfba7de78a811ac3fee8ad129cfe9a4d8230ab279bfe9153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift:429-444 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift:450-465 \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/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift:429\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/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd26e665f5c7be7e2fa37159dd5a9782f25ab0f7fe6561a7aa0f4f9c29a8db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:401-416 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:521-536 \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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:401\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc4a75d9016bbebd25c7909574a466e6eb60be27803f45ebd68d359e03a87e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:463-478 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:580-595 \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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:463\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"557bcb31a31d1db9f8367475c7146c1779c5e95e10411267a3fb42a2aaad9a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:362-377 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:415-430 \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/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"9303efeaec8a3ddf2970dc09f886cd1dc66b713169460602dbc834c4e1540bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:841-856 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:894-909 \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/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:841\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"5450f6208cc7da2d0290f0e673487f5351ba730421ef9f62e9dccb823ebe3fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:602-617 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:421-436 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:602\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e16207c744e996c246ce214e682918379808cd85ff1a6f7ba8e1bf557ecb99e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:679-694 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:474-489 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f8d60766f1e952107da24e8542c437f37e5933f9991b0e1df3c8b11b541788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift:149-164 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift:154-169 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e81ca2a1eab63db2a9d57b34d7fba408873adda1febc809298334a7b7120679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift:166-181 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift:171-186 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea91145ea60dbf9ad45b357df0ab44fd6c15836341bb8db1d71c2740dc9a793a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift:47-62 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift:71-85 \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/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift:47\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/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAsset.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"34674c181e1f562966fb02ec4ab1a605d7f3b92755238c4d0023a2333fc0a036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:41-55 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:365-378 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:404-418 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:41\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"334351d0073ee81cdbe1dee526deef5d96ff94cf1e41cd8d89a178f80f44f3c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/HXPhotoPicker/Camera/Controller/CameraResultViewController.swift:154-168 | Sources/HXPhotoPicker/Camera/Controller/CameraViewController.swift:149-162 \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/HXPhotoPicker/Camera/Controller/CameraResultViewController.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a2b8f511a1ea824f1d0e3de7fb3063b3c30d69fdbe66f1a139e1935ed17c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/HXPhotoPicker/Camera/Controller/CameraViewController\u002BResult.swift:39-53 | Sources/HXPhotoPicker/Camera/Controller/CameraViewController\u002BResult.swift:64-78 \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/HXPhotoPicker/Camera/Controller/CameraViewController\u002BResult.swift:39\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/HXPhotoPicker/Camera/Controller/CameraViewController\u002BResult.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb783c5679126f04fa804d9adc93981bfcf7f20c8078a9f231f8b979daa8ca45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/HXPhotoPicker/Core/Extension/Core\u002BCALayer.swift:21-35 | Sources/HXPhotoPicker/Core/Extension/Core\u002BUIImage.swift:352-366 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BCALayer.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2f4c3b5a4973ef9c1498b1075506b28f30f01c1b8b5a5f163df2b351e8d1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift:57-71 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift:74-88 \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/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a0f3c09132ee77c00de8a902de77d1080387c34b3c22b7083629e8fb5c51e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:198-212 | Swift/Classes/Controller/TestEditorViewController.swift:1073-1087 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift\u0060 and \u0060Swift/Classes/Controller/TestEditorViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 110 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af91c87f81bed859ba826318bbb6fbce62aa77bea005f98ca2001f4d4f46d37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:173-186 | Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:188-202 \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/HXPhotoPicker/Editor/Transition/EditorTransition.swift:173\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/HXPhotoPicker/Editor/Transition/EditorTransition.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0164e636236e21335e189f34a3c52af584bb1add92790b9d0806cec99222a49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift:142-156 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListFectchCell.swift:36-50 \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/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift:142\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/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"249caf27127f8e6037aa7ae61e4bd6ae6f1da471e660392a3c80ea923fe6d73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Protocol/Fetch/PhotoFetchAsset.swift:103-117 | Sources/HXPhotoPicker/Picker/Protocol/Fetch/PhotoFetchAsset.swift:139-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Protocol/Fetch/PhotoFetchAsset.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72f359811442952a2b254b0fb726cf401081a791a07434d735792082d20bd15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:352-366 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:334-346 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:334\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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea787f3cd05eace4814e1598cdcf426ed1583e6a0b6d94ae8b3e1c63c8c14183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAssetExportSession.swift:82-96 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BVideoURL.swift:89-103 \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/HXPhotoPicker/Picker/Util/AssetManager\u002BAVAssetExportSession.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"867e9833c9a7e895ae21e8dc79243f5cab7de3cc488f87a2726a38ff66ab4b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:258-272 | Swift/Classes/Controller/EditorConfigurationViewController.swift:566-580 \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 \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:258\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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cdc34e7c5c4127b5b98e77ebe4595a6d00ddd7c3ebe77e319ecf36203ba125"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Swift/Classes/Controller/PhotoBrowserViewController.swift:145-159 | Swift/Classes/Controller/PhotoBrowserViewController.swift:275-288 \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 \u0060Swift/Classes/Controller/PhotoBrowserViewController.swift:145\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":"Swift/Classes/Controller/PhotoBrowserViewController.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cf09c4eef86ff35331829f8ce2719bd745a4126278d6a6898935f0e4315413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:136-149 | Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:174-186 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:336-349 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:373-385 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:136\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/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e31e9571bdc4b8965ed900ecdbee21dcabf310d977ad4744878214769839ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): Sources/HXPhotoPicker/Editor/View/CropSize/EditorRatioToolView.swift:42-54 | Sources/HXPhotoPicker/Editor/View/EditorToolsView.swift:62-74 | Sources/HXPhotoPicker/Editor/View/Filter/EditorFiltersView.swift:41-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Editor/View/CropSize/EditorRatioToolView.swift:42\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/CropSize/EditorRatioToolView.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6200613f3b445ce727cff8f4a0885e93ae29f22019a1a152d0833d0bfba65fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:390-403 | Swift/Classes/Controller/PhotoBrowserViewController.swift:235-248 | Swift/Classes/Controller/WeChatViewController.swift:285-298 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"7601f878414704f3516f2412346fb1713c3449935af95ef67fdd38ef51dedf49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:299-312 | Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:372-385 \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/HXPhotoPicker/Core/Util/PhotoTools.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5d3c8294ab132c7fc8896d072ac67d244720fa2bae4d222dd0ad4333a2099a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:636-649 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:675-688 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd5409f8366808b507590c42da4bc3c116936f42676f0a1f9f242ef537d78ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:209-222 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:367-380 \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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:209\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"608e2f57d62e2640f6f41624128958b240d8fe5a5785ac94aaf30588271ae626"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift:211-224 | Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift:312-325 \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/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e52b2b6c472cbc6ebcf556a7947605930c82b9f86b677ed3d72322d60d3adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:567-580 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:395-408 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"620b3c8dfd3d33cc8b015599bbbd944149da4762fdc7b58f2b9c2e4aadcbf143"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:115-128 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:103-116 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:115\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef1c2b8a559fba422e9d8e508ed0ad25df27a5c15cf39402e081e9ed552c90a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift:134-147 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift:139-152 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"05858ce1c9c90375bcd6ee15d2e4c9c418faa8005fbce5dcf494e394f725541f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:159-172 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:237-249 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:159\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e47ae530db76395d49c68c2de009ac304435bce5563f2c9c50980b0840effb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1086-1099 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1142-1155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:1086\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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d7981bf47e0bd33506ed70ad867f9caffd60c4c2f37dba871a63c4c82767ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:180-192 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:95-108 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:180\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d316d382e3e250febfb17fedcf568c9bfc6a93b0b48d50671aa5675c38438b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift:56-69 | Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift:232-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift:56\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/HXPhotoPicker/Picker/Util/AssetManager\u002BLivePhotoURL.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e23aaa07a30a56f163a8bd7cedc219df9a7b7fd1e2a8382b3b4eab12bff2c26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift:92-105 | Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentVideoView.swift:116-128 \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/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f037d46ca1ba91ef8cbe0cb23049ddeb9a3e5e9999623d3e2ed3d9ca89a4d78f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:759-772 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:865-878 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:759\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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"69249ba4ef9881bd7236cbbc5bb5fc5c28411cfd191cb9fe21314431e89450a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): Swift/Classes/Controller/EditorConfigurationViewController.swift:340-367 | Swift/Classes/Controller/PickerResultViewController.swift:970-997 \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":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8351194e056bca25a88af6da3c049c191c23602dca903da0a36a615200a357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Swift/Classes/Controller/PickerConfigurationViewController.swift:188-201 | Swift/Classes/Controller/PickerConfigurationViewController.swift:211-224 \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":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a95ad4dcc08b6fc96a759dee300f1594618986cc745058523a1d287d898a4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:404-416 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:466-478 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:524-536 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:583-595 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:404\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ea106dfee176248d9dbe8d4bd0a42374b0a8a0338eda1696c90ac63e31c170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 4): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:174-183 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:251-260 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift:152-164 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift:212-224 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:174\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38b1f273d22fe983d06e54ff325ae9d2c95427854b4a0e1adb378cb1a06491a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:290-302 | Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:327-339 | Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:402-414 \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/HXPhotoPicker/Editor/Transition/EditorTransition.swift:290\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/HXPhotoPicker/Editor/Transition/EditorTransition.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc54b08233a83fd4ce70a03be9be57c34b5bce43aa5730623070812c6cdde33e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:52-64 | Swift/Classes/Controller/CustomPickerCellViewController.swift:32-44 | Swift/Classes/Controller/PickerConfigurationViewController.swift:90-102 \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 \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:52\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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8ca8ace44c15070e64813de6fcfc804f2c5765024e9ec7b80135b7c0206a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BCamera.swift:92-104 | Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BCamera.swift:107-119 \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/HXPhotoPicker/Core/Util/PhotoTools\u002BCamera.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cee3775d2d94f11b0c5fd6d317ba0ab4e26d0c2abab0b49e96b5478f7da4461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:303-315 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:354-366 \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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:303\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8934789d362574bb5e6e7a520c2fb0dee40df4de3349ecf68088684ceaf5ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:591-603 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:555-567 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37d367523ffd374628d4105a3447784f9af0ed23a43e12006d734a8beeba755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:617-629 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:581-593 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4153310e5366990e244b097ee734185ce17f5f0b0dee522f574dc054b7582b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:774-786 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:883-895 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:774\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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"8003b033b5baf6ca76453a4a39915c5644c844b1b6cfdbdf8f2dc1dbc7e4aa72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Swift/Classes/Controller/EditorConfigurationViewController.swift:292-304 | Swift/Classes/Controller/PickerResultViewController.swift:905-917 \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":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3c84623b97605e43a6a1d8561e41980d0908a82cfe2c8722fe8fe0f72f4ada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Swift/Classes/Controller/PhotoBrowserViewController.swift:193-205 | Swift/Classes/Controller/PickerResultViewController.swift:628-638 \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 \u0060Swift/Classes/Controller/PhotoBrowserViewController.swift:193\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PhotoBrowserViewController.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a56afef5549e070a589c249011bb436ad726050089c1a374414fc74861dd03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:565-576 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:393-404 | Swift/Classes/Controller/PhotoBrowserViewController.swift:238-249 | Swift/Classes/Controller/WeChatViewController.swift:288-299 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfc1d8373151ea82ad1e3efa10f9e0790865b949755f3a508986878217d35b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:109-120 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:938-949 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:976-987 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:109\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65ddefe3f944310f4a2e317516ff22110b65d7f7abe3e88c35827a885acda71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:260-271 | Swift/Classes/Controller/EditorConfigurationViewController.swift:486-497 | Swift/Classes/Controller/EditorConfigurationViewController.swift:568-579 \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 \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:260\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e0a12ba7798bf619a91e2fb09414fbeb0f24e1cf76ded88c1d65add859cc0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:528-539 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:716-727 \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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:528\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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"984f8bd18628beadb45acd276fa7d2c46b8436c7ffc81bf087da6b4135362978"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift:477-488 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift:571-582 \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/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8487fe75c2dc527d80d640bb20832e22cbf0c87326b12240c0d43a625debac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:831-842 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BMusic.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:831\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd5c6c1c49c57bd155583b8c5d24cba133a20eda7b263f17de1683f411c5fce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift:626-636 | Sources/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift:675-686 \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/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift:626\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/HXPhotoPicker/Editor/View/Filter/EditorFilterParameterView.swift"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d13818b96cc413bfd52c5432e0c50e55faa245607fbb25e9404dc9a5b0e433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:98-111 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:88-99 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:98\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"74334dc117618785c502190140a998f8a5b50f02e5885a14190f5745f5544747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:270-281 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift:225-236 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCamera.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift:270\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9bf3f1b56ff0a625ee467e8eb1b28a13949735d5b34ef0bac61883f41d82c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:143-154 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:213-224 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift:143\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"32107feff198f0222602041d38ab739f414e496dbd0ef4cb4ec15422b0a2702c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:348-359 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:407-418 \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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift:348\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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BURL.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"9432a0c72f2bba481266b258bf92983324df826ebce7c4f1406280523f461d5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift:125-136 | Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift:316-327 \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/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.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/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"97409ad707963835c0467a0a57fe31b4543760baee72d8e395aeb93043bed183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:334-345 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:315-326 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"7178bd393f81bbba7826155df9b9caa703459ae9c6fc9564b15c3e1b6e8ce381"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift:44-54 | Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift:283-294 \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/HXPhotoPicker/Picker/Transition/PickerTransition.swift:44\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf22f44eb1c658e043ad0f3f1ff7120f0ae16e36d42a395816a410efed83289b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 3): Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:475-481 | Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserAnimator.swift:211-220 | Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift:450-460 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:475\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d061a6986fc41a3aa729f31962f8babd8dffc28dc927726d96ab39b492b00b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:461-471 | Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:837-847 \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/HXPhotoPicker/Camera/Controller/CameraManager.swift:461\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/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb90cb3425ec47a7fbf391c70b89367bde7bfa2d8c0013a5174f159086b0d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Camera/View/CameraBottomView.swift:357-367 | Sources/HXPhotoPicker/Camera/View/CameraBottomView.swift:397-407 \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/HXPhotoPicker/Camera/View/CameraBottomView.swift:357\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/HXPhotoPicker/Camera/View/CameraBottomView.swift"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ec82fc7685b6c6a120c377fd347cc427b2205fe885eed64b6768c68772d8db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Core/Extension/Core\u002BAVAsset.swift:54-64 | Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:154-164 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BAVAsset.swift:54\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/HXPhotoPicker/Core/Extension/Core\u002BAVAsset.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f964cde4da41d3ed7aac2e7f076f1d609b721c895e325c25a833bed411651e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BAlert.swift:75-85 | Swift/Classes/Controller/PickerResultViewController.swift:650-660 \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/HXPhotoPicker/Core/Util/PhotoTools\u002BAlert.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc854a33da211dd185f492611efa61c469380ade870e5252446bf7efab5d2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift:206-216 | Sources/HXPhotoPicker/Picker/View/PhotoPreviewVideoView.swift:287-297 \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/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift:206\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e9103461e2f8a89905329c10acb612bdd47595b29656ca3dc9c2071d1a72a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BProcessing.swift:262-269 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BProcessing.swift:372-382 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BProcessing.swift:262\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BProcessing.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06c77a4b4e61a6357b3567899f0832fb86dab177592add2f2c86f82b1bcee47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Album/PhotoMyAlbumViewController.swift:35-45 | Sources/HXPhotoPicker/Picker/View/Cell/Album/PhotoAlbumCollectionCell.swift:40-50 \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/HXPhotoPicker/Picker/Controller/Album/PhotoMyAlbumViewController.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33861961985734d0a6ada53373d7e083c7bcdc0482601116903f767a9ec73f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift:38-48 | Sources/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift:74-84 \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/HXPhotoPicker/Picker/Extension/Picker\u002BArray.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/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce75e9de4ee772d250d1c71e1389058de6e26a59785680a7c4633b0aa494cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift:115-125 | Sources/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift:202-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/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift:115\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/HXPhotoPicker/Picker/Extension/Picker\u002BArray.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3998868c6f7b3a9b23e56bc80a0f1ae413cb4e733f615fc198e96e3206d1fe37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift:143-153 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerList.swift:128-138 \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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift:143\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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67ec81934c58a5f10c7fbbd988f9ae7cb1721275a4d586170f59ac917d4e763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift:103-113 | Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift:144-154 \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/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1bf36d4db8a7d8784150d27ae32fb5086220e2a4b5a5c855eb17350b373c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentPhotoView.swift:353-363 | Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentPhotoView.swift:384-394 \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/HXPhotoPicker/Picker/View/PhotoPreviewContentPhotoView.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/HXPhotoPicker/Picker/View/PhotoPreviewContentPhotoView.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc38cf3d0b7d17a889ae6153157558a65e75235fec7bd89ed9eec355f42e364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:631-641 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:595-605 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"d424b7a912c7a3353ce5b9fa6a43c8a66fa7e42212333637ee8177b74542bc69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Swift/Classes/Controller/EditorConfigurationViewController.swift:673-683 | Swift/Classes/Controller/EditorConfigurationViewController.swift:694-704 \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 \u0060Swift/Classes/Controller/EditorConfigurationViewController.swift:673\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ebf787720eb4b7866bdb12fbecc2f29838871d9170b7b2a3ac15e7d02a3006"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift:230-239 | Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:110-119 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:307-316 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"372d1497d29897a967d08595e9be55029a286bfa715e3c25a0b906f6b992e466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift:57-66 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift:76-85 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift:1118-1127 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 75 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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf423f41704e89b4005d78e553e3f446ef6ae5d96c99d88803469348660b15b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:89-98 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:921-930 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:960-969 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:99\u0060 calls \u0060handler\u0060 and \u0060Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:970\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4554eb6034b97318d97fa8e853fb88ab105aedb52ed5e8ec7343540c5383783f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift:790-801 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift:814-825 \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/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift:790\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift:811\u0060 calls \u0060CGFloat\u0060, \u0060truncatingRemainder\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift:789\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/HXPhotoPicker/Editor\u002BView/View/EditorMaskView.swift"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"198b7e3a83aa3e3b7ee04a7741fba87628d7043f043fab9f5c8a546cd27dc172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift:106-115 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift:131-140 \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/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift:106\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/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c5382d73e02ed49a47b95f0920c0085ab9fd11575425ca715fa2563fb88b43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift:457-466 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift:468-477 \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/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift:457\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/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"17040e002d6de56dc2d5db8328c03969d31fae58aab9324ccb4f71ca5d2978c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:55-64 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:1137-1146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:65\u0060 calls \u0060videoAsset\u0060, \u0060succeed\u0060 and \u0060Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:1147\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f7ca96c72bcb6a12b1e2de94b63cf061016158db376848a39a0a3469d94afc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift:594-603 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift:624-633 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift:594\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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed31944bf01bf896a09bdcdc97f27061e43cee9cb46f48d666a653546ca11040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView.swift:99-108 | Sources/HXPhotoPicker/Editor/View/Video/EditorVideoControlView.swift:76-85 \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/HXPhotoPicker/Editor/View/Text/EditorStickerTextView.swift:99\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/HXPhotoPicker/Editor/View/Text/EditorStickerTextView.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"5294d933ac515082cb3619c018b58b04ca3d23927f66b6e4b2d04dcea9b0e6a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Data/PhotoPickerData.swift:178-187 | Sources/HXPhotoPicker/Picker/Model/PickerManager.swift:459-468 \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/HXPhotoPicker/Picker/Data/PhotoPickerData.swift:178\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/HXPhotoPicker/Picker/Data/PhotoPickerData.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"9517ce1b1cc4e82b474b6b711d29ee1cb502d0b71ee3abae09449041ad25a5ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Data/PhotoPickerData.swift:215-224 | Sources/HXPhotoPicker/Picker/Model/PickerManager.swift:486-494 \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/HXPhotoPicker/Picker/Data/PhotoPickerData.swift:215\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/HXPhotoPicker/Picker/Data/PhotoPickerData.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee169d8f7652068721bbb55ee7c4931a5d5b49076d7c622057360643623eceec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:196-205 | Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift:112-121 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift:196\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/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2168cf5ea4590f96fa4865dbdd8fc757cd15df49492383bafc45581b0c49a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/PhotoImageCancelItemView.swift:56-65 | Sources/HXPhotoPicker/Picker/View/PhotoPickerFinishItemView.swift:78-87 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoImageCancelItemView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d933d18e33d075cf1a6dcf764fd7571e9b97f6ea5bcad70b7b0230c69fcf1407"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift:114-123 | Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentVideoView.swift:136-145 \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/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift:114\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"96edfee7ddf6507c49214a0870be710642e7beb8337ac2261f39189e96b6af56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewListViewCell.swift:35-43 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewSelectedViewCell.swift:61-70 \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/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewListViewCell.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e0627dcec3b31804da3b5b6c853c19b6d6ce7b72c7780bcef186eb342f9a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:214-223 | Swift/Classes/Controller/EditorConfigurationViewController.swift:480-489 \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 \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:214\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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f783a9e5f9517d089c769c5028b0efba0820c470de8ac5027ee14c243f4e14e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Swift/Classes/Controller/EditorConfigurationViewController.swift:482-491 | Swift/Classes/Controller/TestEditorViewController.swift:348-357 \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 \u0060Swift/Classes/Controller/EditorConfigurationViewController.swift:482\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":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a9295458b0266edb355713aeb2d351ff8f33ab1f758962b978bf6902d6b781"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:100-108 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:224-232 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:354-362 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"917ecc1fd064f544ff812ca4fbc0303054369c0c70d27b6ecb158858c52700c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Sources/HXPhotoPicker/Editor/View/CropSize/EditorRatioToolView.swift:106-114 | Sources/HXPhotoPicker/Editor/View/Filter/EditorFilterEditView.swift:188-195 | Sources/HXPhotoPicker/Editor/View/Filter/EditorFiltersView.swift:190-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/CropSize/EditorRatioToolView.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"958f5937f79849b110a320e95592a133a13bd301d9dd4345e21ffe9a12cda250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:98-106 | Swift/Classes/Controller/CustomPickerCellViewController.swift:47-55 | Swift/Classes/Controller/HomeViewController.swift:260-268 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaced434d8bddc0530ec8bb4eeca64021cfc7d8b1c310b5432c7ba69674cb43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:216-223 | Swift/Classes/Controller/EditorConfigurationViewController.swift:482-490 | Swift/Classes/Controller/TestEditorViewController.swift:348-356 \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 \u0060Swift/Classes/Controller/EditorConfigurationViewController.swift:482\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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"18124558ae426dd29baf407d0611df31ec64ef4d10559d55cf34606c567931eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:18-26 | Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:203-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/HXPhotoPicker/Core/HXPhotoPicker.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/HXPhotoPicker/Core/HXPhotoPicker.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a7aaa3cb03d86f88acb3f730129c24405e8890bd3adc064041c625a9d9b133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:643-651 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/NetworkAsset.swift:214-222 \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/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:643\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/HXPhotoPicker/Picker/Model/LocalAsset/NetworkAsset.swift:212\u0060 calls \u0060encode\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:642\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/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d07eee7934bc04b0aa2f0f81d1a227677dd591ff33aeb46824f49030556116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift:178-186 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift:354-362 \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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"383e9feb5cc4b314c359263ee71daab820e70b706a1631297d4a4d92a6350eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift:182-190 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift:261-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0946c2d7478e032e24f829f4b8bc5e1a005aa44afd960dfb019531b5e20901f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:394-402 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:456-464 \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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:394\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8323719b1a441a339a986b67a73bcc91af00af27343a41dc466621f21ee74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:514-522 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:573-581 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:514\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3e9e21a3cf4e1ca850f84d9062cc38187de56989ffff9cf05eac609629c40c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorChartletViewController.swift:489-497 | Sources/HXPhotoPicker/Editor/Controller/EditorChartletViewController.swift:505-512 \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/HXPhotoPicker/Editor/Controller/EditorChartletViewController.swift:489\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. 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/HXPhotoPicker/Editor/Controller/EditorChartletViewController.swift"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6682a182eeea60fed6468649795dec0b0c302f1af600b931d9507e6bea89cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift:370-378 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift:401-409 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef059025eb763c57761965accaceac9a03f0c8d481a552f921d0f51fa1a093d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:139-147 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:178-186 \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/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:139\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:177\u0060 calls \u0060encode\u0060 and \u0060Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:138\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/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"97889cfb95325a2e191d850d7a682a5b5e7e9f88e50378b3a17e82ffa7ac3f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:146-163 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:171-188 \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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:146\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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3700205808c4aac459163752494489a403b06589ee8bcc338b5779610e7ae26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/ImageView/SDImageView.swift:25-33 | Sources/ImageView/SDImageView.swift:100-108 \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/ImageView/SDImageView.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/ImageView/SDImageView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4e81e140007c63f8a8ba3fde8453da31bbdf422e2ea153853f0c8ba9dab5ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:302-310 | Swift/Classes/Controller/EditorConfigurationViewController.swift:615-623 \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 \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:302\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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"5847e74de187d74ee0afa0e5a208d3d0c8f9f416d635a795313e4ac899c33410"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): Swift/Classes/Controller/PickerConfigurationViewController.swift:110-155 | Swift/Classes/Controller/PickerResultViewController.swift:234-279 \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":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a24988d265980af6de950f3caa98820dd8064ce39c1d94b3866f684c17f71e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:176-183 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:232-239 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:288-295 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:339-346 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:390-397 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b19d30e2ab491e1917bac83a7fc9fcde2278561bf73084b58b2355516a44cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:98-105 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:222-229 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:352-359 | Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift:930-937 \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/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BFilters.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8dee07887fd8d22d32dbea3c6c32bd44fa1233ece913e1e563ce5b921b9c9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:61-68 | Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:226-233 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:765-772 \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/HXPhotoPicker/Core/HXPhotoPicker.swift:61\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/HXPhotoPicker/Core/HXPhotoPicker.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00c562a8a3740ccb44be64c2af0484ea3874b28cf5db14b4dc449f104e564bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift:421-427 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift:432-439 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift:443-450 \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/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift:421\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/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"3795a16822749b292d28ecce754cb3bf81cdb7c50b3fc3fb62eb427226bb7bc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/HXPhotoPicker/Core/Extension/Core\u002BUIImage.swift:128-135 | Swift/Classes/Extension/UIImage\u002BExtension.swift:39-45 \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/HXPhotoPicker/Core/Extension/Core\u002BUIImage.swift:128\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/HXPhotoPicker/Core/Extension/Core\u002BUIImage.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a7f936fa3c8e91817283118e4b7ef655a3ecc4d8d08a5091a1b644a2e0db67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/HXPhotoPicker/Core/HXPhotoPicker.swift:206-212 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift:738-745 \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/HXPhotoPicker/Core/HXPhotoPicker.swift:206\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/HXPhotoPicker/Core/HXPhotoPicker.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec26a474aeea46d9f3973ec862eed4e39422bde3ddaedaac3a1a20726966de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift:469-476 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift:620-626 \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/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"665d2dc3b151e06d020de486fd0b0f0993469fc8f701410c4c80fbf22cdd38b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:551-558 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift:384-391 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift:551\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"46af22b87a9bbbd6c4b303774412a6466f68fa7d35624ddf7b2aa34fd4110163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:125-133 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:163-171 \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/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:162\u0060 calls \u0060decode\u0060 and \u0060Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:124\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/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"193a1c319d3ec0150db4059363dafd75fb9d8d5e9d262e0a89d160720c6c3e09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BVideo.swift:43-50 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BVideo.swift:74-81 \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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BVideo.swift:43\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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BVideo.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b68169673b1b163b5f2ed61d2fba8217dd77f378fb2f01db52154e66e03ffc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:497-503 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:140-146 | Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:179-185 \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/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:497\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/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:177\u0060 calls \u0060encode\u0060 and \u0060Sources/HXPhotoPicker/Picker/Model/LocalAsset/LocalAsset.swift:138\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/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfbaf17aff7926256bb4adeda0cf17aa641cca93d034641b9d163f0e6b278f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 4): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:248-250 | Swift/Classes/Controller/EditorConfigurationViewController.swift:521-527 | Swift/Classes/Controller/EditorConfigurationViewController.swift:536-542 | Swift/Classes/Controller/EditorConfigurationViewController.swift:551-557 \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 \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:248\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Swift/Classes/Controller/EditorConfigurationViewController.swift:521\u0060 calls \u0060init\u0060, \u0060localized\u0060 and \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:248\u0060 does not \u2014 after which the two agree again for 5 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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c75d556a52aaaa6e3c7e8eb07240745bdf93c04b05764df336b18b5dea7850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressIndefiniteView.swift:68-74 | Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressIndefiniteView.swift:77-83 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressIndefiniteView.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cf6b2b2d32fd58dd24b0154825bb9facc4b5bcaa2769ae73b42a48440e597c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:100-107 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:286-293 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"727491ef56c2556d1b39e9fad42110b98ab830162f055f898517f61deb84086f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:393-399 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:513-519 \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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:393\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b614aacdf657878b1aaebe9d477aa938bf0ff4973b04ac417256f1ca203c79c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:455-461 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:572-578 \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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift:455\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/HXPhotoPicker/Editor\u002BView/View/EditorControlView.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46cb778ffb69f42f5b2c5316b4946f8b820db91588f15791d3211c430eb32e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift:146-152 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift:382-390 \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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift:146\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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e5c7118c897d29dfb9090658f07b2f6b5201c8a08fb4bef343aa948397067f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 11): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:175-177 | Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:291-296 | Swift/Classes/Controller/EditorConfigurationViewController.swift:448-453 | Swift/Classes/Controller/EditorConfigurationViewController.swift:604-609 | Swift/Classes/Controller/EditorConfigurationViewController.swift:627-632 | Swift/Classes/Controller/EditorConfigurationViewController.swift:650-655 | Swift/Classes/Controller/PickerConfigurationViewController.swift:371-373 | Swift/Classes/Controller/PickerConfigurationViewController.swift:462-464 | Swift/Classes/Controller/PickerConfigurationViewController.swift:484-486 | Swift/Classes/Controller/PickerConfigurationViewController.swift:530-532 | Swift/Classes/Controller/PickerConfigurationViewController.swift:640-642 \u2014 there are 11 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 11 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:175\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:172\u0060 calls \u0060reloadRows\u0060, \u0060albumShowModeAction\u0060 and \u0060Swift/Classes/Controller/PickerConfigurationViewController.swift:461\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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82e3acd1349ff8d4c4e254516c783a5ea6b334e3393b3cf8f9ee824e0b2c82d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:460-465 | Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:780-785 | Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift:836-841 \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/HXPhotoPicker/Camera/Controller/CameraManager.swift:460\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/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9eec24823ae797b00ef1cd7f31bfa2a3f43b2c3161b54c6fc061456d621996d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:225-231 | Swift/Classes/Controller/EditorConfigurationViewController.swift:495-501 | Swift/Classes/Controller/TestEditorViewController.swift:361-367 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a53f022c376fff35f2aeb6a63f9b92487ed1362f839ef35a3ab61bbb76e71a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift:327-332 | Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView.swift:343-348 \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/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"7601695171c32834e9e30e2e50da04da89448fd7a68c6ec2b32350d97dca28e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:584-589 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:548-553 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a24b6104dd75f38e198a002e5030eb52b37005268e79cd7e7703707c79b5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Swift/Classes/Controller/PickerConfigurationViewController.swift:377-382 | Swift/Classes/Controller/PickerConfigurationViewController.swift:468-473 \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 \u0060Swift/Classes/Controller/PickerConfigurationViewController.swift:377\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":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b063e77574f64e43f1b15478369ae22f87b62632b53793e7b1773e70fd7226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Swift/Classes/Controller/PickerConfigurationViewController.swift:523-528 | Swift/Classes/Controller/PickerConfigurationViewController.swift:537-542 \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 \u0060Swift/Classes/Controller/PickerConfigurationViewController.swift:523\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":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"671b7ee1e45186b2375e2cc78ddab77a0cfd045593ad5f10315aa2a9639caf68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): Swift/Classes/Controller/PickerConfigurationViewController.swift:554-558 | Swift/Classes/Controller/PickerConfigurationViewController.swift:570-574 | Swift/Classes/Controller/PickerConfigurationViewController.swift:586-590 | Swift/Classes/Controller/PickerConfigurationViewController.swift:602-606 | Swift/Classes/Controller/PickerConfigurationViewController.swift:618-622 | Swift/Classes/Controller/PickerConfigurationViewController.swift:634-638 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Swift/Classes/Controller/PickerConfigurationViewController.swift:554\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d43741a34a621e498d76b19b7961d5626ba5cfaea33208a3c9ed26bcf597548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Swift/Classes/Controller/PickerConfigurationViewController.swift:417-421 | Swift/Classes/Controller/PickerConfigurationViewController.swift:423-427 | Swift/Classes/Controller/PickerConfigurationViewController.swift:436-440 | Swift/Classes/Controller/PickerConfigurationViewController.swift:449-453 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Swift/Classes/Controller/PickerConfigurationViewController.swift:417\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f08d88d031f8c96fb05df1e6fcad9c5732aca64d257f82bc26d578fa3cc700e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift:241-246 | Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift:149-154 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift:349-354 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift\u0060 as WHOLE FILES: this scan already matched 6 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. 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/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"83538232b85b619de41b8e72202e6cf8223940c3dbf629b6f1a029b1d117c12a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:424-430 | Sources/HXPhotoPicker/Core/Util/PhotoTools.swift:442-448 \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/HXPhotoPicker/Core/Util/PhotoTools.swift:424\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/HXPhotoPicker/Core/Util/PhotoTools.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed5f08a501756cb6f2f26aa45eff859fca49a03a24127ead1ab4b733eea5c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:449-456 | Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:588-595 \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/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"63398ab47dd9efa2fb7394b37756cfc9a7b1d26ddb02e3e1794ef9ebe9925da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift:136-141 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift:202-206 \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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"12126c5292d3ab4b845ab4e2f713802be8ad3468c21791c418e5ae6c18f88e56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:204-209 | Sources/HXPhotoPicker/Picker/Transition/PickerTransition.swift:108-113 \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/HXPhotoPicker/Editor/Transition/EditorTransition.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed38fd0de1a8d49553f7a4164ca658f0b977efa029136e7a34533bc8ae47becf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Objective-C/SwiftPhotoPicker/SwiftPickerResult.swift:283-298 | Sources/HXPhotoPicker/Core/Model/ExportPreset.swift:38-53 \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":"Objective-C/SwiftPhotoPicker/SwiftPickerResult.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c289e0860f10a285a426c8da17b772cfb593de6d4238c77851ac2ca05c0d9d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift:14-21 | Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift:14-21 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift\u0060 and \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift\u0060 as WHOLE FILES: this scan already matched 5 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/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a46dfc3e2f324aab50843f5166d11e103d96aa110f73f9ee46ac36e4f8e070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift:22-28 | Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift:22-28 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift\u0060 and \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift\u0060 as WHOLE FILES: this scan already matched 5 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. 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/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af77d68f8f533c8692c8d8f0d492b83139d7c19aced2d71eb1dd883e9e11128"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift:50-57 | Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift:50-57 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift\u0060 and \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift\u0060 as WHOLE FILES: this scan already matched 5 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/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe15946a601d5c8dc50b4b70723deb1644d97f57c6f122a77a46f5291e35fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorDrawView.swift:217-228 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorMosaicView.swift:495-506 \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/HXPhotoPicker/Editor\u002BView/View/EditorDrawView.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b98f0fd29f950369760939dadd78840d4b2c9db2bb51da34bf718608eeccc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift:289-300 | Sources/HXPhotoPicker/Editor/View/Video/EditorMusicView.swift:402-413 \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/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af279975ba0f6f6968ef2b3946117b25e1c82989b281334dc131e003a89414f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift:270-277 | Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BCollectionView.swift:77-84 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd6137c928172a932efb54738f2ffec98f630b1fbcdee004003ccfc9b4bc90e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift:278-283 | Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BCollectionView.swift:86-91 \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/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"187122384f854d521082d5e5b4154e316ed0e45122bc68961c47123d6e8f7ef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift:303-313 | Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView.swift:319-329 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7934233a256e6df021a5b9aaf9ee1bc9f679585a0e6831799bae706e11944b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift:382-388 | Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView.swift:398-404 \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/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb99d8f9cccdc1a714685d03d02e2a1fc249328b5bf49291a5857d46b1a90236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): Sources/HXPhotoPicker/Picker/Controller/Album/PhotoAlbumViewController.swift:175-182 | Sources/HXPhotoPicker/Picker/Controller/Album/PhotoMyAlbumViewController.swift:111-118 | Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoBaseViewController.swift:51-58 | Sources/HXPhotoPicker/Picker/View/Album/PhotoAlbumHeaderView.swift:68-75 | Sources/HXPhotoPicker/Picker/View/Cell/Album/PhotoAlbumCollectionCell.swift:94-101 | Sources/HXPhotoPicker/Picker/View/Cell/Album/PhotoAlbumCollectionViewCell.swift:125-132 | Sources/HXPhotoPicker/Picker/View/Cell/Album/PhotoAlbumViewCell.swift:104-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 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 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Picker/Controller/Album/PhotoAlbumViewController.swift:175\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/HXPhotoPicker/Picker/Controller/Album/PhotoAlbumViewController.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"213f2c6ce51215ae1e7084da9baa4e3652b7663f6d92b512350ca703f900b9e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Album/PhotoMyAlbumViewController.swift:64-69 | Sources/HXPhotoPicker/Picker/View/Cell/Album/PhotoAlbumCollectionCell.swift:66-71 \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/HXPhotoPicker/Picker/Controller/Album/PhotoMyAlbumViewController.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a428a10e66730fa8eb41187fd7aa736a80770365bfcffd95a8bf7e914f11a8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoSplitViewController.swift:109-116 | Sources/HXPhotoPicker/Picker/View/Album/AlbumListView.swift:190-197 | Sources/HXPhotoPicker/Picker/View/Cell/Album/AlbumViewCell.swift:151-158 | Sources/HXPhotoPicker/Picker/View/Cell/PhotoPickerBaseViewCell.swift:190-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoSplitViewController.swift:109\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/HXPhotoPicker/Picker/Controller/Photo/PhotoSplitViewController.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"902db6b3ae394fcf217c73f8373758921edf462ba032428c1ef8500f09a55a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift:88-102 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift:93-107 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d46f4af5368251bdbc275167d1f44e497b3378e24151ca749f6ddc3e679bdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift:124-132 | Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift:129-137 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"addb42ec93286da4730e346b9e3542816430482ba72e5aeb09320726c3d239eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift:230-240 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListFectchCell.swift:139-147 \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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"58035112387edafcd0585bc6457be04da21b9ed0cfd4e8a100db6316328bf688"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift:266-272 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListFectchCell.swift:189-195 \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/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"863f752ce33a11d074ef845865c756115ff2cfc6cb0b8302cc4ed73f9d82485a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift:170-182 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListCondition.swift:24-36 \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/HXPhotoPicker/Picker/PickerView/PhotoPickerView.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. 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/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55db213d8638be1ef04b3f32df9f128fa63096d844ce2a124ac7c40a6d1a212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift:201-212 | Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListCondition.swift:58-69 \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/HXPhotoPicker/Picker/PickerView/PhotoPickerView.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab392dc1ec29ed8d889bf71204bb5c8b3eeab8ce74b5ed83c235fc1d31586a5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/HXPhotoPicker/Picker/View/Album/AlbumTitleView.swift:177-184 | Sources/HXPhotoPicker/Picker/View/DeniedAuthorizationView.swift:184-191 | Sources/HXPhotoPicker/Picker/View/Kit/EmptyView.swift:53-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HXPhotoPicker/Picker/View/Album/AlbumTitleView.swift:177\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/HXPhotoPicker/Picker/View/Album/AlbumTitleView.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0f3663c04806911df6accab841f164a2f08b7108df488ee0770f1d4b39c4a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/Kit/ArrowView.swift:77-84 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPermissionPromptView.swift:109-116 \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/HXPhotoPicker/Picker/View/Kit/ArrowView.swift:77\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/HXPhotoPicker/Picker/View/Kit/ArrowView.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a1a65a3a43528622d24eac7231d8291ac2278bcf9e2a692b759b95969d01b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/HXPhotoPicker/Picker/View/PhotoImageCancelItemView.swift:71-78 | Sources/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift:188-195 | Sources/HXPhotoPicker/Picker/View/PhotoPickerFinishItemView.swift:93-100 | Sources/HXPhotoPicker/Picker/View/PhotoTextCancelItemView.swift:63-70 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/PhotoImageCancelItemView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/PhotoTextCancelItemView.swift\u0060 as WHOLE FILES: 82% 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/HXPhotoPicker/Picker/View/PhotoImageCancelItemView.swift:71\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/HXPhotoPicker/Picker/View/PhotoImageCancelItemView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"365eaf9c98984bb2a5bf35cea9ee1b3caada4a076a973db07031da367b0750c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPermissionPromptView.swift:74-86 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewSelectedView.swift:82-94 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:488-500 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:435-447 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoPermissionPromptView.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f194346f0e987ccc9853d1f12e1a640642c6459393bd87e914b35c79a8424ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:16-24 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:15-23 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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. 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f2f3ff1ca5433e6ada95d4e3899d1dd5fe184bf8dc9cfb2536aba990fffbbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:92-101 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:94-103 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"da780ab8c96fce955f8c9bfa439b6468d418d427b4182ae720e298d2349edb32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:102-109 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:104-111 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe71a363017dc06ec7204821e23d082da88a2eaf298a81a2afe4f590aadf7a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:114-118 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:116-120 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a31bd2eb8c84d8383d848ab244863ef53d08f955e999de0967b935707e4fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:415-420 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:363-368 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"95242f72d3d52a4e20d61ea0b9c0cd156898c9a09415dcd87c57ce58519638a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:605-609 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:569-573 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa4f63e2706edbd2ca93b7f8d8473388ac5ba0b718cd68448b4bfadb9075bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:611-615 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:575-579 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbec09e25f52059e14b2603409739e498bf026fcba8d911ce0a5ea0d0864552b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:711-719 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:675-683 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:721\u0060 calls \u0060available\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:685\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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f794b30d20cbb59bdf17d392401cbac7ef49cff803a23ef04717998db015c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:802-807 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:928-933 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e85ae8b0633d6c0ee00a73d7280784edf5c55da11c64f6c5c78144d02fb33a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Swift/Classes/Controller/PickerConfigurationViewController.swift:262-270 | Swift/Classes/Controller/PickerResultViewController.swift:961-968 \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":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9459cabe724123da4ca4ccbb63204d2c3986fffe19f5163694ee23ca17cd474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift:32-39 | Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift:32-39 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift\u0060 and \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift\u0060 as WHOLE FILES: this scan already matched 5 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/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d45af0c7a147563e1924c563367180449192adb45dc6ef183cdfb9394928dee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift:40-46 | Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift:40-46 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift\u0060 and \u0060Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift\u0060 as WHOLE FILES: this scan already matched 5 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. 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/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3d3f39546866e4688a3cb66473fad680e7ee4c49e3515ac4b00062f279b050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressCricleJoinView.swift:65-73 | Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressIndefiniteView.swift:138-146 \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/HXPhotoPicker/Core/View/ProgressHUD/ProgressCricleJoinView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57e2e78b84d101d5ac99aabf9343e68138f5c602c5f98e5ccea4f68ad5810f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BContentView.swift:148-153 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift:666-671 \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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BContentView.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"587f3e92ff13bb945f78b72ff4a664a5fd9b2ba6e71f949faee7d3afb6093b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BContentView.swift:287-296 | Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BAdjusterView.swift:104-113 \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/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BContentView.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7380be37ba482fc95759d061ec717424534ca616797d997b2e71e06b5505fbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift:410-419 | Sources/HXPhotoPicker/Editor/View/Video/EditorMusicView.swift:532-541 \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/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a75b27b597080b4f826bcfd2fa48078d9844b76a5c47aafbef938e1f2df9ed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift:213-223 | Swift/Classes/Controller/TestEditorViewController.swift:1088-1098 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift\u0060 and \u0060Swift/Classes/Controller/TestEditorViewController.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 110 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/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"e377f1d3754ac9520e80929c1008ca33794cdf2312b0eee45e9651a74e92fc1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerControllerProtocol.swift:619-626 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerViewProtocol.swift:266-273 \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/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerControllerProtocol.swift"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"9903ae98c245faecbde41243201ccf01f016176611485a3b854444bce4ccc91c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerControllerProtocol.swift:627-637 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerViewProtocol.swift:274-284 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerControllerProtocol.swift"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ae1e91bf17d9aed0ec41e27219fbd3dd5ca3c7841376e70edb08f450c4b199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerControllerProtocol.swift:644-651 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerViewProtocol.swift:291-298 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerControllerProtocol.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c01f535ff7bf45efeb2de4f29e47ab8dc185eec895593493e4f0336464dea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerControllerProtocol.swift:652-659 | Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerViewProtocol.swift:299-306 \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/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerControllerProtocol.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"8834b9193f8c03d14ddef5d677ea4af654b11325a0ea9c7e5b3ed2bff597f84f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:373-381 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:321-329 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b17b404716871ab7bdb9baee6d5b5339d366eaf2024f380657acaf87733069"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift:383-391 | Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift:331-339 \u2014 before extracting anything, compare \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift\u0060 as WHOLE FILES: this scan already matched 22 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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2bcddb1b3f85131dc73c7633e280562f2576ac3317009334c29c9764b97021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:88-92 | Swift/Classes/Controller/PickerColorConfigurationViewController.swift:72-76 \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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdcf0cd655642fed56f6adb536143db5f59dc30b8434570e450adf4539a53fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HXPhotoPicker/Core/View/ProgressHUD/ProgressImageView.swift:85-89 | Sources/HXPhotoPicker/Picker/View/Kit/TickView.swift:20-24 \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/HXPhotoPicker/Core/View/ProgressHUD/ProgressImageView.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"3713fa2b0e6604270ea202ac0f88d4736ba25a3b38dda709c25ed69fa36444d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:466-470 | Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:601-605 \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/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:466\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/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:471\u0060 calls \u0060archivedData\u0060, \u0060encode\u0060 and \u0060Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift:606\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/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9a158101ae3f17fb5c5021a97d69743e6cb24e29d183764409156011efa00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerFilterViewController.swift:72-78 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerFilterViewController.swift:84-90 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerFilterViewController.swift:79\u0060 calls \u0060init\u0060, \u0060contains\u0060 and \u0060Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerFilterViewController.swift:91\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerFilterViewController.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"4125dbf84f8c8676551529ec61e35af60ea38581c27dcd7d8bb2f70a5a1892c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController.swift:153-158 | Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController.swift:181-186 \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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8541a85c6ee39452cf7b50bb223c02da69c4d9d259c6fd283c9d163d7b8c198"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:742-746 | Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:781-785 \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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift:742\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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8311d25cdd13236ecc3dc52ffdbcb531d0a5b955969dad5b62745238d207025"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift:84-90 | Sources/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift:96-102 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift:91\u0060 calls \u0060init\u0060, \u0060contains\u0060 and \u0060Sources/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift:103\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/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd28547d3ad89fe16a2581af2a0ff43f3238400dc6e862b0653293a26bd44e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:151-167 | Swift/Classes/Controller/PickerConfigurationViewController.swift:387-403 \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 \u0060Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift:151\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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14548937634f2cba69e04b7df4fd5a473118defd2e995b884168a30999b3cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Swift/Classes/Controller/TestEditorViewController.swift:547-565 | Swift/Classes/Controller/TestEditorViewController.swift:603-621 | Swift/Classes/Controller/TestEditorViewController.swift:627-645 \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 \u0060Swift/Classes/Controller/TestEditorViewController.swift:547\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/TestEditorViewController.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b41ff4dcbe2939be5c9334d8c2c058137e45d109dae533d9756be96099d3bcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Swift/Classes/Controller/TestEditorViewController.swift:215-230 | Swift/Classes/Controller/TestEditorViewController.swift:255-270 \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 \u0060Swift/Classes/Controller/TestEditorViewController.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Swift/Classes/Controller/TestEditorViewController.swift:232\u0060 calls \u0060hide\u0060 and \u0060Swift/Classes/Controller/TestEditorViewController.swift:271\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":"Swift/Classes/Controller/TestEditorViewController.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"85634cd6359149a5fd6237819bb71ce8e1523e11a1326937f03d00d092abc5d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Swift/Classes/Controller/TestEditorViewController.swift:380-387 | Swift/Classes/Controller/TestEditorViewController.swift:388-395 | Swift/Classes/Controller/TestEditorViewController.swift:396-403 | Swift/Classes/Controller/TestEditorViewController.swift:404-411 | Swift/Classes/Controller/TestEditorViewController.swift:412-419 | Swift/Classes/Controller/TestEditorViewController.swift:420-427 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/TestEditorViewController.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"a806dd6d35a2a97e9e94819880fd9fc4831f706e852eff3d0f9238ad877f92bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Swift/Classes/Controller/TestEditorViewController.swift:315-319 | Swift/Classes/Controller/TestEditorViewController.swift:433-437 \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 \u0060Swift/Classes/Controller/TestEditorViewController.swift:315\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":"Swift/Classes/Controller/TestEditorViewController.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27b6a5c651c5c4f59ab8d817c693e4a1c8344e7984c8a0d1186666d57b01032"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoPickerViewController (LCOM4 19): PhotoPickerViewController\u0027s methods fall into 19 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 19 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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b45f425a8d580c6d5b1d385562ff3e4e69ef807f324676e13f93c814cbfe57"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PreviewVideoViewCell (LCOM4 17): PreviewVideoViewCell\u0027s methods fall into 17 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 17 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/HXPhotoPicker/Picker/View/Cell/PreviewVideoViewCell.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8106faa97061b654ad6d7d949556d2d43aa50722390a2b62d1814144e0099c9a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoBrowser (LCOM4 11): PhotoBrowser\u0027s methods fall into 11 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 11 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/HXPhotoPicker/Picker/Controller/Browser/PhotoBrowser.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c853bf1635bd09127b316ef9cce35498d093b1824efa397993aa08ebd1e103d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoPreviewViewController (LCOM4 11): PhotoPreviewViewController\u0027s methods fall into 11 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 11 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/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8368822230f8a45e992eb504b3ea68e121657f5252d7e5dc3fc24e814a1799"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AvatarPickerConfigurationViewController (LCOM4 10): AvatarPickerConfigurationViewController\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":"Swift/Classes/Controller/AvatarPickerConfigurationViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d468ea737f22bb18f10a97383b8e1e107497725045bc40eb6e634167341d324"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorContentView (LCOM4 9): EditorContentView\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/HXPhotoPicker/Editor\u002BView/View/EditorContentView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02e6ec3262669785eb27d85c2c90659db64ea7a0471c14cffa3246c3afc8e72"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorViewController (LCOM4 9): EditorViewController\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/HXPhotoPicker/Editor/Controller/EditorViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b46a60de8a61b0ac4c8865414aacda41f63a0657666bc4978a219159322182"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoPreviewContentLivePhotoView (LCOM4 9): PhotoPreviewContentLivePhotoView\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/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb5df98bf73b8a0d6e94ca063ea25b1a981617e6212fe99c84df0cf35815777"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoAsset (LCOM4 9): PhotoAsset\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/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4222fc31e64a073d3125ad6de5ee05ae0d2acd36cf5ccec6ddfa12a3f5b973"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorConfigurationViewController (LCOM4 8): EditorConfigurationViewController\u0027s methods fall into 8 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 8 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":"Swift/Classes/Controller/EditorConfigurationViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a3194b2058902fde3aa6214ebeb7e5295372504a01e6ef0369e3de5dca7dac"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PickerResultViewController (LCOM4 8): PickerResultViewController\u0027s methods fall into 8 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 8 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":"Swift/Classes/Controller/PickerResultViewController.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6a9a8497c1c73a2c74d609f4faedb4308f40f59e85f0bf8ccf7521b069f4e8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIView (LCOM4 8): UIView\u0027s methods fall into 8 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 8 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":"Objective-C/SwiftPhotoPicker/SwiftPicker.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6eec03503c8924daab04c462ff09ac5bc8234dfc0d1daaf05d1109f9995ba85"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UIImage (LCOM4 8): UIImage\u0027s methods fall into 8 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 8 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":"Swift/Classes/Extension/UIImage\u002BExtension.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba9b7b2354478597bea6f541a7c94423da1d78a755c0b51e6e185e49c9dc852"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PickerColorConfigurationViewController (LCOM4 7): PickerColorConfigurationViewController\u0027s methods fall into 7 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 7 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":"Swift/Classes/Controller/PickerColorConfigurationViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef43e8937b70629712c81b2557f8ddc8703f949948b330edcdb6f1b539abd70"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CameraViewController (LCOM4 6): CameraViewController\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/HXPhotoPicker/Camera/Controller/CameraViewController.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3848ed9afa16caa5fabab06ee497da881da3e4c0457754ee94e030a3ae7a39c5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoPreviewContentVideoView (LCOM4 6): PhotoPreviewContentVideoView\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/HXPhotoPicker/Picker/View/PhotoPreviewContentVideoView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"475fac91af07ee64347e026a8ac30671ce18acc115feb474cf2998a59f8b1d4c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PreviewPhotoViewCell (LCOM4 6): PreviewPhotoViewCell\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/HXPhotoPicker/Picker/View/Cell/PreviewPhotoViewCell.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd6cccdfae5d811221b9a235bd5c00e8eaa8e7a69d63fa95b8f8af3d10578f0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CIImage (LCOM4 6): CIImage\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/HXPhotoPicker/Editor\u002BView/Extension/EditorView\u002BCIImage.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c413180451a2db4f3b4a0646f97540b111b60d7651237a6230295df9ecd005e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PickerConfigurationViewController (LCOM4 6): PickerConfigurationViewController\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":"Swift/Classes/Controller/PickerConfigurationViewController.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6f48d572597b0ae1f17aec2ce59a85c13d5cec05635f0b785d7d0e29ea8dec"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HXBaseViewController (LCOM4 5): HXBaseViewController\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/HXPhotoPicker/Core/Controller/HXBaseViewController.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"559f185525ec90a10b80dbf1edc287ff06eeddb9e9002bfec2d1ed7df696822f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoManager (LCOM4 5): PhotoManager\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/HXPhotoPicker/Core/Util/PhotoManager.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1eb14917e32cb1e88ac5030f96c6134370310ff2e821fc6c106cdd643815df"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorMusicListViewController (LCOM4 5): EditorMusicListViewController\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/HXPhotoPicker/Editor/Controller/EditorMusicListViewController.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc871fb20c220090e608e8ad38b6ea56376e375757c25110e3e8ad0cff4a1c7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorScaleView (LCOM4 5): EditorScaleView\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/HXPhotoPicker/Editor/View/CropSize/EditorScaleView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"419a84b04686edfd16b801841323192f0fcef4a5a75d0a4632dcafd650c835d8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoAlbumViewController (LCOM4 5): PhotoAlbumViewController\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/HXPhotoPicker/Picker/Controller/Album/PhotoAlbumViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b6bf68dd9b69a875ddb9b5fd15c73d087f6970fe5dac10d2fe3a478785e416"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoPreviewSelectedView (LCOM4 5): PhotoPreviewSelectedView\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/HXPhotoPicker/Picker/View/ToolBar/PhotoPreviewSelectedView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"00af1192fc7e10752c1203ef26d326a387d3f6c23938ecde80e8caa3b596ae62"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CameraResultViewController (LCOM4 4): CameraResultViewController\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/HXPhotoPicker/Camera/Controller/CameraResultViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"325f4644385a35425fbb2f4e32ae3045c60404f57e37934bd88da54bcbcc98c7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorDrawView (LCOM4 4): EditorDrawView\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/HXPhotoPicker/Editor\u002BView/View/EditorDrawView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0189afb9d6808ce1d26952559f10de03cc1bd6ef14a833343bdb62c9776ce65"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorMosaicView (LCOM4 4): EditorMosaicView\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/HXPhotoPicker/Editor\u002BView/View/EditorMosaicView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba89e44f5b22cca5fc09c7148edc8e61f1f0634f89320aa3b52656930a5daaf"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorStickersContentView (LCOM4 4): EditorStickersContentView\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/HXPhotoPicker/Editor\u002BView/View/EditorStickersContentView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b15f5efe07ba908b5c79848d868216377ce464d135345f83e62b9b1ceabd922"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DeniedAuthorizationView (LCOM4 4): DeniedAuthorizationView\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/HXPhotoPicker/Picker/View/DeniedAuthorizationView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a24e0708d76023cbc5b5e1de50e7627707152edac8ee5280d866b06d1f3b0e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AlbumViewController (LCOM4 4): AlbumViewController\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/HXPhotoPicker/Picker/Controller/Album/AlbumViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"56afe3d2e896ab9dc06f87bf7f42b494ae676bae24e1ec2e45ef3ea049f48c73"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoPickerListViewController (LCOM4 4): PhotoPickerListViewController\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/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8b83ca1660d499769d376f836a9542b4056c878bc308886f69dd8ac29d1293"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PhotoToolBarGlassView (LCOM4 4): PhotoToolBarGlassView\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/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"73048349f24b9e856bd089ae5febb94e43498e470ea5fbd275143855df3c9c31"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CALayer (LCOM4 4): CALayer\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/HXPhotoPicker/Core/Extension/Core\u002BCALayer.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2455c1802c249f8be45fd1088e1884ed692e4755960a294bf4dee46976a2dca"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ResultViewCell (LCOM4 4): ResultViewCell\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":"Swift/Classes/Controller/PickerResultViewController.swift"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfada55142964c3346720ff24bb9a9fc4db92411ed2d626b00719aa0d23e3b7"}},{"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":"D21","level":"note","message":{"text":"\u0060requestVideoDurationId\u0060 spells \u0060Id\u0060 where 15 names in the project spell it \u0060ID\u0060: 15 of 16 names in project HXPhotoPicker spell the token \u0060ID\u0060 (15 of 16; unit: names in project HXPhotoPicker containing \u0060ID\u0060). Peers: VideoCompositionInstruction.passthroughTrackID (Sources/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift:416); VideoCompositionInstruction.watermarkTrackID (Sources/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift:418); VideoCompositionInstruction.init(watermarkTrackID) (Sources/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift:424); EditorViewController.assetRequestID (Sources/HXPhotoPicker/Editor/Controller/EditorViewController.swift:568); EditorTransition.requestID (Sources/HXPhotoPicker/Editor/Transition/EditorTransition.swift:22). Rename to \u0060requestVideoDurationID\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b40366153da56bae674a961ac8e0c7fbef6ca572a3739b18c66834798744661"}},{"ruleId":"D28","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":"15f7971ac4e3dcae37158c789658397fd1fc76d163ea4893203b9a8c08605024"},"properties":{"commitSha":"2900ddf3ecdf4950ff50da92d7df5b597dc56635"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Swift/Classes/Controller/TestEditorViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7287b95c9b31e26954ad433adc4f0f9d7bf106e54a67aaca574fb719be4e05a7"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5e99c62000477433f816eae4db17bf07f38ed396210171194e5829428506c1"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BPublic.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69759bc2a6802bb811e416b8ffc4137915c8ef05ee7ea13a43be2ddc3a316e8"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06cde2cb88696cf3638b6e0cc4d6244b1d1703f57c4a64e4154af860899964fe"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Model/EditorModels.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a50130861e7339fc1e502233059ebab62e582dbfb190eaca967a782d8eb7c3"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4833ac42664d74ef799052be9024a43a7b5842b72bd6249662da95406999d2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersItemView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1211d2fa29350fd63ca8a4aad0e4aac0d0735b379783b5d2fe5620362452f95"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 35 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: Sources/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift, Sources/HXPhotoPicker/Editor/View/Filter/EditorFiltersView.swift, Sources/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift, Sources/HXPhotoPicker/Editor\u002BView/View/EditorFrameView.swift, Sources/HXPhotoPicker/Editor\u002BView/View/EditorView.swift, Sources/HXPhotoPicker/Editor/View/EditorToolsView.swift, Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BContentView.swift, Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BVideo.swift (and 27 more) (42 orphaned of 273 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 273 of the 401 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Model/EditorVideoCompositor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7865bea94f3d5635c87b9f6db5c5a08a5e0b5f4172feca310700eb6a2bffdc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Filter/EditorFiltersView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74cf65cfc8dd8a5c2765fb01c4defc813d4d5b6ffa16d60880da14f9805e217"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorVideoPlayerView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d97589faa62aaaf0c92f0bb29483fe3e8bebde48d6e451c44665a48696b700"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorFrameView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded163a5426a8a6822806ecdd4278e6e46677916baae44866d7c6163f2b50903"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9e74e21939c445de8b7429f418f5b141047e49a1837754969e99a7a17a7ba5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/EditorToolsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4141e65197f23055a45cccdfb429a43119cb5504259b519e2a1701e509f0a12"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca268f94db9b0bd4f5069ba81184f361de7456c4267e958a341ba2edaccbfde7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BVideo.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14a52a555ce6ba5c2c5bd1880d44e52dd0a98971ea37b087766c9f983e653ca"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewControllerDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe23298ebb13e41152bed398dad4315e3f9700444b30e5bb1c4d5ff84ba7692"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Config/PickerBottomViewConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"628c7afe4a0ae6b42facf81ef01aef645f1141fb6dca73ef360e77410199d257"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Objective-C/SwiftPhotoPicker/SwiftPickerResult.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df99c975e72962ec6dfbf2cd30aaac2d0277974c5d5c6dc8fcb634f8461c334"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BMusic.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cf4e6882316dee43a48ffea4b55b3b09410f4c1e8a5ef2b0ee0dc6fed2009b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BEditorView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd569dea47c9a80f547bf71a74a1c4ba7bbcdf3af86a68ff69b537a1fe6d8fcb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BFrameView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b9a6fe3f9b01b692ed7358900c79cda0c97204f09fd1eedbbe6276a9632227"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BRotate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"257d9519697ad002bd4ac9d7784187602e3ce2aafc45ee0bfb136e33772daf7b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c28fa8e91fe1790417d90ff5bdf95b06aec9eadc20295cc8a6a7d0f0c1c8aa"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BScreenRotation.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34efab7d6acf2a935c5929c17cd3289cf0306c637e5f0ac28939ef52ec61c5b7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Util/AssetManager\u002BVideoURL.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a4f5ddd8f9b1420b45057bc25e6874b055a8d4788949254afe59dd596ce63e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/PreviewPhotoViewCell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad27ae944439e45040163f25bd478139228a296ed5a417c39803cba0bfac6109"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/PhotoEditorFilter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"317b2ff90b60f84889471cce99929010862a717abef0a85e442679425f2301ea"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorViewProtocol.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c842c023babe59c8976a5c1b04bdf36bc3b36c5f3b6045cb081dbacd3d6eccb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorStickersContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9ffa5e8715fed589daf1c750e90603a14e2104309129b9b8bf2a4f53dbda19"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BEditor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54d15aa929cbe6144e112ef7bf65352b6f904d95118bf6fe2ac0b2335060715"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorView\u002BAdjusterView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"348e8e97e16529f4c50f87c205e3c34f8f8992a06f337e13873a6b87838baeec"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/EditedResult.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1fe574f1372009a28c89361475bd82cb60c8b4b4b4382f720ae5120f0f9afd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewControllerProtocol.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69636bcf0f966028ba1118b9674c21ea9a8de4b7905b009bab55f32b59b7b32b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Objective-C/SwiftPhotoPicker/SwiftPhotoAsset.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d83924c8b4a93fb70dac73fc0b0f0462d65099cb9fa33653b101aa413c5a6a2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/EditorType.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"299641efad0b14b0937aa47819107df637c6856ea5dcf3ad98575708a573c784"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/PreviewVideoControlViewCell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71096b4cc3b4b12130b19abe2c6c534e9df5dba135d05ff98dd83efcb44e8c7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Model/EditorTypes.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7fbcfa109a86e34ba9dfcfda269470ebe776d8b12a328b38f581db1dd93a8d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterViewProtocol.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0153f3a64b41d25c89f871102b3122de9f1eba1a5da0a94904a0f7823402c60"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BLayerRTLFrame.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d3b80068f6d2ea3ee1572c6fc5e1b700bfd5aaac010f82e2b283ab6c4fb523"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BUIViewRTLFrame.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f732d2b0050dd634167b0c399b06f4424350b3e0955c86a6527c360f17ac13"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BAVAsset.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b3b744b22920f9ac217324d248bc39d241c9e5b8479131753da2c15090b377"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BVideoControl.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb11cd4e19f68e5900f766f42d91477b4feae5da68f3ea782e543ea4db00e12"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"ES2","level":"error","message":{"text":"Mutable domain event: PhotoPickerController: \u0060PhotoPickerController\u0060 conforms to a domain-event contract but carries mutable state (a \u0060class\u0060 event, or a \u0060struct\u0060 event with a mutable \u0060var\u0060). Events are immutable facts \u2014 model them as a \u0060struct\u0060 with \u0060let\u0060 fields so a recorded event can never be rewritten."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Photo/PhotoPickerController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e1c62db534640d008b59208b9d5f87ef9b9e1701b49f07459dd135cc00f55e"}},{"ruleId":"ES2","level":"error","message":{"text":"Mutable domain event: PhotoPickerViewController: \u0060PhotoPickerViewController\u0060 conforms to a domain-event contract but carries mutable state (a \u0060class\u0060 event, or a \u0060struct\u0060 event with a mutable \u0060var\u0060). Events are immutable facts \u2014 model them as a \u0060struct\u0060 with \u0060let\u0060 fields so a recorded event can never be rewritten."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8493f018d131a025b99bae772050c6433092fd245efffd64c76ee21f510f849"}},{"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":"P1","level":"warning","message":{"text":"CI pipeline targets a decommissioned service: The pipeline is well-formed, but the only CI definition is \u0060.travis.yml\u0060, and its \u0060README.md\u0060 build badge still points at \u0060travis-ci.org\u0060 \u2014 a service shut down in June 2021. No other CI is configured in this repository, so nothing has been building or testing changes here since that shutdown \u2014 the steps below describe a gate that is not running. Porting it is mostly mechanical: the build and test commands already written here are what a replacement pipeline would run."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"94fa49939f4e75dfcbfaabad72be66184852fe80bd9db87538e6e15223919a47"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 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"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!customColor.isFirst \u0026\u0026 !customColor.isSelected\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift, Sources/HXPhotoPicker/Editor/View/Text/EditorStickerTextView\u002BCollectionView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/View/Brush/EditorBrushColorView.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"10af61ab575bd3fdbc34c64d6cd6277ae58de1091cecf34a78a6e2c3ca5004d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isShowPreviewList || previewAssets.isEmpty\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift, Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"26abc5167fe30d82baf8a466597d795c487b792ef8e9cb27b5515db102b2068c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!photoAsset.isSelected \u0026\u0026 config.cell.isShowDisableMask \u0026\u0026 manager.config.maximumSelectedVideoFileSize == 0 \u0026\u0026 manager.config.maximumSelecte\u2026\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift, Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BFunction.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/PickerView/PhotoPickerView\u002BCollectionView.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d57f3ee237109b6b283ab94b31b41b5ea9855ddfafc4a38a09da0cf445faae2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!photoAsset.isSelected \u0026\u0026 config.cell.isShowDisableMask \u0026\u0026 pickerConfig.maximumSelectedVideoFileSize == 0 \u0026\u0026 pickerConfig.maximumSelectedPho\u2026\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift, Sources/HXPhotoPicker/Picker/Protocol/UI/PhotoList/PhotoPickerListFectchCell.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerListViewController.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68c04dd9fca40b11f3873a7b063c9b3eff503a9e694f90c151a8843228442e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!scrollView.isTracking \u0026\u0026 !scrollView.isDragging\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift, Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaafa50a003b6a9d4776d566ccbfc10aa186a0942f9a472b663c74df7e28fc6b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060((type == .picker \u0026\u0026 pickerConfig.photoList.bottomView.isShowOriginalFileSize) || (type == .preview \u0026\u0026 pickerConfig.previewView.bottomView.i\u2026\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift, Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7136a18f57b29d84890f08ad7aa78f2e0b80d3499b2679078938ad5e2dc9889d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(cell.scrollView.isZooming || cell.scrollView.isZoomBouncing || cell.scrollView.contentOffset.y \u003E 0 || !cell.allowInteration || (toRect.minX\u2026\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift, Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d725859ae1c57f6236cd56be8aff4fcc376815ac5c548f8db8a08bead567267"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060HXPICKER_ENABLE_CAMERA \u0026\u0026 !targetEnvironment(macCatalyst)\u0060 appears character-identically in 6 files \u2014 Sources/HXPhotoPicker/Core/HXPhotoPicker.swift, Sources/HXPhotoPicker/Editor/Controller/EditorChartletViewController.swift, Sources/HXPhotoPicker/Picker/Config/PhotoListConfiguration.swift, Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BCamera.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/HXPhotoPicker.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"766a7a99fdf706e34774dfb6843e9712dc7d432829112b54b6de9549a1d0997d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060HXPICKER_ENABLE_EDITOR \u0026\u0026 HXPICKER_ENABLE_PICKER\u0060 appears character-identically in 6 files \u2014 Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift, Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BPhotoList.swift, Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BEditor.swift, Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BToolbar.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerViewController\u002BEditor.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"708728f24756c1424b6e1d4581b8e1c72874fd17d5343b4b5e837184d1dca016"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060HXPICKER_ENABLE_EDITOR || HXPICKER_ENABLE_EDITOR_VIEW\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Core/Util/ImageResource.swift, Sources/HXPhotoPicker/Core/Util/TextManager.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/ImageResource.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a0912095fe1797e87d6fd48ab25b733b3252b1c48207f9f4eed852ea5f430a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060HXPICKER_ENABLE_PICKER || HXPICKER_ENABLE_CAMERA\u0060 appears character-identically in 6 files \u2014 Sources/HXPhotoPicker/Core/Extension/Core\u002BString.swift, Sources/HXPhotoPicker/Core/Extension/Core\u002BUIFont.swift, Sources/HXPhotoPicker/Core/Util/PhotoManager.swift, Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BAlert.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BString.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae677653098220fe3dbe27f504cc5b71f63f88fadaa2a7935e8d909b6790257"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060HXPICKER_ENABLE_PICKER || HXPICKER_ENABLE_EDITOR\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Core/Util/PhotoManager\u002BDownload.swift, Sources/HXPhotoPicker/Core/Util/PhotoManager.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoManager\u002BDownload.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d904b53fcf00d052200f0b04ba9d37a85a41b4e70c29a2e96557b293bdb42e79"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060abs(velocity.y) \u003E abs(velocity.x) \u0026\u0026 velocity.y \u003E 0\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift, Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cec0761a34996dc2169074a698fbeb0439394a059ef4ef0dc466e4d9a31c004"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060alphaInfo == .premultipliedLast || alphaInfo == .premultipliedFirst || alphaInfo == .last || alphaInfo == .first || cropFactor.isRound || cr\u2026\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift, Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/Util/EditorView\u002BPhotoTools.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2b3bc8050abb0a1bf7c2dfaab48af74f91eed137427bef843fdffcd73e43a8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060aspectRatio.ratio.equalTo(.init(width: -1, height: -1)) || aspectRatio.ratio.equalTo(.zero)\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift, Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BToolsView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BLoadAsset.swift"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a70e48ff7dafe820d4c10b20be2582cd0ae162fb44e1b70f54c395c5cf233a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060asset == self.photoAsset \u0026\u0026 asset.downloadStatus != .succeed\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift, Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentVideoView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/PhotoPreviewContentLivePhotoView.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"869dee44168e1981f3b868a2014f324e0b43901785e8dfa672ebb17d5ecff026"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.isFixedCropSizeState \u0026\u0026 config.isIgnoreCropTimeWhenFixedCropSizeState\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BProcessing.swift, Sources/HXPhotoPicker/Editor/Controller/EditorViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Controller/EditorViewController\u002BProcessing.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b04c0c7188dbb01db18bbf74e033fc401678e4303eabd081585737c9fdefbc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.maximumVideoEditDuration \u003E 0 \u0026\u0026 round(photoAsset.videoDuration) \u003E Double(config.maximumVideoEditDuration)\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/Data/PhotoPickerData.swift, Sources/HXPhotoPicker/Picker/Model/PickerManager.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Data/PhotoPickerData.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"068ed1537986e1aca7903b6dad466ec00007e341ca875719d8063879b97eb846"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060gestureRecognizer is UIPinchGestureRecognizer \u0026\u0026 otherGestureRecognizer is UIPanGestureRecognizer\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Editor\u002BView/View/EditorDrawView.swift, Sources/HXPhotoPicker/Editor\u002BView/View/EditorMosaicView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorDrawView.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"e101263614980ba4abb90c47279eacae5522bb2dedbe6c024711d8f14e3d337a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isFixedRatio \u0026\u0026 !isResetIgnoreFixedRatio\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift, Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BEdit.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorAdjusterView\u002BCroper.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f234cf8714b62fa5697f1736743bb22d04b4a896f421c7ab777a66949b25d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isGif \u0026\u0026 self.mediaSubType != .imageAnimated\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift, Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdb8cfefb1f2fa3fce504b56dd6efb496919a507137b0681157e69e0aea1764"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.hasPrefix(prefix) \u0026\u0026 line.hasSuffix(\u0022]\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift, Swift/Classes/Controller/TestEditorViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b905db01c8a6c2a15f3c7bb49ae426d664304683799fa99b8d0d3a9f1d8a1f2d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lyric.second.isEmpty || lyric.second == \u002260000:50:00\u0022\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift, Swift/Classes/Controller/TestEditorViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20efb71b5349faa926352231ec225ffec101cf964dfa0bf98800fda31046dba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nextResponder is UINavigationController || nextResponder is UIViewController\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Core/Extension/Core\u002BUIView.swift, Swift/Classes/Extension/Extension.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BUIView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fd8aae389d90a007dd26043f540e6f64af2e0766a87264c44169df7ebb134b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060offsetX \u003C= currentOffsetX - viewWidth || offsetX \u003E= currentOffsetX \u002B viewWidth\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift, Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"543eb047911e9a68bb71d966362f7e4823cad4a2394998442d1590dbeb7b0aa7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060otherGestureRecognizer is UITapGestureRecognizer \u0026\u0026 otherGestureRecognizer.view is UIScrollView\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift, Sources/HXPhotoPicker/Picker/Transition/PickerInteractiveTransition.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Transition/PhotoBrowserInteractiveAnimator.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"90104127df1767742e907f1aa2e1243f5434c247cf65f37fe4bbbeab30df7f80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060photoAsset.mediaType == .video \u0026\u0026 pickerConfig.isSingleVideo\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift, Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Preview/PhotoPreviewViewController\u002BCollectionView.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ceddf62958263909fc31111db123a04c3834801f8a943e02dd7d8a4e264135"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pickerConfig.maximumSelectedVideoCount == 1 || pickerConfig.selectMode == .single\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift, Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e744b9d36b0491f69d03c86c98c073bd715267d94ba8e8982ea02deb9e22a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pickerConfig.photoList.bottomView.isShowSelectedView \u0026\u0026 pickerConfig.selectMode == .multiple\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift, Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad776d28cab9c6e3fc86b32b0b3e33f93398b38c0fdc75cd97c9de118611662e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pickerConfig.previewView.bottomView.isShowSelectedView \u0026\u0026 pickerConfig.selectMode == .multiple \u0026\u0026 !isShowPreviewList\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift, Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"534b06ff36352d542432a4f7c06021031e8c03d5afbe1a1be98f440030d058cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060previewListView.collectionView.isTracking || previewListView.collectionView.isDragging\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift, Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"7954c7745e6552ac7847253b0d0ece8b0fa6d176cf4809b69d7f4b70d2f3e6ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060range.location == NSNotFound || lyrics.isEmpty\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift, Swift/Classes/Controller/TestEditorViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a811f72fa95643a8f43c2725e316fade12997a5716a966b1ba9f6831bcf4035"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060selectOptions.isPhoto \u0026\u0026 selectOptions.isVideo\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerFilterViewController.swift, Sources/HXPhotoPicker/Picker/View/PhotoPickerFilterItemView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Controller/Picker/PhotoPickerFilterViewController.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a58c78e5f259742d1dd64240ee148c42266d9de7f9ca1cf24fde8fa75743b2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.mediaSubType.isHDRPhoto \u0026\u0026 !self.isDisableHDR\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift, Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BRequest.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Model/PhotoAsset/PhotoAsset\u002BImage.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"846181d54930c23a5f9f21350df4b3e5b437cd14478926347ba76ce8f796a4ea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060statusBarOrientation == .landscapeLeft || statusBarOrientation == .landscapeRight\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Core/Extension/Core\u002BUIDevice.swift, Swift/Classes/Extension/UIDevice\u002BExtension.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BUIDevice.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a4afefe9e280a0828c55dda2f284f371ade0ea0c0cfcedf81bcc02600dd623"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060time \u003E= lyric.startTime \u0026\u0026 time \u003C= lyric.endTime\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift, Swift/Classes/Controller/TestEditorViewController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/VideoEditorMusic.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da4c277bd93479305deb2c114cf0fef1c7c212cba1263724f75df4971e041f6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060type == .picker \u0026\u0026 AssetPermissionsUtil.isLimitedAuthorizationStatus \u0026\u0026 pickerConfig.photoList.bottomView.isShowPrompt \u0026\u0026 pickerConfig.allow\u2026\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift, Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/ToolBar/PhotoToolBarGlassView.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5553aa9348f97fef5010537be51ab524c4c81891c68464761ad8b791bab4f97f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060videoPlayType == .auto || videoPlayType == .once\u0060 appears character-identically in 2 files \u2014 Sources/HXPhotoPicker/Picker/View/Cell/PreviewVideoViewCell.swift, Sources/HXPhotoPicker/Picker/View/PhotoPreviewVideoView.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/View/Cell/PreviewVideoViewCell.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e1a3bd0a039c91f921623b933fe59122aaa2396d1c3674f9be8a1187e08c39"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"SwiftUI/PhotoBrowser.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a0644f43deba02198c5ad4d92c1d7afd0d1e0ebb2508ebae2b264303104db5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Picker/Extension/Picker\u002BUIImageView.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"068a848d1181d7f67cb0cd333a2a0ddcb89f93ab151d5bd13d6755f02187fc20"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4dbffd737f57ada66ff954f4863f2bcd3bddeed523b1ff56134d7933ef2570"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"1567f8d8105e1d71892889b55dfa5deb86fcf7757122682da11fa7e55e565c21"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor\u002BView/View/EditorCanvasView.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a804d0ef16ae58521e5b5fd54ba6976b538e9a019d10260a40282b691bd4d6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Editor/Model/EditorPlayAuido.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1904bfcc83967cf4f2c8b16b15b1a88986d7ed9e000354a1da42bd53449813e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/AssetSaveUtil.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2772f1e6e05d45b3e9b11d4cbdba9f69f58c796e23e72813dd2e25ad1e5603"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BFile.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac998c44efc8f5669aae78e152adaed7e7917f71e42a94be5bdc7c21f590881"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BFile.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8640054402ada9630cd889d99a71508f3479968d774ba1c934250ca9d294db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Util/PhotoTools\u002BFile.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b6a8f10151d39e245a757dac9378b2860502722d4f42e32a8562aefbf0e58e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BAVAsset.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b96897ba3f9ade031667879727e0e2b64b5ab1698346d1b98da59981c9651b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Camera/Controller/CameraManager.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ff4def307eb6b35ad85f780bd5d6457cfd8e76d9c9f79e0dcaad6d04ef965a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileSize\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HXPhotoPicker/Core/Extension/Core\u002BURL.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde19bad7988de9b18c302b83ff2ff1b2e8a22fa49c4108824710a2601decaec"}}],"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-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":3,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}