{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"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":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"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":"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":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"_SettingsState.build (cyclomatic 241): _SettingsState.build has cyclomatic complexity 241 (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/ui/settings.dart"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bb00a5e6821480dc90680c92b3bea7182e8bc7c473e361326cdb61f110c938"}},{"ruleId":"D1","level":"warning","message":{"text":"_EditorPageState.build (cyclomatic 208): _EditorPageState.build has cyclomatic complexity 208 (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/ui/editor_page.dart"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acf7622c1e28667915a5bcd07959352239697caacf0b80c3bd5a5e599bddfcf"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotChat.chatWithModel (cyclomatic 118): CopilotChat.chatWithModel has cyclomatic complexity 118 (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/utils/copilot_chat.dart"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d3bb1fc509791d4b9e1346cd73c073d1d115e3d31f1232e1a0bd2cc7304688"}},{"ruleId":"D1","level":"warning","message":{"text":"_HomeState.build (cyclomatic 78): _HomeState.build has cyclomatic complexity 78 (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/ui/home.dart"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dde62e9f7a472c77ad10b503c7864c38d872953ee9861c500e2e9e887fca66e"}},{"ruleId":"D1","level":"warning","message":{"text":"_AIChatState._executeExternalToolCall (cyclomatic 58): _AIChatState._executeExternalToolCall has cyclomatic complexity 58 (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/ui/widgets.dart"},"region":{"startLine":10682}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d225553ac5956baca74366e17c68031799c040ab2174ae04ab579aebbbd47c"}},{"ruleId":"D1","level":"warning","message":{"text":"_DownloadManagerState.build (cyclomatic 50): _DownloadManagerState.build has cyclomatic complexity 50 (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/ui/downloads.dart"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58dff022816898a8c0f35cc67d9c39609471f90d15404f6dedfe76154d0002a"}},{"ruleId":"D1","level":"warning","message":{"text":"_SettingsState._showModelDialog (cyclomatic 50): _SettingsState._showModelDialog has cyclomatic complexity 50 (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/ui/settings.dart"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e67f4dc4dd6cb50999f76e0847dcede1ed92006d55e8c0319ccdcae42b739f"}},{"ruleId":"D1","level":"warning","message":{"text":"Models._toGeminiContents (cyclomatic 47): Models._toGeminiContents has cyclomatic complexity 47 (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/utils/ai.dart"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"2683a6e7f4f1707f195951e9d2064f997c194d3594b0107a2b7b4fac4471abda"}},{"ruleId":"D1","level":"warning","message":{"text":"_SourceControlState.build (cyclomatic 44): _SourceControlState.build has cyclomatic complexity 44 (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/ui/widgets.dart"},"region":{"startLine":8270}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec828c7bada2302ab8ec04d518e977ab4bedca49cf798d0593c08542f89d34f"}},{"ruleId":"D1","level":"warning","message":{"text":"_EditorPageState.build (cyclomatic 43): _EditorPageState.build has cyclomatic complexity 43 (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/ui/widgets.dart"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6e59b2e293094f7858529e91d9bfbbf45864da1631f6eb274e2a706c8e363a"}},{"ruleId":"D1","level":"warning","message":{"text":"_AIChatState._parseStreamChunk (cyclomatic 40): _AIChatState._parseStreamChunk has cyclomatic complexity 40 (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/ui/widgets.dart"},"region":{"startLine":11103}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d71c22e955dd67e67098733afab8157cd42f891627c2d916977e0c5b8ff527"}},{"ruleId":"D1","level":"warning","message":{"text":"Models._toGeminiSchema (cyclomatic 38): Models._toGeminiSchema has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb02a09df6551162155bb52363a86d55327f83b4231fb82e06f2decaad83e877"}},{"ruleId":"D1","level":"warning","message":{"text":"_AIChatState.build (cyclomatic 37): _AIChatState.build has cyclomatic complexity 37 (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/ui/widgets.dart"},"region":{"startLine":11909}}}],"partialFingerprints":{"codehealthFindingId/v1":"42441156a2c62d026ca6a689acbc3d27b684c9620578caeed512cd462f1e5601"}},{"ruleId":"D1","level":"warning","message":{"text":"_AIChatState._sendLocalLlamaPrompt (cyclomatic 35): _AIChatState._sendLocalLlamaPrompt has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11620}}}],"partialFingerprints":{"codehealthFindingId/v1":"6125046633b1c2ae22bea15bd721877978599581b972eb9a48ced62b9c3964e6"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotChat._extractReasoningDelta (cyclomatic 33): CopilotChat._extractReasoningDelta has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_chat.dart"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc31ea3897149b877c5c3c014cffa9bfb697108149d10782a19c4bc4fc91d2c"}},{"ruleId":"D1","level":"warning","message":{"text":"APITesting.build (cyclomatic 31): APITesting.build has cyclomatic complexity 31 (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/ui/widgets.dart"},"region":{"startLine":8962}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea24f3cc1a4e246f8486e20ac48514e52c8db8d6aa76a05faa863a4172913e90"}},{"ruleId":"D1","level":"warning","message":{"text":"Models.parseToolCalls (cyclomatic 30): Models.parseToolCalls has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4104b3ed6223612f97a93681f365728928fa7d35713cb37bfdf5410d827666"}},{"ruleId":"D1","level":"warning","message":{"text":"_DownloadManagerState._startDownload (cyclomatic 29): _DownloadManagerState._startDownload has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20aea18cc6ba97e50c36a403c552ba8a912ae702dfb82280c19f71672430ffa"}},{"ruleId":"D1","level":"warning","message":{"text":"_GgufDownloadManagerState._buildTaskTile (cyclomatic 28): _GgufDownloadManagerState._buildTaskTile has cyclomatic complexity 28 (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/ui/widgets.dart"},"region":{"startLine":13295}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ac833d339957b852fe853d3d1d690a1a54ded491fe3e83c588df539bce85b2"}},{"ruleId":"D1","level":"warning","message":{"text":"_AIChatState._buildModelSelector (cyclomatic 27): _AIChatState._buildModelSelector has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10015}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c7a35087ec64f8c5f325f8e2d7a490846bb269a00f289e196902cfb2275026"}},{"ruleId":"D1","level":"warning","message":{"text":"_AIChatState._sendPrompt (cyclomatic 27): _AIChatState._sendPrompt has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11249}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3e54edd11f7875bfc44ce0638968082d9cd7dbb52ed829cd14c9df75be3043"}},{"ruleId":"D1","level":"warning","message":{"text":"_DownloadManagerState._startExtraction (cyclomatic 25): _DownloadManagerState._startExtraction has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddb406f66f2bef29671f5f37b9869d97bbed7bec0997b3409867c4d85431d48"}},{"ruleId":"D1","level":"warning","message":{"text":"_ProjectScreenState.build (cyclomatic 25): _ProjectScreenState.build has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"5646e4e1aad2aa93bdf98037a6a490afda88f55880da890d43d71e410ebd51ef"}},{"ruleId":"D1","level":"warning","message":{"text":"Models._toAnthropicMessages (cyclomatic 25): Models._toAnthropicMessages has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"895ad1d718bcc5bb192e4ddffa94d7e248c6bc1f4fe9b758941be1bf4fd8665c"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivity.configureFlutterEngine (cyclomatic 25): MainActivity.configureFlutterEngine has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13dd804b332ddf4543c2531568a19cd74c0f09ca457f2b5e5dc7c442461c133"}},{"ruleId":"D1","level":"warning","message":{"text":"_SettingsState._showSSHDialog (cyclomatic 23): _SettingsState._showSSHDialog has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ca5c1960d050c02471dfbf272a5fb040d5b0a1a5e87a9944bcc1ea10a5b55c"}},{"ruleId":"D1","level":"warning","message":{"text":"_SettingsState._showCustomEditorThemeDialog (cyclomatic 23): _SettingsState._showCustomEditorThemeDialog has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cffd3bd58103863c397fea9b9303abdd4f045e8d83d475c8f8efeddea7576dd"}},{"ruleId":"D1","level":"warning","message":{"text":"_AIChatState._sendExternalToolCallingPrompt (cyclomatic 21): _AIChatState._sendExternalToolCallingPrompt has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: _SourceControlState._handleGitMenuAction (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10974}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bd3d33501d7e4b824b91eb86002e501570debb6c05120c07cb99d2bd581fa2"}},{"ruleId":"D1","level":"warning","message":{"text":"_EditorPageState._openFileInTabs (cyclomatic 20): _EditorPageState._openFileInTabs 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/ui/editor_page.dart"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"363d9311b0ef1a859be8a1a961c2d92ae1391946be79a8e02c396745ce773407"}},{"ruleId":"D1","level":"warning","message":{"text":"_SourceControlState._generateCommitMessage (cyclomatic 20): _SourceControlState._generateCommitMessage 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. This is NOT this file\u0027s highest cyclomatic complexity: _SourceControlState._handleGitMenuAction (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4442}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da1f3980ebb21726ee2b96d660e8e0d21bcdb1fd4e3621c7f4fe79b1b927532"}},{"ruleId":"D1","level":"warning","message":{"text":"AgenticTools.gitStatus (cyclomatic 20): AgenticTools.gitStatus 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/utils/agentic_tools.dart"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecac1cb73f5a3e27a6b4ee253bd5fc6bf58dc2fed8a295a79bc2be1501ebe56"}},{"ruleId":"D1","level":"warning","message":{"text":"Models.parseChatMessage (cyclomatic 20): Models.parseChatMessage 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/utils/ai.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"417dd3053875d7525381dc7204ab20b5f6693efa982afe04d82f80bcf7b92954"}},{"ruleId":"D1","level":"warning","message":{"text":"PendingEditFile.patchesToHunks (cyclomatic 20): PendingEditFile.patchesToHunks 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/utils/functions.dart"},"region":{"startLine":2840}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e5961033b2c1fd8fbe50a8b7b59da70e3eaf7714c3a606d6f38ba87aea6414"}},{"ruleId":"D1","level":"warning","message":{"text":"_FindWordWidgetState._searchWorkspace (cyclomatic 19): _FindWordWidgetState._searchWorkspace has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: _SourceControlState._handleGitMenuAction (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3424}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d01581188c5188d7f4f03c589c38744bf5fd5adc913a929ca2d650d84323e8c"}},{"ruleId":"D1","level":"warning","message":{"text":"_SourceControlState._buildCommitButton (cyclomatic 19): _SourceControlState._buildCommitButton has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: _SourceControlState._handleGitMenuAction (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7682}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fca6a1c2f5c922b288832c7f4e4148a8fe9d15e48c235cbe6723b62a799580"}},{"ruleId":"D1","level":"warning","message":{"text":"_EditorPageState._goToMatchNearLine (cyclomatic 18): _EditorPageState._goToMatchNearLine has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce42efcd9eb10d223e81538e8704610aeaac7b58f31044bf4f4f802da3c485b"}},{"ruleId":"D1","level":"warning","message":{"text":"_DirectoryTreeViewerState._buildDirectoryTreeNode (cyclomatic 18): _DirectoryTreeViewerState._buildDirectoryTreeNode has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: _SourceControlState._handleGitMenuAction (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef362bb8f5d37133ecf21c9cf8b6ae4659cfae8369eb880fbb232c544b7d5c88"}},{"ruleId":"D1","level":"warning","message":{"text":"_FindWordWidgetState._goToMatchNearLine (cyclomatic 18): _FindWordWidgetState._goToMatchNearLine has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: _SourceControlState._handleGitMenuAction (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3357}}}],"partialFingerprints":{"codehealthFindingId/v1":"102cc198f85ff7bb2cd52c2291e21fb3fc750b827e6480360a6356c3e66e66d8"}},{"ruleId":"D1","level":"warning","message":{"text":"_FindWordWidgetState.build (cyclomatic 18): _FindWordWidgetState.build has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: _SourceControlState._handleGitMenuAction (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3596}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6be5710866ba656a177259c269bd1e1bd45c38ba0a8710f1f2d9844e865cd70"}},{"ruleId":"D1","level":"warning","message":{"text":"_SourceControlState._buildGitActionsRow (cyclomatic 18): _SourceControlState._buildGitActionsRow 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. This is NOT this file\u0027s highest cyclomatic complexity: _SourceControlState._handleGitMenuAction (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70e83569756537ac06ea2ee880a7d40f0777b13583cc1c4635d38e51e0b5855"}},{"ruleId":"D1","level":"warning","message":{"text":"_AIChatState._buildAssistantResponseContent (cyclomatic 18): _AIChatState._buildAssistantResponseContent 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. This is NOT this file\u0027s highest cyclomatic complexity: _SourceControlState._handleGitMenuAction (cyclomatic 22) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10443}}}],"partialFingerprints":{"codehealthFindingId/v1":"602ae191a31a21230ff5f321c840778f7dc32278f950fea5f49ec5cafff5d1a5"}},{"ruleId":"D1","level":"warning","message":{"text":"_FileManagerPageState._hasExternalSourceMetadataSync (cyclomatic 17): _FileManagerPageState._hasExternalSourceMetadataSync has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1ee52b952759632fde7a961b1440c6960871be534b99d9a96e52f97e529538"}},{"ruleId":"D1","level":"warning","message":{"text":"_FileManagerPageState._downloadToStorage (cyclomatic 17): _FileManagerPageState._downloadToStorage has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca1baf23e15f2f28cdee9e38987a1fec350fff1af93f5365bf4b44905a6612b"}},{"ruleId":"D1","level":"warning","message":{"text":"_StartScreenState._initializeApp (cyclomatic 17): _StartScreenState._initializeApp has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/start_screen.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"acada2e498bdf4087902de562e5e6a1a2af44f4ba8a24121fd0eaf5621bcfd07"}},{"ruleId":"D1","level":"warning","message":{"text":"InvertedIndex._scan (cyclomatic 17): InvertedIndex._scan has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":3787}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff5f03e5dbb35372650d4a37a61c0327ad8670d338452d04f81079a3b602056"}},{"ruleId":"D1","level":"warning","message":{"text":"Models._toGeminiType (cyclomatic 16): Models._toGeminiType has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0014bbea4b1677256696af35699a0bc75d21fa376d3e58c71ef82cfe4bdf8d"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotChat.loadAuthContext (cyclomatic 16): CopilotChat.loadAuthContext 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/utils/copilot_chat.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ba266dd950effa87a8d56f6eeb46ea6e8acb538ea8201188f3303112b75f51"}},{"ruleId":"D2","level":"warning","message":{"text":"_SettingsState.build (cognitive 459): _SettingsState.build has cognitive complexity 459 (threshold 15). Drivers by points: if/else 120 (226 pts), ternaries 111 (209 pts), boolean chains 24 (nesting depth added 204). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"8278dcbbe380b5541420997de4abcd446f90ae9c6e02ad44132fd97496004d55"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotChat.chatWithModel (cognitive 391): CopilotChat.chatWithModel has cognitive complexity 391 (threshold 15). Drivers by points: if/else 46 (204 pts), ternaries 29 (139 pts), loops 5 (20 pts), boolean chains 13, error handling 3 (11 pts), match/switch 1 (4 pts) (nesting depth added 294). 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/copilot_chat.dart"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"f961449a95ba23f72a807c156b6b123bc4788f5cb0c1e3485dcde379da07ab18"}},{"ruleId":"D2","level":"warning","message":{"text":"_EditorPageState.build (cognitive 246): _EditorPageState.build has cognitive complexity 246 (threshold 15). Drivers by points: if/else 67 (99 pts), ternaries 61 (83 pts), boolean chains 45, loops 6 (11 pts), error handling 3 (4 pts), match/switch 3 (4 pts) (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0b0f11cce638d2bde06102556d628e00bc7331242d812544546d52e5b9c045"}},{"ruleId":"D2","level":"warning","message":{"text":"_SourceControlState.build (cognitive 193): _SourceControlState.build has cognitive complexity 193 (threshold 15). Drivers by points: if/else 19 (87 pts), error handling 8 (52 pts), ternaries 15 (44 pts), loops 1 (8 pts), boolean chains 2 (nesting depth added 148). 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/ui/widgets.dart"},"region":{"startLine":8270}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89aa40fcdd7b223b7a15d5a1b0623a81bebf85a6c8682a25893f53a44726891"}},{"ruleId":"D2","level":"warning","message":{"text":"Models._toGeminiContents (cognitive 106): Models._toGeminiContents has cognitive complexity 106 (threshold 15). Drivers by points: if/else 24 (71 pts), boolean chains 14, error handling 2 (9 pts), loops 4 (7 pts), ternaries 2 (5 pts) (nesting depth added 60). 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/utils/ai.dart"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0274ea613051bb792796183539c5eb66f5d57371aa1af35359871b74b2c4044"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState._executeExternalToolCall (cognitive 101): _AIChatState._executeExternalToolCall has cognitive complexity 101 (threshold 15). Drivers by points: ternaries 25 (75 pts), if/else 9 (23 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10682}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff32b3e1f8246adebe05127351b99fd354c2a87740b25a4917b8feda32c1654"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState._parseStreamChunk (cognitive 97): _AIChatState._parseStreamChunk has cognitive complexity 97 (threshold 15). Drivers by points: if/else 16 (63 pts), error handling 4 (16 pts), loops 4 (12 pts), boolean chains 4, match/switch 1, ternaries 1 (nesting depth added 67). 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/ui/widgets.dart"},"region":{"startLine":11103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff371cd9654bbed00cf83a7dc214096e971b32549b3dfce4f9cf116bed11ba33"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomeState.build (cognitive 95): _HomeState.build has cognitive complexity 95 (threshold 15). Drivers by points: if/else 34 (48 pts), ternaries 26 (36 pts), boolean chains 10, match/switch 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ecbf286e57e231713af887b7e16893ca998e921ee8462055d9935f6449bfbb"}},{"ruleId":"D2","level":"warning","message":{"text":"_SettingsState._showModelDialog (cognitive 95): _SettingsState._showModelDialog has cognitive complexity 95 (threshold 15). Drivers by points: if/else 19 (47 pts), ternaries 22 (40 pts), boolean chains 8 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"1259cdac7a89396038f1a58e2037d7c51b801ec9e44c6445610fe59a4d2fb739"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState._sendLocalLlamaPrompt (cognitive 90): _AIChatState._sendLocalLlamaPrompt has cognitive complexity 90 (threshold 15). Drivers by points: if/else 20 (57 pts), error handling 4 (15 pts), loops 2 (9 pts), boolean chains 8, ternaries 1 (nesting depth added 55). 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/ui/widgets.dart"},"region":{"startLine":11620}}}],"partialFingerprints":{"codehealthFindingId/v1":"6739b6330656cf121979bf1da794d72be8899cd9a4338c81cd9ba9eb52f20bc0"}},{"ruleId":"D2","level":"warning","message":{"text":"_EditorPageState.build (cognitive 82): _EditorPageState.build has cognitive complexity 82 (threshold 15). Drivers by points: if/else 24 (53 pts), ternaries 12, boolean chains 8, loops 2 (8 pts), error handling 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bd69f15bb0df85a8c82e052e94bd2cc6484666752959cba5ab4b2f834fdcdb"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState._sendPrompt (cognitive 69): _AIChatState._sendPrompt has cognitive complexity 69 (threshold 15). Drivers by points: if/else 19 (60 pts), boolean chains 3, error handling 2 (3 pts), loops 1 (2 pts), ternaries 1 (nesting depth added 43). 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/ui/widgets.dart"},"region":{"startLine":11249}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a34bdf7d723dac5be4a6c5f48f6135eae2fec7a9bd899296da24a169779428d"}},{"ruleId":"D2","level":"warning","message":{"text":"_DownloadManagerState.build (cognitive 67): _DownloadManagerState.build has cognitive complexity 67 (threshold 15). Drivers by points: if/else 33 (47 pts), boolean chains 12, ternaries 6 (8 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f9ac421705b752024531f6a44b5a4543c400cc84b2175b646d0fcb7154c88c"}},{"ruleId":"D2","level":"warning","message":{"text":"Models.parseToolCalls (cognitive 66): Models.parseToolCalls has cognitive complexity 66 (threshold 15). Drivers by points: if/else 8 (29 pts), ternaries 4 (16 pts), boolean chains 8, error handling 3 (6 pts), loops 2 (6 pts), match/switch 1 (nesting depth added 40). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f37c38388b79dacf031d05161fdf18ed164d065a080ba90066bd61e2cfe691"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotChat._extractReasoningDelta (cognitive 61): CopilotChat._extractReasoningDelta has cognitive complexity 61 (threshold 15). Drivers by points: if/else 21 (48 pts), boolean chains 10, loops 1 (3 pts) (nesting depth added 29). 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/copilot_chat.dart"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f202cf47532441cf5dfbd94fa750362a0a594a16fc671bb4160380721b2fc6"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.searchInFiles (cognitive 56): AgenticTools.searchInFiles has cognitive complexity 56 (threshold 15). Drivers by points: if/else 9 (43 pts), loops 2 (8 pts), error handling 2 (5 pts) (nesting depth added 43). 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/agentic_tools.dart"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ebd528181c2dd111c89e6277ee0ada1471592ff3494c7c94eda4a50398afbc"}},{"ruleId":"D2","level":"warning","message":{"text":"Models._toAnthropicMessages (cognitive 54): Models._toAnthropicMessages has cognitive complexity 54 (threshold 15). Drivers by points: if/else 13 (37 pts), boolean chains 8, error handling 1 (5 pts), loops 2 (4 pts) (nesting depth added 30). 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/utils/ai.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"b44002b0eb000ef88420bda7e82812d42ea2efdc6203ceb4c96536297d627dd8"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState._sendExternalToolCallingPrompt (cognitive 52): _AIChatState._sendExternalToolCallingPrompt has cognitive complexity 52 (threshold 15). Drivers by points: if/else 14 (39 pts), error handling 1 (5 pts), loops 2 (5 pts), boolean chains 2, ternaries 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10974}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9504d4f1e01b2928aa4dd8f32c7922a88de497cdbea9315417d6fd0fae31e24"}},{"ruleId":"D2","level":"warning","message":{"text":"Models.parseChatMessage (cognitive 51): Models.parseChatMessage has cognitive complexity 51 (threshold 15). Drivers by points: if/else 8 (36 pts), error handling 3 (6 pts), loops 2 (6 pts), boolean chains 2, match/switch 1 (nesting depth added 35). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea158ad9f3199c6f73da7576cdc2207bff0315543f791057000fb20b9e4eec2"}},{"ruleId":"D2","level":"warning","message":{"text":"Models._toGeminiSchema (cognitive 51): Models._toGeminiSchema has cognitive complexity 51 (threshold 15). Drivers by points: if/else 27 (40 pts), boolean chains 5, loops 4 (5 pts), ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ade35d492639dbe90d7ab366455960b0312baf1fd1d41e9172a34df6cd541e"}},{"ruleId":"D2","level":"warning","message":{"text":"_GgufDownloadManagerState._buildTaskTile (cognitive 49): _GgufDownloadManagerState._buildTaskTile has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (33 pts), ternaries 8 (11 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":13295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead3f58d1a19c6286748255cc9a05ac7835f58fc13091ef98a559baf5ae8a693"}},{"ruleId":"D2","level":"warning","message":{"text":"_DownloadManagerState._startDownload (cognitive 46): _DownloadManagerState._startDownload has cognitive complexity 46 (threshold 15). Drivers by points: if/else 21 (37 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"95be2fb654016c255085848bec743d1a60ded39d2e1c754e178b11a02da7744d"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState._buildModelSelector (cognitive 42): _AIChatState._buildModelSelector has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 9 (16 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10015}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfebb16c93f4d060e7d7042d0aaa8d3bf3e08d44029ff53a1cdc2729ef8f1ca"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState.build (cognitive 42): _AIChatState.build has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 13, ternaries 7 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11909}}}],"partialFingerprints":{"codehealthFindingId/v1":"79003a951ddcfd7682efe965ae0fc7654cf0ab6d5b5030ab47fd508039dd6106"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState._buildAssistantResponseContent (cognitive 38): _AIChatState._buildAssistantResponseContent has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (34 pts), error handling 1 (3 pts), loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10443}}}],"partialFingerprints":{"codehealthFindingId/v1":"9743ea513301d76f06119968e2686d1807f249f072308dd3f65afffa6709048d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.gitStatus (cognitive 38): AgenticTools.gitStatus has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 7, ternaries 1 (3 pts), loops 1 (2 pts), error handling 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb35aabdcebd4a0319b4a7858ba5105133cfc37ceb694ad3988009b9ee63a376"}},{"ruleId":"D2","level":"warning","message":{"text":"_DownloadManagerState._startExtraction (cognitive 37): _DownloadManagerState._startExtraction has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 10, 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/ui/downloads.dart"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"722e92482229a6d27fc33c180ac027950825bc8f12849c0165a81d0bf66bf1a0"}},{"ruleId":"D2","level":"warning","message":{"text":"_SettingsState._showCustomEditorThemeDialog (cognitive 37): _SettingsState._showCustomEditorThemeDialog has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 9 (17 pts), if/else 7 (14 pts), boolean chains 5, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3f1f6a183e4d7bb2d53dc478d87a73177a50ebb16fee437a7374f0d97b6aca"}},{"ruleId":"D2","level":"warning","message":{"text":"_ProjectScreenState.build (cognitive 36): _ProjectScreenState.build has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 5, ternaries 4 (5 pts), error handling 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde68e806ba651385bb58525d94a12d92aeee69242e394e159672274354d9b53"}},{"ruleId":"D2","level":"warning","message":{"text":"_SettingsState._showSSHDialog (cognitive 36): _SettingsState._showSSHDialog has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (25 pts), ternaries 5 (8 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"a052d612a5a9b37374a9b09b7f52409bf75b9371ceb9d668df8a4c92e4f6d2c7"}},{"ruleId":"D2","level":"warning","message":{"text":"_FindWordWidgetState._searchWorkspace (cognitive 36): _FindWordWidgetState._searchWorkspace has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (8 pts), boolean chains 6, error handling 2 (5 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3424}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d3750238deffb1b5b951c47c669575ad2804ecc02ff4c764ea8727ef6b3778"}},{"ruleId":"D2","level":"warning","message":{"text":"APITesting.build (cognitive 36): APITesting.build has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 13, loops 4 (6 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8962}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d0fa6f7e4cbe041ce78467ce32aee9ea7fd87781846f16f6b898a3113f02d7"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingEditFile.patchesToHunks (cognitive 36): PendingEditFile.patchesToHunks has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 6 (12 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":2840}}}],"partialFingerprints":{"codehealthFindingId/v1":"23609e4bef7edebc3862750894da3e90bb28a67fb1ac8166ec3466505f81de28"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.grepInFiles (cognitive 35): AgenticTools.grepInFiles has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (22 pts), loops 2 (6 pts), error handling 2 (4 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e28175d0bda1c955e497d17a53e5a39db184eb2952079afb938396ba51373c"}},{"ruleId":"D2","level":"warning","message":{"text":"_FileManagerPageState._downloadToStorage (cognitive 34): _FileManagerPageState._downloadToStorage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (21 pts), error handling 3 (8 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2a6a85a0f0a7665d2bf39db2c055acb8d37c382e83933ef7300094843be6cb"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivity.configureFlutterEngine (cognitive 33): MainActivity.configureFlutterEngine has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (22 pts), error handling 3 (6 pts), match/switch 3, boolean chains 2 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69ef90b5d6a9250f720c95e6c8de65afc0cb789b97e19c166f47df4f27a5456"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.renamePath (cognitive 30): AgenticTools.renamePath has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 1 (5 pts), boolean chains 3, loops 1 (3 pts), error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"2503df7e7765c74af73442897bdf2bcc33587e2204fed6a500b48cf3cb6126d1"}},{"ruleId":"D2","level":"warning","message":{"text":"_SourceControlState._buildGitActionsRow (cognitive 29): _SourceControlState._buildGitActionsRow has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 9 (12 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ff48fab1c2e1a33a9cad66823c6c115a0d3db70f002aa98f1e1a001dc7d8bb"}},{"ruleId":"D2","level":"warning","message":{"text":"InvertedIndex._scan (cognitive 29): InvertedIndex._scan has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (8 pts), boolean chains 6, error handling 2 (4 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":3787}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcac0064526540fe71c80e899be0b347abe1ec59c57244e6b802b26e16b79ea"}},{"ruleId":"D2","level":"warning","message":{"text":"_EditorPageState._openFileInTabs (cognitive 27): _EditorPageState._openFileInTabs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bf15872ef552aa13906c77650dbc9b2f3d84d5e7fa4f6007c22727d738ec5f"}},{"ruleId":"D2","level":"warning","message":{"text":"_EditorPageState._requestExternalModelCompletion (cognitive 27): _EditorPageState._requestExternalModelCompletion has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (21 pts), loops 1 (3 pts), boolean chains 2, error handling 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1354}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca1c3ea46cd04fa72a6db566c68d4a43c624e09a31d8df9f789a51cd8d69ae2"}},{"ruleId":"D2","level":"warning","message":{"text":"_SourceControlState._loadCommitDiffContext (cognitive 27): _SourceControlState._loadCommitDiffContext has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (6 pts), error handling 1 (3 pts), ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4222}}}],"partialFingerprints":{"codehealthFindingId/v1":"906bba3ac225a06c518045d81f6a851be1f2e49cb2e75d22fc81872758690bf4"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.globSearchFiles (cognitive 27): AgenticTools.globSearchFiles has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 2 (5 pts), boolean chains 1, error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"47642be66067851c87d82ade14a0249782ff1bd48dea71e08009aad2686723fc"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotChat.loadAuthContext (cognitive 27): CopilotChat.loadAuthContext has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 6, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_chat.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a8267e5326cd649508093c07a68a9f78f71a208da8c09d3f5901117b46acf4"}},{"ruleId":"D2","level":"warning","message":{"text":"_StartScreenState._initializeApp (cognitive 26): _StartScreenState._initializeApp has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/start_screen.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4098768314bda4f2823c6a37f02ca6d7350578601441d2a695350c99a4e378"}},{"ruleId":"D2","level":"warning","message":{"text":"_SourceControlState._generateCommitMessage (cognitive 26): _SourceControlState._generateCommitMessage has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 8, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4442}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdeb1df7e336b2313429f340c50435c8845f07bfea71c16cc3071fcc7df2721"}},{"ruleId":"D2","level":"warning","message":{"text":"_SourceControlState._buildCommitButton (cognitive 26): _SourceControlState._buildCommitButton has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 6 (8 pts), boolean chains 6 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7682}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b125cdd423c7e4f8b5a1c02cb3216293874f2f355e500a08f53fb9245e8de5"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotChat._loadCopilotOauthTokenFromConfigFiles (cognitive 26): CopilotChat._loadCopilotOauthTokenFromConfigFiles has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (18 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_chat.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86102ce49ab1306e4a15183a0d10f3c57f05080985acf3d35528b3ec36b3f94"}},{"ruleId":"D2","level":"warning","message":{"text":"_SourceControlState._performPull (cognitive 25): _SourceControlState._performPull has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 2 (10 pts), boolean chains 1, error handling 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4767}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bc2bd06e16769e0766ad8eebd9872f8b2c357a4cf568b186111cb848fa27e1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.rejectPendingEditHunk (cognitive 25): AgenticTools.rejectPendingEditHunk has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc95f6ed05cc00ed39a63397fda292dd0341e67d5e11532e5e32bb208f9a7ed7"}},{"ruleId":"D2","level":"warning","message":{"text":"_FileManagerPageState._hasExternalSourceMetadataSync (cognitive 24): _FileManagerPageState._hasExternalSourceMetadataSync has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, ternaries 2, error handling 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2750e361875d6d337da5e0bf0145d1111434e2704d41925d7769e986b0bb8c0"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState._sendCopilotChatPrompt (cognitive 24): _AIChatState._sendCopilotChatPrompt has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 1 (2 pts), boolean chains 1, 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/ui/widgets.dart"},"region":{"startLine":11500}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ecf64a9fe4b81276f9b2e746524b60f766c75adbabf2d27caa4b22c8f5ea0d"}},{"ruleId":"D2","level":"warning","message":{"text":"VSCodeGitGraphPainter.paint (cognitive 24): VSCodeGitGraphPainter.paint has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 2, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":12636}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba78121fdc198fa67b6e08cb1c691c12bb2cf9059f5854ebaed3d688ba11b1e"}},{"ruleId":"D2","level":"warning","message":{"text":"_FindWordWidgetState._replaceInWorkspace (cognitive 23): _FindWordWidgetState._replaceInWorkspace has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 2 (6 pts), boolean chains 1, loops 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/ui/widgets.dart"},"region":{"startLine":3519}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c17780bf3fa8f1fafa6ef0d15002c99529ee5c5d5a6aa29cfd0b493939c5cd"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState._generateTitle (cognitive 23): _AIChatState._generateTitle has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 3 (6 pts), match/switch 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11421}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedd329712f305c9bf3b5b181581614472b220a6cf21e5edad0b36de28233ac1"}},{"ruleId":"D2","level":"warning","message":{"text":"_DirectoryTreeViewerState._buildDirectoryTreeNode (cognitive 22): _DirectoryTreeViewerState._buildDirectoryTreeNode has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 5, boolean chains 4, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9df7b9ee2ef84f43c636f6759d245e7817cb4ed46e9ca0a2ea362622d71560b"}},{"ruleId":"D2","level":"warning","message":{"text":"_FindWordWidgetState.build (cognitive 22): _FindWordWidgetState.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 8 (10 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3596}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f008c6cc7a76f2bec613293e929286d46d6a29658230042d5d0f2103f40be5"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.writeFile (cognitive 22): AgenticTools.writeFile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 1 (3 pts), boolean chains 2, 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/utils/agentic_tools.dart"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"709c3061da61bd46c5bfaabb4104bf45125bd76089aa878ad32d2c44c161499b"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingEditFile.toDecorationRanges (cognitive 22): PendingEditFile.toDecorationRanges has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 3 (10 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":2936}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2460f51981eac3e62bf64bdf12fba52355f904c6295bfddc8305b17c376239"}},{"ruleId":"D2","level":"warning","message":{"text":"AIChatUIBloc._restoreSelectedModelIdFromPrefs (cognitive 21): AIChatUIBloc._restoreSelectedModelIdFromPrefs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 4, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d9f4b3aed82864c1b96d6b3a37111419baf9c604809134132b563e0332338b"}},{"ruleId":"D2","level":"warning","message":{"text":"_EditorPageState._goToMatchNearLine (cognitive 21): _EditorPageState._goToMatchNearLine has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 5 (7 pts), boolean chains 2, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"1631e2ee973e405eb03cd5afa7d89e7a8fb739c4efca7d9d09ae07e83a19a18e"}},{"ruleId":"D2","level":"warning","message":{"text":"_FindWordWidgetState._goToMatchNearLine (cognitive 21): _FindWordWidgetState._goToMatchNearLine has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 5 (7 pts), boolean chains 2, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3357}}}],"partialFingerprints":{"codehealthFindingId/v1":"77186ca78df2e7edce4b579f22df54fba7022ddd8053955f8318710ff546ca93"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.insertAtLine (cognitive 21): AgenticTools.insertAtLine has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eea7aeb505ccc3fa83e98de1b5db169e6e5b1db10848e39a2fbffec31cf89a7"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.openLinks (cognitive 21): AgenticTools.openLinks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c9c7c863538ca072b7279a55e968c93bded5ec692f83d01ec32c608b83e6e6"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools._extractLinks (cognitive 21): AgenticTools._extractLinks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 2, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"6274c3393545f86ae3318b1abbab978f088884bdea47390fd0804949a09daf9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveEditorBloc.ActiveEditorBloc (cognitive 20): ActiveEditorBloc.ActiveEditorBloc has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1127d9cf7dc105f1267e4ef501ac46f2f860e175ea02c55b0e6a48886c9a3d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.getLspDiagnostics (cognitive 20): AgenticTools.getLspDiagnostics has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 3 (6 pts), loops 2 (5 pts), boolean chains 1, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"674c1a5ca9cecfb2d500205cfd18b84266401f2a9969f65e6e5197771d8cec97"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.replaceAllInFile (cognitive 20): AgenticTools.replaceAllInFile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (4 pts), loops 1 (2 pts), boolean chains 1, 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/utils/agentic_tools.dart"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a9c2b1ef11c49f9e2508d1899827c70e70a8a7a4ad96eea44b39a5eb887770"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.readFilesBatch (cognitive 20): AgenticTools.readFilesBatch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 2 (6 pts), loops 1 (2 pts), boolean chains 1, 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/utils/agentic_tools.dart"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1cd3bf198ad2a1a8ac6f545659b7f690a61e874837cf5f5e8d3f93ec720431"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.editFile (cognitive 20): AgenticTools.editFile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1, 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/utils/agentic_tools.dart"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bb25df3d4ea8d9c0c72fde8cdc2ae7ae3ac30026d05e83cc318409bb6a3af7"}},{"ruleId":"D2","level":"warning","message":{"text":"_GithubPageState._buildSignInPage (cognitive 19): _GithubPageState._buildSignInPage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 7 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/github_page.dart"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fb99ce3bf588c18161c3fb3cc7c6805fc2aab1e7c7532cf990ffdf0f7290ac"}},{"ruleId":"D2","level":"warning","message":{"text":"_AIChatState._buildToolTerminal (cognitive 19): _AIChatState._buildToolTerminal has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (8 pts), ternaries 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10316}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7ec709968df78e26df63944bb711df15423c7ec32419833268bca27b9d1ff0"}},{"ruleId":"D2","level":"warning","message":{"text":"_DownloadManagerState._ensurePfdFeatureInstalled (cognitive 18): _DownloadManagerState._ensurePfdFeatureInstalled has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e946371c36d906f8c0bb8cda277b3541225ce85079e9f2f88a1cd818d007c5"}},{"ruleId":"D2","level":"warning","message":{"text":"_SettingsState._buildSignInDialogContent (cognitive 18): _SettingsState._buildSignInDialogContent has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 4 (5 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39710d363f8dde69c6cbfc974ea980adee8de96465e4feb79cfdb435d836ded"}},{"ruleId":"D2","level":"warning","message":{"text":"_CodeEditorState.initState (cognitive 18): _CodeEditorState.initState has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, error handling 3 (5 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77e9784ab33b7cb4d96c6873ac9212554da780d120fbacf31b7eb222861424d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools._extractMainContent (cognitive 18): AgenticTools._extractMainContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 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/utils/agentic_tools.dart"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"524d6e09d83330b667de9128373f5e8a68c7607d2001aa4ff11aaec67542a5b6"}},{"ruleId":"D2","level":"warning","message":{"text":"PackageCatalogService._loadInstalledCatalog (cognitive 18): PackageCatalogService._loadInstalledCatalog has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 2 (6 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/package_catalog.dart"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7f5a4d026102973ef503ece5f6c4b128772c956cf50eace48ccc7a7b49d4fe"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotBloc._onInitialize (cognitive 17): CopilotBloc._onInitialize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"d313ed851550c53b6b54b28c1292bf3c942957dd8331f5c2b3f49eb57f0e638d"}},{"ruleId":"D2","level":"warning","message":{"text":"_SetupTerminalState._setTerminalOutputWithAutocomplete (cognitive 17): _SetupTerminalState._setTerminalOutputWithAutocomplete has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5 (nesting depth added 3). 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/terminal/terminal.dart"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db9a1a26040b35caa13805a5c34cd3b88f26c090ac539e16e434484f5cc051d"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomeState._openPendingSharedFile (cognitive 17): _HomeState._openPendingSharedFile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (17 pts) (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/ui/home.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a05f15c54d58637b7a92eb7de647deeb1ba8b7c01dab8ab10009bcd5df0c1fd"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticTools.gitLog (cognitive 17): AgenticTools.gitLog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 1 (3 pts), loops 1 (2 pts), boolean chains 1, 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/utils/agentic_tools.dart"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16142dea969c81e04c336154cf0fa397a616a77c7f7d2d6bae46fb91c5cb35f"}},{"ruleId":"D2","level":"warning","message":{"text":"Models.buildToolCallingRequest (cognitive 17): Models.buildToolCallingRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c225a3baae2a8a520b2cdb04fbff09aaa6eafcb29a9ffb70eaf0e9f84a0b65"}},{"ruleId":"D2","level":"warning","message":{"text":"RepoStatusBloc._onLoad (cognitive 16): RepoStatusBloc._onLoad has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), ternaries 3 (6 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/repo_bloc/repo_bloc.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"872c269ff9d8790bea56347d565840b6b8cb65f1d2ad8735d2f8e0e8e25d4171"}},{"ruleId":"D2","level":"warning","message":{"text":"_EditorPageState._openVitePreview (cognitive 16): _EditorPageState._openVitePreview has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddebd58081e8233aea4906f47838fcdb3094fa299d35925dd87a8b3ecb88267"}},{"ruleId":"D2","level":"warning","message":{"text":"_FileManagerPageState._readSourceMetadata (cognitive 16): _FileManagerPageState._readSourceMetadata has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4722f5f6e34fa731a0231e88beb042bb63f3fe56c0943249f39b7ecd0f6a7699"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomeState._performClone (cognitive 16): _HomeState._performClone has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (3 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"544dc00bf95017b16198a81f47e2432553d80fd7830eb2a6722012f13fe68bca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsState.build: MethodTooLong \u2014 build runs 2703 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2603 over it, 27.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9289efc2982147c8a937e508e7e5d7bc986865e75884845d28d286093fe1787"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/widgets.dart: FileTooLong \u2014 9904 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 9404 over it, 19.81\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"025533deaa820c4c6218fc9ab66fc8572850fa72fb861f3526335b6e6ecd4b0a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _EditorPageState.build: MethodTooLong \u2014 build runs 1381 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1281 over it, 13.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa710b671143455a24f48c8575e8d9cea926aa6d0af1061cfb8c30cf4b546334"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HomeState.build: MethodTooLong \u2014 build runs 1104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1004 over it, 11.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a64b40c4ec46115f3b53cdec244fd0ce957b2196bb919e4df25ac130e81c49"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _SettingsState: ClassTooLong \u2014 4329 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 3929 over it, 10.82\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/ui/settings.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c1fa69abcca934de629adbd41c1edfb75fc8464e4af127265749274244da5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/settings.dart: FileTooLong \u2014 4356 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: _SettingsState (32-6096). The bar is 500 significant lines; this is 3856 over it, 8.71\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/ui/settings.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d6b674721b7f242096f21ebe92983007fb7a26229e302e9fbaff308dc7112e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _SourceControlState: ClassTooLong \u2014 3473 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 3073 over it, 8.68\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/ui/widgets.dart"},"region":{"startLine":4111}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e5ea89dedc2efc371de5b8568244179a6026d85b0b1cfa78a3fc0da37e3917"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _EditorPageState: ClassTooLong \u2014 2498 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 2098 over it, 6.25\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/ui/editor_page.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd2c45eefffb10cb93b4a68cbae44d3db7e35f37ce3a5824a0811b206be52a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/functions.dart: FileTooLong \u2014 2952 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2452 over it, 5.90\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a44c3c9ff647b69c80c346ecaf4263f3c24aba0ea66c984bcb88052b4e57e4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _AIChatState: ClassTooLong \u2014 2274 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 1874 over it, 5.69\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/ui/widgets.dart"},"region":{"startLine":9452}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b2439313e80778474743f9076778d408912121af399113b4e2aee0ecceacef"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CopilotChat.chatWithModel: MethodTooLong \u2014 chatWithModel runs 545 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 445 over it, 5.45\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/utils/copilot_chat.dart"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d207323741302e1a56897b2ac173398169077a96d2e6a919da0370251a8b0bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/editor_page.dart: FileTooLong \u2014 2629 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: _EditorPageState (50-3519). The bar is 500 significant lines; this is 2129 over it, 5.26\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/ui/editor_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf1a11fb9b36aa23541746c5a9cf0e9b297ccf5c8be54b2578d7eaac5f3e436"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState.build: MethodTooLong \u2014 build runs 483 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 383 over it, 4.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8270}}}],"partialFingerprints":{"codehealthFindingId/v1":"606c7f6f3e1819879ca56f7a0b282476e3903dc211989fef5dd9968c391e5e44"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _DownloadManagerState.build: MethodTooLong \u2014 build runs 481 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 381 over it, 4.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6c235d3b428014b5aabd7c5a30ae17bea573e0a468b3d99e72a9ab0329350a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _EditorPageState.build: MethodTooLong \u2014 build runs 481 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 381 over it, 4.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70bc0181c5af0187ef2164f39c0b7970d21f49574fee145b5d84bac366b9534"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgenticTools: ClassTooLong \u2014 1597 significant lines (blank, comment-only and punctuation-only lines excluded), 54 methods. The bar is 400 significant lines; this is 1197 over it, 3.99\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/utils/agentic_tools.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ac5e33fce7ba4b32e4a094234aa3a905fcf1bd1d9937cc57d1c6c3baa5eb6c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgenticTools.getTools: MethodTooLong \u2014 getTools runs 392 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 292 over it, 3.92\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/utils/agentic_tools.dart"},"region":{"startLine":1784}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64b150f12a90be6c23f7bdaa9e20cecbbe0d95868455862421fc9671412877a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/agentic_tools.dart: FileTooLong \u2014 1767 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: AgenticTools (19-2359). The bar is 500 significant lines; this is 1267 over it, 3.53\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2c27141e9e2778272e669ab2799ede2038130fd0c2f15a196cfb4e6b59ab5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsState._showModelDialog: MethodTooLong \u2014 _showModelDialog runs 349 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 249 over it, 3.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"5277f0048d9cf61344f20c8f945b5b65c114891c2b103f6fa8aca52ca911bb6e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _DownloadManagerState: ClassTooLong \u2014 1355 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 955 over it, 3.39\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/ui/downloads.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e854758bbaa4fcaa9061b3338ce22622dc1a9575e15776e333b515e46fa8601e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: APITesting.build: MethodTooLong \u2014 build runs 328 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 228 over it, 3.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8962}}}],"partialFingerprints":{"codehealthFindingId/v1":"653a87bdca63b03de3c3dbd0de591ef961d2a0406ed90ed6f7ad776785c3fd41"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _HomeState: ClassTooLong \u2014 1281 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 881 over it, 3.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f366b86a6dc9ace9de6fb96f43bd4b292128b833e702fa2cb2ef4bca3ba2b7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AIChatState.build: MethodTooLong \u2014 build runs 316 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 216 over it, 3.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11909}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c80d1557473a4fef7f9e6836bb94e69871c3e9989a918fbbfb86416d67fa9b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsState._showCustomEditorThemeDialog: MethodTooLong \u2014 _showCustomEditorThemeDialog runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c165f0ee8889b8a5686c84c614e36766119729bef97834c61f63069acd1aff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/downloads.dart: FileTooLong \u2014 1394 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: _DownloadManagerState (40-2078). The bar is 500 significant lines; this is 894 over it, 2.79\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/ui/downloads.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46fb851eceac13ff4333b25a20e20dfeedd8993592f90df55c9f4f77eb4c31f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ProjectScreenState.build: MethodTooLong \u2014 build runs 270 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 170 over it, 2.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/ui/project_screen.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24aa24d7a821fb2f8e1091e71a7a3e95ac7c6d7ec17d45b72441a27a53ebc8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/home.dart: FileTooLong \u2014 1314 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: _HomeState (37-1838). The bar is 500 significant lines; this is 814 over it, 2.63\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/ui/home.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f5d284c0d6a1c337022a77645017733c655bb35549b910016896f1815e0ee4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AIChatState._executeExternalToolCall: MethodTooLong \u2014 _executeExternalToolCall runs 252 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 152 over it, 2.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10682}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdda344a7876d1a196e5f7d5f250735fca3bc008ef9caa948e5f440972cdb654"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FindWordWidgetState.build: MethodTooLong \u2014 build runs 249 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 149 over it, 2.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3596}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b3e0a7f146d8102de12974dcefb337362eb3566c6503226de9307e6dd08a7f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _GithubPageState: ClassTooLong \u2014 951 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 551 over it, 2.38\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/ui/github_page.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6964265fd815d6e4b83547e13a192ee777129c289b8f652d1fa4128944b162da"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CopilotChat: ClassTooLong \u2014 918 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 518 over it, 2.30\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/utils/copilot_chat.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba626c3dfeef5c4469248283ed14cd1be299f3c5fc2d2b58828b76d52c571cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui_bloc/ui_bloc.dart: FileTooLong \u2014 1121 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 621 over it, 2.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e6b4cccc28ddf54543869815b5a1feab8056800940819d1e99a90791677cbd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _EditorPageState: ClassTooLong \u2014 810 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 410 over it, 2.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac42bd2b30e953b30f72910a2491a72e4c1579825b2165c976e6d1050b33b93"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._buildGitActionsRow: MethodTooLong \u2014 _buildGitActionsRow runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7152c848e5186ba6187067289f070a185abb8879ecb62abf550c24738e5bc878"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: terminal/terminal.dart: FileTooLong \u2014 991 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: _SetupTerminalState (277-1569). The bar is 500 significant lines; this is 491 over it, 1.98\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/terminal/terminal.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e9c4327194bc45a6ce11b1e14a3f705929763a8d285ed5cbac096618588268"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/github_page.dart: FileTooLong \u2014 971 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: _GithubPageState (25-1387). The bar is 500 significant lines; this is 471 over it, 1.94\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/ui/github_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9de7ab45c595efc9e46b858a2862085ec46f682655055f506fb186f80350980"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _AIChatState: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\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/ui/widgets.dart"},"region":{"startLine":9452}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ec2dc16a83377b399567e92569112191a48911f278b24025b184d758c5341c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AIChatState._sendLocalLlamaPrompt: MethodTooLong \u2014 _sendLocalLlamaPrompt runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11620}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ac954678507b05467c6efb8bb7010fd7c99c45f529f0a75c582a35be005a78"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/copilot_chat.dart: FileTooLong \u2014 932 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: CopilotChat (20-1222). The bar is 500 significant lines; this is 432 over it, 1.86\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/utils/copilot_chat.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44a292070d16bdc8a3616934c9c6cc59defb7847e56b31609d0df0a04ee4a98"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _DirectoryTreeViewerState: ClassTooLong \u2014 740 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 340 over it, 1.85\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/ui/widgets.dart"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6cd6fcf1d8b871a4dbf015ba905a950e77c425ab6dfd3b55cfa7e88292f735"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _SourceControlState: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\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/ui/widgets.dart"},"region":{"startLine":4111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60713a1b1bb2610c46f879077a35c65fb89cb7c61f0b105ac5b58833aaa2640"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgenticTools: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\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/utils/agentic_tools.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2c585fd00448d05f439a857a1cb4c79d8d6bcb76965a736a210483742c311e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _EditorPageState: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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/ui/editor_page.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7ae4e2d84a61a3a5ca577f9b8d320213ee1e46ed29afd4b57257f86a930b5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsState._showCopilotSettings: MethodTooLong \u2014 _showCopilotSettings 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/ui/settings.dart"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0e8189e9f42f65e66cb895f2e1902d014f92ab8dec3e11537ca476915f3487"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _SetupTerminalState: ClassTooLong \u2014 678 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 278 over it, 1.70\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/terminal/terminal.dart"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"083c5cda34a6b8785887974a013deaf6aa01b2cdc64b992b7ff580dda6f1d24c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/languages.dart: FileTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 328 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/languages.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e313bc64ad33d04a08c5ddd25d2efba9f5a2d0a9b21c019ecda44503f49db183"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsState._showSSHDialog: MethodTooLong \u2014 _showSSHDialog runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"b533f871ad9cb6fdbf5bfd1ac18fb54837759d588bbacd21a61efc9559990ff0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GgufDownloadManagerState._buildTaskTile: MethodTooLong \u2014 _buildTaskTile runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":13295}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9b655707897f509e62b8dd608b5e57f448247c2c7024c28846e45ce47f55ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/themes.dart: FileTooLong \u2014 773 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: terminalTheme (78-724). The bar is 500 significant lines; this is 273 over it, 1.55\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/utils/themes.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb67ab929e46eac3dc4f66bc11917300b4b4e9d950eea79c925a6a6acbc4f43"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/ai.dart: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: Models (25-719). The bar is 500 significant lines; this is 249 over it, 1.50\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/utils/ai.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffb4ebe0ad208bca37116a73b9d4a5d720ad9977609f1d2a8bdb8470d62ec12"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showCreateBranchFromDialog: MethodTooLong \u2014 _showCreateBranchFromDialog runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5088}}}],"partialFingerprints":{"codehealthFindingId/v1":"41160d72cc98f5326320b0245393a0839a0594fe083052cfe820e24a2cd5cf3a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SetupTerminalState.build: MethodTooLong \u2014 build runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal.dart"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"32314bb8312ab234696c1ac1f4e26fafc9de115050b979f23adf356db2f6a2b1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BuyMeCoffee.build: MethodTooLong \u2014 build runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/donation_page.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f58b5ccd7276cf100be62cabde07e0da8cfbe120a2b516ffb9a4ade042fdbb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showRenameBranchDialog: MethodTooLong \u2014 _showRenameBranchDialog runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5663}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f6e1827e10b1907348e1d9d0bb64bd8f64d18e9259eb3c253b7469d3e749a1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GithubPageState._buildSignInPage: MethodTooLong \u2014 _buildSignInPage runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/github_page.dart"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd0fa3154c79ff6390c05683bd4e1356d702ad84d947b0b134727240db0ec9a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FileManagerPageState.build: MethodTooLong \u2014 build runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"136f49d14e0c4c5022d66699b056ccaf8c54a500d4b1c9554e3f7b9551b1d892"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showMergeBranchDialog: MethodTooLong \u2014 _showMergeBranchDialog 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/ui/widgets.dart"},"region":{"startLine":5293}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9396d196427ae432a5b513fd1a6154913711d6d53079f54599d2b585e2831b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showRebaseBranchDialog: MethodTooLong \u2014 _showRebaseBranchDialog 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/ui/widgets.dart"},"region":{"startLine":5478}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfc8f559a4b29998bd4fa765225a22f0a96577c496774c24ceed16d85876f8d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showCreateTagDialog: MethodTooLong \u2014 _showCreateTagDialog 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/ui/widgets.dart"},"region":{"startLine":6696}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6b35621da15f0be493ef76b02fe219fdfdea3811ffd5621144b08adcfe6560"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GgufDownloadManagerState._buildAvailableTab: MethodTooLong \u2014 _buildAvailableTab 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/ui/widgets.dart"},"region":{"startLine":13057}}}],"partialFingerprints":{"codehealthFindingId/v1":"5785eb9240dfc73798edcfcd06d92f751e74592d3a69a24151cafdf96bc435a8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _FileManagerPageState: ClassTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 133 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"802030e7d059f8338c2e03f661ddac207f4aec7c6aa5be8522f8f822aa41d310"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _FindWordWidgetState: ClassTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 125 over it, 1.31\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/ui/widgets.dart"},"region":{"startLine":3332}}}],"partialFingerprints":{"codehealthFindingId/v1":"4424b16ecd501182d311e1d438f37477a577388f6a3b5d1cc9ccc94f72c620ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/file_manager.dart: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: _FileManagerPageState (29-840). The bar is 500 significant lines; this is 153 over it, 1.31\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/ui/file_manager.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15feddcea0cd2febe7713f56bc143b10cdc939ebcf40a77631663dcfb142175"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CopilotLsp: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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/utils/copilot_lsp.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f52cc1894963a3a55f4d570e8040ae2632299feaeaeba50f65adfd5ea5cfd76"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _WebViewScreenState.build: MethodTooLong \u2014 build 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/ui/webview.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f72b243cc7c15fa6d7029466e2fd4c4eba45988a52bb5b7ea8e593291aa27c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._buildCommitButton: MethodTooLong \u2014 _buildCommitButton runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7682}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2546e0c9b0e7af4cf3ec50fe8ccca5ad11aef92ecdee552b020bfb67fdd428e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ProjectScreenState: ClassTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 109 over it, 1.27\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/ui/project_screen.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f189ca4c96d4bb05a0242c45424703c2e48436503778db8980264739d960c044"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VSCodeGitGraphPainter.paint: MethodTooLong \u2014 paint runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":12636}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60094ffbe2692917562de5db6cb185ed67ba7b85b1a5c91a0992417c1402131"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/copilot_lsp.dart: FileTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded), about 66% of them inside a single declaration: CopilotLsp (111-726). The bar is 500 significant lines; this is 128 over it, 1.26\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/utils/copilot_lsp.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8dd47a30d2c6f11bada0e6f8ca5184b424e10c1fabab4fe199a7ee46d6c9dea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showDeleteRemoteTagDialog: MethodTooLong \u2014 _showDeleteRemoteTagDialog runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7048}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be0101766dd7450e28387a106fc1c70a5edc42b3f997739e85f27b25d53f808"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Models: ClassTooLong \u2014 495 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 95 over it, 1.24\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/utils/ai.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d04c771638fb41432cb5e25faf4b6db3ad662146c73e8b44c784956285f947"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _DirectoryTreeViewerState._showFolderContextMenu: MethodTooLong \u2014 _showFolderContextMenu runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2340}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f75e18bbe176a264c044f6b695c26c53037e6bcb17417890c1a4b363df31b0f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showDeleteBranchDialog: MethodTooLong \u2014 _showDeleteBranchDialog runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5863}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21d38d2090f3c0ab9ef83ebc3803aff66c842053eed54442b06efbf1caa7d09"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsState._buildSignInDialogContent: MethodTooLong \u2014 _buildSignInDialogContent runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a858e8d0a1e31f71c82123db57a379eb98a90d528b1d8641841e7503cf55ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showDeleteTagDialog: MethodTooLong \u2014 _showDeleteTagDialog runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":6881}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c3ec874eebe49a3249cce9648a8c3099adf701b633388a8139aa3877929040"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GithubPageState._buildRepoCard: MethodTooLong \u2014 _buildRepoCard runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/github_page.dart"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2285eeab83c4863b7f8c375964561343cc68ab3125f5e793be797982f5e423d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showDeleteRemoteBranchDialog: MethodTooLong \u2014 _showDeleteRemoteBranchDialog runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":6033}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8e67048a57783b4bbf9e580d6c97c323591a3a37bfcc97843622690e5c7ceb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showStashDialog: MethodTooLong \u2014 _showStashDialog runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":6218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73cb4d5175eac5ac404c44447b2b019b7ab5f5cc310f7d471916e02b31cbd73"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MainActivity: ClassTooLong \u2014 474 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 74 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"1978afe4babe001f2203404ef3513a55c1f88c41d4ee9377c3a4a3870779eeeb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GithubPageState._showRepoDetails: MethodTooLong \u2014 _showRepoDetails runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/github_page.dart"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"8931650dd21b7f030e35e3245dbf5a6097119bc4f286b65bd0388307b9e74e76"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AIChatState._sendPrompt: MethodTooLong \u2014 _sendPrompt runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11249}}}],"partialFingerprints":{"codehealthFindingId/v1":"77064080ccc2ff659f152b9cce510bc286bdb24dc6d3cb174736cff6a239ecbd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MainActivity.configureFlutterEngine: MethodTooLong \u2014 configureFlutterEngine runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d24d755e3ff1f2bcbf5edb5371c881e81ca9c9c27c10fa6cdf2c8bc37a4cfb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _DownloadManagerState: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d897942e09b46e59d394f82ea6bf9f2a907c51bc3ab6ccb8d50934bd937a6d0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _DownloadManagerState._startDownload: MethodTooLong \u2014 _startDownload runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf13d005b39b8eec23a978393a716aec7eb87f9de3a6ae060f1298540d11eac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showCreateBranchDialog: MethodTooLong \u2014 _showCreateBranchDialog runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4932}}}],"partialFingerprints":{"codehealthFindingId/v1":"2438dc51b920b28bb9a84255f7b0683474cd5a7447d46f5a18ec7ef4364f7efd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AIChatState._buildModelSelector: MethodTooLong \u2014 _buildModelSelector runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10015}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1775774b5e2e095c207f40bc98a31d97312f101bf29c1e089d9212014ffe8b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui_bloc/ui_state.dart: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 31 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_state.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c0b144b5e11260177f04e2b5eae2e29034d12196b95491563dc477f6876de2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/project_screen.dart: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: _ProjectScreenState (23-754). The bar is 500 significant lines; this is 27 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/ui/project_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bd752a9bca2dade3f5932c63856495c5ba23276a0eb5081518b2d01eb68f9c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CopilotLsp: ClassTooLong \u2014 414 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 14 over it, 1.04\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/utils/copilot_lsp.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72c916af1ac56b21d3f68c170da9b788360d2a631ea5ecaa5cd93d0ce426337"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _EditorPageState._buildDiagnosticsPane: MethodTooLong \u2014 _buildDiagnosticsPane runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"93664f0eb992ae85f94094ff64354424f5ada78d7754fda1500e4b6cc631d493"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SourceControlState._showPublishToGithubDialog: MethodTooLong \u2014 _showPublishToGithubDialog runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8074}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2e73d9c90b2426aea191127f32615ad8bdcda9e6d482c4ba39994b661f1f90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: roxum/MainActivity.kt: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: MainActivity (34-724). The bar is 500 significant lines; this is 5 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be0cb4853f25f4200f193f0c19ca93e4c4c11a10cea52c3e5d747cce42b6dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (11 members, 73 shared lines): lib/ui/widgets.dart:4932-5086 | lib/ui/widgets.dart:5088-5291 | lib/ui/widgets.dart:5293-5476 | lib/ui/widgets.dart:5478-5661 | lib/ui/widgets.dart:5663-5861 | lib/ui/widgets.dart:5863-6031 | lib/ui/widgets.dart:6033-6196 | lib/ui/widgets.dart:6218-6381 | lib/ui/widgets.dart:6696-6879 | lib/ui/widgets.dart:6881-7046 | lib/ui/widgets.dart:7048-7218 \u2014 These 11 members are variants of one another: a block of 73 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 11 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4932}}}],"partialFingerprints":{"codehealthFindingId/v1":"85659f9e6037c6c0acd79e51b0b3956126730fa5d602ce17c8b540897e887859"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (62 shared lines): lib/ui/settings.dart:404-525 | lib/ui/settings.dart:746-986 \u2014 These two members are variants of one another: 62 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ab23ee3953ace5450832cef2d7ae35d611744d95a3e1b0e2c442be4ccba67f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (40 shared lines): lib/ui/widgets.dart:11249-11419 | lib/ui/widgets.dart:11500-11606 \u2014 These two members are variants of one another: 40 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11249}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a74a861754ae72a60da162fa82c5bf943a569ad3bfac5ac0ccfa3474bc9cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/ui/home.dart:292-1837 | lib/ui/project_screen.dart:137-275 | lib/ui/project_screen.dart:362-753 | lib/ui/widgets.dart:7956-8072 | lib/ui/widgets.dart:8074-8220 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ee26fb4d3acbcc850f6b9cbe7c28cef9ef78bc299f03fe524f8c7ce3e3f6bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/widgets.dart:1163-1176 | lib/ui/widgets.dart:1186-1199 | lib/ui/widgets.dart:9563-9576 | lib/ui/widgets.dart:9586-9599 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a1b0acf3c0bb884868946ff5a9eabc60126b1b1431d47a098774a65f14d232"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/widgets.dart:10974-11101 | lib/utils/ai.dart:256-338 | lib/utils/ai.dart:543-673 | lib/utils/copilot_chat.dart:565-1216 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10974}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd8eb59d1bb7e60741c5a4b44802728b0520f2ada93a45e8d6ee1c6519d762c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (95 corresponding lines): lib/ui/widgets.dart:1228-1352 | lib/ui/widgets.dart:9615-9709 \u2014 These two members are one piece of code written twice and then edited apart: 95 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdfcd271d798e66e31fe7f36a79b694c1844e0732dc01e4c2e34c6d0eace554"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (99 corresponding lines): lib/ui/file_manager.dart:227-325 | lib/ui/file_manager.dart:866-979 \u2014 These two members are one piece of code written twice and then edited apart: 99 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d86ce8b56054f47d980b8c454be477ab60ff7785dc5d29c86a42291dadf5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (95 corresponding lines): lib/ui/widgets.dart:2954-3051 | lib/ui/widgets.dart:3074-3168 \u2014 These two members are one piece of code written twice and then edited apart: 95 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2954}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbcc2218da2d8a9299e37c441741d1e24ba59da442ff2a08b2f5c225c84aec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): lib/ui/widgets.dart:6383-6470 | lib/ui/widgets.dart:6472-6550 \u2014 These two members are one piece of code written twice and then edited apart: 79 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":6383}}}],"partialFingerprints":{"codehealthFindingId/v1":"06998f1950c5633834564f267e816b1e83952b3102cb42708d0e64969e1bb8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (84 corresponding lines): lib/ui/project_screen.dart:277-360 | lib/ui/widgets.dart:4534-4638 \u2014 These two members are one piece of code written twice and then edited apart: 84 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"a376985535e005e07a327974d0bfa824fb8d9cb2769e0756fd75b7a6bc732425"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 42\u002B corresponding lines): lib/ui/project_screen.dart:89-135 | lib/ui/settings.dart:291-333 | lib/ui/settings.dart:335-376 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 42 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57e6b306d0d6fddd7192bf2d43f0304ee795855e6cbb2f780e43a33fd378bb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): lib/ui/widgets.dart:4818-4854 | lib/ui/widgets.dart:4856-4892 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4818}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5379c7d2e5fa3e8e698987e671c4af384125935e6243328e2b7598a567f6202"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): lib/ui/widgets.dart:2769-2810 | lib/ui/widgets.dart:2812-2852 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2769}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad2f81a2ebfa2c8e7fa212fbb597f4e3d12058e09b4a681e58b2dd7b43654fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): lib/ui/downloads.dart:942-992 | lib/ui/downloads.dart:1104-1148 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"027ea14a06493a02bf7cdf2986218b77b8c923807d252d3d11afccf6f7303b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): lib/ui/widgets.dart:488-521 | lib/ui/widgets.dart:523-552 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2256c2d34383939a136954bd2e7b0c9379bc195849420af2f8b77ce5e19621"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lib/utils/agentic_tools.dart:408-433 | lib/utils/agentic_tools.dart:1324-1355 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"7114e5a0ec37b2161ee8668be81de0037adfb212f9e6cb3b899abe28c6b94e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/ui/downloads.dart:1281-1299 | lib/ui/start_screen.dart:308-328 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc858791a31a92ce0a521772099804500ead224b476a603dbeecda4ab0b4d652"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lib/utils/package_catalog.dart:269-301 | lib/utils/package_catalog.dart:303-338 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/package_catalog.dart"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ef46239277b9ac6ce15979deadee307eed173edb9f8606be1aedf2bf64db49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/ui/widgets.dart:1214-1226 | lib/ui/widgets.dart:9601-9613 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"342e3adfc6c57e5b5e7385308129b1460eedcd22960b85fa350141a06b6aa644"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/utils/functions.dart:3203-3221 | lib/utils/functions.dart:3268-3288 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":3203}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d81a40cbc55f71431f706beb0383a90c53d4083ffdb8d7737568e9d7041b72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/ui/file_manager.dart:444-457 | lib/ui/file_manager.dart:459-475 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9fe35244a71c6da138d221d13726d1e6a99c64d9a7cf163ab112c1e1e2f247d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/ui/github_page.dart:58-79 | lib/ui/github_page.dart:81-102 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/github_page.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9061b43e05550b4f847720761735d9a0d9c87788c816fbc13f0199b19e0de8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/ui/widgets.dart:10569-10581 | lib/ui/widgets.dart:10583-10602 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10569}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f598f5fe3a39e075482a1d70fb57fab7811246f0d6c8c5272955e73a5dca9f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/utils/agentic_tools.dart:1184-1207 | lib/utils/agentic_tools.dart:1209-1236 \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/utils/agentic_tools.dart"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84ea6dca739e167d3e8141fe2de9e604770bbed0c220c80a11180ab9dce8cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/ui/widgets.dart:3053-3072 | lib/ui/widgets.dart:3170-3189 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3053}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee223759514efd638a8419d8bbae24a3eb6bf4d0758a420ba667de6596152bbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/utils/copilot_lsp.dart:674-688 | lib/utils/copilot_lsp.dart:690-704 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_lsp.dart"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"31105aad80133636c6fc28db8d7a0a1e1fefe56353006cf7a454e9c297e09474"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/utils/ai.dart:237-254 | lib/utils/ai.dart:340-356 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd77a181fdc551bb653a8235e3bcb667fa4dbefeb1bf8f0cf88eac4cde355b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/ui/editor_page.dart:339-359 | lib/ui/settings.dart:171-187 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d432b8367d6a3fe8017070d5765c70c2c1ad8ac243af58683f5a857f2758d77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/ui/widgets.dart:8222-8246 | lib/ui/widgets.dart:8248-8268 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8222}}}],"partialFingerprints":{"codehealthFindingId/v1":"209cc2792a9dc369288dc82b87ab88568d37a9ca360822d331424cf773c189ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): lib/ui/widgets.dart:6198-6214 | lib/ui/widgets.dart:7658-7668 | lib/ui/widgets.dart:7670-7680 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":6198}}}],"partialFingerprints":{"codehealthFindingId/v1":"32af6fbc768f3cf61f7ed34e11b1b80333e0ef52121169d41fa3674c8265b886"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): lib/bloc/ui_bloc/ui_bloc.dart:1562-1570 | lib/bloc/ui_bloc/ui_bloc.dart:1572-1584 | lib/bloc/ui_bloc/ui_bloc.dart:1586-1594 | lib/bloc/ui_bloc/ui_bloc.dart:1630-1638 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"543795f69a965279b67b8bb6cc70e79af8a5b85cb576562eb574b3bb30995f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/utils/copilot_lsp.dart:525-544 | lib/utils/copilot_lsp.dart:546-567 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_lsp.dart"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e92b724f633691a2b089afdc07be8aaab162145eab9678249203102fe7a1c8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/ui/editor_page.dart:754-770 | lib/ui/widgets.dart:1201-1212 \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/ui/editor_page.dart"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"c032f8a2e82cb1911d2f82d9752433463633252a3d659a6a5eef6b04e08a8b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/ui/widgets.dart:1142-1151 | lib/ui/widgets.dart:9539-9553 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ba4fc604905128ba17f4fb2ce0a6c0c90afa77d4ba8223b107ffdf2d1ceb5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): android/app/src/main/kotlin/com/roxum/MainActivity.kt:525-538 | android/app/src/main/kotlin/com/roxum/MainActivity.kt:696-709 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cd4354819df81d303b0dde5e2dc06d52f1830aabe3ded04affb61b9cc041c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/ui/downloads.dart:1032-1045 | lib/ui/downloads.dart:1188-1205 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdbc3bd4fa0ca7b6fc7ca23acf58c6fff0f5fd1243c93e6c990ec49198a069e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/bloc/repo_bloc/repo_bloc.dart:328-343 | lib/ui/github_page.dart:888-903 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/repo_bloc/repo_bloc.dart"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa95488a470e4e70ec6b5c01d3b9bb13d591b6769fd621b1b7dbbaca7f8594b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/utils/functions.dart:2296-2307 | lib/utils/functions.dart:2338-2357 \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/utils/functions.dart"},"region":{"startLine":2296}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd9344483d5c4cfacec5ea3cbc333886259a3312a8355fb757ead1c14397d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): lib/ui/widgets.dart:1153-1161 | lib/ui/widgets.dart:1178-1184 | lib/ui/widgets.dart:9555-9561 | lib/ui/widgets.dart:9578-9584 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a87e135bb5ccf520fda6466b5550e526f37dcc471f808ab12f424fc026f3a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/utils/copilot_lsp.dart:767-784 | lib/utils/copilot_lsp.dart:786-801 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_lsp.dart"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf3dd786a4c798b825f01f1a457c18d1c0102a308d05112b608ece964c46e10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/ui/widgets.dart:10668-10671 | lib/utils/copilot_chat.dart:454-457 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10668}}}],"partialFingerprints":{"codehealthFindingId/v1":"7966417e5fe41603cbc5c5a4f03b527b5d68e2dd8e6df0253d5da83b33a26bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/ui/widgets.dart:10604-10607 | lib/utils/copilot_chat.dart:469-472 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10604}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b01eca0f654de95ccb2bb4d02d53097cd76482c6dfdfb7c79e25d066495b537"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/ui/contribute.dart:13-18 | lib/ui/donation_page.dart:13-18 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/contribute.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacc90ac89ab87a75a13b3a3fef4ef5deaaceaf1cc8298c48ac7e2220bc8b87b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 2): lib/ui/editor_page.dart:772-837 | lib/ui/widgets.dart:3357-3422 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26bafc69437ea64c473e5fe3d1c66289e288407490a50f7f5b4152a7c58ffc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64\u201365 lines \u00D7 2): lib/ui/widgets.dart:2957-3021 | lib/ui/widgets.dart:3075-3138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:2957\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060context\u0060 to \u0060BuildContext\u0060 in one and \u0060context\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/ui/widgets.dart"},"region":{"startLine":2957}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f4fa4c24b63c885cbfba8be0c3ecb7706ee9525b3d6456119aa360cb6fcf35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62\u201364 lines \u00D7 2): lib/ui/settings.dart:1349-1412 | lib/ui/settings.dart:5268-5329 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:1349\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"26982c6d8ebfec8d89e41cc50d83643c68612c0893b68c1380049bbfc3269b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62\u201363 lines \u00D7 2): lib/ui/downloads.dart:1513-1575 | lib/ui/downloads.dart:1807-1868 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/downloads.dart:1513\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ac5241192b946e5d06a4bf422cff4a2c1836e01f8b41243af41819bd39cfe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 3): lib/ui/editor_page.dart:375-413 | lib/ui/editor_page.dart:2249-2287 | lib/ui/home.dart:1770-1808 \u2014 before extracting anything, compare \u0060lib/ui/editor_page.dart\u0060 and \u0060lib/ui/home.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:375\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fd7c761364bfaa87a536f2d08f65aad8c9c46409dc090480f4f73d21ab0c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201339 lines \u00D7 2): lib/ui/settings.dart:1616-1653 | lib/ui/settings.dart:3660-3698 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:1616\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"4008f7a690deb58f5697d45b9f1c4d8897edfec0e9418bbefb8bf6afd6e37bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): lib/ui/widgets.dart:10629-10666 | lib/utils/copilot_chat.dart:494-531 \u2014 before extracting anything, compare \u0060lib/ui/widgets.dart\u0060 and \u0060lib/utils/copilot_chat.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10629}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f992aaf8a3e71736f00d99b8eb4198c6e1a9c67d7ac8888a6d32c2715235c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 2): lib/ui/downloads.dart:1458-1494 | lib/ui/downloads.dart:1745-1779 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/downloads.dart:1458\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36c385ef786092026bcb72af22e9e007868545912c3b362b0949899390e5523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): lib/ui/downloads.dart:1653-1686 | lib/ui/downloads.dart:1937-1969 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/downloads.dart:1653\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"5119db0bcbedbd97e3b9449b37c13f993253064bbe7763570ef4ca57029c6ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 8): lib/ui/widgets.dart:5150-5182 | lib/ui/widgets.dart:5364-5396 | lib/ui/widgets.dart:5549-5581 | lib/ui/widgets.dart:5722-5754 | lib/ui/widgets.dart:5925-5956 | lib/ui/widgets.dart:6094-6124 | lib/ui/widgets.dart:6943-6975 | lib/ui/widgets.dart:7110-7142 \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/ui/widgets.dart:5150\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/ui/widgets.dart:5397\u0060 calls \u0060where\u0060 and \u0060lib/ui/widgets.dart:5183\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5150}}}],"partialFingerprints":{"codehealthFindingId/v1":"779ad1a82a7858ebc1593674f73764e0f45f76e5a59e2de1406021f40995d57b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 2): lib/ui/home.dart:1027-1059 | lib/ui/home.dart:1143-1173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:1027\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"980a6c1b710a8fcda9e3e773266e94727c628097875d3ad02bbf8f197806b962"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): lib/ui/settings.dart:1121-1153 | lib/ui/settings.dart:5116-5147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:1121\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c393aae4dab7705dfbce12dd2a43d48783d1641d03dca477b2ab6bb4cdc384d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 11): lib/ui/widgets.dart:4938-4969 | lib/ui/widgets.dart:5099-5130 | lib/ui/widgets.dart:5304-5335 | lib/ui/widgets.dart:5489-5520 | lib/ui/widgets.dart:5671-5702 | lib/ui/widgets.dart:5874-5905 | lib/ui/widgets.dart:6043-6074 | lib/ui/widgets.dart:6228-6259 | lib/ui/widgets.dart:6703-6734 | lib/ui/widgets.dart:6892-6923 | lib/ui/widgets.dart:7059-7090 \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/ui/widgets.dart:4938\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4938}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e9913a84db32af491d7ce1aa339a7a1c3842644dc7ae2b4610fd8162bb7385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lib/ui/widgets.dart:3023-3051 | lib/ui/widgets.dart:3140-3168 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:3023\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3023}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9e19ebdcf96f34f1a5b3bfa40b2af71e3753311eb3d2c56eaafb0be3dd650f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 6): lib/ui/widgets.dart:4994-5020 | lib/ui/widgets.dart:5195-5221 | lib/ui/widgets.dart:5770-5796 | lib/ui/widgets.dart:6289-6315 | lib/ui/widgets.dart:6759-6784 | lib/ui/widgets.dart:6787-6813 \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/ui/widgets.dart:4994\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4994}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e852c62a7ba539fd503d1bf040f58ff4176322d17bae2bb542a0ddc80971fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/ui/donation_page.dart:111-137 | lib/ui/donation_page.dart:164-190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/donation_page.dart:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/donation_page.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ecf63eb9c40b74d4bf10696721ed046a716f7c36e2256dcf143dface08704d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/ui/downloads.dart:1594-1620 | lib/ui/downloads.dart:1888-1914 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/downloads.dart:1594\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5ed22712935b27171068129550ad8ea350bc32d3c7ce16a4f2b840fac11d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/ui/settings.dart:1155-1181 | lib/ui/settings.dart:5148-5174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:1155\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/ui/settings.dart:5174\u0060 calls \u0060circular\u0060 and \u0060lib/ui/settings.dart:1181\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/ui/settings.dart"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4ef39c6ef3f716fa1e95d3600efe803e30fa2d30d0cc35b2fa387fd4979b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/ui/widgets.dart:7992-8018 | lib/ui/widgets.dart:8110-8136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:7992\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7992}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9e5d1852c165111aa401299d1b5a8c821a7d7065dab27f111fb8b56d04fccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 4): lib/ui/settings.dart:1750-1775 | lib/ui/settings.dart:3759-3784 | lib/ui/settings.dart:4018-4043 | lib/ui/settings.dart:4332-4357 \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/ui/settings.dart:1750\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/ui/settings.dart:1776\u0060 calls \u0060pop\u0060 and \u0060lib/ui/settings.dart:4044\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/ui/settings.dart"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"e402927f65cbd87acf546c6a36259d6f1f2090c9d70e924bc27c8ec06cb40661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 3): lib/ui/widgets.dart:6406-6429 | lib/ui/widgets.dart:6494-6517 | lib/ui/widgets.dart:6624-6649 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:6406\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":6406}}}],"partialFingerprints":{"codehealthFindingId/v1":"29330488c4ed04ca109105eff5e61e5fb8a95287007379f4f8a6f24513a59a23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lib/ui/file_manager.dart:234-259 | lib/ui/file_manager.dart:870-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/file_manager.dart:234\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"30cfba1715adf55d95942244dc9169f2dc7969fcc84845b998906507f7c59ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 11): lib/ui/widgets.dart:5018-5042 | lib/ui/widgets.dart:5219-5243 | lib/ui/widgets.dart:5406-5429 | lib/ui/widgets.dart:5591-5614 | lib/ui/widgets.dart:5794-5818 | lib/ui/widgets.dart:5966-5989 | lib/ui/widgets.dart:6133-6155 | lib/ui/widgets.dart:6313-6337 | lib/ui/widgets.dart:6811-6835 | lib/ui/widgets.dart:6984-7007 | lib/ui/widgets.dart:7151-7174 \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/ui/widgets.dart:5018\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5018}}}],"partialFingerprints":{"codehealthFindingId/v1":"8762815ac087b7c2de3eab458f2e1940162ea3f828b03ff52b6997f066c0feb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): lib/ui/project_screen.dart:111-135 | lib/ui/settings.dart:309-333 | lib/ui/settings.dart:352-376 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/project_screen.dart:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c28244a689bdaa63c3305820ce284d3a4c47742412f804972247e54c7bc9427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): lib/ui/editor_page.dart:3323-3346 | lib/ui/home.dart:530-554 \u2014 before extracting anything, compare \u0060lib/ui/editor_page.dart\u0060 and \u0060lib/ui/home.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:3323\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":3323}}}],"partialFingerprints":{"codehealthFindingId/v1":"361f3c688861614a718cd7bfb81f3dfd8f2b88f107597073eb3446bf5ab72dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/ui/editor_page.dart:3377-3401 | lib/ui/home.dart:585-609 \u2014 before extracting anything, compare \u0060lib/ui/editor_page.dart\u0060 and \u0060lib/ui/home.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:3377\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":3377}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5ce83408b013d3428b5869fe0267e3e7b5d7ac440f853085484db7cab56620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/ui/home.dart:992-1016 | lib/ui/home.dart:1108-1132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:992\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"b884121faf2c929429e5a490255481ebd759b9f19171bc768f6dbe32dfe0e5e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): lib/ui/widgets.dart:8548-8572 | lib/ui/widgets.dart:8709-8732 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:8548\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8548}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f00f2014908634dc4c6dd6deea05d2fea46dd32bc3aae6e660a3254b095c06f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): lib/ui/widgets.dart:8576-8600 | lib/ui/widgets.dart:8737-8758 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:8576\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/ui/widgets.dart"},"region":{"startLine":8576}}}],"partialFingerprints":{"codehealthFindingId/v1":"80aa97a37ebb0ddd9887bfe405712c5f1ee61a178e74ec6a515339c553a80b26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): lib/utils/copilot_chat.dart:629-653 | lib/utils/copilot_chat.dart:694-716 \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/utils/copilot_chat.dart:629\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/utils/copilot_chat.dart"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"07398344a7cf9f83e2e8e0972b2f61fcd07d3379c3e0df6fdfa6d2770545eac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/ui/widgets.dart:8049-8072 | lib/ui/widgets.dart:8197-8220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:8049\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8049}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e356e995aa137d9526f7a5bd84b01292c39394ae835f95b9b645da4cb8d951"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/utils/package_catalog.dart:270-293 | lib/utils/package_catalog.dart:307-330 \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/utils/package_catalog.dart:270\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/utils/package_catalog.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3bcbee9a0673de9437bf77947eed6ad7fe3332fb604939c9dbd357d71dd9b81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): lib/ui/settings.dart:436-458 | lib/ui/settings.dart:753-775 | lib/ui/settings.dart:995-1017 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:436\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"865a04798ec6583e94f7359dff60f335a5ed7b1b09330185ea7d435f202236d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): lib/ui/settings.dart:1321-1343 | lib/ui/settings.dart:5247-5265 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:1321\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3450b5ac3988b500af07614b9422caa5718588195801ccf50febb6ac91c35b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/ui/widgets.dart:5998-6020 | lib/ui/widgets.dart:7185-7207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:5998\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5998}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d25496dc5b9261cef4147cdbe50bffc69a6075e8af2e735ff5680f6da72f04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/ui/widgets.dart:8022-8044 | lib/ui/widgets.dart:8170-8192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:8022\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8022}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10d14fe63b62c2486859d4e22723298e42746a44dd29a80d98621b091d9e9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/ui/donation_page.dart:142-163 | lib/ui/donation_page.dart:197-218 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/donation_page.dart:142\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/donation_page.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"303d25598fced2ae7fd590e9087a7384b68a108ddb35f888c7d93ec5211aab88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/ui/widgets.dart:7957-7978 | lib/ui/widgets.dart:8075-8096 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:7957\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7957}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d91c3cf1304656bd8dd14ff6712b1a62ae427fe274c3765dddb6c5956aedf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): lib/ui/widgets.dart:9138-9159 | lib/ui/widgets.dart:9242-9261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:9138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":9138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1096a30905ad0c5353fccea396565c0db313153a2aef9990441d1485d64dc01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 5): lib/ui/home.dart:761-781 | lib/ui/home.dart:979-999 | lib/ui/home.dart:1095-1115 | lib/ui/home.dart:1186-1206 | lib/ui/home.dart:1324-1344 \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/ui/home.dart:761\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc4656a2ef7c5097139874c1c7900cd9d463e21ce04a3198d09481a0ab81051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 4): lib/ui/widgets.dart:6006-6026 | lib/ui/widgets.dart:6174-6191 | lib/ui/widgets.dart:7024-7041 | lib/ui/widgets.dart:7193-7213 \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/ui/widgets.dart:6006\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":6006}}}],"partialFingerprints":{"codehealthFindingId/v1":"0650af8a27b34a7a6d5d1f3199b13f53eacb181cf2fbfa70ac3cd7e79afa0b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/ui/editor_page.dart:3419-3439 | lib/ui/home.dart:627-647 \u2014 before extracting anything, compare \u0060lib/ui/editor_page.dart\u0060 and \u0060lib/ui/home.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:3419\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":3419}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7d694a2015aed4feb19990bea556e5aa11dcfea35082cb910ee3f0d7454347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/ui/widgets.dart:5434-5454 | lib/ui/widgets.dart:5619-5639 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:5434\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5434}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e95b005eefe9d8ef3b57f3e62f4b2dc205dee60c9cf117b481a1358d9ce230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/ui/downloads.dart:1220-1239 | lib/ui/start_screen.dart:248-267 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead8d0d9a5b40dcc855d2fd666da03365bfc718b487c16bde3a5d0f492052c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/ui/downloads.dart:1695-1713 | lib/ui/downloads.dart:1979-1998 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/downloads.dart:1695\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74105a408ad2694b40ed199bdb029ccc6fbde1371d0f1528aab0430681df7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/ui/file_manager.dart:303-321 | lib/ui/file_manager.dart:960-979 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/file_manager.dart:303\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fb617d1f44eb6e22aaf3d03426a9901ed35adc5b5fef64f5e6dd30682dfe7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/ui/home.dart:834-852 | lib/ui/home.dart:1264-1283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:834\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fbb41561a00e9f014a6c4c1f454737b4e8ab51f457df9c71ab4b98c0636fdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/ui/project_screen.dart:139-158 | lib/ui/project_screen.dart:543-562 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/project_screen.dart:139\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45cf10420b319889465d7504089fd2aaeada566bc788f18a994385e53bd0724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/ui/settings.dart:2685-2704 | lib/ui/settings.dart:5633-5651 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:2685\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/ui/settings.dart"},"region":{"startLine":2685}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47467b8d374ce3753fc17672333070e1c4387ae4d63ea21b3e3f9cd7fac5ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/ui/widgets.dart:2398-2417 | lib/ui/widgets.dart:2531-2549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:2398\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2398}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc87e1a34094c4738324bcd5bb48cc841f17736a2050529493484e6e1ccf54a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/ui/widgets.dart:3775-3794 | lib/ui/widgets.dart:3826-3845 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:3775\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3775}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c444f1ce463b2dc8011f12cd1d8a765eca8dfed0e8f628af7efd15e1158a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): lib/ui/widgets.dart:9163-9182 | lib/ui/widgets.dart:9264-9281 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:9163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":9163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66475197eb95b6ea261052e4a0fa06f8a8ec12949b64b5149e864a1d5299104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/utils/agentic_tools.dart:288-307 | lib/utils/agentic_tools.dart:919-937 \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/utils/agentic_tools.dart:288\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \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/utils/agentic_tools.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0253981a3f45d16f8a2fa0c5c1a549a82c8ae9c0b459cc6fbd681a67353aafa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 14): lib/ui/widgets.dart:5000-5018 | lib/ui/widgets.dart:5163-5181 | lib/ui/widgets.dart:5201-5219 | lib/ui/widgets.dart:5377-5395 | lib/ui/widgets.dart:5562-5580 | lib/ui/widgets.dart:5735-5753 | lib/ui/widgets.dart:5776-5794 | lib/ui/widgets.dart:5938-5955 | lib/ui/widgets.dart:6107-6124 | lib/ui/widgets.dart:6295-6313 | lib/ui/widgets.dart:6765-6782 | lib/ui/widgets.dart:6793-6811 | lib/ui/widgets.dart:6956-6974 | lib/ui/widgets.dart:7123-7141 \u2014 all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:5000\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/ui/widgets.dart:5397\u0060 calls \u0060where\u0060 and \u0060lib/ui/widgets.dart:5183\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5000}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff597f60c12071a1f75fefa2d279873010d6f3bf15684094ce449994408a445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 8): lib/ui/widgets.dart:5273-5291 | lib/ui/widgets.dart:5458-5476 | lib/ui/widgets.dart:5643-5661 | lib/ui/widgets.dart:5843-5861 | lib/ui/widgets.dart:6013-6031 | lib/ui/widgets.dart:6178-6196 | lib/ui/widgets.dart:7028-7046 | lib/ui/widgets.dart:7200-7218 \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/ui/widgets.dart:5273\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18c5ebb1477ee622ad61b60dd0970fb90faccf3a195f517d1ae6960fb739f38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/ui/editor_page.dart:1684-1702 | lib/ui/home.dart:139-157 \u2014 before extracting anything, compare \u0060lib/ui/editor_page.dart\u0060 and \u0060lib/ui/home.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"602ab97242c05e175e0fe837701b768542d69b95847ef6969e959bf9c882c57b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): lib/ui/editor_page.dart:3348-3366 | lib/ui/home.dart:556-573 \u2014 before extracting anything, compare \u0060lib/ui/editor_page.dart\u0060 and \u0060lib/ui/home.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:3348\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":3348}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ceb1c8e95cdc8b76f1b5a2a4b7164a95e2e76fd3234ab3377e6480ef37b891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/ui/settings.dart:4291-4309 | lib/ui/settings.dart:4440-4458 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:4291\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":4291}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc21653a77facaff1defacdc85ac2fd99ac04723c6ae669b5199457d7d233f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/ui/settings.dart:2761-2778 | lib/ui/settings.dart:2977-2994 | lib/ui/settings.dart:3392-3409 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:2761\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":2761}}}],"partialFingerprints":{"codehealthFindingId/v1":"8560211d83321395584b1b4e2e7bb42b714252bf5ae9a004d246d19820a30aa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/ui/widgets.dart:5069-5086 | lib/ui/widgets.dart:6364-6381 | lib/ui/widgets.dart:6862-6879 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:5069\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5069}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78c286c3d1b249d3eaeea2058c3a8c677b4e1c67444d21cb52dbaa34d97b873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/ui/editor_page.dart:3207-3223 | lib/ui/editor_page.dart:3406-3423 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:3406\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":3207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e94be95f472d69f61cb8ba674ead8173c6b0a108a0271f4c151efd4affd146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/ui/settings.dart:1440-1457 | lib/ui/settings.dart:5357-5374 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:1440\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"be778034a266d175d906a1c8dd483ce870690302d43430c7e00606c57eec734d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/ui/widgets.dart:11260-11277 | lib/ui/widgets.dart:11518-11535 \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/ui/widgets.dart"},"region":{"startLine":11260}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77682e8038459c6a8322f835a50eff289755fef4430d2411068892dcc406f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): lib/ui/widgets.dart:11701-11726 | lib/ui/widgets.dart:11800-11826 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:11701\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11701}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b2d144601a779fb82eb1b177e0c6226a40dffc466d05924aabaf80f4a2f2d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/utils/agentic_tools.dart:1084-1101 | lib/utils/agentic_tools.dart:1123-1140 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"5238f145fc82ad5a92457e8c4275ac2bc08d8325a9215e9eafb8f48b25483462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/utils/copilot_chat.dart:969-986 | lib/utils/copilot_chat.dart:1071-1088 \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/utils/copilot_chat.dart:969\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_chat.dart"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca418f67d5ede05eb6d3ad9fed0aa023b79e3e939de76d70d0c86ccaf3762457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 10): lib/ui/widgets.dart:5068-5084 | lib/ui/widgets.dart:5272-5288 | lib/ui/widgets.dart:5457-5473 | lib/ui/widgets.dart:5642-5658 | lib/ui/widgets.dart:6012-6028 | lib/ui/widgets.dart:6177-6193 | lib/ui/widgets.dart:6363-6379 | lib/ui/widgets.dart:6861-6877 | lib/ui/widgets.dart:7027-7043 | lib/ui/widgets.dart:7199-7215 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:5068\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":5068}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33ccff0a3bab02c065482c0386a2dbe9b103d43a5556f35999cedcdc6398039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): lib/ui/home.dart:774-790 | lib/ui/home.dart:1199-1214 | lib/ui/project_screen.dart:149-164 | lib/ui/project_screen.dart:553-568 \u2014 before extracting anything, compare \u0060lib/ui/home.dart\u0060 and \u0060lib/ui/project_screen.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:774\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/ui/home.dart"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"787f397850deabf0836c97c367695b65dec7b5acd65d3889fc7e27d6e21adb2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): lib/ui/settings.dart:450-465 | lib/ui/settings.dart:767-783 | lib/ui/widgets.dart:7969-7984 | lib/ui/widgets.dart:8087-8102 \u2014 before extracting anything, compare \u0060lib/ui/settings.dart\u0060 and \u0060lib/ui/widgets.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:450\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a20def2bde777be873f38b5ea2e4669b037f0251756c36d98e34b4ad2bc1a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): lib/ui/widgets.dart:5254-5270 | lib/ui/widgets.dart:5439-5455 | lib/ui/widgets.dart:5624-5640 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:5254\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/ui/widgets.dart:5438\u0060 calls \u0060pop\u0060 and \u0060lib/ui/widgets.dart:5253\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/ui/widgets.dart"},"region":{"startLine":5254}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b37f35515be50d8895b94a979b7742cf721d05e7bb8cae9faa2a2fc7cea186"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/bloc/repo_bloc/repo_bloc.dart:125-141 | lib/bloc/repo_bloc/repo_bloc.dart:207-223 \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/bloc/repo_bloc/repo_bloc.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"162ef800ebfedf0c478b60d2ddc656a5983788d02219683ace516b045e550902"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/ui/settings.dart:475-491 | lib/ui/settings.dart:793-809 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:475\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f831c460c09f11ce76d276c682a46d9eaf7bd99990f1eab3e9b066073704ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/ui/widgets.dart:3056-3072 | lib/ui/widgets.dart:3173-3189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:3056\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3056}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41af9ef1d538811cc3fbfe7635cc582af0d6fce8f1e362a31d8dd51a540e1c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/ui/widgets.dart:4819-4835 | lib/ui/widgets.dart:4857-4873 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:4819\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4819}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3862a5122b9a513ed835b70e59eb47d4b30b3a66f4e016b911dcb27e11dbf73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/utils/agentic_tools.dart:238-254 | lib/utils/agentic_tools.dart:282-298 \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/utils/agentic_tools.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddf676bd1103226d472a5c82e49c71a66a8bfe2f66b047f7f92c3e1a2e8b6d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): lib/ui/widgets.dart:5825-5840 | lib/ui/widgets.dart:5995-6010 | lib/ui/widgets.dart:6346-6361 | lib/ui/widgets.dart:6844-6859 \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/ui/widgets.dart:5825\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/ui/widgets.dart:5824\u0060 calls \u0060trim\u0060 and \u0060lib/ui/widgets.dart:5994\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/ui/widgets.dart"},"region":{"startLine":5825}}}],"partialFingerprints":{"codehealthFindingId/v1":"122cf6f3e47e4bba2f994246f576d8e13abd1643e09494125eff8d86833949a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): lib/ui/widgets.dart:9140-9155 | lib/ui/widgets.dart:9165-9180 | lib/ui/widgets.dart:9243-9257 | lib/ui/widgets.dart:9265-9279 \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/ui/widgets.dart:9140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":9140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08dc01c6eee78126ec57724c31314c76da5738b15450434fedc51dba44ac0a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/ui/downloads.dart:1441-1456 | lib/ui/downloads.dart:1729-1743 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/downloads.dart:1441\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1441}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ebcbdb9608d3942b25fc96366c5232c5cdf1cd12a4cbd05395311f74a7ddeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/ui/home.dart:865-880 | lib/ui/project_screen.dart:219-233 \u2014 before extracting anything, compare \u0060lib/ui/home.dart\u0060 and \u0060lib/ui/project_screen.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:865\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7b921f15adf54fe50515c337f9a9a28854f9a0fef8553d4e308ca835a5d8aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/ui/home.dart:1488-1503 | lib/ui/home.dart:1539-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/ui/home.dart:1488\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07bc52e5d21aa63311daee5785a0810caac200625892b9a7a24163d9d45a5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/ui/settings.dart:1223-1238 | lib/ui/settings.dart:1423-1438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:1223\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"9292255e4b27c23ad46701a1c039b9d9ec901a9ba4e29658021c1e587264adee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/ui/widgets.dart:6532-6547 | lib/ui/widgets.dart:6579-6593 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:6532\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":6532}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5ec617054c01d5ce86a55ee91a389a08844a865c49e115fcade6839afbcf73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 5): lib/ui/widgets.dart:2403-2417 | lib/ui/widgets.dart:2427-2439 | lib/ui/widgets.dart:2456-2469 | lib/ui/widgets.dart:2478-2491 | lib/ui/widgets.dart:2536-2549 \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/ui/widgets.dart:2403\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/ui/widgets.dart"},"region":{"startLine":2403}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde623458997a27eea8f0f642c2474ff24ce8b1302b4c307174d0ba58d00188e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/settings.dart:498-512 | lib/ui/settings.dart:830-844 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.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/ui/settings.dart"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f4a45f063f6acb84795673a99a692969fee721f6b6d82a148b970577d46594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/ui/widgets.dart:2774-2788 | lib/ui/widgets.dart:2817-2830 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:2774\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2774}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf1564350f0a84796cf1ab303844b29a3591160be7efeb52b215ae2e1318c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/widgets.dart:4976-4990 | lib/ui/widgets.dart:6741-6755 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:4976\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4976}}}],"partialFingerprints":{"codehealthFindingId/v1":"824695ccf6e3a1acc70987fcbd63007789bb575a102cd820396c2fff26446543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/ui/widgets.dart:6388-6401 | lib/ui/widgets.dart:6475-6489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:6388\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":6388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6a3cea3c913eb1b0677a11a61742a8eb926dc0f209bfa9b89ee2371351f2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): lib/ui/widgets.dart:8619-8633 | lib/ui/widgets.dart:8774-8786 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:8619\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8619}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5c9295c66fecd5cd727c2bca99e570fda24c2a5a473f860edae663436f09b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/widgets.dart:10609-10623 | lib/utils/copilot_chat.dart:474-488 \u2014 before extracting anything, compare \u0060lib/ui/widgets.dart\u0060 and \u0060lib/utils/copilot_chat.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10609}}}],"partialFingerprints":{"codehealthFindingId/v1":"637610148994c4cff25a4c7e8bab0740542f15ee628c436bed9d26ccade9fbcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): lib/ui/widgets.dart:5827-5840 | lib/ui/widgets.dart:5997-6010 | lib/ui/widgets.dart:6348-6361 | lib/ui/widgets.dart:6846-6859 | lib/ui/widgets.dart:7184-7197 \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/ui/widgets.dart:5827\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/ui/widgets.dart:5824\u0060 calls \u0060trim\u0060 and \u0060lib/ui/widgets.dart:5994\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/ui/widgets.dart"},"region":{"startLine":5827}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1679161a759bce848c2b809111985ac173132c111cade6f5e7b138e59c7f4fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 4): lib/ui/home.dart:854-866 | lib/ui/home.dart:1286-1299 | lib/ui/widgets.dart:8017-8029 | lib/ui/widgets.dart:8165-8177 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:854\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ba3261cbebdaa9a1246bc41f5d07cf2b76069f51e77e27b42cac90f511f61d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/ui/file_manager.dart:251-264 | lib/ui/file_manager.dart:887-900 | lib/ui/settings.dart:1009-1022 \u2014 before extracting anything, compare \u0060lib/ui/file_manager.dart\u0060 and \u0060lib/ui/settings.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/file_manager.dart:251\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa738b401a06460719ddf89f03f78df7ffb91f108a52ce1f1eb682ec5a0c24b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/ui/project_screen.dart:333-346 | lib/ui/widgets.dart:4602-4615 | lib/ui/widgets.dart:4679-4692 \u2014 before extracting anything, compare \u0060lib/ui/project_screen.dart\u0060 and \u0060lib/ui/widgets.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/project_screen.dart:333\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a12b720a89668205a1261f43fdb583ac42a03691d1197b5ec794929b334a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/bloc/ui_bloc/ui_bloc.dart:849-862 | lib/bloc/ui_bloc/ui_bloc.dart:972-985 \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/bloc/ui_bloc/ui_bloc.dart:849\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/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86c3bdf85cc2625634293ca39a188e8597edfc2ed3035f56d216a0d020d0879"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/bloc/ui_bloc/ui_bloc.dart:1132-1145 | lib/utils/copilot_chat.dart:273-286 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2c3972a14371a040770e534bb5e6d467f8dc40280d9a3a6df9582a7f58de4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/downloads.dart:609-622 | lib/ui/downloads.dart:725-740 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/downloads.dart:609\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0951399fd74b45b47e6956cedabd116b2fb3c9b7a936ead530be8f65b00973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/downloads.dart:1579-1592 | lib/ui/downloads.dart:1873-1886 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/downloads.dart:1579\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"921e39aee838bf725ad33b1ff52c7d630ef8a569a5c150b07195cc2f7a9af07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): lib/ui/editor_page.dart:343-356 | lib/ui/settings.dart:174-184 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:343\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c348d3c0da711b6a869e195634c625709c9e4f47aebd57009ebd0330dbba48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/ui/home.dart:1211-1223 | lib/ui/home.dart:1352-1365 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:1211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f54a669de5b355e4523559f7bced79b614beed1e5b6576b46954a0b486d4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): lib/ui/project_screen.dart:197-223 | lib/ui/project_screen.dart:605-632 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/project_screen.dart:197\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bda86136c2bf42c8d8f0ad1530b3ef71cfe74f0c86b784e8759ee3881b9279d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/ui/settings.dart:4619-4632 | lib/ui/settings.dart:4793-4805 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:4619\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":4619}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed6a42806c3de679aec7d08c28841d6acf61534ef588494b2057f109dad362c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/ui/widgets.dart:8603-8616 | lib/ui/widgets.dart:8760-8772 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:8603\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/ui/widgets.dart"},"region":{"startLine":8603}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b3795131b6bd491581b8e01e8cd0ae223fca3b7354654869e895b74d45ecf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/widgets.dart:10801-10814 | lib/ui/widgets.dart:10874-10887 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:10801\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/ui/widgets.dart"},"region":{"startLine":10801}}}],"partialFingerprints":{"codehealthFindingId/v1":"6528f30d8ea49737d72634b3cdc0cdca8bc7f663c3d206a8e34c582711737ee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 7): lib/ui/file_manager.dart:249-261 | lib/ui/file_manager.dart:885-897 | lib/ui/settings.dart:448-460 | lib/ui/settings.dart:765-777 | lib/ui/settings.dart:1007-1019 | lib/ui/widgets.dart:7968-7979 | lib/ui/widgets.dart:8086-8097 \u2014 before extracting anything, compare \u0060lib/ui/file_manager.dart\u0060 and \u0060lib/ui/settings.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/file_manager.dart:249\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/ui/settings.dart:1005\u0060 calls \u0060Color\u0060 and \u0060lib/ui/file_manager.dart:248\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/ui/file_manager.dart"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"2997f430db5b3ad45c0381a50d360ac25781193e0f21a7ebd09aa94c03e7564b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 7): lib/ui/file_manager.dart:246-258 | lib/ui/file_manager.dart:882-894 | lib/ui/home.dart:770-781 | lib/ui/home.dart:988-999 | lib/ui/home.dart:1104-1115 | lib/ui/home.dart:1195-1206 | lib/ui/home.dart:1333-1344 \u2014 there are 7 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 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/file_manager.dart:246\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"898630d18f202ba354f9b73f211bd404fa9746e7ec7cbc65284b6c36c3212399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 6): lib/ui/home.dart:772-784 | lib/ui/home.dart:990-1002 | lib/ui/home.dart:1106-1118 | lib/ui/home.dart:1197-1209 | lib/ui/project_screen.dart:148-159 | lib/ui/project_screen.dart:552-563 \u2014 before extracting anything, compare \u0060lib/ui/home.dart\u0060 and \u0060lib/ui/project_screen.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:772\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/ui/home.dart:785\u0060 calls \u0060Row\u0060 and \u0060lib/ui/home.dart:1003\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"2987d9fbb2a975c944e86a04016e037ffa8c78bc5775af2dc75cde7610c6c9ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/ui/downloads.dart:1118-1130 | lib/ui/downloads.dart:1192-1204 | lib/ui/downloads.dart:1216-1228 \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/ui/downloads.dart"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5105e3eed2c98facb97573b1fd8bea86926ce5e59da7ce05bda8ec6b5b58b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/ui/settings.dart:3021-3033 | lib/ui/settings.dart:3137-3149 | lib/ui/settings.dart:3169-3181 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:3021\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":3021}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6072afefb2175135cbef982f0649b0c8b7732ca93f952c08dc695ac41096cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/ui/widgets.dart:11068-11080 | lib/utils/ai.dart:303-315 | lib/utils/ai.dart:618-630 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:11068\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11068}}}],"partialFingerprints":{"codehealthFindingId/v1":"91900da063af7f4b333a1d8a9d1a536d672f27805278d994fe88d14be5e61100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): lib/utils/agentic_tools.dart:942-954 | lib/utils/agentic_tools.dart:1225-1236 | lib/utils/agentic_tools.dart:1311-1322 \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/utils/agentic_tools.dart:942\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/utils/agentic_tools.dart"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"628fdf2c71a7861dba8e248565fc62e9d6f643704322ba1819e775d9970207b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/github_page.dart:401-413 | lib/ui/github_page.dart:916-928 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/github_page.dart:401\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/github_page.dart"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18663155b3ed845c4d1872639ad979932c44d94ee8071ab3c6447a09d829947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/home.dart:912-924 | lib/ui/home.dart:1423-1435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:912\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38e4622726a454ee2cd0012b6d608b835546776c1f41b109a206f004426636a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/ui/menu_screen.dart:14-26 | lib/ui/menu_screen.dart:66-77 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/menu_screen.dart:14\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/menu_screen.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"544036a307105f6ea22da15fb1fef93360d736e10df06da927efe9fbd7887f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/settings.dart:2111-2123 | lib/ui/settings.dart:2134-2146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:2111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":2111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef51cf5a8774149ee964fce6329f797517f8bcc56677ff45349cdc9338a9e614"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/settings.dart:4312-4324 | lib/ui/settings.dart:4460-4472 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:4312\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":4312}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a37d72911ef1cf60f168efbc699196576b41bc6e08cb3f975e2bc5b7e02c35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/widgets.dart:10727-10739 | lib/ui/widgets.dart:10878-10890 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:10727\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10727}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbb2134a3917fc0bf4bf6f637b699ef97eb4cadc60d498ba0a8e61fb92fd016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/utils/copilot_lsp.dart:676-688 | lib/utils/copilot_lsp.dart:692-704 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/utils/copilot_lsp.dart:676\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \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/utils/copilot_lsp.dart"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e780903c82931ccce7e63df4c2edbdc470326a54dbe1e19520423758fcecf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/utils/functions.dart:3814-3826 | lib/utils/functions.dart:3842-3854 \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/utils/functions.dart:3814\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/utils/functions.dart"},"region":{"startLine":3814}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4aa93fbc62bfe99b8c679dc88fb672b1c27bfeddc8f7d9b81f2b26015f0e096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 16): lib/ui/file_manager.dart:249-260 | lib/ui/file_manager.dart:885-896 | lib/ui/settings.dart:448-459 | lib/ui/settings.dart:765-776 | lib/ui/settings.dart:1007-1018 | lib/ui/widgets.dart:4951-4962 | lib/ui/widgets.dart:5112-5123 | lib/ui/widgets.dart:5317-5328 | lib/ui/widgets.dart:5502-5513 | lib/ui/widgets.dart:5684-5695 | lib/ui/widgets.dart:5887-5898 | lib/ui/widgets.dart:6056-6067 | lib/ui/widgets.dart:6241-6252 | lib/ui/widgets.dart:6716-6727 | lib/ui/widgets.dart:6905-6916 | lib/ui/widgets.dart:7072-7083 \u2014 before extracting anything, compare \u0060lib/ui/file_manager.dart\u0060 and \u0060lib/ui/settings.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/file_manager.dart:249\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/ui/settings.dart:1005\u0060 calls \u0060Color\u0060 and \u0060lib/ui/file_manager.dart:248\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/ui/file_manager.dart"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c517a14ae87e06cf9dd028ea28c4041429fab2b7f450ea68655b7ed0c041e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): lib/ui/settings.dart:2363-2374 | lib/ui/settings.dart:3012-3023 | lib/ui/settings.dart:3044-3055 | lib/ui/settings.dart:3128-3139 | lib/ui/settings.dart:3160-3171 | lib/ui/settings.dart:5715-5726 | lib/ui/settings.dart:5755-5766 | lib/ui/settings.dart:5891-5902 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":2363}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f86e5d001724043c817105c69d472482224e053927954ed9148b59820060e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): lib/ui/settings.dart:1330-1343 | lib/ui/settings.dart:1370-1384 | lib/ui/settings.dart:5254-5265 | lib/ui/settings.dart:5286-5300 \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/ui/settings.dart:1330\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/ui/settings.dart"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8ace5efcb4eeaa24730b28c4203d34519ffefceda120aaba1265590d0c20eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): lib/ui/settings.dart:1222-1232 | lib/ui/settings.dart:1294-1304 | lib/ui/settings.dart:1421-1432 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:1421\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/ui/settings.dart:1433\u0060 calls \u0060Name\u0060 and \u0060lib/ui/settings.dart:1305\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dab5f53af679f4a8656c99c3a9aee5aac56c9abd13d7ac281632eb2ecc59ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/ui/settings.dart:2478-2489 | lib/ui/settings.dart:2847-2858 | lib/ui/settings.dart:3263-3274 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:2478\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":2478}}}],"partialFingerprints":{"codehealthFindingId/v1":"c887b8feedaa8ee97a4d0289bf4a5270e4f1667600bce6454afd6d1644b7a1cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/ui/widgets.dart:1394-1405 | lib/ui/widgets.dart:11704-11715 | lib/ui/widgets.dart:11803-11814 \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/ui/widgets.dart"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5057a25f099b96ff0ad1d2b4d45be2b5576fca0b7de7ed1fb1c4ca3f140793c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/ui/settings.dart:3506-3517 | lib/ui/settings.dart:3536-3546 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:3506\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":3506}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3945e487b6b02209dc94868dc7ae80a06af9b6bcbffeebe706e49d7fd833b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/widgets.dart:6481-6492 | lib/ui/widgets.dart:6606-6617 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:6481\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":6481}}}],"partialFingerprints":{"codehealthFindingId/v1":"75645576eb5f13cc7c5ab25c93444e6d6879f4c3ff591106d2e422499bde8025"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/widgets.dart:8289-8300 | lib/ui/widgets.dart:9346-9357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:8289\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8289}}}],"partialFingerprints":{"codehealthFindingId/v1":"db80a7f910271e5c340814387e48e4e346bbd6593250e7f051cf50c1f8f7efa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/ui/widgets.dart:11289-11300 | lib/ui/widgets.dart:11556-11566 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:11289\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11289}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cc954041546f91c101766e59b36aa4382749f5810561d5003565ea0724285a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/utils/functions.dart:3210-3221 | lib/utils/functions.dart:3277-3288 \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/utils/functions.dart:3210\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/utils/functions.dart"},"region":{"startLine":3210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e496685d07e64c8814d3cba88564f39523425d7f2f7a5b4ed21a79d7ed70af60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): lib/ui/project_screen.dart:148-156 | lib/ui/project_screen.dart:552-560 | lib/ui/widgets.dart:7966-7976 | lib/ui/widgets.dart:8084-8094 \u2014 before extracting anything, compare \u0060lib/ui/project_screen.dart\u0060 and \u0060lib/ui/widgets.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/project_screen.dart:148\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c499e96739cb783f2171756f5637627143d8e71784be29996a6f55d9ad3449"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/ui/editor_page.dart:1994-2004 | lib/ui/editor_page.dart:2006-2016 | lib/ui/editor_page.dart:2045-2055 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:1994\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cdd423863ca30305d529485fc5ab60f0a6480d27c63dbe8b52b410492556d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/ui/github_page.dart:405-415 | lib/ui/github_page.dart:604-614 | lib/ui/github_page.dart:920-930 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/github_page.dart:405\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/github_page.dart"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3ba56f60e35bbccb92c9116971175b5d207bc59b00dcb451ee05ecc99a4222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/ui/github_page.dart:401-411 | lib/ui/github_page.dart:764-774 | lib/ui/github_page.dart:916-926 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/github_page.dart:401\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/ui/github_page.dart:412\u0060 calls \u0060Offset\u0060 and \u0060lib/ui/github_page.dart:775\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/github_page.dart"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"e083aaa0ccc575957ceba0b7348949aeb926b970f8fadffb99c9420d6aba0cb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/ui/widgets.dart:4755-4765 | lib/ui/widgets.dart:4844-4854 | lib/ui/widgets.dart:4882-4892 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:4755\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4755}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f7f0e8001d0073304f86e580edd03ea8ac9481bf92294a33e3044a57c95252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/ui/widgets.dart:8288-8298 | lib/ui/widgets.dart:8317-8327 | lib/ui/widgets.dart:9345-9355 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:8288\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f0d368c7ccf2663b48a628ff7953237f88054845cc43db736f47f9a7338ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/downloads.dart:953-963 | lib/ui/downloads.dart:1110-1120 \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/ui/downloads.dart"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a088430885707bfecf94bdf5970f910b24b9dd2642df12c415712128535b00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/ui/downloads.dart:1287-1296 | lib/ui/start_screen.dart:316-326 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/downloads.dart:1287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7ac04eae2bf935ebf9ce67d882e9a4ef825c8720ccb34e6bd23a446fa4faf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/github_page.dart:1025-1035 | lib/ui/github_page.dart:1039-1049 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/github_page.dart:1025\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/github_page.dart"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69f2c5a71b29b67e865f4e93597015a9b7208c7a55d47983303da3ceb052c6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/ui/project_screen.dart:241-251 | lib/ui/project_screen.dart:667-676 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/project_screen.dart:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"725e954a912038f84f6df6c126d6064a53a8d6b8862e03cac3ff7d82786c6ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): lib/ui/settings.dart:1311-1319 | lib/ui/settings.dart:5236-5246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1311}}}],"partialFingerprints":{"codehealthFindingId/v1":"299ce0f1666deb59ee62b384abd34a92d9e0f501cdc5a01c29e8de24213eff7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/settings.dart:2587-2597 | lib/ui/settings.dart:2901-2911 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:2587\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/ui/settings.dart:2900\u0060 calls \u0060getInstance\u0060 and \u0060lib/ui/settings.dart:2586\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/ui/settings.dart"},"region":{"startLine":2587}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb33668f459b7419fb6fefe6fcdca447bc1acd460607e4366cee866f253c6630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/settings.dart:5663-5673 | lib/ui/widgets.dart:13467-13477 \u2014 before extracting anything, compare \u0060lib/ui/settings.dart\u0060 and \u0060lib/ui/widgets.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:5663\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":5663}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9a2b4a6d70c0c8d5556a0fede548583e964b99fe53d75ef4dd563c0aa9788f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/widgets.dart:501-511 | lib/ui/widgets.dart:531-541 \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/ui/widgets.dart"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e3b33b13f3aef436edb9506880d933486e8d2f0543f4afd9bc8192d51b0a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/widgets.dart:6160-6170 | lib/ui/widgets.dart:7179-7191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:6160\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/ui/widgets.dart"},"region":{"startLine":6160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c41bad859a390ef916f4eb35776599f2ada4995fe793a74f457786c7eb56553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/ui/widgets.dart:7729-7739 | lib/ui/widgets.dart:7746-7755 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:7729\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7729}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88b54a28da4e4061a4ac41f2f5152678a85a49eee211c5fb1e1cc5a79394b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/widgets.dart:9964-9974 | lib/ui/widgets.dart:10098-10108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:9964\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":9964}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f342c5da82da4e2b04fa03dd7fbc12783ad6976df37fb1ac0c33acc17b17491"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/widgets.dart:11595-11606 | lib/ui/widgets.dart:11873-11883 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:11595\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11595}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cccd08cb62e53262eb5320250bbfa8ab3166198c4bf99f3ea5611cd1599ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): lib/utils/ai.dart:52-62 | lib/utils/ai.dart:71-79 \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/utils/ai.dart:52\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/utils/ai.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a84b36f266a397a622bd354b21e8af61866167ca43d9f19506b0c3003afaae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/utils/package_catalog.dart:388-397 | lib/utils/package_catalog.dart:405-415 \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/utils/package_catalog.dart:388\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/package_catalog.dart"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"44459f867e3329f6e49366439e0268264321e976048cf2b5dda75c5a4b576d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201310 lines \u00D7 6): lib/ui/widgets.dart:11315-11324 | lib/ui/widgets.dart:11403-11406 | lib/ui/widgets.dart:11407-11414 | lib/ui/widgets.dart:11593-11602 | lib/ui/widgets.dart:11729-11738 | lib/ui/widgets.dart:11871-11880 \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/ui/widgets.dart:11315\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/ui/widgets.dart:11415\u0060 calls \u0060close\u0060 and \u0060lib/ui/widgets.dart:11325\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/ui/widgets.dart"},"region":{"startLine":11315}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed4e389c0505fb690657d0d580c8c18b167a0881ace6fd57804b71e93fb8d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): lib/ui/project_screen.dart:241-250 | lib/ui/project_screen.dart:434-442 | lib/ui/project_screen.dart:667-676 | lib/ui/project_screen.dart:697-705 \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/ui/project_screen.dart:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c86bd8aa505736fd243d8a0f4b511bd6fe02917c95a07c4b68cc4a8b3e459d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/ui/widgets.dart:1167-1176 | lib/ui/widgets.dart:1190-1199 | lib/ui/widgets.dart:9567-9576 | lib/ui/widgets.dart:9590-9599 \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/ui/widgets.dart:1167\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ff4ffdec58ed0ac90de7bc9abab60657f1e036ff875ed4d82d41e31a44b9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/ui/home.dart:1037-1046 | lib/ui/home.dart:1153-1162 | lib/ui/project_screen.dart:485-494 \u2014 before extracting anything, compare \u0060lib/ui/home.dart\u0060 and \u0060lib/ui/project_screen.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:1037\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"985991cb9c47394e3d7345dab98bfbf69789b342a1466a1e8ed1a441f80cd349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/utils/copilot_lsp.dart:654-663 | lib/utils/copilot_lsp.dart:675-684 | lib/utils/copilot_lsp.dart:691-700 \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/utils/copilot_lsp.dart:654\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/utils/copilot_lsp.dart"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e02faff4fd27081eda0d56a8e2c1c89f224f7de047429c451e065363bc630f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): lib/ui/editor_page.dart:2837-2846 | lib/ui/editor_page.dart:2849-2856 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:2837\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":2837}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82b7226ef95fc717feabe33f2d3e02bf8b5b70b84e670fdc2c23cca373ce857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/home.dart:852-862 | lib/ui/project_screen.dart:617-626 \u2014 before extracting anything, compare \u0060lib/ui/home.dart\u0060 and \u0060lib/ui/project_screen.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:852\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4508dde9d8141ffe1af5935f285660de5b6fac1d2e9e2449512ba447bd3afc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/settings.dart:295-304 | lib/ui/settings.dart:338-347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:295\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3b58622a84cf2e07748f17b1d21db9313bd6aad4129309afcc42c7540fcc22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/widgets.dart:1684-1693 | lib/ui/widgets.dart:1760-1769 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:1684\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/ui/widgets.dart:1682\u0060 calls \u0060Tooltip\u0060 and \u0060lib/ui/widgets.dart:1759\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/ui/widgets.dart"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6f9f5bd222b295bf563bc194726769d120532375eb3eb02cc06c03653c4877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/widgets.dart:4579-4588 | lib/ui/widgets.dart:8544-8553 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:4579\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4579}}}],"partialFingerprints":{"codehealthFindingId/v1":"96aea22920776613ef3e8d917b08909862c340c1e852e1867373dfece069bc7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/widgets.dart:5993-6004 | lib/ui/widgets.dart:7011-7020 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:5993\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/ui/widgets.dart"},"region":{"startLine":5993}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de873bb45aea290043e2abac66d149f061a59b4a9e92bda027e02fdfec98eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/utils/ai.dart:115-124 | lib/utils/ai.dart:133-142 \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/utils/ai.dart:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50104b53709a01fcfecf72451e2b8eb48ad9a591a58683149537d30ce5e7bef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): lib/ui/home.dart:853-863 | lib/ui/home.dart:1285-1295 | lib/ui/project_screen.dart:209-217 | lib/ui/project_screen.dart:618-626 | lib/ui/widgets.dart:8016-8026 | lib/ui/widgets.dart:8164-8174 \u2014 before extracting anything, compare \u0060lib/ui/home.dart\u0060 and \u0060lib/ui/project_screen.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/home.dart:853\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060context\u0060 to \u0060context\u0060 in one and \u0060BuildContext\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/ui/home.dart"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43d7d32f79cee527120470e8f2e5f13ef7e7c139ba867c2ba428a21720b5ba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): lib/ui/widgets.dart:11067-11074 | lib/utils/ai.dart:302-309 | lib/utils/ai.dart:617-624 | lib/utils/copilot_chat.dart:795-803 \u2014 before extracting anything, compare \u0060lib/ui/widgets.dart\u0060 and \u0060lib/utils/copilot_chat.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:11067\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11067}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a3f588389155fb097f3c99498968237d847c96d4d612d7a0c6e638df19ca2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/ui/settings.dart:1519-1527 | lib/ui/settings.dart:5667-5675 | lib/ui/widgets.dart:13471-13479 \u2014 before extracting anything, compare \u0060lib/ui/settings.dart\u0060 and \u0060lib/ui/widgets.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:1519\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30d99ce2a2939e642880408b75595925f277cbdab86529747f44a13fa3d248a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/downloads.dart:1381-1391 | lib/ui/downloads.dart:1735-1743 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/downloads.dart:1381\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6e69f414a282f9470d850e132b6d33a33680146e70e8fa4dc3ffa5cf270e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/downloads.dart:1632-1640 | lib/ui/downloads.dart:1916-1924 \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/ui/downloads.dart"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee54815ab6b7235d0d1a25ebbef7c1d4665c841c870973ad27f504398fcb7148"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/editor_page.dart:572-580 | lib/ui/editor_page.dart:3581-3590 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:572\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"1761ec2d6ef65d1e2b2f7e640610a9be1850d9827a486dfb61fed52a6c46a94e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/widgets.dart:7451-7459 | lib/ui/widgets.dart:7466-7474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:7451\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7451}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcb7d0c8810607765f357b2a65e3cf467e2524a4c1095580f7f2a1bbe52d1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/widgets.dart:7660-7668 | lib/ui/widgets.dart:7672-7680 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:7660\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":7660}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b3a5fb2398e448bbef833ff89baa3d4df374233d400f2ae2e851fb279c18e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/widgets.dart:8642-8650 | lib/ui/widgets.dart:8894-8902 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:8642\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8642}}}],"partialFingerprints":{"codehealthFindingId/v1":"52baeebaf3ac14845e1a7cac71c70fedd903ab84d1287ea67154cabaf8d98365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/ui/widgets.dart:11296-11304 | lib/ui/widgets.dart:11382-11389 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:11296\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11296}}}],"partialFingerprints":{"codehealthFindingId/v1":"df752fea9f31cb0dc298692fbfde4684f4ec4ee627b6563ca561eda6dcf2dd06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/utils/agentic_tools.dart:1247-1255 | lib/utils/agentic_tools.dart:1347-1355 \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/utils/agentic_tools.dart:1247\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/utils/agentic_tools.dart"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cdfb8af7ba055f14db8dbf5d8ef1419722cc91b3db2ead3e2195d43d485438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/utils/copilot_chat.dart:864-872 | lib/utils/copilot_chat.dart:1065-1073 \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/utils/copilot_chat.dart:864\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/utils/copilot_chat.dart"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be512fed2580bcf790684e9e59be8b0c71f9e1e1ee1c785ca656a472929b553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): lib/ui/github_page.dart:731-737 | lib/ui/project_screen.dart:315-322 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/project_screen.dart:315\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/github_page.dart"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2e40cebdc26e1add09939ed43af02f77fc08634f9678b0c2f4ef95fd910faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/settings.dart:901-908 | lib/ui/widgets.dart:13080-13087 \u2014 before extracting anything, compare \u0060lib/ui/settings.dart\u0060 and \u0060lib/ui/widgets.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:901\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"371e0709d62252e16daa2dc01a56ad4baac6d8d9d52a8fac158493d6ddf91ff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/settings.dart:5464-5471 | lib/ui/settings.dart:5504-5512 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:5464\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":5464}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8dc2f2b9ecf3346f2c6bd2968ff930a09b96d75b1d9cd8673ee1e46d59d7f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/widgets.dart:10857-10864 | lib/utils/copilot_chat.dart:1047-1054 \u2014 before extracting anything, compare \u0060lib/ui/widgets.dart\u0060 and \u0060lib/utils/copilot_chat.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10857}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6f02c465343fd624a1cd08293bed2a56b8449b2b44314ef3497ac431205a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/ui/widgets.dart:10272-10278 | lib/ui/widgets.dart:10332-10338 | lib/ui/widgets.dart:10403-10409 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/ui/widgets.dart:10271\u0060 calls \u0060symmetric\u0060 and \u0060lib/ui/widgets.dart:10402\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/ui/widgets.dart"},"region":{"startLine":10272}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7c507f0bfe7f32107b8f4d1ee4a1de4f0f0ab086675f4963afd2ee96fbb582"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): lib/utils/ai.dart:289-295 | lib/utils/ai.dart:551-556 | lib/utils/ai.dart:607-612 \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. 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/utils/ai.dart"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e05d7575df841144107f1b23c02d91e3c4486d985c123acc2073bdbe56f421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/editor_page.dart:463-470 | lib/ui/widgets.dart:1978-1984 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:463\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b80af94aaed3b6d9e0204fac1928d6643f29e6bbaf5cbe32762d51e1870e99e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/editor_page.dart:2811-2817 | lib/ui/editor_page.dart:2912-2918 \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/ui/editor_page.dart"},"region":{"startLine":2811}}}],"partialFingerprints":{"codehealthFindingId/v1":"1659ec287207601809e522d03813af44ae84226c3f01508e27a8e253643f1074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/widgets.dart:1286-1292 | lib/ui/widgets.dart:9652-9658 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:1286\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"9964787ce1e6a61391431bc43c10de3b4f5be441f100c01f7bac51abd9c23b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): lib/ui/widgets.dart:1377-1383 | lib/ui/widgets.dart:11635-11640 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:1377\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d0ec319436ad96b65de3ad84d6b801d676c73207a0e25186a2274101244741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/widgets.dart:7890-7896 | lib/ui/widgets.dart:7936-7942 \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/ui/widgets.dart"},"region":{"startLine":7890}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8d0438351c93151ccd3f5ac51c677a92fb5cf178149319ca3a3df6f3141e64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/utils/ai.dart:259-265 | lib/utils/ai.dart:563-569 \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/utils/ai.dart:259\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/utils/ai.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6040ea6d215d58b734bbe6f632a66295d6cfa87f1a199c2a6f454726b53b3c07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/ui/widgets.dart:11260-11267 | lib/ui/widgets.dart:11518-11525 | lib/ui/widgets.dart:11654-11659 \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/ui/widgets.dart"},"region":{"startLine":11260}}}],"partialFingerprints":{"codehealthFindingId/v1":"108c92898d0b916d24b4a9aa499651acab1cb1983d542b7d118b15dc2df98936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/bloc/repo_bloc/repo_bloc.dart:67-73 | lib/bloc/repo_bloc/repo_bloc.dart:106-111 \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/bloc/repo_bloc/repo_bloc.dart:67\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/repo_bloc/repo_bloc.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"112bca38d80fa5c69b3b83996a83be34901a4c24ec17572561eb050251c7516a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/settings.dart:2584-2589 | lib/ui/settings.dart:6051-6056 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/settings.dart:2584\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc207f2db2891beadba7f5626feaa0a1a2f628a26222dc60ab19f521ef035a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/widgets.dart:1804-1809 | lib/ui/widgets.dart:1811-1818 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:1804\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060message\u0060 to \u0060\u0022zoom in\u0022\u0060 in one and \u0060\u0022zoom out\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a5628300e55b03e06d51c30605459c57c520baa99d0d6d2eb673bdb5bead39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/widgets.dart:11137-11142 | lib/ui/widgets.dart:11162-11167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:11137\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11137}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcebfe6f3dbf4923df7a8bd99af29ac96df1b5fa6b06c58aa7def355fb54b23f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/widgets.dart:11347-11353 | lib/ui/widgets.dart:11380-11385 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/widgets.dart:11347\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11347}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5986c7c9420aef8d937ee5041f8e0c20b0426c165157a3515e81459a4e19a22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): lib/ui/widgets.dart:11295-11300 | lib/ui/widgets.dart:11348-11354 | lib/ui/widgets.dart:11381-11385 | lib/ui/widgets.dart:11561-11567 \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/ui/widgets.dart:11295\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11295}}}],"partialFingerprints":{"codehealthFindingId/v1":"5109273ef62f6d4f049e960327957cc6fe75ce1aa1bb9fd060a9e9e00f430574"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/widgets.dart:13275-13281 | lib/ui/widgets.dart:13282-13288 \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/ui/widgets.dart"},"region":{"startLine":13275}}}],"partialFingerprints":{"codehealthFindingId/v1":"829c2f47c65105c517230c76d2380177db2e32f467a8e7abcf08c73cb23ad9a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/editor_page.dart:991-1004 | lib/utils/agentic_tools.dart:52-65 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7adda12e5f82b99b1a394f3af732304059c95fd06ca4a4bc990e25ead52b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/editor_page.dart:3000-3005 | lib/ui/editor_page.dart:3011-3016 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ui/editor_page.dart:3000\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":3000}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f91016a0ca2ab6550fb6968156a29614f0032b96b1eb621ace9728179e90e36"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: :app: :app: abstractness 0.00, instability 0.00, distance 1.00 \u2014 an application entry point, so it is concrete by design \u2014 the distance is expected; what is worth checking is that other projects depend on it at all, since a host should be a leaf of the graph."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"36668a5851348752699535bd5315fdbd0180d71bba78ea142a2c21cef7f40624"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CopilotBloc (LCOM4 5): CopilotBloc\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f18c981dc930e44aee196bff4bda9c490f4359a3211614eebc4e0a89071c3ed"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FlutterSwitchState (LCOM4 5): FlutterSwitchState\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":13589}}}],"partialFingerprints":{"codehealthFindingId/v1":"460b3f6ab5de05a983a5020332acca6bf83687418581cf1d96f9025e3f9a527a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OpenAI (LCOM4 5): OpenAI\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ccf34fb659d2e1bf74e832472b035188d4e539b3fb1225de714823d2d45f6c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Gemini (LCOM4 4): Gemini\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/utils/ai.dart"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b2a248ed1ea73c7c925171782207ffeb62cf079ae3d61b229a9454a4fa28f8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Claude (LCOM4 4): Claude\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/utils/ai.dart"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"345afed4258f3d74c6ae9a9689cde3171c1568fa53b5edf7e9eacf638f21bffe"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (the \u0060test\u0060 package (\u0060dart test\u0060 / \u0060flutter test\u0060)), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/editor_page.dart: lib/ui/editor_page.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 208 in _EditorPageState.build at line 1651. 4 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 14:55:24 \u002B05:30\u0027 --until=\u00272026-11-08 14:55:24 \u002B05:30\u0027 --full-history --no-merges -- lib/ui/editor_page.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b821bf9e53574525d4399443b0bbbc76eac2191e903baf3427a30bf5fd194e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/settings.dart: lib/ui/settings.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 241 in _SettingsState.build at line 2321. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 14:55:24 \u002B05:30\u0027 --until=\u00272026-11-08 14:55:24 \u002B05:30\u0027 --full-history --no-merges -- lib/ui/settings.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/settings.dart"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c22339bce6d618b3e1d07ef347ab1729d800289e0b5ccf2ca8b81d9b75a297b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/home.dart: lib/ui/home.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in _HomeState.build at line 292. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 14:55:24 \u002B05:30\u0027 --until=\u00272026-11-08 14:55:24 \u002B05:30\u0027 --full-history --no-merges -- lib/ui/home.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/home.dart"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"1172f94b0585567ec830b3f44d949514f7c7b41518022ccafd931dcce51adb18"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/downloads.dart: lib/ui/downloads.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in _DownloadManagerState._startDownload at line 375. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 14:55:24 \u002B05:30\u0027 --until=\u00272026-11-08 14:55:24 \u002B05:30\u0027 --full-history --no-merges -- lib/ui/downloads.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/downloads.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1bd7737c8ac4542a20dab87467cfeb0771b6f7e4bd86ca1b0f79075788d158"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/start_screen.dart: lib/ui/start_screen.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in _StartScreenState._initializeApp at line 90. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 14:55:24 \u002B05:30\u0027 --until=\u00272026-11-08 14:55:24 \u002B05:30\u0027 --full-history --no-merges -- lib/ui/start_screen.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/start_screen.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdb40be564c73473fb87e528bea37bea604963ed25f146761fc110718831b6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/main.dart: lib/main.dart changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is _MainAppState.build at line 89), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201C## 2.10.0 - fix: [Feature request] Add a way to clear recent files/folders Fixes #36\u201D; \u201C2.8.0: - fix: Creating a project without defining a name bugs Fixes #56 - fix: The Spanish and Chinese READMEs are no longer being updated. Fixes #52 - fix: The items in the recent projects list are not centered. Fixes #53\u201D; \u201CFIX: The navigation bar Fixes #43, FIX: Terminal session ending immediately the view was changed Fixes #20, FEATURE: A feature suggestion. Fixes #42\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-10..2026-11-08, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-10 14:55:24 \u002B05:30\u0027 --until=\u00272026-11-08 14:55:24 \u002B05:30\u0027 --full-history --no-merges -- lib/main.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d5a118feacd1707eab9ef96be09eb5f5fff546eb4afb7f084209ff04db3cdb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":3226}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b6e9fd19507cb7ee10e2efa2c4871c157271b7701ef9322ade4487d8f2829a"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060lib/main.dart\u0060 makes this repository a deployable product (line 14)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8716bba673c3075887c415d08f1c9dd48ba3b1fdb124bf3e079c529efec988ec"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (47294 LoC, 271 module-visible types across 7 directories) overshoots its size bounds. 1 of 2 build unit(s) (Gradle, pub) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9fee3010c053c10733ebad6b156234032ce361c46f8c03bb63f2bdc3c8adbd"}},{"ruleId":"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":"31e15292ee7781495cff3025f3779e23aded0d07be93120b45c65e1d6518c389"},"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":"0a25692745ad0ed3ca68036746171ef1bfebcc093c4887320630d8afff98acf8"},"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":"89d8772fe25ffd2a780911a54e0087c1c273b90b1e5e3da597ff81d83ad1c68e"},"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":"227196be2b96bb04e8c5d0007aa742ed3b4b22e7085a72eb4654e51980d86c22"},"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":"865c1256b0af6cac7fabd52ec1703a6840a81e82c2cc09619e5e78e47af02756"},"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":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"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":"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":"63778fa624412affc09bbae17ed4e235deee47c1e8fbbd49594e08c2f223c987"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","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":"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":"73514371790ad2b3777325d1d0559e4889a165db07f5b9e44fee9adb557ef0f7"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"4a2b4d8dd8bb806fa8eddaf0ede89f3e008795dc030da7d373df60d82b1310e0"},"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":"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":"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":"AX6","level":"note","message":{"text":"Fat interface: AppLocalizations (126 abstract methods): \u0060AppLocalizations\u0060 declares 126 abstract methods: \u0060appTitle\u0060, \u0060aboutRoxum\u0060, \u0060aboutDeveloper\u0060, \u0060getInTouch\u0060, \u0060versionLabel\u0060, \u0060aboutDescription\u0060, \u0060developerIntro\u0060, \u0060start\u0060, \u0060settings\u0060, \u0060contributeSourceCode\u0060, \u0060buyMeACoffee\u0060, \u0060privacyPolicy\u0060, \u0060fileManager\u0060, \u0060runtimes\u0060, \u0060appTheme\u0060, \u0060github\u0060, \u0060builtInTerminal\u0060, \u0060openFile\u0060, \u0060openFolder\u0060, \u0060openRepository\u0060, \u0060openTemplate\u0060, \u0060projects\u0060, \u0060recent\u0060, \u0060noRecentActivity\u0060, \u0060projectNotFound\u0060, \u0060fileNotFound\u0060, \u0060newFileTitle\u0060, \u0060newProject\u0060, \u0060projectTemplates\u0060, \u0060yourProjects\u0060, \u0060createNewFile\u0060, \u0060createNewProject\u0060, \u0060openExistingProject\u0060, \u0060enterRepositoryUrl\u0060, \u0060creatingProject\u0060, \u0060cloningRepository\u0060, \u0060cloningMayTakeTime\u0060, \u0060failedToOpenFile\u0060, \u0060selectedFileCouldNotBeOpened\u0060, \u0060failedToOpenFolder\u0060, and 86 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/l10n/app_localizations.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fe7ecfd7d0347f61e13639799b7efef931a53b69580a81c3951e891578014f"}},{"ruleId":"C2","level":"warning","message":{"text":"No authorization: This repository serves requests \u2014 an HTTP server (HttpServer.bind) (lib/ui/webview.dart:34) \u2014 and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/webview.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"211e8da49a8737ac50b1e2ee6f2cd3b58d63dbab650abf22caa02c4073048de2"}},{"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":"note","message":{"text":"Logging is not universal: Only 1/2 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"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 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060android/app/build.gradle.kts\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/build.gradle.kts"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc97f07cd7964b9bf62027a14dacef9476a9fd3261d3eb8f9817a5ace18ba64"}},{"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/release.yml"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060startDownload\u0060 is async and calls createSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"33cf0dc1925b766e73d4c5e43cadb8d2309d1850eda9f4f0586bff3c986cc272"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_initializeApp\u0060 is async and calls listSync, createSync, writeAsBytesSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/start_screen.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"775a6e9e77157149b51820f0d34423730c14211a34cb20d36d20294f031eadd5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_loadInstalledCatalog\u0060 is async and calls listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/package_catalog.dart"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b0b5db80893e840b959bb955b98a30de27d6c6e198458f7f7036f3cf9f21ef"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060generateContent\u0060 is async and calls createSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/proj_temps.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7ec056b78b7d1f08bee5079a14f5c3b2fe557cd78b464618e1c3b0f0141419"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: This repository runs an HTTP server that is not bound to the loopback interface alone \u2014 or binds it at an address its source does not spell out \u2014 and nothing in its Dart source secures the transport: no \u0060HttpServer.bindSecure\u0060 or \u0060securityContext:\u0060, no \u0060Strict-Transport-Security\u0060 header, no \u0060X-Forwarded-Proto\u0060 read from a TLS-terminating proxy \u2014 so its traffic may cross the network in clear text. (\u22122.0 on this card.) The server: lib/utils/functions.dart:1604 \u2014 \u0060HttpServer.bind(\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8697c7a8b4c37084f15e81b8ec84d4cf62954730be74a0816d39b2127a21fd9b"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is set on a response this repository\u0027s Dart server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: lib/utils/functions.dart:1604 \u2014 \u0060HttpServer.bind(\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!state.isEnabled || state.status != CopilotStatus.signedIn\u0060 appears character-identically in 2 files \u2014 lib/bloc/ui_bloc/ui_bloc.dart, lib/ui/widgets.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ea48e508c98976306d456303432ad6a2125d0315e59ddbe6305d010ecc700d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060copilotBloc.state.isInitialized || copilotBloc.state.status == CopilotStatus.initializing\u0060 appears character-identically in 2 files \u2014 lib/ui/editor_page.dart, lib/ui/settings.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"31772ea1f0a162bbd58dba561907c143d37dfb45e457902ae84304a340fe2522"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060functionName == null || functionName.isEmpty\u0060 appears character-identically in 3 files \u2014 lib/ui/widgets.dart, lib/utils/ai.dart, lib/utils/copilot_chat.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11058}}}],"partialFingerprints":{"codehealthFindingId/v1":"77aa659ad5e3193ec0c09f70314032870d5caf262c9346480cba4dd0ec765c35"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matchStart \u003E= targetCharOffset \u0026\u0026 matchStart \u003C= targetLineEnd\u0060 appears character-identically in 2 files \u2014 lib/ui/editor_page.dart, lib/ui/widgets.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3d10a5dd166a27a7f1e99f85f6f40c43e7f03466d92b8ff1d3c37015db43d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized.endsWith(\u0027/\u0027) \u0026\u0026 normalized.length \u003E 1\u0060 appears character-identically in 2 files \u2014 lib/bloc/ui_bloc/ui_bloc.dart, lib/utils/copilot_chat.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"70589072883f6f94bf2b75840e6bc55d76c1915ed0011d15fa81d1f23d94aaaa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060payload.isOk || payload.isAlreadySignedIn\u0060 appears character-identically in 2 files \u2014 lib/bloc/ui_bloc/ui_bloc.dart, lib/utils/copilot_lsp.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a9386395530d1910a49dd4ca80ece54a5e8f39b5f9c01d0dfb885177b0ee91"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pending == null || pending.editHunks.isEmpty\u0060 appears character-identically in 2 files \u2014 lib/ui/editor_page.dart, lib/ui/widgets.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"299f328f80326f5e05898bc2cbc472e217f7196af747bfce0f54c8263f2b18db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rawArgs is String \u0026\u0026 rawArgs.trim().isNotEmpty\u0060 appears character-identically in 3 files \u2014 lib/ui/widgets.dart, lib/utils/ai.dart, lib/utils/copilot_chat.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11067}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef1a690ef0f7cee927b2d2269e02e58f9c4cb28ee3aa418470257d8489d9c28"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rawEntry is Map \u0026\u0026 rawEntry[\u0027type\u0027] is String \u0026\u0026 rawEntry[\u0027path\u0027] is String\u0060 appears character-identically in 3 files \u2014 lib/ui/editor_page.dart, lib/ui/home.dart, lib/utils/functions.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5608811f85acfbd06d2dfc649f28dfb3a091d028d75e86e1339c9328bae079e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060termuxInfo != null \u0026\u0026 termuxInfo!.isConnected\u0060 appears character-identically in 2 files \u2014 lib/terminal/terminal.dart, lib/ui/editor_page.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal.dart"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5930746af0ba2285dbbfe4660515b6d5caed000118ef88018ba6259d1ed356c"}},{"ruleId":"X13","level":"warning","message":{"text":"Redirected process stream is never drained (deadlock): \u0060Process.start\u0060 always pipes both \u0060stdout\u0060 and \u0060stderr\u0060, and here \u0060process.stderr\u0060 is read while the child\u0027s end is awaited \u2014 but nothing in this scope ever reads \u0060process.stdout\u0060. Dart reads a process stream only while something listens to it, and the API\u0027s own documentation says every byte of both must be read: once the child writes more than the pipe holds to stdout (measured with Dart 3.12 on Linux: 60 KB hangs every time, and less on a box short of pipe pages), it blocks on the write, never exits, and the \u0060exitCode\u0060 or end of stream this code awaits never comes. Nothing fails loudly: the future never completes and the stuck child holds its resources until something kills it. Consume both streams (\u0060process.stdout.drain\u003Cvoid\u003E()\u0060 to discard it, or listen to it), use \u0060Process.run\u0060, which collects both, or start it with \u0060mode: ProcessStartMode.inheritStdio\u0060 when the output is not wanted."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b284926a993d9f95b15ea508fa14b1381cf062e56f3f582fc72dd6242131f9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"953015bd178e74f832d5d015e09a1a463a36bc9b8d89e703f89e6212920a0426"}},{"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/utils/agentic_tools.dart"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7326493e12a3c22fcb15d951bc8f562a9b6ac3edadf608a304300ad8f1b63e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24b6836f656abac6c03c5188c7422931172b2a56570b924a5bd1d5f0ad75feb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/agentic_tools.dart"},"region":{"startLine":1731}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6881ac10e5888e2031aa74d109fc675b2cf7d2afbbac2a7abf4c6e2af3e1b3"}},{"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/utils/ai.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"605fd48ca60b33393ce3d346bd27891f924a2e791de2a2d738017dbfe3e2d353"}},{"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/utils/ai.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a80ba1ea48926bcd7ccee5b7c7ff6db68e373d69924d290d1b0b80a91b7f8e"}},{"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/utils/ai.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7ebb773bbadb6c88ced7a203e5d382603567610e9689d07a2d986a77cbadcd"}},{"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/utils/ai.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e40abc9d3b67d6a3c90d2f732b50130005493565c259a25f707e316087d95b"}},{"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/utils/ai.dart"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b7efd7eece038cd4cd846b5956a58c459b94000e266060f5530780def5493b"}},{"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/utils/ai.dart"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c1735fea1335e14f99f4a5507f4c7bf3d9b0715d791772db73d66693a4bfc0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99e8f5961587f56a188835dc3fda3513e67f1bca205210709aed6842139f691"}},{"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/utils/ai.dart"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac65abc083ce8c2d9f42b226b2fd349c70575683c9b96e82e1362acc2ef5bad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e608fa1c53722682af1191a3dc2dc0be501d4d82c4e46ce355c9c0623865eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_chat.dart"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3e725f6cbc5363fd40fbd970e1904cc9acf6e41c528b3a4058f62afa2cfe6d"}},{"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/utils/copilot_chat.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a12112ca198f1e9a7e9267ed66283ad38e7334f6b6a31b0f280be8eed94b97"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_chat.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f50801678cd39d39589c62ce70a6c84c685413b0d6c6d42fb3dd7016c700f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_chat.dart"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c9fde09ccb94fb0b78431f707ac2b71aa3ab7eb10824eb0e1d0f85fb0e3fcc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_chat.dart"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0106f8a7ab43f7ac82955e1742f90f04dba4650ee56795b5fddd5f9c7329a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/copilot_chat.dart"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"4902443cfda2ca19070b0ef9d8d747d0e0d5171c40136345c77f28341dfdf94c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef48a17d7b76fc0e9cd97bf23c9cc614d114aa9109cf5fe0786032f7fb3f8a84"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"2689e0d9ba4afe38484b5e1d1ea7d470b1907201af9195ea4f61ee6edfd5b91c"}},{"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/utils/functions.dart"},"region":{"startLine":3026}}}],"partialFingerprints":{"codehealthFindingId/v1":"6917178c6f2ac1c859d96d68a255bb932e055cf0d048fcd2d17a9c4a5f06a5a8"}},{"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/utils/functions.dart"},"region":{"startLine":3041}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03e1af37205f737a116f781028e7704561819730d9df4f1b7d80bf22ca7534b"}},{"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/utils/functions.dart"},"region":{"startLine":3634}}}],"partialFingerprints":{"codehealthFindingId/v1":"841eb3c10e20a7609a2570435f3a93d55a6561b0273395a8f97fac4819c5cd51"}},{"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/utils/functions.dart"},"region":{"startLine":3690}}}],"partialFingerprints":{"codehealthFindingId/v1":"1791d4814467c5b19cb1afdc98efe995aeb6e1caf1c1bdb6e2f2916627ae5dfd"}},{"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/utils/functions.dart"},"region":{"startLine":3722}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4259fd4e7ae718536ff101af7b617814d3640f1cc1084fa40b9d39f2591741"}},{"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/utils/functions.dart"},"region":{"startLine":3763}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af0f92ccde7fa4b12dbae89157e648f8c6726f6646fa4f0bd75fa799810e9ce"}},{"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/utils/functions.dart"},"region":{"startLine":3808}}}],"partialFingerprints":{"codehealthFindingId/v1":"787263789b3c9c6dbeebb6b6b5c24eb0c525c6f5ac1fe0adee672a7a7b703082"}},{"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/utils/functions.dart"},"region":{"startLine":3827}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed10b6b065a39cf3c6cf500b2598bfb8c224859f140d8a1f292d99d61a20a72e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":3855}}}],"partialFingerprints":{"codehealthFindingId/v1":"38773cd711e3935d86d66ce1e567ff4e3532e27e88e6681c134efdf789d9b71b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee73b1bc4bafc63cfc9e96c671242e1eb0490b078f2ab9838df5a2cd467256b"}},{"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/ui/editor_page.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadb38868a37d28c5d33ed60fec1720a5c40aa7c101f84c39fddbb6e91a957cb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9402e637e7dc0157eb22b3d57b4210aa8a09629f3754a9dc3cee2d2475734b8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5961fcd10319ee48b5e0ddf8d7ff086b4316f21dc006a10646fa5460d029a9d"}},{"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/ui/editor_page.dart"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"75daca74ccd20cb8b2a90e001db264268d5b666e3723f1eb880a7790acc60c11"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/editor_page.dart"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c216d048a9190a706ccab7882bac9a00121b6333200acfc392bea3f9695092b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ec1e09c8cb2bc4d572acdf1e0dfc4cbbbc1f9b14e1b7c1dcb221d74d432711"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a662223a2ed970096b22f866ee5f6944ac57fba79735b9387abffbcde95a51b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4fe3ea3e91f02631ba335c2e0f38ed1821b644ac19ab14c07f726e0959301f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/file_manager.dart"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a916b3835d466dce89cc9215b87015584f839b5dccbf2d6a1e68ab32d9eef1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ac6cd81b2c936faedd3dae62ca2cdb83864344cc4ecdc45b4968d7be4b60d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/start_screen.dart"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de616061edec85848f3b0821744d03953eb4b4febfc04ce0e32f45471917fea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/start_screen.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"474676a51f54fcc5fb9968b6b4eab555f367aa16f2619dc0fb2dc37ca72cb392"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8c55335294b09b2c398a1491f6ff0e7d9edb220a16d76d38cd97f390680f96"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bca79b0557957697d42f5426543cfd4115b0023ebca57cb6f13365fdad5aaf9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0b7b374ffb98ab6d999fd7d6ab15278dd8caf32d46b5dd8f07a05c2c7bbf9a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8385932a2595c3d739161295abca6882a018b43ae7b2689746e2be48ba95fa7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"f154a3eefef97f1cba15b2df41ba800a74d104adcfd877b123405fbff4c0c1ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9bdaf88db19d59be730df8e6629b1b3e663e4cc18d1563ddc48f58d69340b3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"868eaeb296e99d70ed39b5a245879bbb885867defbcb2e5aa0ab6a20a547df3e"}},{"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/ui/widgets.dart"},"region":{"startLine":1923}}}],"partialFingerprints":{"codehealthFindingId/v1":"9163117933a235e3859a4c44f54d6639b50418f455192547b5f4b45410a09043"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd57194ef420cf8b4599cca62e15fb9d40abff7293876074267e7af1ea9b5e5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cd86c35f9650690abf2602a3b94e68d466d7210c9f3f96c69be2bfc58425fd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2337}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d3e8c318882cc2fa013c83d65d43ee3d0dde5437ed7d86418f382d04ad7b6c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"5970fa52ddac68b241a1cda948e8e899598a90569a18ccfb310804985b634263"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":2950}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecd08018f53b57243457e6e7cdaa992e1de38a77f8475a5b567dee56fb67d59"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3060}}}],"partialFingerprints":{"codehealthFindingId/v1":"d922d48e3c3e2d9a10332a7f5c4ed8d75ed7f94fe97576f71d84ae0cc6ed248c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3177}}}],"partialFingerprints":{"codehealthFindingId/v1":"25aaf1efb7ec777466adb54cb8b99393294a68cde6642c704ac4713f40d76ccf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3478}}}],"partialFingerprints":{"codehealthFindingId/v1":"42cb9ef6f5678901e25badcf8ffbef856ff5b659f3d2b110f5df581a95251e7a"}},{"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/ui/widgets.dart"},"region":{"startLine":3500}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfec874eaf25c14a5250f31631c385809947e6422d22136c88d0639464e9675"}},{"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/ui/widgets.dart"},"region":{"startLine":3542}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b03302d84a068b971b861f261df58a9287c2ed8b3c935355aad3d37f4e2704"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":3566}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fe74246f6faa813fd5b72e39f2e65f02c09a27dc79715317597a19eac3e8c7"}},{"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/ui/widgets.dart"},"region":{"startLine":4046}}}],"partialFingerprints":{"codehealthFindingId/v1":"6919ec64abdb0f29bea86aed4e3462ab518c2bc28ae1d6c81de7c588eabcbcb0"}},{"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/ui/widgets.dart"},"region":{"startLine":4271}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ba78ace706501d9bcc902be22903cd7c0c057e2bc91a03fe7b7faae9351eff"}},{"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/ui/widgets.dart"},"region":{"startLine":4415}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d4abd54f415284ea6f58356de5ba41dab191ed988489ee53cdf9bfc22e2e3a"}},{"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/ui/widgets.dart"},"region":{"startLine":4434}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bd314762737b95bd9b1ef3875f0b7331ad9da56ea23f6e9dba84d1a23ac2e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":4529}}}],"partialFingerprints":{"codehealthFindingId/v1":"49106a0bceaa9084b1c088ccd172d4de28b8c54608501ddcbb876a715c8bb47c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8518}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b44ae11b1a18a449188618c30e5c32813a4eba709fc6d9374f011ec42db09d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8645}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c73c38e1e3e8a9fef4d30cee25f5d528aea34be3771372e6f6c0f5c708b41ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8685}}}],"partialFingerprints":{"codehealthFindingId/v1":"c213d7f0e4e4231a84f401aeca37fadd6a67dd222dbd825c858c69f253bccc5e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8848}}}],"partialFingerprints":{"codehealthFindingId/v1":"217e716e753f3b4288883a723219959ef4f51216fde6ccfc6decdd256820127c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":8897}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c69b332eda6373f23837d207ef48839ac6c819e859ce64650402b784a2fc86"}},{"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/ui/widgets.dart"},"region":{"startLine":10199}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a19a48aff4446a2b41d6b9845b8519765b1bf929d3dd3d3907e871bc0ee8700"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":10534}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a3fc942bcd8517089e913825476c47a4ee06425e4c24afeaac20ea04bb084c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11075}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8649772fd7f1d206be74c8917d44724eb4ad87a073d9b65e0f354ad9a57e02"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3b4ae170daa4045742151ac3632a9436b25a309dd0a24ed1cfaad45d9a07e3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9012364010bd6d8a0f55d00dffe846ae666652ce84bdceace30e212613967d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11170}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c0fdf7c4679eaad5aef8f9cfb79901a4f71781dd5a48a8bf0cf1cc5e5a2980"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11496}}}],"partialFingerprints":{"codehealthFindingId/v1":"519071a7284443829c5f75bf03637e8c0a998c2e162cf4013e87f5ccdc4d01a8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11903}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b5cd52555d3c13b00f9149827d0e8b54d0b5f1f4b7deeb2a4879b725bf9820"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11905}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d0a8ce8a6e4d293d18dac935235c722cdcddd98250d85689aeefbd561aa50f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":13485}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a068c8c054b5e62c4bcba2cd6e22f29e6bc70d1ee5a889d3e5e3c0b3c586410"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e23765f0bbc58554d41fb8eb467ad7db3bd27ce5faf1bde7f80b8cce8fc6b8a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal.dart"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4f95a8a0872cb5270a7ff24cd9eb0e83cf616fd9cfc6defbdbb3af6847b347"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb95ee906b3acde0af44c4ba461cc261066daed1814866e13ad810b7ee0dc2c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal.dart"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2b2ac4239bd35a8dc5aa8cc4a599d7dd00fbe74c607fd79fe6e1b63a200106"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal.dart"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b749d2d0791ed359baabeaf7c027105d37d016c1de866b10c909f9750d8c8e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d342db36bb5220b392a5fa270ab80c54903299ee7ad0537f27e8d237ee84cc3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad7e75ebb19035a9b635ca69cb06d3267a94c6f816f03366ec4c93ba22b5570"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"3237f952d1c2aa1fc27c8f539448cd74ca52bcf186b2207cadbedcff98f9e405"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d85d7f61aad0a773594781fe01cd7b61c0d90096e6bdf465a1a62a723fc026"}},{"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/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1dead22bca76205f717d93a7b088557760bc64835460978cabd94c9f7fa10d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f3b4b6dfd799b8b7697b92e125309927f7cdc8b861d3d168f814c691125b2a"}},{"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/bloc/ui_bloc/ui_bloc.dart"},"region":{"startLine":1625}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74a9ca47dedb7e3db7f9d9c9bfb98ee18db704e8ad6990c617100e391cfc7ed"}},{"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/bloc/repo_bloc/repo_bloc.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3221f509582cead5c71e45867ede0d8612992909af6a6675f7771532f9a5f45a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/repo_bloc/repo_bloc.dart"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bc212f4a6d710ff4231f52a9b730fcc4d48b492c4e6fda0cb8e64df1616539"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bloc/repo_bloc/repo_bloc.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acead33ba2ec171a6a472ed94e2ea49b0f2a23e6df980fc0332870b4475d49c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\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":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfff6444e484fe09d96992c012bf3ad48e9107e091cf21719cae629c4522ecb3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\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":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"239206aaea35f7d9fbf7cbbc496c4fb8e51dd807f9556443818c49bd43f860ca"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\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":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f63522e7bc6f9a821d5f20c6bfd745354ce3ab126d7a8f3a0b64f3760ff9976"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c56cd7a01100a6e8d0d7c9a23edc4ad36b70f9d3ed8c9d78fe0d91309b6c1f9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\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":"android/app/src/main/kotlin/com/roxum/MainActivity.kt"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"7987ea42f7dbcbe24b0a8fdb07493d96caeeec6118b7d9ef0e2adc59bcb4b485"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Dart code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/widgets.dart"},"region":{"startLine":11889}}}],"partialFingerprints":{"codehealthFindingId/v1":"935e08ea9bd91d8049c707b52a3844a16b199b65c284e76a4cb07150c6c50dc1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_getExistingProjects\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/project_screen.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"94992f3d2fa3fb08773efb45c6919a086ef6e8830c5527960768b79916cefa9a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseChatMessage\u0060 turns every thrown error into \u0060\u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2fb22238a475af517a290e11b396eef67e635c6f45ea12121322e399be598b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseToolCalls\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/ai.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"26761ada787343becf26cdf515d3de3f02419a4b337ec3928e26e3329b22a6a9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_decodePrefs\u0060 turns every thrown error into \u0060{}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/functions.dart"},"region":{"startLine":3026}}}],"partialFingerprints":{"codehealthFindingId/v1":"95effc0fa0798d7137a48971279cae3ddd769672bd4bfb40fd41197437b306f4"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.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-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"Improper Export of Android Application Components","shortDescription":{"text":"Improper Export of Android Application Components"},"helpUri":"https://cwe.mitre.org/data/definitions/926.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-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-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":13,"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."]}]}