{"$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":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"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":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"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":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"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":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"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":"MathServer.onToolCall (cyclomatic 82): MathServer.onToolCall has cyclomatic complexity 82 (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/mcp/inmemory_server/math.dart"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"398b5e36cb8474702436f897d43e6b6325ac3c5ca58862b026d432e58c12de9a"}},{"ruleId":"D1","level":"warning","message":{"text":"_McpServerState._showEditDialog (cyclomatic 48): _McpServerState._showEditDialog has cyclomatic complexity 48 (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/page/setting/mcp_server.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80370e8d2e6bb7ba1f72ae23684619d6746ca8749ac593ac051388d467278e5"}},{"ruleId":"D1","level":"warning","message":{"text":"_McpServerState._buildServerCard (cyclomatic 29): _McpServerState._buildServerCard 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/page/setting/mcp_server.dart"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"6025df653c56675197903365a4b861b8c2ebd90c3477ca78e5bd6862689aff92"}},{"ruleId":"D1","level":"warning","message":{"text":"_KeysSettingsState._buildProviderConfigForm (cyclomatic 27): _KeysSettingsState._buildProviderConfigForm has cyclomatic complexity 27 (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/page/setting/llm_setting.dart"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"755f6fccce8fef819053122f975315c69ec171b2da4da5567e87956eecb19d72"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepSeekClient.chatStreamCompletion (cyclomatic 26): DeepSeekClient.chatStreamCompletion has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/deepseek_client.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bb34ccf19c69da36d76a103a42f37b4916e8d92751c59bdca55a2ed24177f3"}},{"ruleId":"D1","level":"warning","message":{"text":"WebOAuthHandler._waitForCallback (cyclomatic 24): WebOAuthHandler._waitForCallback has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/oauth_web.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"991e85ac6e79a7bede9347ec3c60d05075a70b206ff8ddb82e7a37cd58e1776b"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamableClient._handleSseStream (cyclomatic 23): StreamableClient._handleSseStream 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/mcp/streamable/streamable_client.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4156074aeae5d5dfcf7fe9d07ac20d71950a3b4ba9d7f39dfd4e7a4746cfc1"}},{"ruleId":"D1","level":"warning","message":{"text":"_NetworkSyncSettingState._buildConnectCard (cyclomatic 23): _NetworkSyncSettingState._buildConnectCard 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/page/setting/network_sync_setting.dart"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"41911adf5449e2eb036cbb306cf0f3b1f5520b19dff94c33b0f6156bddaabae5"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeClient.chatStreamCompletion (cyclomatic 22): ClaudeClient.chatStreamCompletion has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/claude_client.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"6744762cbd3442041fa6e356adc1b22158342eebbcddb97187ed6c9342b95ecf"}},{"ruleId":"D1","level":"warning","message":{"text":"_UpgradeNoticeState.build (cyclomatic 22): _UpgradeNoticeState.build has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/widgets/upgrade.dart"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"38055903438111e0a159c2b6fcca5d6c56976da1565d33ae02ee65044bf455dc"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkSyncService._importAllData (cyclomatic 21): NetworkSyncService._importAllData has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network_sync_service.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea032c6608ef1c21ffffe60e6efbe23b441698727b8b99e54dede33da61507e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::collapseWhitespace (cyclomatic 21): (anonymous)::collapseWhitespace has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/js/turndown.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"80670577418d7f2daffc5dda07d921a692ef4bd9358bdd4614a753f9070f6fd3"}},{"ruleId":"D1","level":"warning","message":{"text":"InputAreaState.build (cyclomatic 20): InputAreaState.build 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/page/layout/chat_page/input_area.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7487c2daf2e29b0aea6c8c5c84be9b8703b4c7fef6cfd1ddfb9603ea5e2aa7b"}},{"ruleId":"D1","level":"warning","message":{"text":"LatexSyntax.onMatch (cyclomatic 18): LatexSyntax.onMatch has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/widgets/markdown/widgets/latex.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad65f4a1995564191abdb2ebfe7465e9a15a44128306b81c93dc7556a4a2d25"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaClient.chatStreamCompletion (cyclomatic 16): OllamaClient.chatStreamCompletion 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/llm/ollama_client.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b50726703a63e08e522491d222408ff41ae2e7d5c793bdbe71b9cad63d6a05"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamableClient.sendMessage (cyclomatic 16): StreamableClient.sendMessage 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/mcp/streamable/streamable_client.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9679e1d6cb3a950c76bdfc361a8be4e82dd4076f655133b9226cc93e385f133"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatPageState._getTreeMessages (cyclomatic 16): _ChatPageState._getTreeMessages 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/page/layout/chat_page/chat_page.dart"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"07766fd32d7a0a2ae0a850cacb0f72031d9243f926da0dc41013b54518f67e87"}},{"ruleId":"D1","level":"warning","message":{"text":"_UpgradeNoticeState._checkForUpdates (cyclomatic 16): _UpgradeNoticeState._checkForUpdates 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/widgets/upgrade.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c506f371b234f87ec60caaefe30f105124406e232c10c5ba3e3324dc5e7e7d"}},{"ruleId":"D2","level":"warning","message":{"text":"MathServer.onToolCall (cognitive 169): MathServer.onToolCall has cognitive complexity 169 (threshold 15). Drivers by points: if/else 51 (150 pts), boolean chains 10, error handling 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 104). 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/mcp/inmemory_server/math.dart"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"b667cdbc8720d6eb4861c9b132aa821ba885cb6aed1e3ce10cc4c27f9149f8e6"}},{"ruleId":"D2","level":"warning","message":{"text":"_McpServerState._showEditDialog (cognitive 100): _McpServerState._showEditDialog has cognitive complexity 100 (threshold 15). Drivers by points: if/else 33 (77 pts), boolean chains 11, error handling 1 (5 pts), ternaries 2 (4 pts), loops 1 (3 pts) (nesting depth added 52). 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/page/setting/mcp_server.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3167f301c684dac4434816d50dca7218419b795df90facaaf620845ff87b726"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepSeekClient.chatStreamCompletion (cognitive 87): DeepSeekClient.chatStreamCompletion has cognitive complexity 87 (threshold 15). Drivers by points: if/else 16 (60 pts), ternaries 3 (15 pts), boolean chains 6, error handling 2 (4 pts), loops 1 (2 pts) (nesting depth added 59). 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/llm/deepseek_client.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae2c8cd936cc11ea06f655131313ae88f8d9e60e1a6ffaaae5e6cf953f65382"}},{"ruleId":"D2","level":"warning","message":{"text":"_McpServerState._buildServerCard (cognitive 59): _McpServerState._buildServerCard has cognitive complexity 59 (threshold 15). Drivers by points: if/else 15 (32 pts), ternaries 7 (17 pts), boolean chains 7, error handling 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/page/setting/mcp_server.dart"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de4fc833d79f0635aaed45c37b76b79e1cc7b80d19304e7f10a88a1c6e32e08"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkSyncService._importAllData (cognitive 50): NetworkSyncService._importAllData has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 4 (13 pts), error handling 2 (5 pts), boolean chains 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network_sync_service.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d20750abf8c711a9e6c6b4f57500ce55730eee023a155a59709e8af5ea5c29"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeClient.chatStreamCompletion (cognitive 44): ClaudeClient.chatStreamCompletion has cognitive complexity 44 (threshold 15). Drivers by points: if/else 10 (31 pts), error handling 2 (4 pts), match/switch 1 (4 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/claude_client.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"136b452660d771f87a5a418f29cb7d3d3e11768d29cd4b53021fea0c568ec74e"}},{"ruleId":"D2","level":"warning","message":{"text":"WebOAuthHandler._waitForCallback (cognitive 44): WebOAuthHandler._waitForCallback has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (34 pts), boolean chains 8, error handling 2 (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/utils/oauth_web.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c166e3b82b416f2a8124db78e9d51656620e447a63e8d3805da8d73b87ea0cb"}},{"ruleId":"D2","level":"warning","message":{"text":"_NetworkSyncSettingState._buildConnectCard (cognitive 42): _NetworkSyncSettingState._buildConnectCard has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 15 (32 pts), if/else 7 (9 pts), boolean chains 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/page/setting/network_sync_setting.dart"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d1aad4231f46aa9c18d398701ffff004e6bc4907ce9793d949296cca17578f"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamableClient._handleSseStream (cognitive 41): StreamableClient._handleSseStream has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (25 pts), error handling 3 (10 pts), boolean chains 5, ternaries 1 (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/mcp/streamable/streamable_client.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d44d1be1391e8a10f092b6833e59ec0ad141fc7e15f9696d0913d1b8546ad99"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamableClient.sendMessage (cognitive 41): StreamableClient.sendMessage has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (33 pts), loops 1 (5 pts), boolean chains 2, error handling 1 (nesting depth added 25). 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/mcp/streamable/streamable_client.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"82da5835d07076cc11c4adb3aafccfee4d0de99886a10c1684e314b1e23b7477"}},{"ruleId":"D2","level":"warning","message":{"text":"OAuthDiscoveryService._tryDirectServerProbe (cognitive 40): OAuthDiscoveryService._tryDirectServerProbe has cognitive complexity 40 (threshold 15). Drivers by points: if/else 7 (30 pts), boolean chains 5, error handling 2 (5 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/oauth_discovery.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffff344e662514575f5b959a81294cb2e53856ae136ab578957fa703624cb84"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatPageState._getTreeMessages (cognitive 34): _ChatPageState._getTreeMessages has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 4 (9 pts), boolean chains 3 (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/page/layout/chat_page/chat_page.dart"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"52aee281d4da10cc8e4db68f931909fa38bca830dbaaa195f41332e01be0f8fd"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIClient.chatStreamCompletion (cognitive 33): OpenAIClient.chatStreamCompletion has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (24 pts), error handling 2 (4 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/openai_client.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a689d675b4edb7dca3dc4f03a01a9e155701746b26766c4151624dfc0862ea"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodeClient.chatStreamCompletion (cognitive 32): ClaudeCodeClient.chatStreamCompletion has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (19 pts), error handling 3 (7 pts), ternaries 1 (3 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/claude_code_client.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d0243d8c778543825e991b49d52f007863431aa60cb3c29da6b6a8e2a02f5b"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaClient.chatStreamCompletion (cognitive 32): OllamaClient.chatStreamCompletion has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (21 pts), boolean chains 4, error handling 2 (4 pts), loops 1 (2 pts), ternaries 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/ollama_client.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0eb012164a1e9bfc93877fdcd6b155f935f69fb31d918971d9988e7513fd0cf"}},{"ruleId":"D2","level":"warning","message":{"text":"_KeysSettingsState._buildProviderConfigForm (cognitive 31): _KeysSettingsState._buildProviderConfigForm has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 9, error handling 1, ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/setting/llm_setting.dart"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"1665751f679979bf68fc4078b4978b7e8fb1f7ddbbc825271fee44a0f5be12b7"}},{"ruleId":"D2","level":"warning","message":{"text":"_UpgradeNoticeState.build (cognitive 31): _UpgradeNoticeState.build has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 7, ternaries 3 (7 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/widgets/upgrade.dart"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"8524cd6023967b32d10c8ddf5fe3bcf3ccd06c4645879174864440b0218f814a"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::collapseWhitespace (cognitive 31): (anonymous)::collapseWhitespace has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 7, 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":"assets/js/turndown.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"745da1a5609b766e1f55aecf2b0064dd330f9f575202b79eef5727ba617fd4e8"}},{"ruleId":"D2","level":"warning","message":{"text":"FoundryClient.chatStreamCompletion (cognitive 30): FoundryClient.chatStreamCompletion has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (20 pts), error handling 2 (4 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/foundry_client.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e83c45fa730fc98ade9706aece31afa280b9d45da2b1a1f9816f944330b13b0"}},{"ruleId":"D2","level":"warning","message":{"text":"InputAreaState.build (cognitive 30): InputAreaState.build has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/chat_page/input_area.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50802213f78201cf2af05453d6e05d8923a85f28c713a1a433c3ad5eb324e72"}},{"ruleId":"D2","level":"warning","message":{"text":"_UpgradeNoticeState._checkForUpdates (cognitive 27): _UpgradeNoticeState._checkForUpdates has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 5, error handling 1 (nesting depth added 11). 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/widgets/upgrade.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a610b593b05295a2e4a4e9cc3dcffcdb45fdfcd8ff52bc67640dc1f6b9046feb"}},{"ruleId":"D2","level":"warning","message":{"text":"McpServerProvider.loadMarketServers (cognitive 25): McpServerProvider.loadMarketServers has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (7 pts), boolean chains 1, 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/provider/mcp_server_provider.dart"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7ea25bb7cc524e8731ec607b320304fa46d8e50cfce9b4d8270211b00dc143"}},{"ruleId":"D2","level":"warning","message":{"text":"FileLogger.cleanupOldLogs (cognitive 24): FileLogger.cleanupOldLogs has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (15 pts), error handling 2 (6 pts), loops 1 (2 pts), boolean chains 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/file_logger_io.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"07441bba2042b90c5223af29e2ad8b26a00745cb36f890e2182d478d10dbf192"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodeClient._parseClaudeCodeJsonOutput (cognitive 24): ClaudeCodeClient._parseClaudeCodeJsonOutput has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 2 (3 pts), ternaries 1 (2 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/llm/claude_code_client.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d18bc0c98a485369f311c579ecc6becd1eb1bdd6426308488bc57f6ab85b60"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatPageState._handleSubmitted (cognitive 22): _ChatPageState._handleSubmitted has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (6 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/page/layout/chat_page/chat_page.dart"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40c7dc8e00f47e01048f658b9664b7f305377149f6c9c3db791a52686037c7b"}},{"ruleId":"D2","level":"warning","message":{"text":"_McpToolsState._buildMenuItems (cognitive 21): _McpToolsState._buildMenuItems has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 3 (6 pts), boolean chains 3, 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/page/layout/widgets/mcp_tools.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3196f2aefb5357a2eb95a1d4fb20f7a881d8331c53c19996228c5ac1de256329"}},{"ruleId":"D2","level":"warning","message":{"text":"McpServerProvider._loadServers (cognitive 21): McpServerProvider._loadServers has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 3 (5 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/provider/mcp_server_provider.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2d91a3b66bcef3d9d0b416cc23e448ef2493a2a5255bcb08623efda43079e1"}},{"ruleId":"D2","level":"warning","message":{"text":"StdioClient._setupProcess (cognitive 20): StdioClient._setupProcess has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 2 (5 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/stdio/stdio_client.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0cd87d0fe13663a78fffe8813bfb2e17ac0a53a258e45942313876a102b6e3"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatPageState._getHistoryTreeMessages (cognitive 20): _ChatPageState._getHistoryTreeMessages has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/chat_page/chat_page.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"83effc854811adf418c7b74f679b09f0eee96ed6a8027bd4a556c160b2526fd2"}},{"ruleId":"D2","level":"warning","message":{"text":"_GeneralSettingsState._buildProxyCard (cognitive 20): _GeneralSettingsState._buildProxyCard has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 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/page/setting/general_setting.dart"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5950723d5a353bea96323e9ad5f453271150923734736c474b51ffd47e2a34e"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiClient.chatStreamCompletion (cognitive 19): GeminiClient.chatStreamCompletion has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/gemini_client.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea169703b54c555f2590474af642c223693b0894f324fc556d53f9943286af10"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConvSettingState._buildMenuItems (cognitive 19): _ConvSettingState._buildMenuItems has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 3 (6 pts), boolean chains 3, loops 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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"7363099ec1e81ab7d98254fe424287e04db438472b74138d784a6c926bc45531"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodeClient._extractTextFromAssistantMessage (cognitive 17): ClaudeCodeClient._extractTextFromAssistantMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 10). 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/llm/claude_code_client.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"6723cd088d670d7ef4e5960f21d3893681e17d50b29299ae58e0b8633a9f7e01"}},{"ruleId":"D2","level":"warning","message":{"text":"LatexSyntax.onMatch (cognitive 17): LatexSyntax.onMatch has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/widgets/markdown/widgets/latex.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87240eef4ecb2cefbd24b9d581451d460ba027151f3598f7f1fc9ca5c838b18"}},{"ruleId":"D2","level":"warning","message":{"text":"ColorAwareSvg._detectSvgHasColors (cognitive 16): ColorAwareSvg._detectSvgHasColors has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (7 pts), error handling 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/widgets/llm_icon.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd61d593447ecbe530a72dccdb1a5c8569123ec6eac356d45e4a9198988ed07"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _McpServerState._showEditDialog: MethodTooLong \u2014 _showEditDialog runs 347 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 247 over it, 3.47\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/page/setting/mcp_server.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"6179924fee31351caf1571727bf0d97c3136b5655474d7b68d677cb209ad0a76"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _KeysSettingsState._buildProviderConfigForm: MethodTooLong \u2014 _buildProviderConfigForm runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\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/page/setting/llm_setting.dart"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"06386bc672745a6a8656e64b769bdddb90b743b96e25651df1b93d66bc3e2bc4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _KeysSettingsState: ClassTooLong \u2014 819 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 419 over it, 2.05\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/page/setting/llm_setting.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b810550cf1ca8f196ec548c1319835ba75376631e1cf02abbe0f31f2cec6aae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MathServer.MathServer: MethodTooLong \u2014 MathServer 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/mcp/inmemory_server/math.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a499e3dad44ed0748c309e54b05e404087a64ded9dfef80bd1b5ec4c0c7cab1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/llm_setting.dart: FileTooLong \u2014 923 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: _KeysSettingsState (68-1282). The bar is 500 significant lines; this is 423 over it, 1.85\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/page/setting/llm_setting.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53387f3558b113ea379160f6f2aecf5f508f3b68d61e30f4fe807673ed2c2a4b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MathServer.onToolCall: MethodTooLong \u2014 onToolCall runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.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/mcp/inmemory_server/math.dart"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"78081098d518a41c8affbb83b61738fa7aabfb83b3119d9481163ccc128d8497"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppColors: 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/color.dart"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"316bddfc4ea2d9ad0401096d085ff10ec672aa74fe590a6af66b53b5722d43a9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _McpServerState: ClassTooLong \u2014 713 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 313 over it, 1.78\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/page/setting/mcp_server.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0066515f9cc67553409c2e2dd1cc65f69a20fdaebafee745e74973208b4a22"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ChatPageState: ClassTooLong \u2014 693 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 293 over it, 1.73\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/page/layout/chat_page/chat_page.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"faadd8c195cd0c332efda9a2024007d6d17b0c1a6e85443e90eeb5a1e597b7bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InputAreaState.build: MethodTooLong \u2014 build runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\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/page/layout/chat_page/input_area.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9bde3b74e3eeebd7d9132405245da6f5e327b58a599454a54144c86e4d5477"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _ChatPageState: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\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/page/layout/chat_page/chat_page.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6469ed298c4cc5f3dc996b4c0724e7a0518936573442251e1ebcdbf6b814008f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ConvSettingState._buildSettingsSection: MethodTooLong \u2014 _buildSettingsSection runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33ed82869a67643e9fdcc587eba159d35367a213968552a891e48c0c8fd34c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/mcp_server.dart: FileTooLong \u2014 732 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: _McpServerState (25-1078). The bar is 500 significant lines; this is 232 over it, 1.46\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/page/setting/mcp_server.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6207a53cb22439af0848d3daa32922b4da898c7f21934e001624b96c08a21140"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat_page/chat_page.dart: FileTooLong \u2014 720 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: _ChatPageState (33-1173). The bar is 500 significant lines; this is 220 over it, 1.44\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/page/layout/chat_page/chat_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48e5ffcaa4563eda781c2f4a7fa6e8497f8e2acb523d19d7b5bd8b2c62023c3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GeneralSettingsState._buildProxyCard: MethodTooLong \u2014 _buildProxyCard runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/setting/general_setting.dart"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b01dd81b81baad7a00a2aba5707c098bdffe6939c0fd80a55a35b119f54c3b2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _NetworkSyncSettingState._buildConnectCard: MethodTooLong \u2014 _buildConnectCard runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\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/page/setting/network_sync_setting.dart"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e16fde6d02bb2c7e2099fc0e4dcdc2e7857a36e24a203ec7aeb5620ee253db"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: McpServerProvider: 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/provider/mcp_server_provider.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9b488da7648debb76d5b6ba7e79d5a12f656b0d5a733a6e33760cde52e23ae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _McpServerState._buildServerCard: MethodTooLong \u2014 _buildServerCard 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/page/setting/mcp_server.dart"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2446c4411759236446d616d0c97b0b4a5b251ff466ed614c782e1523f97389"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _McpServerState.build: MethodTooLong \u2014 build 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":"lib/page/setting/mcp_server.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c018daf8395b4fb6e6b3e96c493d09fbb482c31a2bb0943eded0b3e0e4469a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/network_sync_setting.dart: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: _NetworkSyncSettingState (18-687). The bar is 500 significant lines; this is 68 over it, 1.14\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/page/setting/network_sync_setting.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae2d526f561b1134f402946480b30708b053f695c93a214a8ac69df9f51ce4c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: McpServerProvider: ClassTooLong \u2014 454 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 54 over it, 1.14\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/provider/mcp_server_provider.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"82468545b23b98b0f0412096cbebcefbbe9f612e0c8cfa367b1e9c86d1c8d513"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _NetworkSyncSettingState: ClassTooLong \u2014 447 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 47 over it, 1.12\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/page/setting/network_sync_setting.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e48ac3c97a5c18bcb830a7f51fdd14a5213c2e252c90dd09f0c88616edc158"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MathServer: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 41 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/inmemory_server/math.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d3032fd30c30cd89a240c7f54caa4a225f378b4391bb2032febf619feb119a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatProvider: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.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/provider/chat_provider.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"de68e1104abe971949f72f809e79fdc340b9b12d85d10dff69862caa37b5f4d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): lib/llm/claude_client.dart:68-163 | lib/llm/deepseek_client.dart:63-164 | lib/llm/foundry_client.dart:71-136 | lib/llm/gemini_client.dart:59-115 | lib/llm/ollama_client.dart:82-154 | lib/llm/openai_client.dart:72-142 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/claude_client.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"503a5dcab64bedd564fe0dff76393f9ae0acb218a7683cf6eda69eab46258c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): lib/page/setting/general_setting.dart:71-126 | lib/page/setting/general_setting.dart:128-175 | lib/page/setting/general_setting.dart:177-222 | lib/page/setting/general_setting.dart:224-426 | lib/page/setting/general_setting.dart:428-481 | lib/page/setting/mcp_server.dart:81-257 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/setting/general_setting.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2959971f7a4d0753c78640049c1580ad297922692f46e9ab39c72b53fb020ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/llm/claude_client.dart:18-66 | lib/llm/deepseek_client.dart:17-61 | lib/llm/foundry_client.dart:21-69 | lib/llm/gemini_client.dart:14-57 | lib/llm/openai_client.dart:18-70 \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/llm/claude_client.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"976914b8b465dfd56f178daf6c78e6ae2c9680f31fc80dcf7f8b95dddd40e634"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (133 corresponding lines): lib/page/layout/widgets/conv_setting.dart:416-548 | lib/page/layout/widgets/mcp_tools.dart:138-280 \u2014 These two members are one piece of code written twice and then edited apart: 133 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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df1ecc328f2d637a1bf94af8d4977910a45a1b6e9f51e4ad0e424c921408f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lib/page/layout/chat_page/chat_message.dart:174-209 | lib/page/layout/chat_page/chat_message_to_image.dart:246-292 \u2014 These two members are one piece of code written twice and then edited apart: 36 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/page/layout/chat_page/chat_message.dart"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"71678ac45dd2193a7b6ee3e5ac760a23c867bddebcd3fb9e02a515b3c27e28e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lib/llm/foundry_client.dart:138-171 | lib/llm/openai_client.dart:144-170 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/foundry_client.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9274889ab2167cc1c277c5d88eebc1ad1a402e299b0be44f33aa8acc87c5072"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lib/page/layout/chat_page/chat_message.dart:140-172 | lib/page/layout/chat_page/chat_message_to_image.dart:217-244 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/chat_page/chat_message.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"241633b819d6a3f4493252f40fc57289861285ba2ff62a51628cccd5f808235a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): lib/page/layout/widgets/conv_setting.dart:160-193 | lib/page/layout/widgets/mcp_tools.dart:100-136 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/widgets/conv_setting.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06a077fcf13022be3573151c41588329167760f57425363c992ccaf0a3675f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): lib/llm/claude_client.dart:228-250 | lib/llm/deepseek_client.dart:166-190 | lib/llm/gemini_client.dart:117-143 | lib/llm/ollama_client.dart:15-32 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 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/llm/claude_client.dart"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21bfcd047b00919a7a96c81f8b56c6433782360d3c6f2d40b9461ee813fb812"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/page/layout/sidebar.dart:503-523 | lib/page/layout/sidebar.dart:604-624 \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/page/layout/sidebar.dart"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e0f76fbbc50ae8c49d74eaa01151afce494e2128c45c9222d0afd479942ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/mcp/sse/sse_client.dart:270-294 | lib/mcp/stdio/stdio_client.dart:140-162 \u2014 These two members are one piece of code written twice and then edited apart: 23 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/mcp/sse/sse_client.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd66814dc870b52df1a5369c21ddbd7c633975a143a16fc8fa5cab12bebcfc20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/mcp/stdio/stdio_client.dart:164-188 | lib/mcp/streamable/streamable_client.dart:439-463 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/stdio/stdio_client.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6229f49314662734ca4c6e61758ecabc883a789927d44e1edff63997f60d9fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): lib/page/layout/layout.dart:52-68 | lib/page/layout/sidebar.dart:583-602 | lib/page/layout/widgets/top_toolbar.dart:28-49 | lib/page/setting/mcp_server.dart:452-478 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/layout.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17662bb8df0fe4a10594420e26f609aacb62063d56715f527cf710830996f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/page/setting/llm_setting.dart:1313-1329 | lib/page/setting/llm_setting.dart:1331-1350 \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/page/setting/llm_setting.dart"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"7658346e8bf9353f1c8b52fa0d697ca7a6106b30668e597dc3dbecdbbd6ede3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/widgets/collapsible_section.dart:25-46 | lib/widgets/markdown/widgets/details.dart:31-53 \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/widgets/collapsible_section.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"e432b7bd5d8a40596302dc63433a3629088f050f62f42912972da4b9e9271692"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/repository/remote_chat_repository.dart:44-54 | lib/repository/remote_chat_repository.dart:122-132 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/repository/remote_chat_repository.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3abb681a22432a3052b0ca1eddb49775554108f6f2a04dd8db0f0a8baad8717"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/page/layout/chat_page/input_area.dart:94-107 | lib/page/layout/chat_page/input_area.dart:109-122 \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/page/layout/chat_page/input_area.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef42abca7c702f6fbb9421e4d970ffaf1c45062c9bcdd023f89b7ffd13da5c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/dao/chat.dart:30-38 | lib/dao/chat_message.dart:41-52 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/dao/chat.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19fbde799fcc62dcc806fdd85bcfe96a7a7eaaf4d4419716305d4ee7a94ab19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/page/setting/network_sync_setting.dart:640-662 | lib/page/setting/network_sync_setting.dart:664-686 \u2014 These two members are one piece of code written twice and then edited apart: 23 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/page/setting/network_sync_setting.dart"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"43813ca1875d105d589d6a12ed87c95e4ae4a04f344b58325cb7572e9ff0a6cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/page/layout/chat_page/chat_message.dart:128-131 | lib/page/layout/chat_page/chat_message_to_image.dart:205-208 \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/page/layout/chat_page/chat_message.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"297490c4629e127bca4dad50aa8f53ed01734ff59ef364c22d12b74be8eef114"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/page/setting/network_sync_setting.dart:594-602 | lib/page/setting/network_sync_setting.dart:604-612 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/setting/network_sync_setting.dart"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"03044f6017e661436b38928917df154d894d2c3074c39f1fb28fcee9b6f1026e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/widgets/markdown/widgets/html_view.dart:30-38 | lib/widgets/markdown/widgets/mermaid_diagram_view.dart:42-126 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/widgets/markdown/widgets/html_view.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5323aa268f4a8fd2a0f18d676638bb413fc907ec0520c4fea21cf986df3e32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/dao/chat.dart:15-17 | lib/dao/chat_message.dart:25-35 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/dao/chat.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b7351f12b1d6199697e3db9869cc4eb810507b1a2f1723bcd8e335c89487e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/dao/base_dao.dart:46-49 | lib/dao/chat_message.dart:59-62 \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/dao/base_dao.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab6f6dedcbd15746ab22abdb0617fa337176dece54831fda4dac6af9e3b9681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): lib/page/layout/widgets/conv_setting.dart:486-548 | lib/page/layout/widgets/mcp_tools.dart:218-280 \u2014 before extracting anything, compare \u0060lib/page/layout/widgets/conv_setting.dart\u0060 and \u0060lib/page/layout/widgets/mcp_tools.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 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/page/layout/widgets/conv_setting.dart:486\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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe52440450b48481b7997b650e7e8eaf99f15304a467d02dbf4e01bacf3233f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lib/llm/foundry_client.dart:98-127 | lib/llm/openai_client.dart:98-127 \u2014 before extracting anything, compare \u0060lib/llm/foundry_client.dart\u0060 and \u0060lib/llm/openai_client.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 120 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/llm/foundry_client.dart:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/llm/openai_client.dart:130\u0060 calls \u0060LLMResponse\u0060, \u0060fromOpenAI\u0060 and \u0060lib/llm/foundry_client.dart:128\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/llm/foundry_client.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0087ff387ec5786e7ddf30054cef4a3506976ec50d99fc7087df1ad61d1dbb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lib/page/layout/widgets/conv_setting.dart:253-281 | lib/page/layout/widgets/conv_setting.dart:355-383 \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/page/layout/widgets/conv_setting.dart:253\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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09e7c4c386bcbb9cdf0b2f436bdf50cf2d9c68c98b54638bbc14e8d50b3e5c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): lib/page/layout/widgets/conv_setting.dart:458-485 | lib/page/layout/widgets/mcp_tools.dart:176-203 \u2014 before extracting anything, compare \u0060lib/page/layout/widgets/conv_setting.dart\u0060 and \u0060lib/page/layout/widgets/mcp_tools.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 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/page/layout/widgets/conv_setting.dart:458\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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"63398100e9876ecb8f38c33f2e010364bc9d8429c58b7e02402d34fb8d971e9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/mcp/inmemory_server/math.dart:85-111 | lib/mcp/inmemory_server/math.dart:211-237 \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/mcp/inmemory_server/math.dart:85\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/mcp/inmemory_server/math.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"630546a09ffcf9f6f654ed9963bed03c607150b6eeda56a78370340f5c3985a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): lib/page/layout/widgets/conv_setting.dart:120-143 | lib/page/layout/widgets/mcp_tools.dart:74-98 \u2014 before extracting anything, compare \u0060lib/page/layout/widgets/conv_setting.dart\u0060 and \u0060lib/page/layout/widgets/mcp_tools.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/widgets/conv_setting.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1523944367c763db1e2178415dfb3ee1a21fdd23e1dbe2e08f833306919e7648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/page/layout/widgets/conv_setting.dart:95-117 | lib/page/layout/widgets/mcp_tools.dart:49-71 \u2014 before extracting anything, compare \u0060lib/page/layout/widgets/conv_setting.dart\u0060 and \u0060lib/page/layout/widgets/mcp_tools.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/widgets/conv_setting.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3759d091833cbbc0be9c4b6318045dfa374db93467a2088a245b86a93c2e8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): lib/page/setting/general_setting.dart:92-113 | lib/page/setting/general_setting.dart:283-301 \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/page/setting/general_setting.dart:283\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/setting/general_setting.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"835692671ddbf66935839a1c5c9ecded2f35173356724226791abe89b50e413e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/mcp/stdio/stdio_client.dart:164-184 | lib/mcp/streamable/streamable_client.dart:439-459 \u2014 \u0060lib/mcp/stdio/stdio_client.dart\u0060 and \u0060lib/mcp/streamable/streamable_client.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 45 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/mcp/stdio/stdio_client.dart:164\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/mcp/stdio/stdio_client.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e1b578fa194208994f6b971a3cde800f7601b068ae488ccd41be1b86e3048f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 4): lib/llm/claude_client.dart:40-58 | lib/llm/deepseek_client.dart:35-53 | lib/llm/foundry_client.dart:44-63 | lib/llm/openai_client.dart:40-59 \u2014 before extracting anything, compare \u0060lib/llm/claude_client.dart\u0060 and \u0060lib/llm/deepseek_client.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/claude_client.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"152a930a85af72488636d3fcbbc869d0e635cc015861915c900ca78237337616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/page/layout/widgets/conv_setting.dart:212-231 | lib/page/layout/widgets/conv_setting.dart:314-333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/page/layout/widgets/conv_setting.dart:212\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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2fc139b3b1a6eb3cdad6aa5d9636f40b862680e83d99b584245da8627f4cf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): lib/llm/foundry_client.dart:103-118 | lib/llm/ollama_client.dart:118-135 | lib/llm/openai_client.dart:103-118 \u2014 before extracting anything, compare \u0060lib/llm/foundry_client.dart\u0060 and \u0060lib/llm/ollama_client.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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/llm/foundry_client.dart:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/foundry_client.dart"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4a63d88f33b351246a6e875977497b0ba26ecb6c3eb937933b86cf5df0f811"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/page/layout/widgets/conv_setting.dart:418-435 | lib/page/layout/widgets/mcp_tools.dart:139-156 \u2014 before extracting anything, compare \u0060lib/page/layout/widgets/conv_setting.dart\u0060 and \u0060lib/page/layout/widgets/mcp_tools.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 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/page/layout/widgets/conv_setting.dart:418\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/page/layout/widgets/conv_setting.dart:417\u0060 calls \u0060of\u0060 and \u0060lib/page/layout/widgets/mcp_tools.dart:138\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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab07438c0e9106161461006f6d97c8763e8a79e08c7d0d164996cdb15a75a7f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): lib/mcp/inmemory_server/math.dart:84-100 | lib/mcp/inmemory_server/math.dart:210-226 | lib/mcp/inmemory_server/math.dart:265-281 \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/mcp/inmemory_server/math.dart:84\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/mcp/inmemory_server/math.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc268547b42784b9f5e9b2bb333f7194fe14a1c2589a0f2b044ede5e9d1bcb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/page/layout/widgets/conv_setting.dart:286-302 | lib/page/layout/widgets/conv_setting.dart:388-404 \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/page/layout/widgets/conv_setting.dart:286\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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d5874fcaf44e3c855c457d19238fbbe4b083331305ed5802ee2b24ef2e4537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): lib/llm/deepseek_client.dart:102-117 | lib/llm/foundry_client.dart:109-123 | lib/llm/openai_client.dart:109-123 \u2014 before extracting anything, compare \u0060lib/llm/deepseek_client.dart\u0060 and \u0060lib/llm/foundry_client.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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/llm/deepseek_client.dart:102\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/llm/deepseek_client.dart"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"483b3ec23f14cff58a29340ad93133910ae14c031101dbe17e6cdb96b2fdcffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/page/setting/mcp_server.dart:134-148 | lib/page/setting/mcp_server.dart:170-185 \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/page/setting/mcp_server.dart:134\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/page/setting/mcp_server.dart"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9a8f51c02e69408243773a61899eb0f8916d751eae894c53072ac156b73a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/widgets/markdown/widgets/tag.dart:14-29 | lib/widgets/markdown/widgets/tag.dart:66-81 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/widgets/markdown/widgets/tag.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f754d5b7c5c7e7238beb9ff6a555c8ae27c1fa51de4f40cd8bbed23b19b48b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 9): lib/mcp/inmemory_server/math.dart:9-17 | lib/mcp/inmemory_server/math.dart:21-35 | lib/mcp/inmemory_server/math.dart:37-51 | lib/mcp/inmemory_server/math.dart:53-67 | lib/mcp/inmemory_server/math.dart:69-83 | lib/mcp/inmemory_server/math.dart:163-177 | lib/mcp/inmemory_server/math.dart:179-193 | lib/mcp/inmemory_server/math.dart:195-209 | lib/mcp/inmemory_server/math.dart:250-264 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/mcp/inmemory_server/math.dart:9\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/mcp/inmemory_server/math.dart:17\u0060 calls \u0060Property\u0060 and \u0060lib/mcp/inmemory_server/math.dart:35\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/mcp/inmemory_server/math.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db578033f9ba45d90d8c3fa12cbc66ac0214ba634f6190d80344bdac2a475a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/page/setting/llm_setting.dart:936-950 | lib/page/setting/llm_setting.dart:972-986 \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/page/setting/llm_setting.dart:936\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/page/setting/llm_setting.dart"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aad29f40b48cf93298238210b1a88694a16a59b4f91a3b924ca48abfa801d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/mcp/sse/sse_client.dart:372-385 | lib/mcp/stdio/stdio_client.dart:202-215 | lib/mcp/streamable/streamable_client.dart:477-490 \u2014 \u0060lib/mcp/sse/sse_client.dart\u0060 and \u0060lib/mcp/stdio/stdio_client.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/mcp/sse/sse_client.dart:372\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/mcp/sse/sse_client.dart"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"75162619f91c8f6869e30d261683af09bcbec3880fa826a02f9daddb55303d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/llm/foundry_client.dart:121-133 | lib/llm/ollama_client.dart:138-151 \u2014 before extracting anything, compare \u0060lib/llm/foundry_client.dart\u0060 and \u0060lib/llm/ollama_client.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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/llm/foundry_client.dart:121\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/llm/foundry_client.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc6f50d6b8152418196b6da6797ade8ae688437d9fecbc72d0025598ce78012"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/page/layout/widgets/conv_setting.dart:162-175 | lib/page/layout/widgets/mcp_tools.dart:103-116 \u2014 before extracting anything, compare \u0060lib/page/layout/widgets/conv_setting.dart\u0060 and \u0060lib/page/layout/widgets/mcp_tools.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 171 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/page/layout/widgets/conv_setting.dart:162\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/page/layout/widgets/mcp_tools.dart:102\u0060 calls \u0060of\u0060 and \u0060lib/page/layout/widgets/conv_setting.dart:161\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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ede16b49a56529cd04e706bab7e3cadbf700474e911067799f30f07955b38f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/page/setting/llm_setting.dart:473-485 | lib/page/setting/llm_setting.dart:541-554 \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/page/setting/llm_setting.dart:473\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/page/setting/llm_setting.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b6eec48b2263b42f78a0c45d33a39adc05f44182b8953df6cfe64824747e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/page/layout/widgets/conv_setting.dart:236-248 | lib/page/layout/widgets/conv_setting.dart:338-350 \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/page/layout/widgets/conv_setting.dart:236\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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e325f2672f9b4515ba82041dae95283357229ddfdd42c9d6c14fc09d4f7bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): lib/page/setting/general_setting.dart:451-462 | lib/page/setting/llm_setting.dart:686-697 | lib/page/setting/llm_setting.dart:728-739 | lib/page/setting/llm_setting.dart:787-798 | lib/page/setting/llm_setting.dart:821-832 | lib/page/setting/llm_setting.dart:865-876 | lib/page/setting/mcp_server.dart:598-609 | lib/page/setting/mcp_server.dart:631-642 | lib/page/setting/mcp_server.dart:668-679 | lib/page/setting/mcp_server.dart:760-771 | lib/page/setting/mcp_server.dart:786-797 \u2014 there are 11 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 11 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/page/setting/llm_setting.dart:786\u0060 calls \u0060TextStyle\u0060, \u0060of\u0060, \u0060withAlpha\u0060 and \u0060lib/page/setting/llm_setting.dart:685\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/page/setting/general_setting.dart"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a45579b525b641017dee5e731134e3d5f57a11e1a81fb2d295d773f6d214e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/mcp/sse/sse_client.dart:283-294 | lib/mcp/stdio/stdio_client.dart:151-162 \u2014 \u0060lib/mcp/sse/sse_client.dart\u0060 and \u0060lib/mcp/stdio/stdio_client.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/mcp/sse/sse_client.dart:283\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/mcp/sse/sse_client.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6e8752fcbd7b8b4194f8fd0178d7e741740eb9aa6f67726114eaafc115c790"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): lib/page/layout/chat_page/chat_message.dart:150-161 | lib/page/layout/chat_page/chat_message_to_image.dart:226-234 \u2014 before extracting anything, compare \u0060lib/page/layout/chat_page/chat_message.dart\u0060 and \u0060lib/page/layout/chat_page/chat_message_to_image.dart\u0060 as WHOLE FILES: this scan already matched 4 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/page/layout/chat_page/chat_message.dart:150\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/page/layout/chat_page/chat_message.dart:162\u0060 calls \u0060ValueKey\u0060 and \u0060lib/page/layout/chat_page/chat_message_to_image.dart:235\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/page/layout/chat_page/chat_message.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c50bf341aa3b5144f757e124a71d5172670a4bcdddee0007086de90e03a6c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/page/setting/llm_setting.dart:283-294 | lib/page/setting/llm_setting.dart:604-615 \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/page/setting/llm_setting.dart:283\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/setting/llm_setting.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e5c00ed0aec713032aa3e6e1a7ff7f7227cf7c114708ec86df4b07bae60d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/llm/foundry_client.dart:23-33 | lib/llm/openai_client.dart:22-32 \u2014 before extracting anything, compare \u0060lib/llm/foundry_client.dart\u0060 and \u0060lib/llm/openai_client.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/llm/openai_client.dart:20\u0060 calls \u0060createHttpClient\u0060 and \u0060lib/llm/foundry_client.dart:22\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/llm/foundry_client.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a36d63bccf92472b299e793cec12608ce7d2bdcaa19239ca4e0e8f3b09b215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/mcp/inmemory_server/math.dart:355-365 | lib/mcp/inmemory_server/math.dart:500-510 \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/mcp/inmemory_server/math.dart:355\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/mcp/inmemory_server/math.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"92142199471344a5cdf1a9c629d5bc6b0fd16abb8e4eaab0ab5f689be149cc8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/page/layout/chat_page/chat_message.dart:174-184 | lib/page/layout/chat_page/chat_message_to_image.dart:246-256 \u2014 before extracting anything, compare \u0060lib/page/layout/chat_page/chat_message.dart\u0060 and \u0060lib/page/layout/chat_page/chat_message_to_image.dart\u0060 as WHOLE FILES: this scan already matched 4 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/page/layout/chat_page/chat_message.dart:174\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/page/layout/chat_page/chat_message.dart"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ee35c36f4f2d03c2e71c8232d003efee5b77bf7fe9be44408e96ebe6afe7ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/page/layout/sidebar.dart:586-595 | lib/page/setting/mcp_server.dart:461-471 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/page/layout/sidebar.dart:586\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/page/layout/sidebar.dart"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a42230a0b72354008409db4d443e3b74fd0f0da471988bbebc000fd7b5777b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/widgets/markdown/widgets/function.dart:67-77 | lib/widgets/markdown/widgets/function_result.dart:78-87 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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/widgets/markdown/widgets/function.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e957e6724712892cea0fb3c714cc56ddd21f559ed8dd34d7f68ad29fdb6b83a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/mcp/inmemory_server/math.dart:330-339 | lib/mcp/inmemory_server/math.dart:489-498 \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/mcp/inmemory_server/math.dart:330\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/mcp/inmemory_server/math.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2e129bc2a9e9f689bbb5ce5b1a1e676c34d206553b73ff3de0120709a71be8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/page/layout/chat_page/chat_page.dart:1110-1119 | lib/page/layout/sidebar.dart:329-338 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/page/layout/chat_page/chat_page.dart:1110\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/page/layout/chat_page/chat_page.dart"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f095190aff732c1dc614c38160bdf3cd0d227417d32263c029093d52ed6dac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/page/layout/chat_page/input_area.dart:98-107 | lib/page/layout/chat_page/input_area.dart:113-122 \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/page/layout/chat_page/input_area.dart:98\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/chat_page/input_area.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ff356652b76ab9916fccdad2cb1ed551fe7628ab464f310cb65eace9aa9600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/page/setting/network_sync_setting.dart:641-650 | lib/page/setting/network_sync_setting.dart:665-674 \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/page/setting/network_sync_setting.dart:641\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/page/setting/network_sync_setting.dart"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"992852364cbde6b184479e7c6f2e72f5f7704d91051b229263dc5ef19e6941e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): lib/mcp/inmemory_server/math.dart:298-306 | lib/mcp/inmemory_server/math.dart:308-316 | lib/mcp/inmemory_server/math.dart:318-326 | lib/mcp/inmemory_server/math.dart:328-336 | lib/mcp/inmemory_server/math.dart:341-349 | lib/mcp/inmemory_server/math.dart:440-448 | lib/mcp/inmemory_server/math.dart:450-458 | lib/mcp/inmemory_server/math.dart:487-495 \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/mcp/inmemory_server/math.dart:298\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/mcp/inmemory_server/math.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dc88d389ed207cbc9b7aa80e1ab1001b8bcf8c273bd05600b3f7116607de72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/page/layout/layout.dart:55-62 | lib/page/layout/widgets/top_toolbar.dart:35-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/page/layout/layout.dart:55\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/page/layout/layout.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3186caf347c4dc00c1946cc377f65d53081dc05bd380c238ff12cb034c35a8fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/page/setting/general_setting.dart:235-243 | lib/page/setting/general_setting.dart:439-447 \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/page/setting/general_setting.dart:235\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/page/setting/general_setting.dart"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f4916beeb6f1fbd104116f8e5971a0c59e61fbdfd7eb3cc112e2f8833edf44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/provider/mcp_server_provider.dart:81-89 | lib/provider/mcp_server_provider.dart:104-112 \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/provider/mcp_server_provider.dart:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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. 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/provider/mcp_server_provider.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c335baa4fa1b8aa73d11e4ee603956a2fb2983603bac12dd8b867a9c645b3c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 6): lib/llm/claude_client.dart:90-96 | lib/llm/deepseek_client.dart:78-85 | lib/llm/foundry_client.dart:91-98 | lib/llm/gemini_client.dart:83-90 | lib/llm/ollama_client.dart:106-113 | lib/llm/openai_client.dart:91-98 \u2014 before extracting anything, compare \u0060lib/llm/claude_client.dart\u0060 and \u0060lib/llm/deepseek_client.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/llm/foundry_client.dart:88\u0060 calls \u0060createHttpClient\u0060 and \u0060lib/llm/openai_client.dart:87\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/llm/claude_client.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f665fb55983dd0d42ec8a68f066e00e22ea86c8a33e9568597e3eeb6d72712a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): lib/llm/claude_client.dart:39-46 | lib/llm/deepseek_client.dart:34-41 | lib/llm/foundry_client.dart:43-50 | lib/llm/gemini_client.dart:34-42 | lib/llm/openai_client.dart:39-46 \u2014 before extracting anything, compare \u0060lib/llm/claude_client.dart\u0060 and \u0060lib/llm/deepseek_client.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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/llm/gemini_client.dart:34\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/llm/claude_client.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d925af7b62ae692af6a2f7ee9b7f02e93e6c8a9767f43349dc66f99efd92b83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/llm/deepseek_client.dart:23-30 | lib/llm/foundry_client.dart:25-32 | lib/llm/openai_client.dart:24-31 \u2014 before extracting anything, compare \u0060lib/llm/deepseek_client.dart\u0060 and \u0060lib/llm/foundry_client.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/llm/openai_client.dart:20\u0060 calls \u0060createHttpClient\u0060 and \u0060lib/llm/foundry_client.dart:22\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/llm/deepseek_client.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"db318b0da6f13152b2bc9b2cf52ddb1dda65c12127ebe3972d9eb97d541de32f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/page/setting/general_setting.dart:136-143 | lib/page/setting/general_setting.dart:232-239 | lib/page/setting/general_setting.dart:436-443 \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/page/setting/general_setting.dart:136\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/page/setting/general_setting.dart"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"11696e1086f9c8eafbcafec23b33526efe948b3336e8692a4659fb35b64e39a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/page/layout/layout.dart:52-59 | lib/page/layout/sidebar.dart:583-590 \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/page/layout/layout.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/page/layout/sidebar.dart:591\u0060 calls \u0060ClipRRect\u0060, \u0060circular\u0060 and \u0060lib/page/layout/layout.dart:60\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/page/layout/layout.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1833b46bfed973de68a1e016c7ad35723d1a10084c6e2bfeb504129ac2e45c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): lib/page/setting/general_setting.dart:79-85 | lib/page/setting/general_setting.dart:136-142 | lib/page/setting/general_setting.dart:185-191 | lib/page/setting/general_setting.dart:232-238 | lib/page/setting/general_setting.dart:436-442 | lib/page/setting/mcp_server.dart:94-100 \u2014 there are 6 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 6 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/page/setting/general_setting.dart:79\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/setting/general_setting.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e395b2de6e6e84b73e5bedd82821cf721ace0e060236a21359392452f809579c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/llm/deepseek_client.dart:92-98 | lib/llm/ollama_client.dart:115-121 \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/llm/deepseek_client.dart:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/deepseek_client.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f55899591815d79a1fae9a30a2b32d37fac830a9b2f320325399e69d638e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/llm/deepseek_client.dart:176-182 | lib/llm/ollama_client.dart:19-25 \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/llm/deepseek_client.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fbe448e99cdb9608e1f1927dc9195938da6676c19a8d5b47954721f1af13b2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/page/layout/chat_page/chat_message.dart:186-192 | lib/page/layout/chat_page/chat_message_to_image.dart:267-273 \u2014 before extracting anything, compare \u0060lib/page/layout/chat_page/chat_message.dart\u0060 and \u0060lib/page/layout/chat_page/chat_message_to_image.dart\u0060 as WHOLE FILES: this scan already matched 4 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/page/layout/chat_page/chat_message.dart:186\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/page/layout/chat_page/chat_message.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"2167fa359fb6f4dea90a81b069d74ad518afb97a6712f0334245f37afbb1d0df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/page/layout/widgets/chat_setting.dart:178-184 | lib/page/layout/widgets/chat_setting.dart:220-226 \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/page/layout/widgets/chat_setting.dart:178\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/page/layout/widgets/chat_setting.dart"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a21c18c375948caa32a5c5960228366da950163bb613cdcf2563858068428c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/page/setting/llm_setting.dart:218-224 | lib/page/setting/llm_setting.dart:445-451 \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/page/setting/llm_setting.dart"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca7f2241318fce9da377682c354a3524b7d6b94230bb0c6f8532f821b3a2721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/page/setting/mcp_server.dart:611-617 | lib/page/setting/mcp_server.dart:681-687 \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/page/setting/mcp_server.dart:611\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/page/setting/mcp_server.dart"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce676def31b098ba98213996cd2be4267f114a5c7880f7ef37b2e927e04d6c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/llm/claude_client.dart:239-250 | lib/llm/deepseek_client.dart:179-190 \u2014 before extracting anything, compare \u0060lib/llm/claude_client.dart\u0060 and \u0060lib/llm/deepseek_client.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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/llm/claude_client.dart:239\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/llm/claude_client.dart"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"770b94e5527648b1f3cd91ca54346799c8023181cd535e5d0dcf5a106972b894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): lib/llm/claude_client.dart:238-242 | lib/llm/deepseek_client.dart:178-182 | lib/llm/gemini_client.dart:128-133 | lib/llm/openai_client.dart:156-160 \u2014 before extracting anything, compare \u0060lib/llm/claude_client.dart\u0060 and \u0060lib/llm/deepseek_client.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 55 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. 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/llm/claude_client.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c86f8df0195bc3ed368983d2f517cd6b3c332889b032b4c93bc9aa838f829d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/page/setting/llm_setting.dart:917-923 | lib/page/setting/llm_setting.dart:933-939 | lib/page/setting/llm_setting.dart:969-975 \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/page/setting/llm_setting.dart"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a945427a8976cd5f7b1d55e97836fe8794c001e8d53d7b0de774a57e07d14d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/page/setting/llm_setting.dart:1317-1321 | lib/page/setting/llm_setting.dart:1338-1344 \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/page/setting/llm_setting.dart:1317\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/page/setting/llm_setting.dart"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"7045ac474c9ff470b807169c1780bc6b7eeaf61541c3bbe872a4ceda88ca22b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/page/setting/mcp_server.dart:773-777 | lib/page/setting/mcp_server.dart:799-803 \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/page/setting/mcp_server.dart:773\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/page/setting/mcp_server.dart"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f03f8d2b860e2f1017100b971f758b05a3ee660bab065be3ec471839338658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): lib/page/setting/network_sync_setting.dart:487-490 | lib/page/setting/network_sync_setting.dart:496-500 | lib/page/setting/network_sync_setting.dart:527-531 \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/page/setting/network_sync_setting.dart:496\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/page/setting/network_sync_setting.dart"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8d3ffbfd26ca5e5b49b4cd24dace8192c611a4929c77c709f332bd15371da4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/mcp/sse/sse_client.dart:360-364 | lib/mcp/stdio/stdio_client.dart:190-194 | lib/mcp/streamable/streamable_client.dart:465-469 \u2014 \u0060lib/mcp/sse/sse_client.dart\u0060 and \u0060lib/mcp/stdio/stdio_client.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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/mcp/sse/sse_client.dart"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffafb14cd355a62946815fab3e681464aa98cd1c948c9a6a47789bcb4e13cbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/mcp/sse/sse_client.dart:366-370 | lib/mcp/stdio/stdio_client.dart:196-200 | lib/mcp/streamable/streamable_client.dart:471-475 \u2014 \u0060lib/mcp/sse/sse_client.dart\u0060 and \u0060lib/mcp/stdio/stdio_client.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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/mcp/sse/sse_client.dart"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"263085b1f6845c6d3f7e59e5965c1673178031b77019a3d2a57f6d63b5019b77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/page/layout/chat_page/chat_code_preview.dart:47-54 | lib/widgets/markdown/widgets/html_view.dart:40-47 \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/page/layout/chat_page/chat_code_preview.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0054109f8ae470e9e74214ecb1c2d887e6428027e004f0416f227540de3bdc93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/page/layout/chat_page/chat_message.dart:133-138 | lib/page/layout/chat_page/chat_message_to_image.dart:210-215 \u2014 before extracting anything, compare \u0060lib/page/layout/chat_page/chat_message.dart\u0060 and \u0060lib/page/layout/chat_page/chat_message_to_image.dart\u0060 as WHOLE FILES: this scan already matched 4 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. 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/page/layout/chat_page/chat_message.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d16911c6c7698a565660127bf9569496992c55841c8d92cd87984bb734fb45b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/widgets/markdown/widgets/details.dart:99-103 | lib/widgets/markdown/widgets/tag.dart:83-87 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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/widgets/markdown/widgets/details.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db4150034528adf7510567cd464788f7481dda86a72a0a0c085c22716344ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/widgets/markdown/widgets/function.dart:33-37 | lib/widgets/markdown/widgets/function_result.dart:31-35 | lib/widgets/markdown/widgets/think.dart:32-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/widgets/markdown/widgets/function.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2786485c26b948aee2a8d9d5dbcbf3d41db28e11342b3f98e85a9603c59e87"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: McpServerProvider (LCOM4 7): McpServerProvider\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/provider/mcp_server_provider.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce08c75b5545408e28d972a18eae5508260c8f18c38c21f2cfded235eb0a0557"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: InMemoryClient (LCOM4 4): InMemoryClient\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/mcp/inmemory/client.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa6df53e41c44ac8272ed884f3af01e4aa1752973a5f0a124dc81050b291ac9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MyInAppBrowser (LCOM4 4): MyInAppBrowser\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/widgets/browser/browser.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf15e0f2599bc32981b3dd78d2953fae36aa7ff5ee3ccb349dfc47a68ee2f2b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/page/setting/mcp_server.dart: lib/page/setting/mcp_server.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in _McpServerState._showEditDialog at line 535. 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 09:44:03 \u002B08:00\u0027 --until=\u00272026-11-12 09:44:03 \u002B08:00\u0027 --full-history --no-merges -- lib/page/setting/mcp_server.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/page/setting/mcp_server.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ee8864d85ea10cdaa0694f5b5fcbb9e720a5c98e4e0004bff4a06bf2d5cf2d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 3 significant file(s) lose their only recent owner: lib/mcp/mcp.dart, android/app/build.gradle.kts, lib/llm/prompt.dart. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fd38b22e82f0cfd12b67335eb3e4ac548a17703d09543d720aa1c10226c9430c"}},{"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/widgets/cache_image.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe73e02349c1ce9ebf71f9b21ea740ab7c3c8ba60f1a56ad6b04c8b6498d437d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: fix this error \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/widgets/markdown/widgets/mermaid_diagram_view.dart"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"9496c20a11dc3c9bb4a9ed3220c819418d9ddaa31d596f72344e7726e35e0d63"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Localize \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/page/setting/mcp_info.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3e4e7beb88234f872316bf749f25daa70c487ff892286f9dd059e177344cab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Localize \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/page/setting/mcp_info.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"03360fe12c43a976bcec73c892bf317a364cae7642917c4249c224544daa5cd9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //   \u0027title\u0027: \u0022Resource\u0022, // TODO: Localize \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/page/setting/mcp_info.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd76eacddd9f5235342b5637177d1ba0c7f5550016aef495e770001889a35e9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //         \u0022No resource data available.\u0022, // TODO: Localize \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/page/setting/mcp_info.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2328583d744554d8dafa3668b7442fe4ed97754ed5951c04e425f7f532b2a3c4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //   \u0027title\u0027: \u0022Prompt\u0022, // TODO: Localize \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/page/setting/mcp_info.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a94cb5651abcf1bf6635f5ccaa8084d117e15950bb1dfab8b8421595a276fbd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //         \u0022No prompt data available.\u0022, // TODO: Localize \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/page/setting/mcp_info.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9e9f24eb6d367a4e7d3729364b182c5ad3f9f8697f2edc76f0a7e01731f462"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO : need to refactor the database helper class \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/dao/init_db.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b418e364fde7f9cc51e29436295dcaed815d4ccd63af8eeaa2f4a3ca12a00157"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060macos/Runner.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Runner.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f0bd4325cb484fa699f9766497db05ed665b24b57923e0afe7629a5ed95be7"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 4 project(s) overshoot their size bounds, lowering Project Cohesion to 5.0/10. The most over is \u0060(repository root)\u0060 (20393 LoC, 220 module-visible types across 28 directories). 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":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"37d3ac1bd8810cdee2a2460e11c79c76338c8d671e0cfff617d6cc77e2f8b67a"},"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":"f3b188b7b3bd34142112a656816431e58e067c80ee1611c74299edb3d282bf5f"},"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":"f4a2a778e4840e57243eb5e382efe2051d8079b75ea80aa7fe305d7038e9f7fa"},"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":"0b7634f073833f51f784ab38d3fc9e1bd59af636a89097007ff9bd7ea8bc3a10"},"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":"2d9709dcd213a04d675c0d89f9e55335324df8179f4f32de394100fc10c75345"},"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":"c4f2559ce82a1599533bc76bfbba3527874ebe6222a118633ba6a297907d4454"},"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":"9603565aa6069e0abcf535dcde33980e7f55a15fa6af1c7abedeeffe7f52bf08"},"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":"188b0fa7f5d9a6fe39b67b6c9d2c56717a9c8395e8dfaee45f9a83ed7f988f9a"},"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":"5a77108e1d256c1d6e8ae35d3be0d258e08577e7b2b8376c43e75ef3a5d95d5a"},"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":"42ecc892a05ce32d1ed0afeeb4bc0c444dc3fdc5be59428458f517f43d793973"},"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":"4329d8f560fce2a040040db2a937617dde27d40fcd22268e173adad16358e7cf"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-668","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":"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":"8f177b03a37c3ab9978e4a819ef0a3bfd633f205db9f8d5e791297e027c6df34"},"taxa":[{"id":"CWE-494","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":"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":"74e4d9d0be6b8e3d81f682a38fbea383bbb915e487a9f94dfff6f7f8d18c5700"},"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":"c7155ef539c11431eedbd29fb54f7565cfcc13ba4ba088f0563a46679cb845fd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b20c9e3f5f07cd9ed7d38e1ad9e3677b956fa28fa72534ce39bdba4769b42e6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9dab14571f2b5a8f14efc3075a1a7094996ca2c12e168f7011aed240df20104e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e70370835a6098b047e3f89b14be691b6deae1472ae895a8d4c3ac163ee3faee"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1151c8080827ccea7beee3d77d92114f52280342dc90e9f83bb51c5701009792"},"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":"0073c51c29d69d1c6bcd5b180f7ad4cc76c27f6c58a7571bb07144322d3a83b4"},"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":"8630c7ac6a0cefe483b018d9f11144902fcd5188d4d04b20194a731bd0cd5693"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6aa57de9e5b4d3cfa5f7b49c79e57d02c482647d3ed3e3fc01fca52c0f210f5e"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c513deb5fd67fbde72486a558afe44d133cdefab3dbe6c49949030f7ae7f301c"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"08a48b1a5d18dad4d44aa67da6188190ab35e4b064f1f3e46f7005b6d4d03f28"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"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":"9aa1dded80e474d3fb7a0903dc20b97d618941cd709c4bdf47752a609b5c6404"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"8bf11288849e8f16dd72a58d7519b2f1db97b169c38f2bbe42d83e7e235fee63"},"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":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 5 of 74 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 74 of the 125 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: lib/utils/oauth_web.dart, lib/utils/oauth_discovery.dart, lib/llm/foundry_client.dart, lib/llm/claude_code_client.dart, lib/mcp/models/server.dart. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/oauth_web.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78706573f13bd810d9994e47bd8c29de58b15fa4d9298398c4be667e3a27cc78"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/oauth_discovery.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ab248858f18071c5f75120ad4e4d2e454afb53fba1eeb8f43e56711702b214"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/foundry_client.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e28ea000041df4badad48368e493b660a48fecf03b81b23ff0717388cfe039"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/claude_code_client.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21aa817bd2deb428a72e5d9989869c7e827e686686886d6a19aaaefe883b0e7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/models/server.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfac65c23bce6d4917a9a0083ba9ef4f7385e9d1cf175ad410cb4f6ff27000dd"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: chat_message.dart \u2194 chat_page.dart: \u0060lib/page/layout/chat_page/chat_message.dart\u0060 and \u0060lib/page/layout/chat_page/chat_page.dart\u0060 change together 65% of the time (13 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u00605a834f6e\u0060 added new toke usage feature for openai and gemini model; \u0060294d66a4\u0060 fix: Rendering and Life-cycle Errors in Chat Message Streaming, Issue\u2026; \u0060c84141ec\u0060 up \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/chat_page/chat_message.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"020c3bdab557e04969e789e11fdcc9ad669e0cbe5b8f11bc3a303d8fddbcd269"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7be964b311a6380af50ea81671ece9780d741f767dc79e47c2b108618722cf0c"}},{"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":"96f2bbc838ce34947853cac35aab09874036329a328dad1997ddda8de357639b"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"171a5915161e926e35d9f9302156f7a2c57d16c96d5bdd1af3f21e2d4308269b"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"318bbb3992e518b8d03be785b994dc874459af06685b2f8afa054c431ff36b02"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"index.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c03112092084821eb10323780c41f92cd64c7f4713debc46d9031ab90eaa76"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"index.html"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"732c4587b5831e9d9da4b05f6bb12d9a8a817ddcc0ff07809f91bca0b3a52697"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/oauth_callback.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8ee2d742aaf2b198b524e97b49405d4fedf5a4b09812316f84f36276461dc5"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/oauth_callback.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"958adfe1af13fe1e0da1fc3ded9799222791e29080ff2c7f2956cdcc9ff63dc1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.2:1): \u0060.error-overlay\u0060 sets color: white on background-color: #ff5252 \u2014 3.2:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"index.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ed4c8d3e5a4c5f29e47362e15327047c4c77b5156e6a57316e3a94beebca0e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.spinner\u0060 moves (\u0060animation: spin 1s linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/oauth_callback.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a098958ead79576a9de8625f3f84640420d82b894bd7aa0e354f901799f008ee"}},{"ruleId":"C2","level":"warning","message":{"text":"No authorization: This repository serves requests \u2014 a shelf server (shelf_io.serve) (lib/services/network_sync_service.dart:63) \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/services/network_sync_service.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8742330ddf7c406c7b26e94d81080e87a2893e3be8dc9c91c8b7d283e2b386f"}},{"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":"M4","level":"note","message":{"text":"README/code drift: README_ZH.md links to \u0060./docs/mcp_stdio.webp\u0060, but \u0060docs/mcp_stdio.webp\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README_ZH.md"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5968f2a91dc3973457d730a924f61c45c045b72b26f4188758271537aa4b4ba"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README_ZH.md links to \u0060./docs//mcp_sse.webp\u0060, but \u0060docs/mcp_sse.webp\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README_ZH.md"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b8798f9ee425e593a47cfb0e4841cf239d558814bfeabcc217af85f8c60454"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060ios\u0060, \u0060macos\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 3 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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/format.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"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":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"S1","level":"error","message":{"text":"TLS certificate validation disabled: \u0060badCertificateCallback\u0060 returning \u0060true\u0060 is set on a TLS client, so every peer certificate is accepted \u2014 including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic \u2014 the connection is encrypted to the attacker, not to the intended host. Remove the callback so \u0060dart:io\u0060 validates the peer. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: load its CA into a \u0060SecurityContext\u0060 (\u0060setTrustedCertificatesBytes\u0060) and pass it as \u0060HttpClient(context: \u2026)\u0060 / \u0060SecureSocket.connect(\u2026, context: \u2026)\u0060, which keeps the chain and hostname checks on. A callback that must exist should compare the presented certificate with a pinned fingerprint, never return \u0060true\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/llm/base_llm_client.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e301293638d2b98f80adf07348f3ed0f58a92e1198c594a93ebd96224f69a0"}},{"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: pubspec.yaml:79 \u2014 depends on \u0060shelf\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: pubspec.yaml:79 \u2014 depends on \u0060shelf\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_cachedServers == null || _cachedServers!.isEmpty\u0060 appears character-identically in 2 files \u2014 lib/page/layout/widgets/conv_setting.dart, lib/page/layout/widgets/mcp_tools.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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb494cc8c957f1cece6c24f51b7b5a50fd190eccd67fe34075138996b6e769e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060contentParts.length == 1 \u0026\u0026 message.files == null\u0060 appears character-identically in 3 files \u2014 lib/llm/claude_client.dart, lib/llm/foundry_client.dart, lib/llm/openai_client.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/llm/claude_client.dart"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf253739bea06195e2ab02564e26ce2b87c8357cb7ec2cf7d68518478bab5f2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060delta[\u0027content\u0027] != null || toolCalls != null\u0060 appears character-identically in 3 files \u2014 lib/llm/foundry_client.dart, lib/llm/ollama_client.dart, lib/llm/openai_client.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/llm/foundry_client.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"0100953d50687772c566e639b234140b1ed9a57f93be1e0d73da4c96bfe6ed03"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060json[\u0027choices\u0027] == null || json[\u0027choices\u0027].isEmpty\u0060 appears character-identically in 3 files \u2014 lib/llm/foundry_client.dart, lib/llm/ollama_client.dart, lib/llm/openai_client.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/llm/foundry_client.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb61805e4c4a98f04a1e3c7cb0eedd94f46028456d6aaa2c919d26f05f7aab66"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060m.role != MessageRole.assistant || (m.role == MessageRole.assistant \u0026\u0026 m.content != \u0027\u0027)\u0060 appears character-identically in 2 files \u2014 lib/page/layout/chat_page/chat_message.dart, lib/page/layout/chat_page/chat_message_to_image.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/page/layout/chat_page/chat_message.dart"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"001945949b256993431fe0dd828a82ea44f579f9bc9e16100a301c113a740fd2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.content != null || message.files != null\u0060 appears character-identically in 2 files \u2014 lib/llm/foundry_client.dart, lib/llm/openai_client.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/llm/foundry_client.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2eb8b8bf8d93c4d3e28c1511fedaedc2e9b351c468173b825470df067eec9b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.id != null \u0026\u0026 _pendingRequests.containsKey(message.id)\u0060 appears character-identically in 2 files \u2014 lib/mcp/sse/sse_client.dart, lib/mcp/stdio/stdio_client.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/mcp/sse/sse_client.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e46255aa32ae5d63c8638361c4b32fdeec75a98ffc58c9568f6ade81d40646"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.role == MessageRole.tool \u0026\u0026 message.name != null \u0026\u0026 message.toolCallId != null\u0060 appears character-identically in 2 files \u2014 lib/llm/foundry_client.dart, lib/llm/openai_client.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/llm/foundry_client.dart"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c07ba374efd8e31cf6c692a96a6f380d214b459ab1a436bcf47268e04e24e10"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060newValue \u0026\u0026 !provider.mcpServerIsRunning(serverName)\u0060 appears character-identically in 2 files \u2014 lib/page/layout/widgets/conv_setting.dart, lib/page/layout/widgets/mcp_tools.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/page/layout/widgets/conv_setting.dart"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa12a1c88b27bbb4f80b4b22596970e5485d60b41aba705bae1482e5fd6f3d2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060request.tools != null \u0026\u0026 request.tools!.isNotEmpty\u0060 appears character-identically in 5 files \u2014 lib/llm/claude_client.dart, lib/llm/deepseek_client.dart, lib/llm/foundry_client.dart, lib/llm/ollama_client.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/llm/claude_client.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"22edda7eced971f2d74c580c3486f703bfee6bb3e1ed0a6a598403c4c81375a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060searchKeyword != null \u0026\u0026 searchKeyword.isNotEmpty\u0060 appears character-identically in 2 files \u2014 lib/repository/local_chat_repository.dart, lib/repository/remote_chat_repository.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/repository/local_chat_repository.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"636ee6ae721d2a2891daa24d71c828f6ccaf6726703dc614ae885d6c93254166"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_ListViewToImageScreenState\u0060 carries a disposal duty \u2014 a \u0060State\u0060, so the framework calls its \u0060dispose()\u0060 when it leaves the tree \u2014 and it creates \u0060_scrollController\u0060 itself (line 27, \u0060ScrollController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_scrollController.dispose()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060ScrollController\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_scrollController.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/page/layout/chat_page/chat_message_to_image.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaae86f6c4ef23daba8dd71a4504433db863d76130c2244761b6bc04c49b383f"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a CancelToken: Only 0/4 functions that make a cancellable request (Dio, AbortableRequest) accept a CancelToken or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a screen navigated away from, a disposed widget, a superseded search. Take a \u0060CancelToken? cancelToken\u0060 and hand it to the request as \u0060cancelToken:\u0060 (or hold one and cancel it in \u0060dispose\u0060); where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"767a6f188a93a9fdcf866e430f9755aeab7ca6acdd21a1a80f8ac4ef4cc6cf7c"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: syncFromRemote: \u0060syncFromRemote\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network_sync_service.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"11243d2e0de75ce8753066c8830792cd46c13b6b20c021a04326f0f84b0cc8fe"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: pushToRemote: \u0060pushToRemote\u0060 calls \u0060dio.post(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network_sync_service.dart"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7b96a6dd3e00996881db3e5c438b1f9943c4bb6967c24e403926061f237c32"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _checkServer: \u0060_checkServer\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network_sync_service.dart"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d65f0de14492b326552b7f7700fab08b48efcb7c145e752251bddef0751a45"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: getServerInfo: \u0060getServerInfo\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network_sync_service.dart"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13db40fbb764b25f0a12880aedbc312962b2b9321a135f954a80d54b169190c"}},{"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":"web/sqflite_sw.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7986c3a34e97dce7bb505b4496d45ec1e21a802fd02f7a8a036e1cea59e6c6"}},{"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":"web/sqflite_sw.js"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"65885c2462c51e943cd4aea099508f168fc7452bf2c80a6d15d04cb39d1234c9"}},{"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":"web/sqflite_sw.js"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"101d98a00f48d2f023f45cb35f97779cd54b47aac44ce92c47d1fabdca541987"}},{"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":"web/sqflite_sw.js"},"region":{"startLine":3595}}}],"partialFingerprints":{"codehealthFindingId/v1":"e037e412633964d6f4bee6def914d4ff26e62b4f270c8d7f4fc20288a12c248d"}},{"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":"web/sqflite_sw.js"},"region":{"startLine":6073}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c4c7e282ae534776622e8e47de5ff12ae0f35e7d7002122bb7b36c395490d4"}},{"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":"web/sqflite_sw.js"},"region":{"startLine":6078}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae76745997b5d4ecc22386f341b7f2387159b2bfadec80a3af4cd9e136f2b72"}},{"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":"web/sqflite_sw.js"},"region":{"startLine":6991}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c20ecffd30fd7e1f7938fe00c9b5fd24e98d8cc2f874f92d507756fbc0dba5"}},{"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":"web/sqflite_sw.js"},"region":{"startLine":7134}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a1856bbd910677d7dfa2b75b9497ba7a5dba1c9a5467bd979ee23cf774a3fd"}},{"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":"web/sqflite_sw.js"},"region":{"startLine":7445}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6ec7d34e933822c02fffa8082b7460810618a82dd230c60650e9f20aac477a"}},{"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/process.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9597fa6bfed0ab12bf75641c1f805e49176f3509895c86c4597365b6509cc916"}},{"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/services/network_sync_service.dart"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"417ef78ff95f767cef2c78179a0bbbeb7057b2dcd2f9d3510b5fc15304017f32"}},{"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/provider/mcp_server_provider.dart"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d31478cbbb1193ef985b14f499d17bbf02a37afff901a34c67274dac084d60"}},{"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/page/setting/mcp_server.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1285b0de5221c0fe174b54eb96cb8ad6a698b05bc6964688cd026d002c197bc"}},{"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/mcp/inmemory_server/math.dart"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"002287660b7f40bc56dc8c4b48e8a9388bc2a6ac7c1b35c05593434bdb577578"}},{"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/llm/claude_code_client.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ddf9aaf3beb9d0b20ca2caee71e681e8491777bcf2024b37b2de4c2d281630"}},{"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/llm/claude_code_client.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d59657e739b978a1100d957c6eed590bb3f73243a8cb583ef281d88b88d545d"}},{"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":"assets/js/turndown.js"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74f8a21a0c45ca5d6dcf24f863416eda78b34e23239f920c80cd420f6d416da"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-561","guid":"522a7ba7-45e9-ab53-9088-45d86e04b53a","name":"CWE-561","shortDescription":{"text":"CWE-561"},"helpUri":"https://cwe.mitre.org/data/definitions/561.html"},{"id":"CWE-668","guid":"e2cb99db-6d24-b056-b0d0-885a733ec403","name":"Exposure of Resource to Wrong Sphere","shortDescription":{"text":"Exposure of Resource to Wrong Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/668.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":33,"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."]}]}