{"$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":"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":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"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":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"_ConversationTypeScreenState._buildTypeSelectionCard (cyclomatic 22): _ConversationTypeScreenState._buildTypeSelectionCard has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"647b9677b1f477040e960798b02d6766c12deec5aaca626a8950ef60bc829470"}},{"ruleId":"D1","level":"warning","message":{"text":"DifyService.sendMessageStream (cyclomatic 20): DifyService.sendMessageStream has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/dify_service.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa4f0ec4e56a80467768c2c2e351f23df3458946faa11ed01dac1ea04c89840"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._sendMessage (cyclomatic 18): _ChatScreenState._sendMessage has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/chat_screen.dart"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b0798f7d30cccdc85b73473790733ca3985f1adc4cb1f61378081819882474"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatScreenState._buildVoiceInputArea (cyclomatic 17): _ChatScreenState._buildVoiceInputArea has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/chat_screen.dart"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"a701507f269d5eea609352293ff5616cb6518c6bb47b7c840e798e4452929144"}},{"ruleId":"D1","level":"warning","message":{"text":"XiaozhiService._handleTextMessage (cyclomatic 16): XiaozhiService._handleTextMessage has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/xiaozhi_service.dart"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4d56ddfb5c4ead118858c137d9b5b96bcec394be7e6d03aed40abca36fd34d"}},{"ruleId":"D2","level":"warning","message":{"text":"DifyService.sendMessageStream (cognitive 58): DifyService.sendMessageStream has cognitive complexity 58 (threshold 15). Drivers by points: if/else 13 (44 pts), error handling 2 (6 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/dify_service.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"127b2fc450da0b169e52310144ebfbe103e0296bdf68253411c71a960492213f"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._sendMessage (cognitive 38): _ChatScreenState._sendMessage has cognitive complexity 38 (threshold 15). Drivers by points: if/else 16 (36 pts), boolean chains 1, error handling 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/chat_screen.dart"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f7d2c062e899ab04458c75c4a4aab8e998a851e4f305dec4e62466b155acb2"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniMaxService.sendMessageStream (cognitive 37): MiniMaxService.sendMessageStream has cognitive complexity 37 (threshold 15). Drivers by points: if/else 6 (25 pts), error handling 2 (6 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/minimax_service.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd6b5897be99acdd3d94e27096942c921da05355a85a15146648abbb863fcfe"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationProvider.restoreLastDeletedConversation (cognitive 25): ConversationProvider.restoreLastDeletedConversation has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (16 pts), error handling 1 (5 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/providers/conversation_provider.dart"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"281138636e3aba35e48b263ec79b29ce6ddf8a2a4c308c63761a173c573eacf2"}},{"ruleId":"D2","level":"warning","message":{"text":"XiaozhiService._handleTextMessage (cognitive 25): XiaozhiService._handleTextMessage has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 2, match/switch 1 (2 pts), error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/xiaozhi_service.dart"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"224ad07a0a257d13ac3c3e8587dc3925599c7624ddfce033da557dd97d533d2d"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConversationTypeScreenState._buildTypeSelectionCard (cognitive 21): _ConversationTypeScreenState._buildTypeSelectionCard has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 18, if/else 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"abce66854b2b6ed4fc62905c92e15cf7c17b5f5948d4fcf4d396ec2c34ef070a"}},{"ruleId":"D2","level":"warning","message":{"text":"DifyService.sendMessage (cognitive 21): DifyService.sendMessage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, 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/services/dify_service.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d725057d44cefc346d5c74ea925c0f404fccbc20c0225940684eac93c058b36"}},{"ruleId":"D2","level":"warning","message":{"text":"XiaozhiWebSocketManager.connect (cognitive 21): XiaozhiWebSocketManager.connect has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 1 (4 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/xiaozhi_websocket_manager.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d954f8bc8739cff2a1c885f54765d84fd56773be079a9fdf8990eee3d5b21f56"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState.build (cognitive 20): _ChatScreenState.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 4, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/chat_screen.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb079139a11d8c3301a432c8fa7c8cba27c96327beef93ace1cb0ef903ba9297"}},{"ruleId":"D2","level":"warning","message":{"text":"XiaozhiService.startListeningCall (cognitive 19): XiaozhiService.startListeningCall has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (18 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/services/xiaozhi_service.dart"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e52662da27c0670e81a250d62156d9f3d94eed77c00982a0bda1d29fb23883"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationProvider._loadConversations (cognitive 18): ConversationProvider._loadConversations has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (12 pts), loops 2 (4 pts), error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/providers/conversation_provider.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"96583e55089f0686a1f33bb5d4445c630904d5b24dedae88dda7e78b99a0685d"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatScreenState._buildVoiceInputArea (cognitive 18): _ChatScreenState._buildVoiceInputArea has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 7, boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/chat_screen.dart"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"457ca8f8edde9f9a137f3c9302897f73974153f530e3aaf91964a7c895cc9f11"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioUtil.startRecording (cognitive 18): AudioUtil.startRecording has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/audio_util.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fff00bcd1f7ed2a365b55a55ebeff69de0163253706b82d78d479f8290dee59"}},{"ruleId":"D2","level":"warning","message":{"text":"XiaozhiService.sendTextMessage (cognitive 17): XiaozhiService.sendTextMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/xiaozhi_service.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae3b944c3588710e8b555c567556014a228694ad30ac770b3b730af9bc211ba"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _SettingsScreenState: ClassTooLong \u2014 2052 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 1652 over it, 5.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba6dac4e43c85adbcf7c8a1369d9c2b10f8f5be4aa15728c9851d5325fa7ff4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/settings_screen.dart: FileTooLong \u2014 2067 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: _SettingsScreenState (22-2913). The bar is 500 significant lines; this is 1567 over it, 4.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0327be6773a7d26531d5dfe12b6be6c532c93c49ea4c346f023fb8d084f8ac2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ChatScreenState: ClassTooLong \u2014 1095 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 695 over it, 2.74\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/screens/chat_screen.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f51513e9f35768e5c9e9045a47aa70be54b9f01929a6dfde6f3c1abd3f9dc9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ConversationTypeScreenState._buildTypeSelectionCard: MethodTooLong \u2014 _buildTypeSelectionCard runs 269 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 169 over it, 2.69\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/screens/conversation_type_screen.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d918c827529dcb35409eb21d5411c8757b185a2430a691c3e71f987b54e049"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ConversationTypeScreenState: ClassTooLong \u2014 972 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 572 over it, 2.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef11af9375a2febad2d50c1d7557affb10c81248a4cd6624ed6ec60a7d842eb3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsScreenState._showAddXiaozhiConfigDialog: MethodTooLong \u2014 _showAddXiaozhiConfigDialog runs 242 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 142 over it, 2.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"30cf854510bdfc62af69b631201795c29bbb32d3b89ffa828d6c72587cc9284c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsScreenState._showEditXiaozhiConfigDialog: MethodTooLong \u2014 _showEditXiaozhiConfigDialog runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":2485}}}],"partialFingerprints":{"codehealthFindingId/v1":"5403b2c444f100618fb8b08f9bd510dd0d316ae9f1793df5c4316c89c29d7efe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/chat_screen.dart: FileTooLong \u2014 1122 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: _ChatScreenState (33-1716). The bar is 500 significant lines; this is 622 over it, 2.24\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/chat_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a81fcad761e714042d8f60a4040f1a45e28b541709d67d824ca24bce707212"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/conversation_type_screen.dart: FileTooLong \u2014 985 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: _ConversationTypeScreenState (18-1361). The bar is 500 significant lines; this is 485 over it, 1.97\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfb248f169724a8cfd7e8c5aa5b6a5880c677ef2a906bf1412ac491b83288bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsScreenState._showEditDifyDialog: MethodTooLong \u2014 _showEditDifyDialog runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a1bdd83085d9c71795a5d4d2b836d49edd23ec2551ea5caaa10a8473940a01"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsScreenState._showAddDifyDialog: MethodTooLong \u2014 _showAddDifyDialog runs 185 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\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/screens/settings_screen.dart"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"8687f7cb55a0d7d8a8adbc042813567582e385cd152c7082a24e8efd63bd7bb5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState.build: MethodTooLong \u2014 build runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\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/screens/chat_screen.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ccee7a03098d3101b93cfe14bc045f1c74ebaa4ffa7a96d83a8fe144d0258c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HomeScreenState.build: MethodTooLong \u2014 build runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\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/screens/home_screen.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5b1d6340946e1a60f3c1473eb2b955afd85b0d4470c390596ffe0907e69b44"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsScreenState._showAddMiniMaxDialog: MethodTooLong \u2014 _showAddMiniMaxDialog runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\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/screens/settings_screen.dart"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"4037f7bb6bf3356b3bf02dab98f2692c5208f70daec0dfe6ea6d34ab05f0b9d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsScreenState._showEditMiniMaxDialog: MethodTooLong \u2014 _showEditMiniMaxDialog runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\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/screens/settings_screen.dart"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7926d7fb7c1cd939fee61ea0526176341fbcbd90f9b6e29d78f2b9ce91068f2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _VoiceCallScreenState.build: MethodTooLong \u2014 build runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/voice_call_screen.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"7424548966ea43fc30d6297c5e02b966acc4972632c5c2fd0cea71ef2b995f0c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HomeScreenState._showConversationOptions: MethodTooLong \u2014 _showConversationOptions runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\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/screens/home_screen.dart"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10fa9c9df4304a672c9eff7d8542fcf84ffbabd1046bc1b91c7472563293981"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._showImagePickerOptions: MethodTooLong \u2014 _showImagePickerOptions runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/chat_screen.dart"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a6ecabbd54f7bca5bc5354ce0931f68a5d03adbc0d10fe8438074b8a3b1dd8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _HomeScreenState: ClassTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 110 over it, 1.28\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/screens/home_screen.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9fe93edd721cbaefd52b3e0b2ebbdfb7dc3eae87dbb1aae2cc3dc383e0094f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatScreenState._buildVoiceInputArea: MethodTooLong \u2014 _buildVoiceInputArea 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/screens/chat_screen.dart"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a53363efa9e84c6d23ce2b56ceb44a5f768a6fc576eb9c30a538b9e6db0f15"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: XiaozhiService: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/xiaozhi_service.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4983164d3c68bbae35eba0d49a7f51719ab71534f5c44dc159271bbc95f6b5da"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: XiaozhiService: ClassTooLong \u2014 440 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 40 over it, 1.10\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/services/xiaozhi_service.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ed5c6055280cccf13d8b1b359744d3fc9a82f049328e4215c3874c817ee2e6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HomeScreenState._buildBody: MethodTooLong \u2014 _buildBody runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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/screens/home_screen.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"93be7fa7de97398151550056868d2df5d52860b7d20fad3d64ff7eb0ccde129b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsScreenState._buildXiaozhiConfigCard: MethodTooLong \u2014 _buildXiaozhiConfigCard runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0df5eca81d6bc0a00a7dccedca26605f07dcd0305a14fb4a2fbd83d5997f8f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/home_screen.dart: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: _HomeScreenState (21-734). The bar is 500 significant lines; this is 26 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b30c968d5e10d74e24b025fbcb8cf16fd2b313ecfd881fb62a44ce7b7190e8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _VoiceCallScreenState: ClassTooLong \u2014 406 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 6 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/voice_call_screen.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a8aea87afa6ab5974cd24e7ce61cf514f3e502df0696618ffad6a63141787f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 32 shared lines): lib/screens/settings_screen.dart:438-690 | lib/screens/settings_screen.dart:692-959 | lib/screens/settings_screen.dart:961-1099 | lib/screens/settings_screen.dart:1299-1534 | lib/screens/settings_screen.dart:1536-1755 | lib/screens/settings_screen.dart:1757-1882 | lib/screens/settings_screen.dart:2153-2483 | lib/screens/settings_screen.dart:2485-2796 | lib/screens/settings_screen.dart:2798-2912 \u2014 These 9 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0bd17d8b1d61b897dc515691113120f99835e933478d97db1ab9e24957751c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 103 shared lines): lib/screens/settings_screen.dart:438-690 | lib/screens/settings_screen.dart:692-959 | lib/screens/settings_screen.dart:1299-1534 | lib/screens/settings_screen.dart:1536-1755 | lib/screens/settings_screen.dart:2153-2483 | lib/screens/settings_screen.dart:2485-2796 \u2014 These 6 members are variants of one another: a block of 103 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a855f76466fd38859cbc29b2a57483a586a157a024b60bc2074e451828130c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 76 shared lines): lib/screens/settings_screen.dart:438-690 | lib/screens/settings_screen.dart:692-959 | lib/screens/settings_screen.dart:1299-1534 | lib/screens/settings_screen.dart:2153-2483 | lib/screens/settings_screen.dart:2485-2796 | lib/screens/settings_screen.dart:2798-2912 \u2014 These 6 members are variants of one another: a block of 76 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90417938a7b0830a204efe59cbeaacb2371203e59d4b335ea1d194390137b16"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 87 shared lines): lib/screens/settings_screen.dart:295-436 | lib/screens/settings_screen.dart:1156-1297 | lib/screens/settings_screen.dart:1939-2091 \u2014 These 3 members are variants of one another: a block of 87 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"837d39c66ec082c4b0ecc56ef2fd12c013663e64f42625fe4e1895c935cd06cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 53 shared lines): lib/screens/conversation_type_screen.dart:498-604 | lib/screens/conversation_type_screen.dart:767-873 | lib/screens/conversation_type_screen.dart:1075-1181 \u2014 These 3 members are variants of one another: a block of 53 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abf8f6a78cc5d775cde34329d71b7835448f54651f8d4eb45bb0c2da947770d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (185 corresponding lines): lib/screens/chat_screen.dart:1403-1588 | lib/screens/home_screen.dart:549-733 \u2014 These two members are one piece of code written twice and then edited apart: 185 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/screens/chat_screen.dart"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"3070469a900ff108092a7db4d714977e4f1cc513035e27fa97bcfcb77233be98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 66\u002B corresponding lines): lib/screens/conversation_type_screen.dart:606-676 | lib/screens/conversation_type_screen.dart:875-940 | lib/screens/conversation_type_screen.dart:1183-1248 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 66 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/screens/conversation_type_screen.dart"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afb7bfbde25123ed7aad21de8b4193860b9f49700cde7731506533d840f7e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 54\u002B corresponding lines): lib/screens/settings_screen.dart:240-293 | lib/screens/settings_screen.dart:1101-1154 | lib/screens/settings_screen.dart:1884-1937 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 54 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"5338c6b6c7ce9fcb566b424beec0a8f8bd838a5f61c2d1ef4c35dc5d193ae4bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 48\u002B corresponding lines): lib/screens/conversation_type_screen.dart:449-496 | lib/screens/conversation_type_screen.dart:718-765 | lib/screens/conversation_type_screen.dart:1026-1073 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 48 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/screens/conversation_type_screen.dart"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ddaccc4ec507900df3bf43739903915b27e4852fad789477f7364480efdfbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): lib/screens/conversation_type_screen.dart:678-716 | lib/screens/conversation_type_screen.dart:942-980 | lib/screens/conversation_type_screen.dart:1250-1288 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d8606e6cf14dd44f67e4ea7ef5b1b33003c48a5a040109b776f6ca97b524db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/screens/chat_screen.dart:247-270 | lib/screens/chat_screen.dart:273-296 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/chat_screen.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1a5c761984038a78e718f5c92f07db1a27a6151d327b27c84a96b5640060ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): lib/screens/conversation_type_screen.dart:1302-1320 | lib/screens/conversation_type_screen.dart:1322-1340 | lib/screens/conversation_type_screen.dart:1342-1360 | lib/screens/xiaozhi_config_selector_screen.dart:52-68 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd30f51baeb059b845b16c4547b2fd3ecffed547e3f5dc7d82231ec926e50ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/providers/config_provider.dart:133-144 | lib/providers/config_provider.dart:166-181 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/providers/config_provider.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"67beb8c832488a54da479c36cb7f39d1d223513b187da98ce37554a790405b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): lib/models/dify_config.dart:27-39 | lib/models/minimax_config.dart:32-44 | lib/models/xiaozhi_config.dart:36-49 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/models/dify_config.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f3d6e71d97fb11db809592eb744e69fe2040a080512efb5f95ec3c8c248e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): lib/models/dify_config.dart:23-25 | lib/models/minimax_config.dart:23-30 | lib/models/xiaozhi_config.dart:26-34 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/models/dify_config.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b3cb0c9b3dedca5fbce207d9128724086e2f8a1fba74759d78a0ca83312a58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (84 lines \u00D7 2): lib/screens/settings_screen.dart:2327-2410 | lib/screens/settings_screen.dart:2635-2718 \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/screens/settings_screen.dart:2327\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/screens/settings_screen.dart"},"region":{"startLine":2327}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b61a86271e365410b3db458a57d88bee4b533c9f1f1b96ffcf2faa607061fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201345 lines \u00D7 2): lib/screens/chat_screen.dart:1404-1448 | lib/screens/home_screen.dart:550-591 \u2014 before extracting anything, compare \u0060lib/screens/chat_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 101 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/screens/chat_screen.dart:1404\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/screens/chat_screen.dart"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10965f561adee7883e916b5c73d8bd2681db6a82a87a1503ef3c688072c87da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 4): lib/screens/conversation_type_screen.dart:82-118 | lib/screens/conversation_type_screen.dart:452-488 | lib/screens/conversation_type_screen.dart:721-757 | lib/screens/conversation_type_screen.dart:1029-1065 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/conversation_type_screen.dart:82\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/screens/conversation_type_screen.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a142134b33c0581c5b5948835afe0c65c916a5bdfc3effd13dc6ed93e40b8e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): lib/screens/settings_screen.dart:1000-1034 | lib/screens/settings_screen.dart:1787-1821 \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/screens/settings_screen.dart:1000\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060DifyConfig\u0060 in one and \u0060MiniMaxConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceac7eea9013566e82432f20a0367d41264f85ec1c275acfa8de37f86d38e0b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (104 lines \u00D7 2): lib/screens/settings_screen.dart:520-623 | lib/screens/settings_screen.dart:774-877 \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/screens/settings_screen.dart:520\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/screens/settings_screen.dart"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fce83e0118d7763b3905ff344407283d479d5e894b9e617fe99e22c5be8624c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201331 lines \u00D7 4): lib/screens/chat_screen.dart:1438-1465 | lib/screens/chat_screen.dart:1508-1538 | lib/screens/home_screen.dart:581-608 | lib/screens/home_screen.dart:649-677 \u2014 before extracting anything, compare \u0060lib/screens/chat_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 101 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/screens/chat_screen.dart:1438\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/screens/chat_screen.dart:1435\u0060 calls \u0060SizedBox\u0060, \u0060Padding\u0060 and \u0060lib/screens/chat_screen.dart:1508\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/screens/chat_screen.dart"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf68775277995ad114e16b30ccfc6a353270486552ed37694e8318811c54d77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): lib/screens/settings_screen.dart:470-500 | lib/screens/settings_screen.dart:724-754 | lib/screens/settings_screen.dart:2186-2216 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"657746d42213ac352259622788df10ec17421471a1e81615e7130e4117874950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): lib/screens/settings_screen.dart:1423-1453 | lib/screens/settings_screen.dart:1637-1667 \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/screens/settings_screen.dart:1423\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/screens/settings_screen.dart"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d631d4cc61557f4f81c3deb8783b2719303c4cd357ac4deaebcbb35b22ed383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 7): lib/screens/settings_screen.dart:451-478 | lib/screens/settings_screen.dart:705-732 | lib/screens/settings_screen.dart:969-996 | lib/screens/settings_screen.dart:1313-1340 | lib/screens/settings_screen.dart:2167-2194 | lib/screens/settings_screen.dart:2501-2528 | lib/screens/settings_screen.dart:2806-2833 \u2014 all 7 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/screens/settings_screen.dart:451\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/screens/settings_screen.dart"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"269d38b64414c63014a19ffe24e1685c96cb4867a761e3c2768411f85b8428a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): lib/screens/settings_screen.dart:255-282 | lib/screens/settings_screen.dart:1116-1143 | lib/screens/settings_screen.dart:1899-1926 \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/screens/settings_screen.dart:255\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/screens/settings_screen.dart"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9780f851e9d4b07c92b7ac4edf95164216855b7776718a252315fce20f53c41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): lib/screens/settings_screen.dart:296-322 | lib/screens/settings_screen.dart:1157-1183 | lib/screens/settings_screen.dart:1940-1966 \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/screens/settings_screen.dart:296\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/screens/settings_screen.dart"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"59519856a63e73f29f4778a6ea419a897a63a038c3081c53b4be59f45a02c0e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lib/screens/conversation_type_screen.dart:200-225 | lib/screens/conversation_type_screen.dart:308-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/conversation_type_screen.dart:200\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/screens/conversation_type_screen.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73bfe944c63d879962716ab9a412f88b2a7a118f1755017f6af131666f3e064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/screens/home_screen.dart:198-222 | lib/screens/home_screen.dart:230-254 \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/screens/home_screen.dart:198\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/screens/home_screen.dart"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fffe348921370b7a57e3bcaed8c3ff1a4fc30657380e675427d2faae93ea7c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/screens/settings_screen.dart:412-436 | lib/screens/settings_screen.dart:1273-1297 \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/screens/settings_screen.dart:412\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060DifyConfig\u0060 in one and \u0060MiniMaxConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d816d3f59703c37f1941644d06094ef60ed5443431119eb03d261558ff3644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/screens/settings_screen.dart:1483-1507 | lib/screens/settings_screen.dart:1704-1728 \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/screens/settings_screen.dart:1483\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/screens/settings_screen.dart"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c56901f0704254ca11a7a3de6adf8f3590f2a56bf70f3ea30185400eca6620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/screens/conversation_type_screen.dart:398-421 | lib/screens/settings_screen.dart:1182-1205 \u2014 before extracting anything, compare \u0060lib/screens/conversation_type_screen.dart\u0060 and \u0060lib/screens/settings_screen.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 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/screens/conversation_type_screen.dart:398\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/screens/conversation_type_screen.dart"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec6267fd8377e0d9b5e49319b33dc7addef6e01c35e16bdbf064900017d7e7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/services/dify_service.dart:198-221 | lib/services/dify_service.dart:317-340 \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/services/dify_service.dart:198\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/services/dify_service.dart"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5751a1f36a6ff20515b454ec2b27642298a2cc335f4efaa36247397fcce64c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/screens/chat_screen.dart:1480-1502 | lib/screens/chat_screen.dart:1553-1575 \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/screens/chat_screen.dart:1480\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/screens/chat_screen.dart"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a5eb4b999d582be9328d576736f2c77141c169b71092f41e4cfef0c0f95b7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): lib/screens/settings_screen.dart:360-381 | lib/screens/settings_screen.dart:1221-1242 | lib/screens/settings_screen.dart:1999-2020 \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/screens/settings_screen.dart:360\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/screens/settings_screen.dart"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e61324116f92a251cdfe0e688bc5b553ecb4f9759c41a74808f5d6f8975465b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): lib/screens/settings_screen.dart:383-404 | lib/screens/settings_screen.dart:1244-1265 | lib/screens/settings_screen.dart:2022-2043 \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/screens/settings_screen.dart:383\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/screens/settings_screen.dart"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"255bc4460869370292ed3fdcfc42162746d88699c82a3f31207d5943c33bf78a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): lib/screens/settings_screen.dart:1772-1793 | lib/screens/settings_screen.dart:2517-2538 | lib/screens/settings_screen.dart:2822-2843 \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/screens/settings_screen.dart:1772\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/screens/settings_screen.dart"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"f347608dcb4016e8a4bf885616bc3b7790f69f1f65e33770127da94f1ee2699a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): lib/screens/settings_screen.dart:2447-2468 | lib/screens/settings_screen.dart:2760-2781 | lib/screens/settings_screen.dart:2876-2897 \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/screens/settings_screen.dart:2447\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/screens/settings_screen.dart"},"region":{"startLine":2447}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c95d9aaf27f69517cc20612d807fdd029ba1a4a19bf86c42e25dae85fd25679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): lib/screens/settings_screen.dart:2236-2256 | lib/screens/settings_screen.dart:2272-2292 | lib/screens/settings_screen.dart:2557-2577 | lib/screens/settings_screen.dart:2593-2613 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:2236\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/screens/settings_screen.dart"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8f94eb58edec90bf0bedc5036d90f60a4ab3b38c50bf7134bb9de8da163a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/screens/chat_screen.dart:740-760 | lib/screens/chat_screen.dart:852-872 \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/screens/chat_screen.dart:740\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/screens/chat_screen.dart"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2864d56f61f05853b4a9ffc988e58ed88ea472b211037a823b54ae13846975c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 9): lib/screens/settings_screen.dart:668-687 | lib/screens/settings_screen.dart:937-956 | lib/screens/settings_screen.dart:1077-1096 | lib/screens/settings_screen.dart:1511-1530 | lib/screens/settings_screen.dart:1732-1751 | lib/screens/settings_screen.dart:1861-1880 | lib/screens/settings_screen.dart:2461-2480 | lib/screens/settings_screen.dart:2774-2793 | lib/screens/settings_screen.dart:2890-2909 \u2014 all 9 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/screens/settings_screen.dart:668\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/screens/settings_screen.dart"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"6effc2a0e20bc07036a68eb613c4a7a86dd04b3b6ef8eaf906d76c63e48cfae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 5): lib/screens/settings_screen.dart:498-517 | lib/screens/settings_screen.dart:752-771 | lib/screens/settings_screen.dart:1353-1372 | lib/screens/settings_screen.dart:2214-2233 | lib/screens/settings_screen.dart:2535-2554 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:498\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/screens/settings_screen.dart"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bce59e99c54db6a2ea5ea6485e13dfb53a35d0aed9b47958a5d9111ab575db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): lib/screens/settings_screen.dart:639-658 | lib/screens/settings_screen.dart:908-927 | lib/screens/settings_screen.dart:2432-2451 | lib/screens/settings_screen.dart:2745-2764 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:639\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/screens/settings_screen.dart"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba50d208dd579ea7d0841d44ae1d3c6b6298a182b8564f25a39d87cf8acb8fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/screens/conversation_type_screen.dart:31-49 | lib/screens/settings_screen.dart:82-100 \u2014 before extracting anything, compare \u0060lib/screens/conversation_type_screen.dart\u0060 and \u0060lib/screens/settings_screen.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 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/screens/conversation_type_screen.dart:31\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/screens/conversation_type_screen.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafec9bf8a2c4f504ad858aad0959393609c72f6f432b518b5e744138b3737d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/screens/conversation_type_screen.dart:186-204 | lib/screens/settings_screen.dart:321-339 \u2014 before extracting anything, compare \u0060lib/screens/conversation_type_screen.dart\u0060 and \u0060lib/screens/settings_screen.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 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/screens/conversation_type_screen.dart:186\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/screens/conversation_type_screen.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bc4d4b0108e90be6d37f0d953f6eed7d06c375b27024d53614602524b0ddea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/screens/home_screen.dart:353-371 | lib/screens/home_screen.dart:382-400 \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/screens/home_screen.dart:353\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/screens/home_screen.dart"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c449fd35e6b5af78dcfa00cb8a28b45a34a306ba221cf95430147317bd18cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 11): lib/screens/settings_screen.dart:535-552 | lib/screens/settings_screen.dart:571-588 | lib/screens/settings_screen.dart:789-806 | lib/screens/settings_screen.dart:825-842 | lib/screens/settings_screen.dart:1382-1399 | lib/screens/settings_screen.dart:1411-1428 | lib/screens/settings_screen.dart:1598-1615 | lib/screens/settings_screen.dart:1625-1642 | lib/screens/settings_screen.dart:2251-2268 | lib/screens/settings_screen.dart:2572-2589 | lib/screens/settings_screen.dart:2608-2625 \u2014 all 11 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/screens/settings_screen.dart:535\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/screens/settings_screen.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebb310eb3e3a7fb9d541e6c4ae8f78fe206b93cefaee234d66ab0d3f48d7bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/screens/conversation_type_screen.dart:206-223 | lib/screens/conversation_type_screen.dart:314-331 | lib/screens/conversation_type_screen.dart:422-439 \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/screens/conversation_type_screen.dart:206\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5b15ee410766f9c7738a7770a84580105b780ba6b0a40f03e1b9109d7f2317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/screens/settings_screen.dart:335-352 | lib/screens/settings_screen.dart:1196-1213 \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/screens/settings_screen.dart:335\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060DifyConfig\u0060 in one and \u0060MiniMaxConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36549ed7acc077819380489a16be3cde1bfb0692b6149e214eafc33a52936a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/screens/settings_screen.dart:1052-1069 | lib/screens/settings_screen.dart:1837-1854 \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/screens/settings_screen.dart:1052\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/screens/settings_screen.dart"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e33eb87b2f16af2671d1d6795c27730aface13b51d199e3c072883928b0653d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 13): lib/screens/settings_screen.dart:513-529 | lib/screens/settings_screen.dart:549-565 | lib/screens/settings_screen.dart:585-601 | lib/screens/settings_screen.dart:767-783 | lib/screens/settings_screen.dart:803-819 | lib/screens/settings_screen.dart:839-855 | lib/screens/settings_screen.dart:2229-2245 | lib/screens/settings_screen.dart:2265-2281 | lib/screens/settings_screen.dart:2306-2322 | lib/screens/settings_screen.dart:2367-2383 | lib/screens/settings_screen.dart:2550-2566 | lib/screens/settings_screen.dart:2586-2602 | lib/screens/settings_screen.dart:2675-2691 \u2014 all 13 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/screens/settings_screen.dart:513\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/screens/settings_screen.dart"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d0aa861e000cfe82d66a6754e194a30edd91940c83b09eb0c098e778108293"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): lib/screens/settings_screen.dart:982-998 | lib/screens/settings_screen.dart:1555-1571 | lib/screens/settings_screen.dart:2514-2530 | lib/screens/settings_screen.dart:2819-2835 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:982\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/screens/settings_screen.dart"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6d5a0baf8f0d876a78893679a356b9a477e256120658cd742efc11a806df2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): lib/screens/conversation_type_screen.dart:564-580 | lib/screens/conversation_type_screen.dart:833-849 | lib/screens/conversation_type_screen.dart:1141-1157 \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/screens/conversation_type_screen.dart:564\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/screens/conversation_type_screen.dart"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ff5a51916e24767fcf48a6303f8500f88ef9e8442e4d5ad6a57a9418379223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): lib/screens/settings_screen.dart:464-479 | lib/screens/settings_screen.dart:718-733 | lib/screens/settings_screen.dart:982-997 | lib/screens/settings_screen.dart:1326-1341 | lib/screens/settings_screen.dart:1555-1570 | lib/screens/settings_screen.dart:2180-2195 | lib/screens/settings_screen.dart:2514-2529 | lib/screens/settings_screen.dart:2819-2834 \u2014 all 8 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/screens/settings_screen.dart:464\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/screens/settings_screen.dart"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b075c04651cb2fd0259823fb5ab5e313985096e92024fa1f9315a29bd09939d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): lib/screens/settings_screen.dart:649-664 | lib/screens/settings_screen.dart:918-933 | lib/screens/settings_screen.dart:2442-2457 | lib/screens/settings_screen.dart:2755-2770 | lib/screens/settings_screen.dart:2871-2886 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:649\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/screens/settings_screen.dart"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"0819f103469db2d26fe8db4221b7050b8796cbeffcf4ec597686b0044b123524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/screens/conversation_type_screen.dart:701-716 | lib/screens/conversation_type_screen.dart:965-980 | lib/screens/conversation_type_screen.dart:1273-1288 \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/screens/conversation_type_screen.dart:701\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/screens/conversation_type_screen.dart"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"95db986b426413211030befa0db497c3ad19d23faeafc897723ebe49ee3185ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/screens/settings_screen.dart:408-423 | lib/screens/settings_screen.dart:1269-1284 | lib/screens/settings_screen.dart:2047-2062 \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/screens/settings_screen.dart:408\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/screens/settings_screen.dart"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fb2071b52bae946ab04cc39996488cdf445dbe4680359393e145b9480d65c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/screens/chat_screen.dart:635-650 | lib/screens/chat_screen.dart:769-784 \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/screens/chat_screen.dart:635\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/screens/chat_screen.dart"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"63fd7a2505aefb62389674e00e5f6b1fc27e7b5944ddf20f04a98b52cee9ceda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/screens/conversation_type_screen.dart:502-517 | lib/screens/conversation_type_screen.dart:611-626 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"280a41db23a706a865e1ee24384e2aa14b856fc3686444e75502d822e1b9620d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/screens/conversation_type_screen.dart:771-786 | lib/screens/conversation_type_screen.dart:880-895 \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/screens/conversation_type_screen.dart"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b48ba5595d7ced207e45cfbe4bcb1cd6d87f1651f13d043243a93103a148d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/screens/conversation_type_screen.dart:1079-1094 | lib/screens/conversation_type_screen.dart:1188-1203 \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/screens/conversation_type_screen.dart"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd366650097c47274d53fcea2fcaef2c79472bbde0aeef3033d4b8cd9af7d58c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 16): lib/screens/settings_screen.dart:505-519 | lib/screens/settings_screen.dart:541-555 | lib/screens/settings_screen.dart:577-591 | lib/screens/settings_screen.dart:759-773 | lib/screens/settings_screen.dart:795-809 | lib/screens/settings_screen.dart:831-845 | lib/screens/settings_screen.dart:1360-1374 | lib/screens/settings_screen.dart:1388-1402 | lib/screens/settings_screen.dart:1417-1431 | lib/screens/settings_screen.dart:1578-1592 | lib/screens/settings_screen.dart:1604-1618 | lib/screens/settings_screen.dart:1631-1645 | lib/screens/settings_screen.dart:2221-2235 | lib/screens/settings_screen.dart:2257-2271 | lib/screens/settings_screen.dart:2542-2556 | lib/screens/settings_screen.dart:2578-2592 \u2014 all 16 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/screens/settings_screen.dart:505\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/screens/settings_screen.dart"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58663b1784b36624b8590819098973f56cb416a263c02d55d9b61f665594d3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 11): lib/screens/settings_screen.dart:531-545 | lib/screens/settings_screen.dart:567-581 | lib/screens/settings_screen.dart:785-799 | lib/screens/settings_screen.dart:821-835 | lib/screens/settings_screen.dart:1378-1392 | lib/screens/settings_screen.dart:1407-1421 | lib/screens/settings_screen.dart:2247-2261 | lib/screens/settings_screen.dart:2325-2338 | lib/screens/settings_screen.dart:2568-2582 | lib/screens/settings_screen.dart:2604-2618 | lib/screens/settings_screen.dart:2633-2646 \u2014 all 11 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/screens/settings_screen.dart:531\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f91aa78dd1b7aa93cce6d6cab596f219848ebc2d52b465109ce823d344648bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): lib/screens/settings_screen.dart:652-666 | lib/screens/settings_screen.dart:921-935 | lib/screens/settings_screen.dart:1495-1509 | lib/screens/settings_screen.dart:1716-1730 | lib/screens/settings_screen.dart:2445-2459 | lib/screens/settings_screen.dart:2758-2772 | lib/screens/settings_screen.dart:2874-2888 \u2014 all 7 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/screens/settings_screen.dart:652\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/settings_screen.dart:651\u0060 calls \u0060withOpacity\u0060 and \u0060lib/screens/settings_screen.dart:1494\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/screens/settings_screen.dart"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d6e930f411fcbcef3fa47849630be76eac320364874d7cc5d3c59b36022130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): lib/screens/settings_screen.dart:984-998 | lib/screens/settings_screen.dart:1557-1571 | lib/screens/settings_screen.dart:1771-1785 | lib/screens/settings_screen.dart:2516-2530 | lib/screens/settings_screen.dart:2821-2835 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:984\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/screens/settings_screen.dart:1556\u0060 calls \u0060SingleChildScrollView\u0060 and \u0060lib/screens/settings_screen.dart:1770\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/screens/settings_screen.dart"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e764822602fcf98bf5dc6f669242f25e1ba11b7122dda0e39215a0d3c92ec8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/screens/chat_screen.dart:635-649 | lib/screens/chat_screen.dart:769-783 | lib/screens/chat_screen.dart:983-997 \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/screens/chat_screen.dart:635\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/screens/chat_screen.dart"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bc88654e81326ac73b2b7d598fa8077c286478111cf2299c3dbb165b7f65e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/screens/conversation_type_screen.dart:622-636 | lib/screens/conversation_type_screen.dart:891-905 | lib/screens/conversation_type_screen.dart:1199-1213 \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/screens/conversation_type_screen.dart:622\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/screens/conversation_type_screen.dart"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"390958b33a667877ad0b8a527df50a501e31735a784c15f4e40f314498dc0439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): lib/screens/conversation_type_screen.dart:294-308 | lib/screens/settings_screen.dart:1965-1976 \u2014 before extracting anything, compare \u0060lib/screens/conversation_type_screen.dart\u0060 and \u0060lib/screens/settings_screen.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 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/screens/conversation_type_screen.dart:294\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"44810e72ca2766f57459236636e80aa3ebf46b6579ca5e925a78f0dd6a4874f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/screens/conversation_type_screen.dart:1326-1340 | lib/screens/xiaozhi_config_selector_screen.dart:54-68 \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/screens/conversation_type_screen.dart:1326\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/screens/conversation_type_screen.dart"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebf5f2a4bb892316964edec8ce8eb7c7e9f7479b7f62ecbc2d9a1797a034693"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/screens/home_screen.dart:48-61 | lib/widgets/discovery_screen.dart:10-24 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/widgets/discovery_screen.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home_screen.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f263215d73a224fb2c1803ba5a4b51d37163352c77ddf262b043e7908e5c711b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/screens/settings_screen.dart:1457-1471 | lib/screens/settings_screen.dart:1671-1685 \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/screens/settings_screen.dart:1457\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ae92a263f9642dca4780a7156d21d6c4972e70998b98366ae5f0c355a2a13d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): lib/screens/settings_screen.dart:1375-1388 | lib/screens/settings_screen.dart:2244-2257 | lib/screens/settings_screen.dart:2280-2293 | lib/screens/settings_screen.dart:2565-2578 | lib/screens/settings_screen.dart:2601-2614 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:1375\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/screens/settings_screen.dart"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"728bca92bc4d8170e0a992142738761967d771f1c3f3d8cc4423d4a659a5122e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/screens/settings_screen.dart:1304-1317 | lib/screens/settings_screen.dart:1541-1554 \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/screens/settings_screen.dart:1304\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/screens/settings_screen.dart"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f339859281472182efbb077d6640dfd798b6183cb304f5a4a1b5537fabf4b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 15): lib/screens/chat_screen.dart:566-577 | lib/screens/conversation_type_screen.dart:85-96 | lib/screens/conversation_type_screen.dart:455-466 | lib/screens/conversation_type_screen.dart:724-735 | lib/screens/conversation_type_screen.dart:1032-1043 | lib/screens/home_screen.dart:279-290 | lib/screens/home_screen.dart:450-462 | lib/screens/settings_screen.dart:453-464 | lib/screens/settings_screen.dart:707-718 | lib/screens/settings_screen.dart:971-982 | lib/screens/settings_screen.dart:1315-1326 | lib/screens/settings_screen.dart:2101-2112 | lib/screens/settings_screen.dart:2169-2180 | lib/screens/settings_screen.dart:2503-2514 | lib/screens/settings_screen.dart:2808-2819 \u2014 before extracting anything, compare \u0060lib/screens/chat_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 101 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/screens/home_screen.dart:450\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/screens/settings_screen.dart:465\u0060 calls \u0060SingleChildScrollView\u0060 and \u0060lib/screens/conversation_type_screen.dart:97\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/screens/chat_screen.dart"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3335e4d6bccc0b41a4ed2706f8a37d2c97ea18a89bfd9a20ed4623c8757ef50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): lib/screens/settings_screen.dart:638-650 | lib/screens/settings_screen.dart:907-919 | lib/screens/settings_screen.dart:1482-1494 | lib/screens/settings_screen.dart:1703-1715 | lib/screens/settings_screen.dart:2431-2443 | lib/screens/settings_screen.dart:2744-2756 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:638\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/settings_screen.dart:651\u0060 calls \u0060withOpacity\u0060 and \u0060lib/screens/settings_screen.dart:1495\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/screens/settings_screen.dart"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"51badd6a0c9cfb18927d2c2619d39748ca3d24c73969bb361972d5a04cdfacb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): lib/screens/settings_screen.dart:1377-1389 | lib/screens/settings_screen.dart:2246-2258 | lib/screens/settings_screen.dart:2282-2294 | lib/screens/settings_screen.dart:2324-2336 | lib/screens/settings_screen.dart:2567-2579 | lib/screens/settings_screen.dart:2603-2615 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:1377\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/screens/settings_screen.dart"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b42d5aea9ca357ac6a43900bc77c92e708f9f4efeae9871065fa0ff7e77401"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): lib/screens/settings_screen.dart:298-310 | lib/screens/settings_screen.dart:1159-1171 | lib/screens/settings_screen.dart:1942-1954 | lib/widgets/conversation_tile.dart:25-37 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbeeb1f467791119671b91594047b7250ad20ffbbeecdfab151ab610eb5d2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/screens/conversation_type_screen.dart:535-547 | lib/screens/conversation_type_screen.dart:804-816 | lib/screens/conversation_type_screen.dart:1112-1124 \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/screens/conversation_type_screen.dart:535\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/screens/conversation_type_screen.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37041d0a6e7b87231ba2be00a7dcd19b55e05ac41b206d8ce71e490c479b541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/screens/conversation_type_screen.dart:607-619 | lib/screens/conversation_type_screen.dart:876-888 | lib/screens/conversation_type_screen.dart:1184-1196 \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/screens/conversation_type_screen.dart:607\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/screens/conversation_type_screen.dart"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa1c86697a865bb4e111624c790339a2215f9aaf5b0d69fde4143dc666601d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/screens/conversation_type_screen.dart:679-691 | lib/screens/conversation_type_screen.dart:943-955 | lib/screens/conversation_type_screen.dart:1251-1263 \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/screens/conversation_type_screen.dart:679\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/screens/conversation_type_screen.dart"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"b883905dfa003b079a9e59563774df743fb03c31cb8ce9e2c7d01a127d96268b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/screens/settings_screen.dart:877-889 | lib/screens/settings_screen.dart:2403-2415 | lib/screens/settings_screen.dart:2711-2723 \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/screens/settings_screen.dart:877\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28935d025aca05859f7a59151175448a70a159e5c89b57eadf6361e927c47ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 17): lib/screens/chat_screen.dart:566-577 | lib/screens/chat_screen.dart:1444-1455 | lib/screens/chat_screen.dart:1517-1528 | lib/screens/conversation_type_screen.dart:85-96 | lib/screens/conversation_type_screen.dart:455-466 | lib/screens/conversation_type_screen.dart:724-735 | lib/screens/conversation_type_screen.dart:1032-1043 | lib/screens/home_screen.dart:279-290 | lib/screens/home_screen.dart:587-598 | lib/screens/home_screen.dart:656-667 | lib/screens/settings_screen.dart:453-464 | lib/screens/settings_screen.dart:707-718 | lib/screens/settings_screen.dart:971-982 | lib/screens/settings_screen.dart:1315-1326 | lib/screens/settings_screen.dart:2169-2180 | lib/screens/settings_screen.dart:2503-2514 | lib/screens/settings_screen.dart:2808-2819 \u2014 before extracting anything, compare \u0060lib/screens/chat_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/home_screen.dart:291\u0060 calls \u0060ClipRRect\u0060, \u0060circular\u0060 and \u0060lib/screens/chat_screen.dart:1456\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/screens/chat_screen.dart"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c7388eb0f6768e680a83ea2aef90454850d4ba0d6cb455719f6b4a928e8de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): lib/screens/settings_screen.dart:635-646 | lib/screens/settings_screen.dart:904-915 | lib/screens/settings_screen.dart:1053-1064 | lib/screens/settings_screen.dart:1479-1490 | lib/screens/settings_screen.dart:1700-1711 | lib/screens/settings_screen.dart:1838-1849 | lib/screens/settings_screen.dart:2428-2439 | lib/screens/settings_screen.dart:2741-2752 | lib/screens/settings_screen.dart:2857-2868 \u2014 all 9 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/screens/settings_screen.dart:635\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/screens/settings_screen.dart"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed2564be372c0b3501efd4bb08b304d677ce4b02df4c237051b1964108226bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): lib/screens/settings_screen.dart:365-376 | lib/screens/settings_screen.dart:388-399 | lib/screens/settings_screen.dart:1226-1237 | lib/screens/settings_screen.dart:1249-1260 | lib/screens/settings_screen.dart:2004-2015 | lib/screens/settings_screen.dart:2027-2038 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:365\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/screens/settings_screen.dart"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"3635e2f5d98942dfa419c03f5f9f82c468b7fa2156938e6f35940580c2b0a616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): lib/screens/settings_screen.dart:604-615 | lib/screens/settings_screen.dart:858-869 | lib/screens/settings_screen.dart:1407-1418 | lib/screens/settings_screen.dart:2633-2644 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings_screen.dart:604\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/screens/settings_screen.dart"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5b3e3fa0553bcba76722773a949a57296c07459842b88a5900854c26343659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/screens/conversation_type_screen.dart:143-154 | lib/screens/conversation_type_screen.dart:248-261 | lib/screens/conversation_type_screen.dart:358-369 \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/screens/conversation_type_screen.dart:143\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/screens/conversation_type_screen.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b9b66f4f8fede9de1d3d143272fe76339b21b00a07a3a298ba4e4da453720e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/screens/conversation_type_screen.dart:499-510 | lib/screens/conversation_type_screen.dart:768-779 | lib/screens/conversation_type_screen.dart:1076-1087 \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/screens/conversation_type_screen.dart:499\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/screens/conversation_type_screen.dart"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe3fbfad21e5cb99a33cdd83ad356aa145848708ec3b1d437cbcf4500140f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/screens/settings_screen.dart:962-973 | lib/screens/settings_screen.dart:1758-1769 | lib/screens/settings_screen.dart:2799-2810 \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/screens/settings_screen.dart:962\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03f14c36fd3fa16617d35ee6347b022f6286a87c2422e9ed4d84533ff7013a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/chat_screen.dart:1140-1151 | lib/screens/voice_call_screen.dart:643-654 \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/screens/chat_screen.dart:1140\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/screens/chat_screen.dart"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"623ddef361051a9748338261ce5b14bca5d2e2629ebc7a5e187c919bdc4a0696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/home_screen.dart:120-131 | lib/widgets/slidable_delete_tile.dart:113-124 \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/screens/home_screen.dart:120\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/screens/home_screen.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ff1b078928fcd7bb97ca7c412d632224a380b5b48bae4d5850e9fcf34f7756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): lib/screens/conversation_type_screen.dart:609-619 | lib/screens/conversation_type_screen.dart:878-888 | lib/screens/conversation_type_screen.dart:1186-1196 | lib/screens/settings_screen.dart:452-462 | lib/screens/settings_screen.dart:706-716 | lib/screens/settings_screen.dart:970-980 | lib/screens/settings_screen.dart:1314-1324 | lib/screens/settings_screen.dart:2168-2178 | lib/screens/settings_screen.dart:2502-2512 | lib/screens/settings_screen.dart:2807-2817 \u2014 before extracting anything, compare \u0060lib/screens/conversation_type_screen.dart\u0060 and \u0060lib/screens/settings_screen.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 113 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/screens/conversation_type_screen.dart:609\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/conversation_type_screen.dart"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"c540e5124d7e10801efef05a5ef590062daf7a7207b29e6cb428967b639cc6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): lib/screens/conversation_type_screen.dart:501-511 | lib/screens/conversation_type_screen.dart:610-620 | lib/screens/conversation_type_screen.dart:770-780 | lib/screens/conversation_type_screen.dart:879-889 | lib/screens/conversation_type_screen.dart:1078-1088 | lib/screens/conversation_type_screen.dart:1187-1197 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/conversation_type_screen.dart:501\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/screens/conversation_type_screen.dart"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"7200bde0790e53529184c4ddd5840b5d6e30b4bf4b8de68b4eb2e4576a9f4620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/screens/conversation_type_screen.dart:513-522 | lib/screens/conversation_type_screen.dart:782-791 | lib/screens/conversation_type_screen.dart:1090-1099 \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/screens/conversation_type_screen.dart:513\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/screens/conversation_type_screen.dart"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed2c5c1c624645771b81cf28f763e9354cf71156fa1a4ecaa2b21b7a8d82e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/services/dify_service.dart:179-187 | lib/services/dify_service.dart:292-300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/services/dify_service.dart:289\u0060 calls \u0060_getDeviceUserId\u0060 and \u0060lib/services/dify_service.dart:176\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/services/dify_service.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e545a0df6273c713876a6cf48a11900327bed5c166ca825dbfd5cecebcd84ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201336 lines \u00D7 2): lib/screens/test_screen.dart:45-78 | lib/screens/test_screen.dart:121-156 \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/screens/test_screen.dart:45\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/screens/test_screen.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6beec47cee1a79de75d3a1cc792cac553dcb5fcfac4e09a9c09e195945f1c73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/screens/test_screen.dart:98-118 | lib/screens/test_screen.dart:166-186 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/test_screen.dart:98\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/screens/test_screen.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ccc2608773062773a062fe47e31ed7b098da065340403db1cc40371e8a8da5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/test_screen.dart:72-84 | lib/screens/test_screen.dart:86-98 \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/screens/test_screen.dart:72\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/screens/test_screen.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e9ce1e3e5048b0159d67e7fe49a3cfec47cf7fd63847292843f5906f818d53"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _SettingsScreenState (LCOM4 4): _SettingsScreenState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings_screen.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b603d4073438940de74acffe4a67fabb1d6b2650780cc5a722c1e7e65f65c2"}},{"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 \u0060macos/Runner.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Runner.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f0bd4325cb484fa699f9766497db05ed665b24b57923e0afe7629a5ed95be7"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1a4cba461b2514b3e62ec5de57bb69080886fd613c18d48f725946482ed72dbb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6f99bd50544c8dc18d6e0011adbc405a31616a62709ed9e01540748b05e08bc3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e10dd1c37af22b497f72f89b2c46e91ef5c8fc9d8d3b51a11f187eb59b3d5d0b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"63971014418d75eef7a8e55f7f272933c4622a893210d5a7fcc7a42b6eb9ba96"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"14e0ccf0f560dec82c7ba45a7374499d095d4f7a04ecf1bd41b95ca35f67b114"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"15ad88b38fff2e6e26a2e5c51db46b5d95f5a0ab9ae8764a426454804472d49b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"79d805907c48079aaa325cd23f29332d909af5a2325462efa6a1a157065a80c6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"05c2282b07fee251457b02402c20a1ea6e2e13c3523b2e3d882b2c0b6191447f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9dab14571f2b5a8f14efc3075a1a7094996ca2c12e168f7011aed240df20104e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e70370835a6098b047e3f89b14be691b6deae1472ae895a8d4c3ac163ee3faee"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ada9c247ee9bde5a163ac914041a7c59d57639f72f4a9186269d27d92b548b7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7164a301ba0ce30d159815e24e5e5e69076c70c7c73b854158d022e14a6d24f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dae0e4cab43ba1ec971481762992d09ba8be0bf4112bb383a4d92ce9d81cfd8b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b3e768ca7f8424f4c52b549d307f3cd035ff6e54ceba3768820798f8832e85b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ec266d12ae313de9cdc6f26247aad5a4c324c64e4065d2e4959feffc63f6c9e7"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"26c6e2971d6ee80ee3672a1042a1dcde06378c2b4bcb9096b39656cb4792d458"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"035581c8f89a5ea0aefdfaa270d17a48b2869f395c33c3dc2b57c27eef7718dd"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"28ba2e6c14e71fa7f5be78ddbc4251309917d9e5205b32c7a813c968c5f80ff8"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1aed9032274b4bfe55828f013ded241c7b9148c3170efaeb8154fd3c508508c"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7cc236a70bb649a8db3b4b9c2b6372a4c268a004a36b48dc9b7d4eca3a94cc4"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f4b16a12c78fae077fd6dc5442e8c45c65b76db596a929071c6d7e5d617c5bc"},"properties":{"dependency":{"package":"@vue/server-renderer","version":"3.5.13","advisory":"[GHSA redacted]","severity":"high","fixedVersion":"3.5.42","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"83d5bf842b24f92acca1c236eb6df3183ad63ef240d36d64f0f7b0ebe1a9aa81"},"properties":{"dependency":{"package":"nanoid","version":"3.3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.3.16","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a82a525529d091811a247a80e4fdeaf86504a07822e697e9aa478ce7f049254"},"properties":{"dependency":{"package":"postcss","version":"8.5.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.5.12","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"abdc095f6606f41afc3dc99ac6503f34b1b219d64310e1078e8307bf9c3ef259"},"properties":{"dependency":{"package":"preact","version":"10.26.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"10.26.10","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ef1267d3c96445ea59b33886908d3c22f8396c792131498dec26b20c89c009c"},"properties":{"dependency":{"package":"rollup","version":"4.40.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.59.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa94428efba15e79ad3866f440181bb7936ab7f52ebbb59197e9bf31d0a8da0c"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a8ea111e28958b217f469ba89ad9396d918a018663ecf9559eaf3b7b20e35c4"},"properties":{"dependency":{"package":"vite","version":"5.4.18","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"6.4.4","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"385244d91a381ad96db4f466c1eaafbaad90bc5ffa9a903b6e394025e1906a80"},"properties":{"dependency":{"package":"@vue/server-renderer","version":"3.5.13","advisory":"[GHSA redacted]","severity":"high","fixedVersion":"3.5.42","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01c3f6ce35e805c091bf292106a4ebae31f35615521360a3187edd0f4bd078dc"},"properties":{"dependency":{"package":"nanoid","version":"3.3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.3.16","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dca0e12fc810857c56b2038c4319e2cbed7c290be50ecab8db6f48cfaa672a8e"},"properties":{"dependency":{"package":"postcss","version":"8.5.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.5.12","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e21de7ad95a6883e1e5ab3db0bce0f6b1b35e2bcce7098fd4aae80e5f6833758"},"properties":{"dependency":{"package":"preact","version":"10.26.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"10.26.10","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fdad52d1a53d7c7d70e4a9ca675e7a3bfd0a064cbb5cf8e6ce8cdaa4c7d7c42f"},"properties":{"dependency":{"package":"rollup","version":"4.40.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.59.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1075388a9c053242f3267828c52dfeb2364b8f855a91d60be8f848d184017703"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"06c2b5711762acb77610b6f238dc7e84d46a1b35130e0078f2f8fb8f5e5b4526"},"properties":{"dependency":{"package":"vite","version":"5.4.18","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"6.4.4","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b4d32e56914c693730b36bd0340d1e4ea43e550c7c5ba5408f494bfb2356c820"},"properties":{"dependency":{"package":"esbuild","version":"0.21.5","advisory":"[GHSA redacted]","severity":"medium","fixedVersion":"0.25.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"317cfbca8131578cdf47c690feaf1845fb9a3df4482aad6a87c20cb4839a05cd"},"properties":{"dependency":{"package":"mdast-util-to-hast","version":"13.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"13.2.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3ecaf3a737e0f589b5cdb5ef5aff5dec4fb76159b09ecfd4b24b2ffbc5877052"},"properties":{"dependency":{"package":"esbuild","version":"0.21.5","advisory":"[GHSA redacted]","severity":"medium","fixedVersion":"0.25.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c8ebf60e9ea056ec83a0b9df186a1beafbe84bbbee1ba38290af1a441c6019e2"},"properties":{"dependency":{"package":"mdast-util-to-hast","version":"13.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"13.2.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 21 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; 21 of the 37 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/services/minimax_service.dart. 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/services/minimax_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca27ed459a4cfa1bf2ac2f76d152708e2ca448a45583a89b1f283c1ec962610"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"faccb5e7163787379bbb839bc984a2ba0ea5b68ba47e4596787a94640c972180"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16ddd6639260b13285d6d5fdf7899a2cf60d13d87d90c0813cc1d4c9decd82b7"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"documents/docs/.vitepress/cache/deps/chunk-QXP276DV.js"},"region":{"startLine":12031}}}],"partialFingerprints":{"codehealthFindingId/v1":"22beb4e7af67c85b07908e2eb7b4e8e887311e50bafa01e7e041edda13d108d6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.sponsor-item\u0060 moves (\u0060transition: transform 0.2s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"documents/docs/sponsors/SponsorsList.vue"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8a2909da9fe1a62c1d4aa3db189bbe730a3f6cca25052a872b53ac169361dd"}},{"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":"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 as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060documents/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"documents/package.json"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2046985bc6a7860caf82cecca0d97935e2cdad9847e80ba25852ad32337f075"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/build.yml"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"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/providers/config_provider.dart"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a4a9e0ca98379319e26717e5e6c4ebbde5293cf1bb4f45d01c81892ccb3b46"}},{"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/providers/config_provider.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9087f60a472282309a6be747386cce6d361f28d575e1ee940a3ea96beb5621d7"}},{"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/providers/config_provider.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"146bf12ab87eb4f89b58951ab4ea9cdc9a0936bb7e7285f4171e78d1abeab05f"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-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-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-561","guid":"522a7ba7-45e9-ab53-9088-45d86e04b53a","name":"CWE-561","shortDescription":{"text":"CWE-561"},"helpUri":"https://cwe.mitre.org/data/definitions/561.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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"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/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":44,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}