{"$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":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"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":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"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":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"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":"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":"D2","level":"warning","message":{"text":"SeedImportWalletCubit._saveClicked (cognitive 26): SeedImportWalletCubit._saveClicked has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 1 (3 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/from-old-seed.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9bfc0288c1503575d5010f5d82765205ea9bdf5c59b9ba21b6f16d23428bfc"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionItem.build (cognitive 20): TransactionItem.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Wallet/TransactionItem.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbccede250fcb72229aa62c584b9296991c5f3c451e2493055320286102351ca"}},{"ruleId":"D2","level":"warning","message":{"text":"DeriveWalletCubit.deriveTaproot (cognitive 18): DeriveWalletCubit.deriveTaproot has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (3 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfa9cb2e484a1d9d60ed977b3c84c3007a8271268aa5f74e30bcd3d7612f5a5"}},{"ruleId":"D2","level":"warning","message":{"text":"_Wallet.build (cognitive 18): _Wallet.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 3 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/screen/WalletSingle.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d9c3415e2a85e4cbbcd2e36231a37519a0cca8296d5cf486d58a6bbccd50ae"}},{"ruleId":"D2","level":"warning","message":{"text":"DeriveWalletCubit.deriveSegwit (cognitive 17): DeriveWalletCubit.deriveSegwit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 1 (3 pts), ternaries 1 (2 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b2a883b96413961ae44964e9e264eab0bc16a2655df90b875bcb4238b466d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WalletCard.build: MethodTooLong \u2014 build runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\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/ui/component/Home/WalletCard.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e341a078571e2b2d84016d656b1950a80ef5c376f68725d230686468ea73794"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TransactionItem.build: MethodTooLong \u2014 build runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Wallet/TransactionItem.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aeb2fae1bde3493b4f7ddf1f9bfcb9996e71a193d4fe2d2a80f8fc712f6738"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LibBitcoin: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/api/libbitcoin.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dbbdab105b2ea63539dd9a6e123cd4a7148745b439623bff2c16b16767859e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _BackupOpsState.build: MethodTooLong \u2014 build 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/ui/component/Wallet/BackupOps.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"086a22189d35988eec9bae7f0a76f0182d5f6d72cee554e88b31106ded4fc400"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SeedImportWalletCubit._saveClicked: MethodTooLong \u2014 _saveClicked runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/from-old-seed.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e79994bcc8ceb5532e59e622e7a3fa3242dfc56a0a2fb6c80513c2e0d95f99"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SelectFee.build: MethodTooLong \u2014 build runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Send/SelectFee.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c043cc06f43a7f59f3f7a68065cd4571d0f13c1cb26f7adb73cceaa8aa5d592"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (89 shared lines): lib/cubit/new-wallet/derivation.dart:139-263 | lib/cubit/new-wallet/derivation.dart:265-377 \u2014 These two members are variants of one another: 89 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbdb5f16f766658e297baf2a9e3145b532e3e99eae72a4e326897d9558a8841"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (74 shared lines): lib/ui/component/NewWallet/Derive/Passphrase.dart:30-131 | lib/ui/component/NewWallet/SeedImport/Passphrase.dart:32-134 \u2014 These two members are variants of one another: 74 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/NewWallet/Derive/Passphrase.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"46caf9c09e39d37680a395a30b991e05b1737e35163a85f46362caf7c3712d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/component/BackupWallet/Complete.dart:60-128 | lib/ui/component/BackupWallet/Warning.dart:8-61 | lib/ui/component/NewWallet/SeedGenerate.dart:60-143 | lib/ui/component/NewWallet/SeedGenerate/Warning.dart:9-100 \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":"lib/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab280a703b061956640027a6cf614e95fe0be126a86558fe1cada47687fab4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/component/Settings/BitcoinUnit.dart:8-60 | lib/ui/component/Settings/Incognito.dart:8-59 | lib/ui/component/Settings/SelectNetwork.dart:11-60 | lib/ui/component/Settings/SelectNode.dart:9-64 \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":"lib/ui/component/Settings/BitcoinUnit.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"885f2accf594ead51e1317bad80f158b1662e5deec80223dd92cbfae5c0e4ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/screen/BackupWallet.dart:33-114 | lib/ui/screen/NewWallet/Derive.dart:20-92 | lib/ui/screen/NewWallet/SeedGenerate.dart:40-127 | lib/ui/screen/NewWallet/SeedImport.dart:23-106 \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":"lib/ui/screen/BackupWallet.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"61eee475676ddfae8d7b2db8130f14776379a0eec60bd4e95313986f8c06e576"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (96 corresponding lines): lib/ui/component/BackupWallet/Complete.dart:171-266 | lib/ui/component/NewWallet/SeedGenerate.dart:186-281 \u2014 These two members are one piece of code written twice and then edited apart: 96 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/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"540ec72715ee20f10285914222e68bdea84da16871e6379e2802c8dcb04675c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 76\u002B corresponding lines): lib/ui/component/NewWallet/Derive/Label.dart:8-83 | lib/ui/component/NewWallet/SeedGenerate/Label.dart:10-90 | lib/ui/component/NewWallet/SeedImport/Label.dart:8-83 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 76 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/ui/component/NewWallet/Derive/Label.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb079496c2250c49777de5916f825be64c2dd170234c65a07f4358d52295068b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): lib/cubit/wallet/info.dart:125-214 | lib/cubit/wallet/info.dart:216-282 \u2014 These two members are one piece of code written twice and then edited apart: 67 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/cubit/wallet/info.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c1f3deaa0b04c0a16f5130de0d329bb6dffc009c111768375b6a595d5d3752"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): lib/ui/component/common/BitcoinDisplayLarge.dart:15-72 | lib/ui/component/common/BitcoinDisplayMedium.dart:15-58 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/common/BitcoinDisplayLarge.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d77d1f4551f48b9056846103618ba2338814b74f6ace0ef271f85fae69eec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): lib/ui/component/Home/Networth.dart:9-49 | lib/ui/component/Wallet/Balance.dart:13-46 \u2014 These two members are one piece of code written twice and then edited apart: 34 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/ui/component/Home/Networth.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f541dd6660959dad6ff390788d0774d4ced2b3098afde6d015848d71657ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): lib/cubit/new-wallet/common/seed-generate.dart:231-260 | lib/cubit/seed-backup.dart:176-205 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/common/seed-generate.dart"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"448ec91fdaadc1bac9a5341e05cbd3a9eeb6f9a6e1d8cb04e67a4c0466a44545"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/ui/component/BackupWallet/Complete.dart:143-167 | lib/ui/component/NewWallet/SeedGenerate.dart:158-182 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc80ab65b7adfc0c9a89d445eb0512c16f73a32d75a938b31313b6c3c9f94190"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/ui/screen/Receive.dart:98-114 | lib/ui/screen/Send.dart:153-172 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/screen/Receive.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c3c8ae5a1629982cff267a27d0ee8862ccc9f7dc7f80942e0cb071cddb4ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): lib/cubit/new-wallet/derivation.dart:379-392 | lib/cubit/new-wallet/from-new-seed.dart:214-231 | lib/cubit/new-wallet/from-old-seed.dart:320-333 \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/cubit/new-wallet/derivation.dart"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a79ec5430df08c4097ae2d95d1432b34e9735aaabf215d5c505ca87d4c4dc29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/ui/component/Landing/PinPrompt.dart:8-27 | lib/ui/component/Landing/PinValue.dart:8-30 \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":"lib/ui/component/Landing/PinPrompt.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"928dadb7297fd99e20af3200e93a85690924bbc3fcabd48094485d0612a4fe9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/pkg/storage.dart:128-136 | lib/pkg/storage.dart:138-146 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/pkg/storage.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00c57d5355057c9fa14aa84b8b24d71904b72cd3b86ba72e0bbc45905e0b3c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/pkg/launcher.dart:8-17 | lib/pkg/storage.dart:106-115 \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/pkg/launcher.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd153ac9ee563e4204a45eed793eafa24d35bb3bf826d85884fd74a8363291b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): lib/ui/component/BackupWallet/Stepper.dart:7-25 | lib/ui/component/NewWallet/Derive/Stepper.dart:9-23 | lib/ui/component/NewWallet/SeedGenerate/Stepper.dart:7-25 | lib/ui/component/NewWallet/SeedImport/Stepper.dart:8-26 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/BackupWallet/Stepper.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd459153a8e9f50f4d35629bc602119a5142ef696a9b78b19bd489eeffa7965"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): lib/pkg/clipboard.dart:9-19 | lib/pkg/launcher.dart:19-35 | lib/pkg/storage.dart:117-126 | lib/pkg/storage.dart:148-157 | lib/pkg/storage.dart:159-168 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/pkg/clipboard.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09bdab4fdd22fa415a8e7be5aa996bc6b025361b69521256132e92596ebb8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/cubit/pin.dart:101-114 | lib/cubit/pin.dart:153-168 \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/cubit/pin.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c7310d2fe493de297d11927f4bd74357805ceab36c090cddb8b293d5c01bdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/api/bitcoin_worker.dart:80-96 | lib/api/bitcoin_worker.dart:98-110 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/api/bitcoin_worker.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"719c5fbd2600a8860c0f5ac47be0d552f43e937b88c9499af50c12f0fb92bbe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/api/libbitcoin.dart:122-132 | lib/api/libbitcoin.dart:188-201 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/api/libbitcoin.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9279173fa5a50bfbec8b121f293fb121c5924d897318f0c9b008591697d63a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/pkg/launcher.dart:37-45 | lib/pkg/launcher.dart:47-55 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/pkg/launcher.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"362a65f220c826e0204fb72c1b0c4fe81f33a4ae61bb001adadccc47e33f883a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/cubit/new-wallet/common/seed-generate.dart:165-179 | lib/cubit/seed-backup.dart:122-137 \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/cubit/new-wallet/common/seed-generate.dart"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57204f9da67eab7ecc6b122c8363d69c40cc66848b73fba14efc938faf2f76c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): lib/ui/component/BackupWallet/Complete.dart:184-242 | lib/ui/component/NewWallet/SeedGenerate.dart:199-257 \u2014 before extracting anything, compare \u0060lib/ui/component/BackupWallet/Complete.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedGenerate.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/BackupWallet/Complete.dart:184\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"718ef9ecc1ab0a058c3e7d819c6bc506eb49a344e67b5fb75831c98a8f9ac408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): lib/ui/component/Wallet/TransactionItem.dart:64-113 | lib/ui/component/Wallet/TransactionItem.dart:156-205 \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 \u0060lib/ui/component/Wallet/TransactionItem.dart:64\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Wallet/TransactionItem.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca78e65d125030374324d975fb643018f3cc4f98877e62f5e3ea44610e654d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): lib/ui/component/Wallet/TransactionItem.dart:23-62 | lib/ui/component/Wallet/TransactionItem.dart:115-154 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/Wallet/TransactionItem.dart:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Wallet/TransactionItem.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"73611838061e8beec0376056900ad772481f270af3471e2363cda50aeed46322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): lib/cubit/new-wallet/common/seed-generate.dart:193-227 | lib/cubit/seed-backup.dart:139-173 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/cubit/new-wallet/common/seed-generate.dart:193\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":"lib/cubit/new-wallet/common/seed-generate.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f624d29cf52f691d47162432747af89078ba83d5c2d101f66f1667a40898c6e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): lib/ui/component/BackupWallet/Complete.dart:80-110 | lib/ui/component/NewWallet/SeedGenerate.dart:80-111 \u2014 before extracting anything, compare \u0060lib/ui/component/BackupWallet/Complete.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedGenerate.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/BackupWallet/Complete.dart:80\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed91b7a34f09536e7a078be99fea111c76cde81a8e6e31e3c0732ab1035091d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): lib/ui/component/NewWallet/Derive/Passphrase.dart:33-64 | lib/ui/component/NewWallet/SeedImport/Passphrase.dart:35-66 \u2014 \u0060lib/ui/component/NewWallet/Derive/Passphrase.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedImport/Passphrase.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 75 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/NewWallet/Derive/Passphrase.dart:33\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/NewWallet/Derive/Passphrase.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e558fd6e705f9d607557062c23f47115a7200928cc2739066d4661a56780735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): lib/ui/component/NewWallet/Derive/Passphrase.dart:66-96 | lib/ui/component/NewWallet/SeedImport/Passphrase.dart:68-97 \u2014 \u0060lib/ui/component/NewWallet/Derive/Passphrase.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedImport/Passphrase.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 75 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/NewWallet/Derive/Passphrase.dart:66\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":"lib/ui/component/NewWallet/Derive/Passphrase.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d34d542a14fc75049bbb9f9f63d9e66489828a83f55b45560f82c8e80851a58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/ui/component/Home/WalletCard.dart:128-152 | lib/ui/component/Home/WalletCard.dart:175-199 \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 \u0060lib/ui/component/Home/WalletCard.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Home/WalletCard.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d40f088986cfa38b95061992003f1a75928a61fdbc0f632980d66f19f74a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/ui/component/NewWallet/SeedGenerate/Label.dart:15-39 | lib/ui/component/NewWallet/SeedImport/Label.dart:13-37 \u2014 \u0060lib/ui/component/NewWallet/SeedGenerate/Label.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedImport/Label.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/NewWallet/SeedGenerate/Label.dart:15\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":"lib/ui/component/NewWallet/SeedGenerate/Label.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0497313c2b88b68009aa85ae3168cea52833e17a8ea42f60ca145b499e6d2f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/ui/component/Settings/BitcoinUnit.dart:15-38 | lib/ui/component/Settings/Incognito.dart:14-37 \u2014 before extracting anything, compare \u0060lib/ui/component/Settings/BitcoinUnit.dart\u0060 and \u0060lib/ui/component/Settings/Incognito.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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 \u0060lib/ui/component/Settings/BitcoinUnit.dart:15\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Settings/BitcoinUnit.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c780fc214efc501f0c947eef4fe4d3fe5a23aad22976dcae1e4b2759d32daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/ui/component/BackupWallet/Complete.dart:16-38 | lib/ui/component/NewWallet/SeedGenerate.dart:16-38 \u2014 before extracting anything, compare \u0060lib/ui/component/BackupWallet/Complete.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedGenerate.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca6f90cc4c2d934647af7ae6c874acc0159f2206abedcb950c45feb22e66849"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): lib/ui/component/NewWallet/Derive/Label.dart:26-47 | lib/ui/component/NewWallet/SeedGenerate/Label.dart:28-49 | lib/ui/component/NewWallet/SeedImport/Label.dart:26-47 \u2014 \u0060lib/ui/component/NewWallet/Derive/Label.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedImport/Label.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/NewWallet/Derive/Label.dart:26\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/ui/component/NewWallet/Derive/Label.dart:49\u0060 calls \u0060copyWith\u0060 and \u0060lib/ui/component/NewWallet/SeedGenerate/Label.dart:50\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/NewWallet/Derive/Label.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a86ae72b2d778c57c85f35e7c085e227cb4eadfb708eb799759ff29d9d4e4f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201336 lines \u00D7 2): lib/cubit/wallet/info.dart:142-173 | lib/cubit/wallet/info.dart:228-263 \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 \u0060lib/cubit/wallet/info.dart:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/cubit/wallet/info.dart:140\u0060 calls \u0060getAddress\u0060, \u0060walletDbPath\u0060 and \u0060lib/cubit/wallet/info.dart:228\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":"lib/cubit/wallet/info.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc414bfc63478c157d18562e858379d0b272b87c14420199f480bf3118373df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/ui/component/NewWallet/Derive/Label.dart:52-72 | lib/ui/component/NewWallet/SeedImport/Label.dart:52-72 \u2014 \u0060lib/ui/component/NewWallet/Derive/Label.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedImport/Label.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/NewWallet/Derive/Label.dart:52\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":"lib/ui/component/NewWallet/Derive/Label.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4717b083c7d63efe24f6fb362d31f9c67d320006c2aa0a113bcd4bb07b0c8f8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/cubit/new-wallet/derivation.dart:244-263 | lib/cubit/new-wallet/derivation.dart:358-377 \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":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"895de2680d27eb46512c1eccccc0404772b067b2bb42d5caace8e6bc2a0433dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): lib/cubit/new-wallet/derivation.dart:181-195 | lib/cubit/new-wallet/derivation.dart:302-320 \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":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbfeb9c58d9ace504129e3d164e4d9a8563eaddad6fce871161bf29052512eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/ui/screen/AddWallet.dart:67-85 | lib/ui/screen/AddWallet.dart:101-119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/screen/AddWallet.dart:67\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/screen/AddWallet.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8056e9974a9fa9c9b081506b1a3fe8bb180ec4d3937beac2a050b793b06c537c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/ui/component/BackupWallet/Complete.dart:143-160 | lib/ui/component/NewWallet/SeedGenerate.dart:158-175 \u2014 before extracting anything, compare \u0060lib/ui/component/BackupWallet/Complete.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedGenerate.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/BackupWallet/Complete.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. 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/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"30016be363b10190b2c54a33dcdeb835e0f44301388f21ba5d0dac9078d3f3f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/ui/component/BackupWallet/Warning.dart:10-26 | lib/ui/component/NewWallet/SeedGenerate/Warning.dart:14-30 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/BackupWallet/Warning.dart:10\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":"lib/ui/component/BackupWallet/Warning.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d5f629722940e05d14ffc48961f81c5fc4d4485755cf9852867540539adabd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): lib/cubit/new-wallet/derivation.dart:185-200 | lib/cubit/new-wallet/derivation.dart:309-323 | lib/cubit/new-wallet/from-old-seed.dart:216-231 \u2014 before extracting anything, compare \u0060lib/cubit/new-wallet/derivation.dart\u0060 and \u0060lib/cubit/new-wallet/from-old-seed.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb18117e002282bf407ff59818e2a92e71a41e55a8a1e0dd152c9fe3d937a77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/cubit/new-wallet/common/seed-generate.dart:100-115 | lib/cubit/new-wallet/common/seed-generate.dart:265-280 \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 \u0060lib/cubit/new-wallet/common/seed-generate.dart:100\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/common/seed-generate.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4612c90e396f4a571d3a80566437a46ca1d122e0faf4ca6da667695053107db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/ui/component/BackupWallet/Complete.dart:64-78 | lib/ui/component/NewWallet/SeedGenerate.dart:63-78 \u2014 before extracting anything, compare \u0060lib/ui/component/BackupWallet/Complete.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedGenerate.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/BackupWallet/Complete.dart:64\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":"lib/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ab2bd7b4857baeac0b41dffb9a4eb54b758aa3c196515be73c9de9af806ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/ui/screen/NewWallet/Derive.dart:40-55 | lib/ui/screen/Receive.dart:26-41 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/screen/NewWallet/Derive.dart:40\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":"lib/ui/screen/NewWallet/Derive.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2705672b069579c0cd1460cb6138f991c069a2f5a88719aca3734575a22d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/cubit/new-wallet/derivation.dart:202-216 | lib/cubit/new-wallet/derivation.dart:324-338 | lib/cubit/new-wallet/from-old-seed.dart:233-247 \u2014 before extracting anything, compare \u0060lib/cubit/new-wallet/derivation.dart\u0060 and \u0060lib/cubit/new-wallet/from-old-seed.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae73b41fe658dd89d87675dbbba84fa1860f5fce40fd2a53a87e433437ee8e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): lib/ui/component/NewWallet/Derive/Label.dart:58-72 | lib/ui/component/NewWallet/SeedGenerate/Label.dart:63-76 | lib/ui/component/NewWallet/SeedImport/Label.dart:58-72 \u2014 \u0060lib/ui/component/NewWallet/Derive/Label.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedImport/Label.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/NewWallet/Derive/Label.dart:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/ui/component/NewWallet/SeedGenerate/Label.dart:62\u0060 calls \u0060SizedBox\u0060 and \u0060lib/ui/component/NewWallet/Derive/Label.dart:58\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/NewWallet/Derive/Label.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e684c668c5fcb8c4dcb26f50aae7f8d459d3dbcc46d923ebf419f5f47a929284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/ui/component/Send/Confirm.dart:46-60 | lib/ui/component/Send/Confirm.dart:65-79 | lib/ui/component/Send/Confirm.dart:84-98 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/Send/Confirm.dart:46\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":"lib/ui/component/Send/Confirm.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26bf0eb3fd940eb1f6c8948bf6d68eeda01ad0322f859e0efacb2e707095a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/component/BackupWallet/Complete.dart:252-266 | lib/ui/component/NewWallet/SeedGenerate.dart:267-281 \u2014 before extracting anything, compare \u0060lib/ui/component/BackupWallet/Complete.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedGenerate.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/BackupWallet/Complete.dart:252\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":"lib/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76c649ff8773f806dd236410096ae137298518822363d43a5bcf1da39ba4fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): lib/ui/screen/AddWallet.dart:21-35 | lib/ui/screen/Settings.dart:17-26 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/screen/AddWallet.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2616d2209cf192a03ac8b2009e1aa2213f52395c64dbc9070d39d760c365c0ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 3): lib/cubit/new-wallet/derivation.dart:379-388 | lib/cubit/new-wallet/from-new-seed.dart:214-227 | lib/cubit/new-wallet/from-old-seed.dart:320-329 \u2014 before extracting anything, compare \u0060lib/cubit/new-wallet/derivation.dart\u0060 and \u0060lib/cubit/new-wallet/from-old-seed.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5a2dcb523e20c673f2802201234cbeb2570b00c722b207511b6264cacd4a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): lib/ui/component/Home/WalletCard.dart:42-55 | lib/ui/component/Home/WalletCard.dart:125-136 | lib/ui/component/Home/WalletCard.dart:172-183 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/Home/WalletCard.dart:42\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":"lib/ui/component/Home/WalletCard.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f528717e4720bce96e26e008145209fbb6494b2f61135e3e388a5de059f42fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): lib/ui/component/Settings/BitcoinUnit.dart:26-39 | lib/ui/component/Settings/Incognito.dart:25-38 | lib/ui/component/Settings/SelectNetwork.dart:33-45 \u2014 before extracting anything, compare \u0060lib/ui/component/Settings/BitcoinUnit.dart\u0060 and \u0060lib/ui/component/Settings/Incognito.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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 \u0060lib/ui/component/Settings/BitcoinUnit.dart:26\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":"lib/ui/component/Settings/BitcoinUnit.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdda76949de7fba869e43daaa68cbda6d0b6c254d614b27776c55e557bc64ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/component/Send/Complete.dart:29-42 | lib/ui/component/Send/Confirm.dart:27-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/ui/component/Send/Confirm.dart:26\u0060 calls \u0060SizedBox\u0060 and \u0060lib/ui/component/Send/Complete.dart:28\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Send/Complete.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08899a7f6baa5cb0c472cb950227ddcb1b1fea6924731dba0f918fee1bc6343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/ui/component/Send/SelectFee.dart:47-60 | lib/ui/component/Send/SelectFee.dart:68-81 | lib/ui/component/Send/SelectFee.dart:82-99 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/Send/SelectFee.dart:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"lib/ui/component/Send/SelectFee.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45b634b184fe1f46a7c0062b745cc5321b47b35a6a7611f6c2c9fbe3e1b02c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/component/common/BitcoinDisplayLarge.dart:24-37 | lib/ui/component/common/BitcoinDisplayLarge.dart:50-63 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/common/BitcoinDisplayLarge.dart:24\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":"lib/ui/component/common/BitcoinDisplayLarge.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2de84adea7ce850420d3da371dc10f34896660999d00b7c4363fd202fb5f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/screen/NewWallet/Derive.dart:23-36 | lib/ui/screen/NewWallet/SeedImport.dart:26-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/screen/NewWallet/Derive.dart:23\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":"lib/ui/screen/NewWallet/Derive.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaf06c059b9cfd28a6f2c1e4f7eb540e2c752257e9ccd9bdc7b1205d7b0d459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): lib/ui/component/Settings/BitcoinUnit.dart:29-41 | lib/ui/component/Settings/Incognito.dart:28-40 | lib/ui/component/Settings/SelectNetwork.dart:35-47 | lib/ui/component/Settings/SelectNode.dart:33-44 \u2014 before extracting anything, compare \u0060lib/ui/component/Settings/BitcoinUnit.dart\u0060 and \u0060lib/ui/component/Settings/Incognito.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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 \u0060lib/ui/component/Settings/BitcoinUnit.dart:29\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":"lib/ui/component/Settings/BitcoinUnit.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b13b71dbf4fafe3b4dd5ad3c92cc50a549166a4db3946a86bc6357a5ee906f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/cubit/new-wallet/derivation.dart:159-171 | lib/cubit/new-wallet/derivation.dart:279-291 \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 \u0060lib/cubit/new-wallet/derivation.dart:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd437a2f707f380f759e497515db1300eb97c7a3fd17996e99c91397d16d1c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/component/BackupWallet/Warning.dart:32-44 | lib/ui/component/NewWallet/SeedGenerate/Warning.dart:37-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/BackupWallet/Warning.dart:32\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":"lib/ui/component/BackupWallet/Warning.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9044a7f95850191f8c1308d2dcadf3d2b25456b0d13aec8233ad14f892eb073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/component/Wallet/BackupOps.dart:42-54 | lib/ui/component/Wallet/KeyInfo.dart:19-31 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/Wallet/BackupOps.dart:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Wallet/BackupOps.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cef59b3ad3a1221cf82165ec6599007cbcc1cefff71fbecf133408b6c04c726"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/screen/BackupWallet.dart:81-93 | lib/ui/screen/NewWallet/SeedGenerate.dart:95-107 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/screen/BackupWallet.dart:81\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":"lib/ui/screen/BackupWallet.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2721c70fe0dc292be72a339e5d206d827dc165ab77391d1e32a1eb78eb0b94b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): lib/ui/screen/BackupWallet.dart:84-94 | lib/ui/screen/NewWallet/Derive.dart:63-74 | lib/ui/screen/NewWallet/SeedGenerate.dart:98-108 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/screen/BackupWallet.dart:84\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":"lib/ui/screen/BackupWallet.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51808e83189fdda76e4a9b3cb065505052c9792d95c44ce7bc9e6b1dd6cbb98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/component/Home/BackupWarning.dart:17-28 | lib/ui/component/Wallet/BackupOps.dart:59-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/Home/BackupWarning.dart:17\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":"lib/ui/component/Home/BackupWarning.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dad8b8d45d22eeb00a57a63dfcafed7fda29307cf3f2b6afaca002d3c350f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/component/NewWallet/Derive/Passphrase.dart:100-111 | lib/ui/component/NewWallet/SeedImport/Passphrase.dart:101-112 \u2014 \u0060lib/ui/component/NewWallet/Derive/Passphrase.dart\u0060 and \u0060lib/ui/component/NewWallet/SeedImport/Passphrase.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 75 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/NewWallet/Derive/Passphrase.dart:100\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/NewWallet/Derive/Passphrase.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"8280fff5953d1b4e90c52458065d3c1e9d054aaea9f9cc8ef354ee4dee9f4052"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/component/Send/Address.dart:78-89 | lib/ui/component/Send/Confirm.dart:101-112 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/Send/Address.dart:78\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":"lib/ui/component/Send/Address.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"416cf361c899d8d37175de54d8b215165ae22ffb858f8ff17e79fa3f98cfc664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/screen/BackupWallet.dart:47-58 | lib/ui/screen/NewWallet/Derive.dart:28-39 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/screen/BackupWallet.dart:47\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/screen/BackupWallet.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fadeb58bf4b6d3186613553293f38726fe22b8ae0565fc5911884b0c0fde07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/screen/NewWallet/SeedGenerate.dart:65-76 | lib/ui/screen/NewWallet/SeedImport.dart:42-53 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/screen/NewWallet/SeedGenerate.dart:65\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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/ui/screen/NewWallet/SeedGenerate.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"df238ffdbb5ca8e56c3a3f5ab4f0159dbaf21a755a491530ff91fa11711e612c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/cubit/new-wallet/derivation.dart:147-157 | lib/cubit/new-wallet/derivation.dart:268-277 \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 \u0060lib/cubit/new-wallet/derivation.dart:147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbae59828e8501816f211587c31561976e6f2157ca21f01c6e732db3ee44bdb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/component/Settings/SelectNetwork.dart:24-34 | lib/ui/component/Settings/SelectNode.dart:20-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/Settings/SelectNetwork.dart:24\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":"lib/ui/component/Settings/SelectNetwork.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ae52e159b4601084113a5a9e45823d126de12d82df3515fffe4199eee4a743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/screen/NewWallet/SeedGenerate.dart:53-63 | lib/ui/screen/NewWallet/SeedImport.dart:30-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/screen/NewWallet/SeedGenerate.dart:53\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":"lib/ui/screen/NewWallet/SeedGenerate.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"366242aa43a4a868dddf2958a52f519c9ea7d1d8a60b7b4614aae0b239483889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/cubit/new-wallet/derivation.dart:233-242 | lib/cubit/new-wallet/derivation.dart:347-356 \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":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"5831ec69f84930a362b246e8b996cd2c233a3aa1babc64e68eadacc149c6e407"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/component/BackupWallet/Complete.dart:108-118 | lib/ui/component/BackupWallet/Warning.dart:42-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/component/BackupWallet/Complete.dart:108\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":"lib/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bc3967c208250e57c0d247d991357c97de1120b82c6c6ddfd48dc28b7a322d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/cubit/wallet/info.dart:285-293 | lib/cubit/wallet/info.dart:296-304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/wallet/info.dart"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"c250b6f96fde7cb13725fd43e66bf24d22bc69d96316a2f363a69e4dc69e8de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/ui/component/Settings/BitcoinUnit.dart:16-24 | lib/ui/component/Settings/Incognito.dart:15-23 | lib/ui/component/Settings/SelectNode.dart:20-27 \u2014 before extracting anything, compare \u0060lib/ui/component/Settings/BitcoinUnit.dart\u0060 and \u0060lib/ui/component/Settings/Incognito.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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 \u0060lib/ui/component/Settings/BitcoinUnit.dart:16\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":"lib/ui/component/Settings/BitcoinUnit.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbfc42d43a9a98c4c6b983da0f9cf272e49a1f644f1149396a50d701fff5927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/cubit/wallet/send.dart:141-148 | lib/cubit/wallet/send.dart:288-295 \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":"lib/cubit/wallet/send.dart"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34012d523346bc0a8549758fbcfb970116a1dc138428c9436115633adfa38d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/component/AddWallet/Loader.dart:11-17 | lib/ui/component/NewWallet/Derive/Loader.dart:11-17 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/AddWallet/Loader.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef4e0cb0db6df568e4d471e1c8171607d1cf4ddd0937e44b5de910b3ac7b2ce"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SendCubit (LCOM4 6): SendCubit\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/cubit/wallet/send.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cccc8c494e4197628b0f19a8f927e5e5e9e31e0c3b6ee4b3e939e4d3f72834"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NodeAddressCubit (LCOM4 5): NodeAddressCubit\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/cubit/node.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6cdc83bd11f88ea098b307473b334ca9e9f619f44b26c1d352cc029f0bf636"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PinCubit (LCOM4 5): PinCubit\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/cubit/pin.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd78aedc7de233f6ade19d736e9ab5c7032d7c1e6894f3c09c0375129a5c60b"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 15 significant file(s) lose their only recent owner: lib/api/libbitcoin.dart, lib/cubit/wallet/send.dart, lib/cubit/new-wallet/derivation.dart, lib/cubit/wallet/info.dart, lib/ui/component/NewWallet/SeedImport.dart, lib/cubit/new-wallet/from-old-seed.dart, lib/cubit/pin.dart, lib/ui/screen/WalletSingle.dart (\u002B7 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f323893c2a703ffef89d44f13fe0ebcbf92107d4de964e861857df80abca5bde"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060lib/main.dart\u0060 makes this repository a deployable product (line 31)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8716bba673c3075887c415d08f1c9dd48ba3b1fdb124bf3e079c529efec988ec"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (12036 LoC, 174 module-visible types across 28 directories) overshoots its size bounds. 1 of 3 build unit(s) (Gradle, Xcode, pub) overshoot their size bounds, lowering Project Cohesion to 3.3/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9fee3010c053c10733ebad6b156234032ce361c46f8c03bb63f2bdc3c8adbd"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 19 of 56 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 56 of the 138 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: lib/ui/component/Wallet/BackupOps.dart, lib/ui/component/BackupWallet/Complete.dart, lib/ui/component/Home/WalletCard.dart, lib/cubit/new-wallet/common/seed-generate.dart, lib/cubit/new-wallet/from-new-seed.dart, lib/cubit/seed-backup.dart, lib/ui/screen/NewWallet/SeedGenerate.dart, lib/pkg/storage.dart (and 11 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Wallet/BackupOps.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2279ca92a1668de82d8a16a30fd1d34235bff254c1e6611487b0fa7111317c38"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/BackupWallet/Complete.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"527b1ba155f4e7b751b78d51deeec3aa5a7d871d34393eb298daa36db879274d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Home/WalletCard.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a904febc97ca5f06fb8e084a515765f52eacf6fbf1cd4ca671fe2d0538bd08"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/common/seed-generate.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57fe9cea205fbf987294081e3bd2c91c4f4c1d1c506d411003cf48f98ab4ae1f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/from-new-seed.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7ab54be66bde488696b89c0c59d65afa6e511770e92f1854241cbc7a9def24"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/seed-backup.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e037193dc2544372b5d9d65d4b95a06cc5974d27395e612466b67b4a8d261da"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/screen/NewWallet/SeedGenerate.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e96d8edb60615319ebe38599ee646e9894e56f015c8241d8ae2ff0d426d1a8b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/pkg/storage.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cc881c03fc98cc3c8d462138f3b77f3d83028156ca702ba0dd712f8b376b73"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7640bdf659bc2ebf7ab791fe9de8b4a3b244b3456b58da3fb45dc1cf30f2c6b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/NewWallet/SeedImport/Passphrase.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67618802ab0ad354fa420f72a50d35b4c725f3fdb13cfb11aef0bd6cc403d78"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/NewWallet/Derive/Passphrase.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6b7ee3d51cc7cc35f4439ad01de3a92afe0129fb9c4c052b872d0cf97798f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/screen/BackupWallet.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fed48a3fc9195badbc0eea3d38bc1c0023d8a89608d88c3c564388a17dc2458"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/style.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"089af013fc41f4fed7468d39aab908f917d47bb9373aa2647865226c13659293"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Logs/Item.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"882efa9e17d2b37f6768b1d9603ef5949f3d18ebc1431999c2267ba76feaa13a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Wallet/KeyInfo.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b2649aafac8a93523649d8c7d10b080ab074eeda7310e8ac85694b950ff12d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/NewWallet/SeedGenerate/Label.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e946c50a0bb9ad5deefdb2440a3c8d3274c6fd66d4c66c3747843e62749ed51"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/NewWallet/Derive/Label.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83620deff00981455798fbe3ff25c09a733f149edb2cf7093d874fd9cafe2390"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Wallet/Info.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe34e29a7fd26ff250e15b1bc481733ba945d82d261c812bfbaa229ad63ad59"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/preferences.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52800746c2dff2cd3e681fe7c344b674a1be5c2858e97eff3ff6adf5595cbdb9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Tools.dart \u2194 WalletCard.dart: \u0060lib/ui/component/Home/Tools.dart\u0060 and \u0060lib/ui/component/Home/WalletCard.dart\u0060 change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00602db9d2ce\u0060 Updated ui fix on walletcard; \u00600b8c3d10\u0060 Added minor fixes; \u00609295186b\u0060 Fixed Home page alignments. \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/Home/Tools.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcf9fe243fda8430dfd88147c1ab80b5ea7b63cc50a870a4ce089d5c0734e96"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: IStackMateBitcoin (20 abstract methods): \u0060IStackMateBitcoin\u0060 declares 20 abstract methods: \u0060generateMaster\u0060, \u0060isValidMnemonic\u0060, \u0060importMaster\u0060, \u0060deriveHardened\u0060, \u0060compile\u0060, \u0060estimateNetworkFee\u0060, \u0060getWeight\u0060, \u0060feeRateToAbsolute\u0060, \u0060sqliteSync\u0060, \u0060sqliteBalance\u0060, \u0060getHeight\u0060, \u0060sqliteHistory\u0060, \u0060isValidAddress\u0060, \u0060getAddress\u0060, \u0060lastUnusedAddress\u0060, \u0060sqliteBuildTransaction\u0060, \u0060decodePsbt\u0060, \u0060signTransaction\u0060, \u0060broadcastTransaction\u0060, \u0060sqliteBumpFee\u0060. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/api/interface/libbitcoin.dart"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"322aa077589a96241795ac1484c27c8e0bbd7ce745594d72bb6eb41259e40102"}},{"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":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add 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":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe496e045f59bfceaa4aa1008ca8920ee15cd9ad6800dd8cf99669e70297397c"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/derivation.dart"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4a4b6675f6fb1de0ad0994490bf2b1d73f7e5fb3566bb166ba1dca53c11c35"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/from-new-seed.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ad6a20a400f90fcf1a030a8afcd67a37e416e66cec2393bbe127ec48dda6c5"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/cubit/new-wallet/from-old-seed.dart"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9802df000f46ec27abff834526a946bb880e09a32113d002873ec8491a25946"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060previous.currentStep != current.currentStep || previous.newWalletSaved != current.newWalletSaved\u0060 appears character-identically in 3 files \u2014 lib/ui/screen/NewWallet/Derive.dart, lib/ui/screen/NewWallet/SeedGenerate.dart, lib/ui/screen/NewWallet/SeedImport.dart. 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":"lib/ui/screen/NewWallet/Derive.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b2d04c7f5c6b4c2bfc78c7168889f2f827cce60d4f16f41f4f5b5ee6980469"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state.walletLabel.length \u003C 3 || state.walletLabel.length \u003E 20 || state.walletLabel.isEmpty\u0060 appears character-identically in 2 files \u2014 lib/cubit/new-wallet/from-new-seed.dart, lib/cubit/new-wallet/from-old-seed.dart. 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":"lib/cubit/new-wallet/from-new-seed.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f4d72c200fe0a9550f1cee524219bf0812d9ad9ab3a4ce946b7b90563f1d3b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/pkg/extensions.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"817a3f6afac45aea4767262761b0cdc07cbaf03aeea32007e78790724b92012e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/api/libbitcoin.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d67c66d42b3078feb53923c36a6830f36749a7167dc815caeb7a3a7e71b0cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/api/libbitcoin.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45696cd089dc173038bc3521a9222699624f48c8f77eabbc2dca4771a65c4ee"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override null safety: ~27.0 \u0060!\u0060 null assertions per 1k Dart product lines \u2014 356 across the 13203 line(s) of the 133 Dart file(s) read (generated, test and example code not counted; a file opted out with a \u0060// @dart=\u0060 comment below 2.12 counts once). Densest: lib/ui/component/Wallet/TransactionItem.dart (36), lib/cubit/new-wallet/derivation.dart (32), lib/cubit/new-wallet/common/seed-generate.dart (19). Each one tells the analyzer to trust the author about null and becomes a \u0060Null check operator used on a null value\u0060 the first time the author is wrong. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"739a6ba910818bd17cd25bf02e82a025de9a49819c743d2340aeab96558fda89"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":0,"secretScannerRunsExcluded":0}}}]}