{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"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":"LocalizedShortcutLabeler.getShortcutLabel (cyclomatic 26): LocalizedShortcutLabeler.getShortcutLabel 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":"packages/gallery/lib/shared/localized_shortcut_labeler.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5991acaa242bff7438b43b86b0cd5f5ded482d3793b8d577689708646e56df5"}},{"ruleId":"D1","level":"warning","message":{"text":"_RenderMenuPositioner._resolveAxisComponent (cyclomatic 25): _RenderMenuPositioner._resolveAxisComponent has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/base_menu/lib/src/menu.dart"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a27f8e6c34f954468b3f6e72be41c06395cb65d4f9fc34bf67f89c97a3838c"}},{"ruleId":"D1","level":"warning","message":{"text":"_EditorModel.updateShouldNotifyDependent (cyclomatic 21): _EditorModel.updateShouldNotifyDependent has cyclomatic complexity 21 (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":"packages/gallery/lib/floogle_docs/src/widgets/app_state_manager.dart"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"424522e84b619c4dabebeaf76ce54c81b906e79371639a62386ca24f2ff5c76f"}},{"ruleId":"D1","level":"warning","message":{"text":"_TileLinePainter.paint (cyclomatic 18): _TileLinePainter.paint has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/floogle_docs/src/widgets/adapters/menu_entry_tile_group.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b45a18e387a7a2fb672a1f5aa3d18ff53818d5583f519c99103130da6ceb776"}},{"ruleId":"D1","level":"warning","message":{"text":"_RenderMenuAimListener.hitTest (cyclomatic 16): _RenderMenuAimListener.hitTest 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":"packages/base_menu/lib/src/aim.dart"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb60341ecf57acb6c89eb62281dc3a9249416e8a44e34a110cc3f3dbf7421d0"}},{"ruleId":"D1","level":"warning","message":{"text":"_RenderMenuPositioner.performLayout (cyclomatic 16): _RenderMenuPositioner.performLayout 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":"packages/base_menu/lib/src/menu.dart"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"976762f7cd46fdc4abab07b4ce8ab419741c2289cf7b0cd2e9e1e9a8bf8a221b"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalizedShortcutLabeler.getShortcutLabel (cognitive 67): LocalizedShortcutLabeler.getShortcutLabel has cognitive complexity 67 (threshold 15). Drivers by points: if/else 28 (65 pts), boolean chains 2 (nesting depth added 37). 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":"packages/gallery/lib/shared/localized_shortcut_labeler.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"210976c2da2a5995e99abf62dfc56cad61b1fe864b0a45adf7361c858cd63db0"}},{"ruleId":"D2","level":"warning","message":{"text":"_RenderMenuPositioner._resolveAxisComponent (cognitive 55): _RenderMenuPositioner._resolveAxisComponent has cognitive complexity 55 (threshold 15). Drivers by points: if/else 16 (33 pts), ternaries 5 (17 pts), boolean chains 5 (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":"packages/base_menu/lib/src/menu.dart"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"c705c87506ea1c21bb46e10fb6297b5f371d51cf33c5c7e831704fcb69e72b14"}},{"ruleId":"D2","level":"warning","message":{"text":"_RenderMenuPositioner.performLayout (cognitive 27): _RenderMenuPositioner.performLayout has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 4 (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":"packages/base_menu/lib/src/menu.dart"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9d40b7393f25a8061f12d8a34ec475e734b7cf70f985bcb654812cc190cd81"}},{"ruleId":"D2","level":"warning","message":{"text":"_TileLinePainter.paint (cognitive 20): _TileLinePainter.paint has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 1 (4 pts), loops 2 (3 pts), match/switch 1 (3 pts) (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":"packages/gallery/lib/floogle_docs/src/widgets/adapters/menu_entry_tile_group.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"837ad7993962d4b5f221b50588e01e8b9bd2538838a831b57c08e1309c57b110"}},{"ruleId":"D2","level":"warning","message":{"text":"_EditorModel.updateShouldNotifyDependent (cognitive 20): _EditorModel.updateShouldNotifyDependent has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 10. 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":"packages/gallery/lib/floogle_docs/src/widgets/app_state_manager.dart"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81a5f1fc503f6cb4519fbe5b21d088ee51ddd2aa91924dda6ecd2cc9cbe389c"}},{"ruleId":"D2","level":"warning","message":{"text":"_RenderMenuAimListener.hitTest (cognitive 20): _RenderMenuAimListener.hitTest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/base_menu/lib/src/aim.dart"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6fad5ac6505b92108009204c26e07e4087e784d564ea98306bed0081af1d57"}},{"ruleId":"D2","level":"warning","message":{"text":"_RulerPainter.paint (cognitive 18): _RulerPainter.paint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (7 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (_VerticalRulerPainter.paint) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/floogle_docs/src/widgets/ruler.dart"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"61883aa20af12cf9d702cf2a30015584d4cb9f93c917c4b14bfe57ea5ecd174a"}},{"ruleId":"D2","level":"warning","message":{"text":"_VerticalRulerPainter.paint (cognitive 18): _VerticalRulerPainter.paint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (7 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (_RulerPainter.paint) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/floogle_docs/src/widgets/ruler.dart"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d409ca05223e2a2f61f77fe9cc4faaa8c1acb4c27b8fcacd2fd904d115f016a"}},{"ruleId":"D2","level":"warning","message":{"text":"MenuEntryPanel.build (cognitive 16): MenuEntryPanel.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (12 pts), match/switch 1 (2 pts), if/else 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/floogle_docs/src/widgets/adapters/menu_entry_panel.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd1a12141fd79e021fa52384f1d6f1dfa987800700889c4bdc9c7627c232d3a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Entry: ClassTooLong \u2014 878 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 478 over it, 2.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/floogle_docs/src/data/entry.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aedf0ea7d1a6666081c65e5723f539fe3d1f9132522a99ba96ec64662d6e9be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/menu.dart: FileTooLong \u2014 1001 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 501 over it, 2.00\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/base_menu/lib/src/menu.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8ba0b4e816c80e3ed0f103f7bd1438c604c74038ac8105f773dd24edd44537"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HorizontalDocumentRulerState.build: MethodTooLong \u2014 build runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\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":"packages/gallery/lib/floogle_docs/src/widgets/ruler.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"598884b38b3e7d7a4f7bc8e41f432573942ff1d9862f427811cf4dc8ddc3e55c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AlignmentTemplateState.build: MethodTooLong \u2014 build 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":"packages/gallery/lib/shared/alignment_template.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a613c3a80f5c7f45634f74908bf81dcbcf482ce99c9f24e46258e9dfcbe0416"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/entry.dart: FileTooLong \u2014 883 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Entry (9-1226). The bar is 500 significant lines; this is 383 over it, 1.77\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":"packages/gallery/lib/floogle_docs/src/data/entry.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15bd17671deca2e9e364eb66bc0d0680f0c9404bfb5eeeea9fbc85c2aebf44e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _TileLinePainter.paint: MethodTooLong \u2014 paint runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/floogle_docs/src/widgets/adapters/menu_entry_tile_group.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2532d6eb5937ac0ead18ced9075a2e3bfb370a38c343df6efa1a45e75c0b52d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GridSliderState.build: MethodTooLong \u2014 build runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/shared/grid_slider.dart"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6630bd4a826eafa89b6350edcb4e94f8eca3eeeac3b14211a53517f050b9c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AppScaffoldState.build: MethodTooLong \u2014 build runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\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":"packages/gallery/lib/app/app.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ff30fa1a7ff06ac1bd1761b3a340afa70c00aeb32838c6853ed9527a0c406f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/app_state_manager.dart: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded), about 71% of them inside a single declaration: _AppStateManagerState (105-665). The bar is 500 significant lines; this is 76 over it, 1.15\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":"packages/gallery/lib/floogle_docs/src/widgets/app_state_manager.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b5998c803d5416ee06d062f2dcdb384e70528b1edef96f53808205811d19e1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _RenderMenuPositioner: 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":"packages/base_menu/lib/src/menu.dart"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae91294cfe4673c2409f5a6e90ad2d400669ee54491f4709bff3104b5ccef36b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _AppStateManagerState: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/floogle_docs/src/widgets/app_state_manager.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c9ee6b10383d29a979d33ba2e1f34ad5a7a48329b00e6ce7fa7fb5cbf0bac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (81 corresponding lines): packages/gallery/lib/menubar/src/menubar.dart:28-108 | packages/gallery/lib/submenu/src/submenu.dart:24-116 \u2014 These two members are one piece of code written twice and then edited apart: 81 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":"packages/gallery/lib/menubar/src/menubar.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bdb13a76f3d424bbec245212ac27c2a71c57d992af24a096a039c85b6acecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): packages/gallery/lib/floogle_docs/src/widgets/ruler.dart:359-414 | packages/gallery/lib/floogle_docs/src/widgets/ruler.dart:547-604 \u2014 These two members are one piece of code written twice and then edited apart: 56 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":"packages/gallery/lib/floogle_docs/src/widgets/ruler.dart"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9013f7246b556eca2c802cc55290a131ba612a628a03a0e573c5bce86f9196"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart:128-167 | packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart:173-216 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b31b8066212480894652e580420fc97cd5e7e1a30ff03b627620d50727bc8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): packages/gallery/lib/menubar/src/menubar.dart:146-189 | packages/gallery/lib/submenu/src/submenu.dart:154-198 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/menubar/src/menubar.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9e02afd07238ddc83ccb64c5949510db4fd52d937ed81f030d2769cb22b323"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): packages/gallery/lib/looking_glass/src/surface.dart:202-234 | packages/gallery/lib/sequoia/src/surface.dart:148-177 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/looking_glass/src/surface.dart"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e976f86db81453cf8508e6572d297093bffbe5603ea08f5c3117f25b05f1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): packages/gallery/lib/cupertino_menu_bar/src/context_menu.dart:42-75 | packages/gallery/lib/floogle_docs/src/widgets/menus/context_menu.dart:41-74 \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":"packages/gallery/lib/cupertino_menu_bar/src/context_menu.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"87aaa75f64f296d6bd64c9b1667f4f693040c54bd25195c8a891da645ef6bc87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart:222-249 | packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart:257-275 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aae939f58feabcc8f56be39490da72844cf8b733ed18393b49add3e20b46edc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): packages/gallery/lib/floogle_docs/src/widgets/combo_box.dart:352-367 | packages/gallery/lib/floogle_docs/src/widgets/combo_box.dart:369-384 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/floogle_docs/src/widgets/combo_box.dart"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d62ed983bdf4e71d854c5f94b1ac75f4ab6be34c60f9c6e58c4d1d55108dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): packages/gallery/lib/floogle_docs/src/widgets/ruler.dart:425-436 | packages/gallery/lib/shared/checkbox.dart:18-33 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/floogle_docs/src/widgets/ruler.dart"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"379f3bfabad1cee03ecf70a91166d0f22d514d56eae8065a17af56fbd2d3c8b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): packages/base_menu/lib/src/menu.dart:1211-1225 | packages/base_menu/lib/src/menu.dart:1231-1244 \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":"packages/base_menu/lib/src/menu.dart"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c619ef60d926be3f93599ca1591435529ea38814f56785f7675220fe6b17046"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): packages/gallery/lib/menu/menu_app.dart:10-23 | packages/gallery/lib/menubar/menubar_app.dart:10-19 | packages/gallery/lib/submenu/submenu_app.dart:10-23 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/menu/menu_app.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ccf84c28fd958ce833e1ef5fd163e6b80d698bf6b97165f8c67b5aa2792672"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): packages/base_menu/lib/src/submenu.dart:422-433 | packages/base_menu/lib/src/submenu.dart:435-446 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/base_menu/lib/src/submenu.dart"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e68573e1820004a59b1071e69141b7984fb90a630c7f8099aad7bf79b2e959c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): packages/gallery/lib/floogle_docs/src/widgets/toolbar.dart:348-364 | packages/gallery/lib/floogle_docs/src/widgets/toolbar.dart:366-382 \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":"packages/gallery/lib/floogle_docs/src/widgets/toolbar.dart"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e8f781bd58934fe48317f62d7af5501b70f95c29c469272846693e136fd3e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): packages/base_menu/lib/src/menu_item.dart:196-207 | packages/gallery/lib/floogle_docs/src/widgets/popup.dart:60-71 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/base_menu/lib/src/menu_item.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"e114e8d828b7ded194256c94528db8012c76cfed84e3421a49c21a049be7752f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): packages/base_menu/lib/src/menu.dart:627-637 | packages/base_menu/lib/src/submenu.dart:254-265 \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":"packages/base_menu/lib/src/menu.dart"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"45354fb6c0af87eab46d1af98fd510c179fd265bda3b4775a322c0c7abf58289"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): packages/base_menu/lib/src/focusable.dart:90-95 | packages/base_menu/lib/src/hoverable.dart:94-98 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"packages/base_menu/lib/src/focusable.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"db38b1fee7140f41d6dc844dff1eb2de31303a245e12099d0354f070e07d9d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): deployments/base_menu/lib/firebase_options.dart:18-53 | deployments/floogle_docs/lib/firebase_options.dart:18-53 \u2014 before extracting anything, compare \u0060deployments/base_menu/lib/firebase_options.dart\u0060 and \u0060deployments/floogle_docs/lib/firebase_options.dart\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deployments/base_menu/lib/firebase_options.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadad7a3e7c135f482e8e8e82a01ed8e2d3e98ff2565cecd67537daa86c5bd93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): packages/gallery/lib/cupertino_menu_bar/src/context_menu.dart:159-183 | packages/gallery/lib/cupertino_menu_bar/src/menu.dart:153-178 \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 \u0060packages/gallery/lib/cupertino_menu_bar/src/context_menu.dart:159\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":"packages/gallery/lib/cupertino_menu_bar/src/context_menu.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22263aef1387bac2e6629569377f30446f2e88c031e471a219bfe3d8f3743f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): packages/gallery/lib/menu/src/menu.dart:31-51 | packages/gallery/lib/positioning/src/positioning.dart:71-91 | packages/gallery/lib/submenu/src/submenu.dart:32-52 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/gallery/lib/menu/src/menu.dart:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060packages/gallery/lib/menu/src/menu.dart:52\u0060 calls \u0060ClipRRect\u0060, \u0060circular\u0060 and \u0060packages/gallery/lib/positioning/src/positioning.dart:92\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":"packages/gallery/lib/menu/src/menu.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa379f21b7f9db1606f45bbe4651353bab2509a3c5431845a7478497431b2053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): packages/gallery/lib/floogle_docs/src/widgets/ruler.dart:391-410 | packages/gallery/lib/floogle_docs/src/widgets/ruler.dart:577-596 \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 \u0060packages/gallery/lib/floogle_docs/src/widgets/ruler.dart:391\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":"packages/gallery/lib/floogle_docs/src/widgets/ruler.dart"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a639aeb4cc9f908c368c5b4c4eb7c1f71b1a0af48630e53439b0a2d09447ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): packages/gallery/lib/cupertino_menu_bar/src/context_menu.dart:55-70 | packages/gallery/lib/floogle_docs/src/widgets/menus/context_menu.dart:54-69 \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 \u0060packages/gallery/lib/cupertino_menu_bar/src/context_menu.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. 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":"packages/gallery/lib/cupertino_menu_bar/src/context_menu.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c44b3b1040d7cf754363e19afef912f1f78be1e754a75fa7d84a82bb08be97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): packages/gallery/lib/menubar/src/menubar.dart:174-189 | packages/gallery/lib/submenu/src/submenu.dart:183-198 \u2014 before extracting anything, compare \u0060packages/gallery/lib/menubar/src/menubar.dart\u0060 and \u0060packages/gallery/lib/submenu/src/submenu.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/gallery/lib/menubar/src/menubar.dart:174\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":"packages/gallery/lib/menubar/src/menubar.dart"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8230c1501aa4574be2c8af9c4fd77f1c6e5db1a3b00c4aaf0f7b7cbf4d272dff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/gallery/lib/menubar/src/menubar.dart:71-83 | packages/gallery/lib/submenu/src/submenu.dart:78-90 \u2014 before extracting anything, compare \u0060packages/gallery/lib/menubar/src/menubar.dart\u0060 and \u0060packages/gallery/lib/submenu/src/submenu.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/gallery/lib/menubar/src/menubar.dart:71\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":"packages/gallery/lib/menubar/src/menubar.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"f658d6a21490f0363212bcd4bdd5f5ca6889e5dbf10f4282640fba6e33c15d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): packages/gallery/lib/menubar/src/menubar.dart:161-172 | packages/gallery/lib/submenu/src/submenu.dart:171-182 \u2014 before extracting anything, compare \u0060packages/gallery/lib/menubar/src/menubar.dart\u0060 and \u0060packages/gallery/lib/submenu/src/submenu.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/gallery/lib/menubar/src/menubar.dart:161\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":"packages/gallery/lib/menubar/src/menubar.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"73de0cc4657a81cfc39c0a9a915b557fa014afbe4ca65eecff4fcab1a4d6a1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): packages/gallery/lib/floogle_docs/src/widgets/title_field.dart:93-103 | packages/gallery/lib/shared/grid_slider.dart:463-473 \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 \u0060packages/gallery/lib/floogle_docs/src/widgets/title_field.dart:93\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":"packages/gallery/lib/floogle_docs/src/widgets/title_field.dart"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd96ccd818032923984f93dbe5e0670bb1c8f63e1b4bfc175fd4f5cc2200331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/gallery/lib/floogle_docs/src/widgets/adapters/menu_entry_panel.dart:75-84 | packages/gallery/lib/floogle_docs/src/widgets/adapters/menu_entry_panel.dart:106-115 \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":"packages/gallery/lib/floogle_docs/src/widgets/adapters/menu_entry_panel.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f673d92c301d4c5755eb6af408b557a8bd3e6701c90bd240c8e1e0c920e0cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart:140-147 | packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart:190-196 \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 \u0060packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart:140\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":"packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b211d81b9f135b7a95bde1c9eaea589fb087c58d95929697f6ebfaa62eddd5f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/base_menu/lib/src/submenu.dart:427-433 | packages/base_menu/lib/src/submenu.dart:440-446 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/base_menu/lib/src/submenu.dart"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b413aac97680cd8a2a4c51aae6e6788d9adfebda0254c34d84b873f80bafc25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart:156-161 | packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart:204-209 \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 \u0060packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart:156\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":"packages/gallery/lib/floogle_docs/src/utilities/style_segment_tree.dart"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b20f129bf2a3affcc3336d6d594e9ff3ffef75a17026d626b744873746e0b4fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/base_menu/lib/src/menu_item.dart:188-194 | packages/gallery/lib/floogle_docs/src/widgets/popup.dart:52-58 \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":"packages/base_menu/lib/src/menu_item.dart"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8199ca2b16309bffd9f11be726aff9963e36b0284dadb29f40fe694f315db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/gallery/lib/looking_glass/src/surface.dart:189-194 | packages/gallery/lib/sequoia/src/surface.dart:135-140 \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":"packages/gallery/lib/looking_glass/src/surface.dart"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da414cb1568948f4e285e6577cc198f1bdcd7f672fdba8b62ea995ff2cedd57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): packages/gallery/lib/menu/src/menu.dart:93-99 | packages/gallery/lib/menubar/src/menubar.dart:116-122 | packages/gallery/lib/positioning/src/positioning.dart:116-122 | packages/gallery/lib/submenu/src/submenu.dart:124-130 \u2014 before extracting anything, compare \u0060packages/gallery/lib/menubar/src/menubar.dart\u0060 and \u0060packages/gallery/lib/submenu/src/submenu.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/menu/src/menu.dart"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc542839993f01ef0f3005dd258b14dfa773230635c457afa77470f0d973966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/base_menu/example/ios/Runner/AppDelegate.swift:6-15 | packages/gallery/ios/Runner/AppDelegate.swift:6-15 \u2014 before extracting anything, compare \u0060packages/base_menu/example/ios/Runner/AppDelegate.swift\u0060 and \u0060packages/gallery/ios/Runner/AppDelegate.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/base_menu/example/ios/Runner/AppDelegate.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f1dd77f48a59c9d0768d3ae7da7da723dec1de40b981387132183b29e36580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/base_menu/example/macos/Runner/AppDelegate.swift:6-12 | packages/gallery/macos/Runner/AppDelegate.swift:6-12 \u2014 before extracting anything, compare \u0060packages/base_menu/example/macos/Runner/AppDelegate.swift\u0060 and \u0060packages/gallery/macos/Runner/AppDelegate.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/base_menu/example/macos/Runner/AppDelegate.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7cda26025b25bad062c7a1acaada82c928395891579e2daebf4e4938dae66d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/base_menu/example/macos/Runner/MainFlutterWindow.swift:5-14 | packages/gallery/macos/Runner/MainFlutterWindow.swift:5-14 \u2014 before extracting anything, compare \u0060packages/base_menu/example/macos/Runner/MainFlutterWindow.swift\u0060 and \u0060packages/gallery/macos/Runner/MainFlutterWindow.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/base_menu/example/macos/Runner/MainFlutterWindow.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"407c87297ebf6f172bb41a57aab4c53bda90636242b9ae6565ea1c0ae31a0687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): packages/base_menu/example/lib/main.dart:51-81 | packages/base_menu/example/lib/main.dart:84-114 \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 \u0060packages/base_menu/example/lib/main.dart:51\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":"packages/base_menu/example/lib/main.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0aa08faca10152efc281ba3d7cc09f5eb1ada97a78a1d0be26d94ec066cfa6a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: base_menu: base_menu: abstractness 0.12, instability 0.00, distance 0.88 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"68a4e11843c490a389e1b0fb2e520ffae1b94b882373dd2b9ee80250294048a8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _RenderMenuPositioner (LCOM4 8): _RenderMenuPositioner\u0027s methods fall into 8 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 8 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":"packages/base_menu/lib/src/menu.dart"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"818040facbfddc6c0e86ecc7b8d4b620a8804dc48b85e62dfde7cc173aed81c2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _BaseSubmenuState (LCOM4 7): _BaseSubmenuState\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":"packages/base_menu/lib/src/submenu.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1f61a707dc3d640c0ecff57ba2c5e34bdb2a2dd86255abe948f624f0a0490c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _AlignmentGridSliderFormatter (LCOM4 6): _AlignmentGridSliderFormatter\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/lib/shared/grid_slider.dart"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"e966c79d6544348acc57445b574ed9cea898507d5dfe13421fbdc793f7bf02d0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _BaseFocusableState (LCOM4 5): _BaseFocusableState\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/base_menu/lib/src/focusable.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d748033b0de28b6cefb511f1d2eb481de6777477c8fe54c2fea26c0bc7021e2f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditorController (LCOM4 4): EditorController\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":"packages/gallery/lib/floogle_docs/src/utilities/editor_controller.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"908e234ec53f2780570d36a0d9cf1a59edbeb57e2914637fb53d42a9aaa942a5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ComboBoxState (LCOM4 4): _ComboBoxState\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":"packages/gallery/lib/floogle_docs/src/widgets/combo_box.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c835af9fb5b29119317dd8ca5238c9e58683d6741adf7d780e598439cbd294b0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _EditableState (LCOM4 4): _EditableState\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":"packages/gallery/lib/floogle_docs/src/widgets/editable.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db632a638c7ba4856fe0ccb1e74c9229c5e7c6ed3349ddefedb77141bc979da"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _PixelGridSliderFormatter (LCOM4 4): _PixelGridSliderFormatter\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":"packages/gallery/lib/shared/grid_slider.dart"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3e4624dbfd6f2877aa272084d379a1e4d27bcc0c225d4a5798f36d85d43876"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _BaseHoverableState (LCOM4 4): _BaseHoverableState\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":"packages/base_menu/lib/src/hoverable.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fee03c22b40afac806e69247bb19dab1d836775d7586083db47d3fd4892eb52"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _BaseMenuItemState (LCOM4 4): _BaseMenuItemState\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":"packages/base_menu/lib/src/menu_item.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"99adc2c1af72662c1c1e8d2676df7871d6aba41864fe970519c165e028b37507"}},{"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 \u0060packages/gallery/macos/Runner.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/macos/Runner.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b775b05178ca9e259ed42d3f817d881480f4bf3c248f04cd196a074523378a8c"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060packages/gallery\u0060 (17698 LoC, 370 module-visible types across 34 directories) overshoots its size bounds. 1 of 7 build unit(s) (Gradle, Xcode, pub) overshoot their size bounds, lowering Project Cohesion to 7.1/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"568b450c9fd5ed97e9cc9ebdee0deb9ef1ba156321fca20bf36b89751b5d5936"}},{"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":"95bf4b7829ab55b3ee4f2506e3320b86eb19c729d3a734e07c2b0f7ea5fb6a0a"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05: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":"840464dcf3f6a73a5c8b38ae764eae06b43c690caa06116b65f8b1f42ab7b4f2"},"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":"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":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 16 public types in \u0060repository.src\u0060 are marked as implementation by their own namespace, folder or name: \u0060GestureMode\u0060 (packages/gallery/vendor/liquid_glass_renderer/lib/src/internal/glass_drag_builder.dart:4, \u0060internal\u0060), \u0060GlassDragBuilder\u0060 (packages/gallery/vendor/liquid_glass_renderer/lib/src/internal/glass_drag_builder.dart:31, \u0060internal\u0060), \u0060MultiShaderBuilder\u0060 (packages/gallery/vendor/liquid_glass_renderer/lib/src/internal/multi_shader_builder.dart:16, \u0060internal\u0060), \u0060OptimizedClip\u0060 (packages/gallery/vendor/liquid_glass_renderer/lib/src/internal/optimized_clip.dart:4, \u0060internal\u0060), \u0060LiquidGlassGeometryState\u0060 (packages/gallery/vendor/liquid_glass_renderer/lib/src/internal/render_liquid_glass_geometry.dart:14, \u0060internal\u0060), \u0060RenderLiquidGlassGeometry\u0060 (packages/gallery/vendor/liquid_glass_renderer/lib/src/internal/render_liquid_glass_geometry.dart:33, \u0060internal\u0060), \u0060NineSlice\u0060 (packages/gallery/vendor/liquid_glass_renderer/lib/src/internal/render_liquid_glass_geometry.dart:413, \u0060internal\u0060), \u0060DirectComponent\u0060 (packages/gallery/vendor/liquid_glass_renderer/lib/src/internal/render_liquid_glass_geometry.dart:432, \u0060internal\u0060), and 8 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/gallery/vendor/liquid_glass_renderer/lib/src/internal/glass_drag_builder.dart"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd6a6ee1d0de3b725fac3bcc63096a4aaff5e257bc48016044f16eebeecd98b"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 122 Dart, JVM, Swift production file(s) this check read across 11 module(s). Each was searched for its ecosystem\u0027s logging libraries (JVM: SLF4J, Log4j2, java.util.logging, Logback, kotlin-logging, scala-logging; Swift: os.Logger/os_log/NSLog, swift-log, CocoaLumberjack, SwiftyBeaver, XCGLogger; Dart: package:logging, package:logger, dart:developer\u0027s log()) and for a call on a receiver named \u0060log\u0060/\u0060logger\u0060 (or ending in \u0060Logger\u0060/\u0060_logger\u0060) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read \u2014 this is \u0027no logging found by this walk\u0027, not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment automation exists but no readiness/liveness probes, rolling-update strategy, lifecycle hooks or migration job were evidenced \u2014 a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kIsWeb \u0026\u0026 ContextMenuBlocker.isEnabledOf(context)\u0060 appears character-identically in 2 files \u2014 packages/gallery/lib/cupertino_menu_bar/src/context_menu.dart, packages/gallery/lib/floogle_docs/src/widgets/menus/context_menu.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":"packages/gallery/lib/cupertino_menu_bar/src/context_menu.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44c06686d02c8e61b2b71a747d5853b0486d286020b4461ce016db674c8f48f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060oldDelegate.borderRadius != borderRadius || oldDelegate.color != color || oldDelegate.outerColor != outerColor || oldDelegate.backgroundColo\u2026\u0060 appears character-identically in 2 files \u2014 packages/gallery/lib/looking_glass/src/surface.dart, packages/gallery/lib/sequoia/src/surface.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":"packages/gallery/lib/looking_glass/src/surface.dart"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"34490f9b1a8e1036ea57c307da1312c1c6a778d9deb50b5231b9d6bd413830b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060orientation != _parentOrientation || isSubmenu != _parentIsSubmenu\u0060 appears character-identically in 2 files \u2014 packages/base_menu/lib/src/menu.dart, packages/base_menu/lib/src/submenu.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":"packages/base_menu/lib/src/menu.dart"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"7456e40e81ff8b35ebe5e1aad3df42c62713aecc54778fa4df82925a69a23d3c"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_ComboBoxState\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 294, \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":"packages/gallery/lib/floogle_docs/src/widgets/combo_box.dart"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee1233f4b1625bae0137012ead70988c67d753d1147c60821a67c3d02627636"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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/"}]}],"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":2,"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."]}]}