{"$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":"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"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":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"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":"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":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"FusionChannel.register (cyclomatic 21): FusionChannel.register has cyclomatic complexity 21 (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":"lib/src/channel/fusion_channel.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8795b972012536fbabdaa2e285cf73e2ce61f42633f1c5a0151a68f60452f62"}},{"ruleId":"D1","level":"warning","message":{"text":"FusionNavigatorDelegate.popUntil (cyclomatic 18): FusionNavigatorDelegate.popUntil 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":"lib/src/navigator/fusion_navigator_delegate.dart"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b9add411ae01a93573d36c3773f47e4067afcb407e4d0f09d24585fdb47105"}},{"ruleId":"D1","level":"warning","message":{"text":"FusionEngineBinding.attach (cyclomatic 16): FusionEngineBinding.attach 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":"ios/Classes/Engine/FusionEngineBinding.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c45adb5cf56eb4df13e85190e290abe91e8da4e75295472cce38441963a895"}},{"ruleId":"D2","level":"warning","message":{"text":"FusionNavigatorDelegate.popUntil (cognitive 26): FusionNavigatorDelegate.popUntil has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 5 (6 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":"lib/src/navigator/fusion_navigator_delegate.dart"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dd7d3fa1d5b3fcf075c0c04a5de104f5d0ac7f4b7e30df1ac75dbc5e381c81"}},{"ruleId":"D2","level":"warning","message":{"text":"FusionChannel.register (cognitive 23): FusionChannel.register has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, error handling 3 (6 pts), loops 1 (nesting depth added 3). 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":"lib/src/channel/fusion_channel.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cd9cf3bf6f970ef8137df74c0ed72e64642ad38581b7e2a29b1a206dac40b3"}},{"ruleId":"D2","level":"warning","message":{"text":"FusionStackManager.closeContainer (cognitive 17): FusionStackManager.closeContainer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ios/Classes/Container/FusionStackManager.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1822e744a769953b2deda183ea48a3ae90c140173aea35c0eaa170170b808385"}},{"ruleId":"D2","level":"warning","message":{"text":"FusionEngineBinding.attach (cognitive 17): FusionEngineBinding.attach has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 7. 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":"ios/Classes/Engine/FusionEngineBinding.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0429cec7721301883da88db3e44b09308d8c6c7a7d76bf0740e2fad702e6b6"}},{"ruleId":"D2","level":"warning","message":{"text":"FusionNavigatorDelegate.remove (cognitive 16): FusionNavigatorDelegate.remove has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 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":"lib/src/navigator/fusion_navigator_delegate.dart"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"469d63b54d8df0c7abf054ac7d741477718cfda73c411a9fa283605ff1c71403"}},{"ruleId":"D2","level":"warning","message":{"text":"FusionEngineBinding.checkStyle (cognitive 16): FusionEngineBinding.checkStyle 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":"ios/Classes/Engine/FusionEngineBinding.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51cc02619bd1d4b9b06b10be1ce2a13931276f522bf04620a7be231f340b30b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FusionChannel.register: MethodTooLong \u2014 register 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":"lib/src/channel/fusion_channel.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f366d4af73710980a85008674bb889db2c2bf3b1282d96221508bb6060e9bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt:147-173 | android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt:166-193 \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":"android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7875dafcf6dd9271ad3cdfc7524db6be6c3c1394000f75850e35266cc81b6ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/src/navigator/fusion_navigator_delegate.dart:84-101 | lib/src/navigator/fusion_navigator_delegate.dart:135-153 \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":"lib/src/navigator/fusion_navigator_delegate.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a235c591f8c5d58145da6b849d276381cef01b07b1437190cec306f3095c96b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/src/container/fusion_container.dart:246-261 | lib/src/container/fusion_container.dart:263-280 \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":"lib/src/container/fusion_container.dart"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd38f08272edef3ef9a230a2e85f14a33505a3d726a51b939f9ea5b6d00db741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): ios/Classes/Extension/UIApplicationExtension.swift:11-30 | ios/Classes/Extension/UIApplicationExtension.swift:32-52 \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":"ios/Classes/Extension/UIApplicationExtension.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbf4a350c1fc74f07a082bb92ba93abffc263be7e32e2c5f75df55f24248c13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/src/lifecycle/fusion_page_lifecycle.dart:141-155 | lib/src/lifecycle/fusion_page_lifecycle.dart:157-171 \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":"lib/src/lifecycle/fusion_page_lifecycle.dart"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"130ef18ddc666cce4c43522d834c824934d5535cb0cdd126e0d56fc72eb1bb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/src/navigator/fusion_navigator_observer.dart:14-28 | lib/src/navigator/fusion_navigator_observer.dart:30-44 \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":"lib/src/navigator/fusion_navigator_observer.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebe0b63237373da1715acbcef105b3512057d944abf3125bbe66bb53a26657e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt:64-83 | android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt:69-88 \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":"android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d372865e64d2cb5dfd7c82502ad4c86fc5a10f104ce647b74144b358f6008b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): lib/src/container/fusion_container.dart:52-65 | lib/src/container/fusion_container.dart:67-80 | lib/src/container/fusion_container.dart:82-100 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/container/fusion_container.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad633e9a932382bb088827390163e293d2d7ebf06f93e551c193a05b484cc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/src/container/fusion_overlay.dart:121-134 | lib/src/container/fusion_overlay.dart:136-149 \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":"lib/src/container/fusion_overlay.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbec8f344d6272862c1fb4061ff0d5b1d6082146f240fb9f98c3ad6b1b05f790"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/src/lifecycle/fusion_page_lifecycle.dart:129-139 | lib/src/lifecycle/fusion_app_lifecycle.dart:31-40 \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":"lib/src/lifecycle/fusion_page_lifecycle.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf572d338acb241f9c6db5cde28b453559754b2dec395416ff3e5962926d1ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt:201-208 | android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt:279-285 \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":"android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffe1de4dd7e8fb39214bdfa6568ca779bfff7245a13ba181b2b50b4d12d6003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/src/channel/fusion_channel.dart:70-79 | lib/src/channel/fusion_channel.dart:84-93 \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":"lib/src/channel/fusion_channel.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fbc22e4c13d7cda5b95f2a640c29ee5d783364828656dfea12b84c960d8113"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt:65-80 | android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt:70-85 \u2014 before extracting anything, compare \u0060android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt\u0060 and \u0060android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 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":"android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b82eaa2ba83a898ef185d09c472a71d3ac65c20a6f61abafd8b03043dcb445a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt:111-121 | android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt:126-136 \u2014 before extracting anything, compare \u0060android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt\u0060 and \u0060android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0def212e8d22c032c65932c67f6d881ffac7b5369f86b3f7f30fe1486f3f20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt:134-144 | android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt:153-163 \u2014 before extracting anything, compare \u0060android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt\u0060 and \u0060android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"654603a5adf80f0cd89fdf3cf293b1f38ea9f07ba8b6c1a6ba037e7f4733b0cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/src/main/kotlin/com/gtbluesky/fusion/engine/FusionEngineBinding.kt:162-171 | android/src/main/kotlin/com/gtbluesky/fusion/engine/FusionEngineBinding.kt:219-228 \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":"android/src/main/kotlin/com/gtbluesky/fusion/engine/FusionEngineBinding.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41cb193e3c09be2fabb09ea942270824363badf942b8906b6943143510f8eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt:175-183 | android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt:195-205 \u2014 before extracting anything, compare \u0060android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt\u0060 and \u0060android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 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":"android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab7a2fdf5a3e9b863144fe349e0b94a97daf525ad15dfed388fe099f99b699c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt:210-217 | android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragmentActivity.kt:68-75 \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":"android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"47194be099558f8ab5cfb16711b34a9722eb6b8161ce29ba13731e9189b7cedc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ios/Classes/Engine/FusionEngineBinding.swift:77-81 | ios/Classes/Engine/FusionEngineBinding.swift:121-125 \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":"ios/Classes/Engine/FusionEngineBinding.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52325425e62b2c0b67c900440f10418981ab2a04f1bce5150d5e150bf292ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): example/lib/page/dialog_page.dart:18-82 | example/lib/page/index_page.dart:79-601 | example/lib/page/lifecycle_page.dart:19-294 | example/lib/page/willpop_page.dart:17-112 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/dialog_page.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57a76f4ab38f88bacc74562c600968a5ae151d16bb291620d6e5b8a6bfdff5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): example/lib/page/index_page.dart:320-363 | example/lib/page/transparent_page.dart:164-207 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/transparent_page.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 194 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:320\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027remove /lifecycle\u0027)\u0060 in one and \u0060const Text(\u0027replace /list\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c984dae01b246af9647b10863b18e22d017de3d08877eb8e843c781b0bba53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): example/lib/page/index_page.dart:287-325 | example/lib/page/lifecycle_page.dart:195-234 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:287\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/index_page.dart"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c5e529e536b28b9d01fcadf4dd308681e1a820fd8f412c2199c16ea576369c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201333 lines \u00D7 2): example/lib/page/index_page.dart:169-201 | example/lib/page/lifecycle_page.dart:111-131 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:169\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 \u0060child\u0060 to \u0060const Text(\u0027push(adaption) /native_normal\u0027)\u0060 in one and \u0060const Text(\u0027push(native) /native_normal\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d54bdefadd98cf30eb60fdc016f9f46ff524c11a13b8b4e6856a3409bd13fe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 5): example/lib/page/index_page.dart:396-422 | example/lib/page/index_page.dart:441-467 | example/lib/page/index_page.dart:491-517 | example/lib/page/index_page.dart:537-563 | example/lib/page/lifecycle_page.dart:164-190 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:396\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027show dialog\u0027)\u0060 in one and \u0060const Text(\u0027push(native) /native_normal\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"876c89ec72ceb1655d50b6fb56eaad2dda7c44ad5cbeea8ae1aeeded8dd41d1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 3): example/lib/page/index_page.dart:302-324 | example/lib/page/lifecycle_page.dart:210-233 | example/lib/page/transparent_page.dart:154-176 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart: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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027popUntil /lifecycle\u0027)\u0060 in one and \u0060const Text(\u0027popUntil /index\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a54667add5fb86df3c62ad4cb682d4a6a87209375bdb5acd6908365a5b619e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 3): example/lib/page/index_page.dart:327-348 | example/lib/page/lifecycle_page.dart:237-259 | example/lib/page/transparent_page.dart:171-193 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:327\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 \u0060child\u0060 to \u0060const Text(\u0027remove /test-dialog\u0027)\u0060 in one and \u0060const Text(\u0027send event\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4a4f7abab5dd61f3c76d29dea632271461271066956b75246b2cac1e3e77cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): example/lib/page/index_page.dart:128-148 | example/lib/page/lifecycle_page.dart:65-86 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027push(adaption) /native_normal\u0027)\u0060 in one and \u0060const Text(\u0027push(native) /native_normal\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"376d8e5d571315505ff866ca79acec801cd861582a22b21e0a7a201240217d10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): example/lib/page/lifecycle_page.dart:56-74 | example/lib/page/transparent_page.dart:79-97 \u2014 before extracting anything, compare \u0060example/lib/page/lifecycle_page.dart\u0060 and \u0060example/lib/page/transparent_page.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/lifecycle_page.dart: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":"example/lib/page/lifecycle_page.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1284cfe3fa2868f9859460dd65c7cb4500f9d8c1a39fa37d7282e83344c2c505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): example/lib/page/lifecycle_page.dart:255-272 | example/lib/page/transparent_page.dart:201-217 \u2014 before extracting anything, compare \u0060example/lib/page/lifecycle_page.dart\u0060 and \u0060example/lib/page/transparent_page.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/lifecycle_page.dart:255\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 \u0060child\u0060 to \u0060const Text(\u0027send event\u0027)\u0060 in one and \u0060const Text(\u0027remove /lifecycle\u0027)\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":"example/lib/page/lifecycle_page.dart"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"da276c4a559342592295ca1f9bfc3e352bca4bda2fbeee3df3637311b8164b73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): example/lib/page/index_page.dart:353-369 | example/lib/page/lifecycle_page.dart:252-268 | example/lib/page/transparent_page.dart:198-213 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart: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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027remove /test-dialog\u0027)\u0060 in one and \u0060const Text(\u0027send event\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42d9f74a758b018f8bb751c7ca598c21ebd55be2efd0359498d28c04fdffe0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 6): example/lib/page/dialog_page.dart:48-63 | example/lib/page/index_page.dart:403-417 | example/lib/page/index_page.dart:448-462 | example/lib/page/index_page.dart:498-512 | example/lib/page/index_page.dart:544-558 | example/lib/page/lifecycle_page.dart:171-185 \u2014 before extracting anything, compare \u0060example/lib/page/dialog_page.dart\u0060 and \u0060example/lib/page/index_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/dialog_page.dart:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/dialog_page.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"be78287a8077b1f3248b39439f339149ff7eb45c3bae0c5e10673d0b16d3cee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): example/lib/page/dialog_page.dart:24-38 | example/lib/page/index_page.dart:390-404 | example/lib/page/index_page.dart:435-449 | example/lib/page/index_page.dart:485-499 | example/lib/page/index_page.dart:531-545 | example/lib/page/lifecycle_page.dart:158-172 \u2014 before extracting anything, compare \u0060example/lib/page/dialog_page.dart\u0060 and \u0060example/lib/page/index_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/dialog_page.dart:24\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027show dialog\u0027)\u0060 in one and \u0060const Text(\u0027push(native) /native_normal\u0027)\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060example/lib/page/index_page.dart:484\u0060 calls \u0060RouteSettings\u0060 and \u0060example/lib/page/dialog_page.dart:23\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/dialog_page.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb4e9fda2b2dc53e91a2bfb3f243984baaf4e67161fcd029641d73a3753b46f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): example/lib/page/index_page.dart:143-157 | example/lib/page/index_page.dart:194-207 | example/lib/page/lifecycle_page.dart:81-94 | example/lib/page/lifecycle_page.dart:96-110 | example/lib/page/transparent_page.dart:88-102 | example/lib/page/transparent_page.dart:104-117 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart: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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027push(adaption) /native_normal\u0027)\u0060 in one and \u0060const Text(\u0027push(native) /native_normal\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe94c3b5ebbdb7adc7ee33161680c35850ed4627425b43c4fa97184359205dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 5): example/lib/page/index_page.dart:123-136 | example/lib/page/index_page.dart:138-152 | example/lib/page/lifecycle_page.dart:76-89 | example/lib/page/lifecycle_page.dart:91-105 | example/lib/page/transparent_page.dart:99-112 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:123\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 \u0060child\u0060 to \u0060const Text(\u0027push(adaption) /native_normal\u0027)\u0060 in one and \u0060const Text(\u0027push(native) /native_normal\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"736cda0ff1a123c50438e160da7b22789c14577d87c952f157dda0e7efbb7720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 5): example/lib/page/lifecycle_page.dart:90-104 | example/lib/page/lifecycle_page.dart:132-144 | example/lib/page/transparent_page.dart:98-111 | example/lib/page/transparent_page.dart:113-126 | example/lib/page/transparent_page.dart:127-140 \u2014 before extracting anything, compare \u0060example/lib/page/lifecycle_page.dart\u0060 and \u0060example/lib/page/transparent_page.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 195 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/lifecycle_page.dart:90\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/lifecycle_page.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d48dc47f3683d72335c55a0df8a11705f5e3f39118f7c0b1dfb31714ecd0e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): example/lib/page/index_page.dart:137-151 | example/lib/page/index_page.dart:235-249 | example/lib/page/lifecycle_page.dart:75-88 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:137\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027push(adaption) /native_normal\u0027)\u0060 in one and \u0060const Text(\u0027push(native) /native_normal\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa20be2f666f405f96107e2f0e301c05fd4b4e90b6fd6c0645baf8dcbbb932d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): example/lib/page/index_page.dart:238-252 | example/lib/page/transparent_page.dart:116-129 | example/lib/page/transparent_page.dart:130-143 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/transparent_page.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 194 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:238\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/index_page.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a074b0ec78bf6e780158bc8e2a7943327982559ab612c2463e977a99063f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): example/lib/page/dialog_page.dart:24-37 | example/lib/page/index_page.dart:390-403 | example/lib/page/index_page.dart:435-448 | example/lib/page/index_page.dart:485-498 | example/lib/page/index_page.dart:531-544 | example/lib/page/lifecycle_page.dart:158-171 | example/lib/page/willpop_page.dart:22-35 \u2014 before extracting anything, compare \u0060example/lib/page/dialog_page.dart\u0060 and \u0060example/lib/page/index_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/dialog_page.dart:24\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027show dialog\u0027)\u0060 in one and \u0060const Text(\u0027push(native) /native_normal\u0027)\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060example/lib/page/index_page.dart:484\u0060 calls \u0060RouteSettings\u0060 and \u0060example/lib/page/dialog_page.dart:23\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/dialog_page.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0278c9188865ce2e5c6fef0b7ab0ef3425cef510d5f2a52c8ad95ee45440c37c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): example/lib/page/index_page.dart:286-299 | example/lib/page/lifecycle_page.dart:193-207 | example/lib/page/transparent_page.dart:147-160 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:286\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027topRouteName\u0027)\u0060 in one and \u0060const Text(\u0027push(native) /native_normal\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"088a18d6a26a4d9b8525a817859ccd9fcc99ac66fe54cf4234c18e2531d213d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): example/lib/page/index_page.dart:203-216 | example/lib/page/index_page.dart:217-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:203\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/index_page.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d4d622428fb896fe22e8b121e7d21137c573ca641d4c19f6906c91ecf525b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): example/lib/page/index_page.dart:244-256 | example/lib/page/lifecycle_page.dart:126-138 | example/lib/page/transparent_page.dart:121-133 | example/lib/page/transparent_page.dart:135-147 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:244\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/index_page.dart"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"31163770fa52d97e39b4fd15dbec0c9f071f6deb6e6a735fbf7c928d8b34ffc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): example/lib/page/index_page.dart:216-228 | example/lib/page/lifecycle_page.dart:131-143 | example/lib/page/transparent_page.dart:126-138 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:216\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060const Text(\u0027push(adaption) /native_normal\u0027)\u0060 in one and \u0060const Text(\u0027push(native) /native_normal\u0027)\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":"example/lib/page/index_page.dart"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"5852ff47725e28ee9e95ecf7b962e47c0895303014a7398bde9151cb27fb3347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): example/lib/page/index_page.dart:79-87 | example/lib/page/lifecycle_page.dart:19-26 \u2014 before extracting anything, compare \u0060example/lib/page/index_page.dart\u0060 and \u0060example/lib/page/lifecycle_page.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 326 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/page/index_page.dart:79\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/index_page.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cbf8fb5eea8b797dfe567ae2511aa9d97c63132d3090dc1bb95a3e5d7a16ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): example/lib/page/background_page.dart:61-67 | example/lib/page/lifecycle_page.dart:324-330 | example/lib/page/navigator_page.dart:86-92 | example/lib/page/willpop_page.dart:114-120 \u2014 before extracting anything, compare \u0060example/lib/page/lifecycle_page.dart\u0060 and \u0060example/lib/page/navigator_page.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/background_page.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"de33e2ba99d0513de84d3c133071aa831cf6e74ab9002ca32358b287ab6b0b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): example/lib/page/background_page.dart:69-75 | example/lib/page/web_page.dart:82-88 | example/lib/page/willpop_page.dart:122-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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/background_page.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6d36ad9a3684b959dc64f7ee88bf659b468871ebd0510bdf734915523dede4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): example/lib/page/lifecycle_page.dart:332-338 | example/lib/page/navigator_page.dart:94-100 \u2014 before extracting anything, compare \u0060example/lib/page/lifecycle_page.dart\u0060 and \u0060example/lib/page/navigator_page.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/lifecycle_page.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"be48a4ba41829da45c6dea664291a24f4da9e4eec76ac2774d70372e8eed3555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): example/lib/page/lifecycle_page.dart:340-347 | example/lib/page/navigator_page.dart:102-109 \u2014 before extracting anything, compare \u0060example/lib/page/lifecycle_page.dart\u0060 and \u0060example/lib/page/navigator_page.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/lifecycle_page.dart"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1754c761287521b389e78739af911d2649e68b1d9139825e95a2272d91830b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): example/lib/page/lifecycle_page.dart:349-356 | example/lib/page/navigator_page.dart:111-118 | example/lib/page/transparent_page.dart:31-38 \u2014 before extracting anything, compare \u0060example/lib/page/lifecycle_page.dart\u0060 and \u0060example/lib/page/navigator_page.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/lifecycle_page.dart"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe3ebf71ba6396108997e21c83c36f1e12d186508588a692413baf17fc1b02e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): example/android/app/src/main/kotlin/com/gtbluesky/fusion_example/CustomFusionActivity.kt:14-31 | example/android/app/src/main/kotlin/com/gtbluesky/fusion_example/CustomFusionFragment.kt:13-30 \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":"example/android/app/src/main/kotlin/com/gtbluesky/fusion_example/CustomFusionActivity.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44ecc55092a05baeec7e4e6cbe05e9ce15dbd424c4c0f61d34e0b7458aea779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): example/android/app/src/main/kotlin/com/gtbluesky/fusion_example/TabSceneActivity.kt:76-83 | example/android/app/src/main/kotlin/com/gtbluesky/fusion_example/ViewPagerSceneActivity.kt:70-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/android/app/src/main/kotlin/com/gtbluesky/fusion_example/TabSceneActivity.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2e7ab2f2007518395061523d1accd2a9902243dc292851a988741ac103c0ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): example/ios/Runner/CustomFusionViewController.swift:65-74 | example/ios/Runner/TabSceneViewController.swift:49-58 \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":"example/ios/Runner/CustomFusionViewController.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f7b3f7596c71ac89a338fd3c9fc7f9ee2d18cc592c8c06e1c608587ca7a5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): example/ios/Runner/CustomFusionViewController.swift:76-85 | example/ios/Runner/TabSceneViewController.swift:60-69 \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":"example/ios/Runner/CustomFusionViewController.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c805479af81e0bbec123bfea249c703e16e3bdbe2a9df73a2de404bf5f80220"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _TransparentPageState (LCOM4 7): _TransparentPageState\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":"example/lib/page/transparent_page.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6c1bdaf8091f12c232e81bbee3d838c3b1dcb30511e3401059d1fcbae2e8cb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FusionChannel (LCOM4 6): FusionChannel\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":"lib/src/channel/fusion_channel.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcf15d4dbbcdec50c615a99876074fcec911dacef7a0ef86e76c9d06598de30"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _IndexPageState (LCOM4 5): _IndexPageState\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":"example/lib/page/index_page.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b15d9b7d9e28479d4426eab8c30d2bf1e3b2e2b6952494f1960aea7c44abce"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FusionPageRoute (LCOM4 5): FusionPageRoute\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":"lib/src/container/fusion_page.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e659f18a37c47da87e812558472ad121c322df0a5e629b0eef5118da5ff23596"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FusionNavigatorDelegate (LCOM4 5): FusionNavigatorDelegate\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":"lib/src/navigator/fusion_navigator_delegate.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd26c655394b6057d5f0807a955fa0610c59130ffec867ab3e76c331ee1e7a3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _WebPageState (LCOM4 4): _WebPageState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/page/web_page.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b0d8a1d370268d72c504509f23646626a57e94088a1b08064dbd779d62f08c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FusionOverlayManager (LCOM4 4): FusionOverlayManager\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":"lib/src/container/fusion_overlay.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a03b221c6334d6b69f97e19cf9668240f997c03f4a832070adb0498ed7d401"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/src/navigator/fusion_navigator_delegate.dart: lib/src/navigator/fusion_navigator_delegate.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in FusionNavigatorDelegate.popUntil at line 222. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-06-24..2026-09-22, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-24 22:03:09 \u002B08:00\u0027 --until=\u00272026-09-22 22:03:09 \u002B08:00\u0027 --full-history --no-merges -- lib/src/navigator/fusion_navigator_delegate.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/navigator/fusion_navigator_delegate.dart"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc652bcbe7e09699cd9a38d4d6881807f8140b91756a0cb7abc858df1c7e943e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: FusionActivity.kt, FusionFragment.kt, FusionEngineBinding.kt: 3 files \u2014 \u0060android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt\u0060, \u0060android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt\u0060, \u0060android/src/main/kotlin/com/gtbluesky/fusion/engine/FusionEngineBinding.kt\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1494c5d496299a57ba3142938b930d4475d2def6fcc7a87cdd16e0b46ee9df"}},{"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":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060android/build.gradle\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/build.gradle"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1ffcef8db8685591eec89eb5625b87895e42392e50ac88559f2e50483200aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060top != null \u0026\u0026 top != activity \u0026\u0026 top.isTransparent() \u0026\u0026 !(top as Activity).isFinishing\u0060 appears character-identically in 2 files \u2014 android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt, android/src/main/kotlin/com/gtbluesky/fusion/container/FusionFragment.kt. 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":"android/src/main/kotlin/com/gtbluesky/fusion/container/FusionActivity.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ff8037b93d68312f5246cd8e43f12cbb773a8e607eb422bbb2a67ec044a554"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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":"lib/src/channel/fusion_channel.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ed0e3186dc31e57dde75c57d4d030560b2fcc4e5b7deaa146de819931055c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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":"lib/src/channel/fusion_channel.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcb786195b01eede5b78e27b94712ff6bfe45f0379d702368a05b1b03a2f6ef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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":"lib/src/channel/fusion_channel.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d462a3b1532429f91980dcb03abaae29ba3e9f706a721982f7f62e4727f268"}}],"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-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-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":"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/"}]}],"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":0,"secretScannerRunsExcluded":0}}}]}