{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"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":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"SimpleDirectionAnimation.play (cyclomatic 58): SimpleDirectionAnimation.play has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/direction_animations/simple_direction_animation.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea931b690da152216ea8c957a569182ad92228a040a8cfd4fd80ecb92151e46"}},{"ruleId":"D1","level":"warning","message":{"text":"JoystickDirectional.update (cyclomatic 29): JoystickDirectional.update has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/joystick/joystick_directional.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de24eefa9e63930576bf64b5d4f0c033d0b861e93e916240076c217e8b6eab5"}},{"ruleId":"D1","level":"warning","message":{"text":"BonfireUtil.getDirectionFromAngle (cyclomatic 19): BonfireUtil.getDirectionFromAngle has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/bonfire_util.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f047b679dbab20b4b57a8a176a67f2c350ee404ac2793877d953ce6d1dd799fa"}},{"ruleId":"D1","level":"warning","message":{"text":"CollisionApi.onCollision (cyclomatic 18): CollisionApi.onCollision has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/collision/collision_api.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d526e7dd6da1938afa8acf77b6da940dc93d5bd3e70e5cc9bb3b36543f0dd4b"}},{"ruleId":"D1","level":"warning","message":{"text":"LightingComponent.renderTree (cyclomatic 18): LightingComponent.renderTree has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lighting/lighting_component.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92ae313588ae9de1a88cb1a141b2c8b952fcda49ac183a551c7f504d6e09ecb"}},{"ruleId":"D1","level":"warning","message":{"text":"Keyboard._sendTwoDirection (cyclomatic 17): Keyboard._sendTwoDirection has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/input/keyboard/keyboard.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbd3ba1f4219e0514f440e4d08f15270153b1d7aa5286fd17dee19c87dbb2c4"}},{"ruleId":"D1","level":"warning","message":{"text":"TerrainBuilder._handleBottomCorners (cyclomatic 17): TerrainBuilder._handleBottomCorners has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (TerrainBuilder._handleTopCorners) 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":"lib/map/matrix_map/terrain_builder.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b78f94983e9dc17ddd16092f1f319e4f3a9015e9423556f08f5899648950853"}},{"ruleId":"D1","level":"warning","message":{"text":"TerrainBuilder._handleTopCorners (cyclomatic 17): TerrainBuilder._handleTopCorners has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (TerrainBuilder._handleBottomCorners) 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":"lib/map/matrix_map/terrain_builder.dart"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1f03c910361519cd8abefade91aaa7a1131c67ff3b55671756543aef6942d3"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleDirectionAnimation.play (cognitive 83): SimpleDirectionAnimation.play has cognitive complexity 83 (threshold 15). Drivers by points: if/else 45 (76 pts), boolean chains 6, match/switch 1 (nesting depth added 31). 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 file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/util/direction_animations/simple_direction_animation.dart holds 2 of the 19 methods over the threshold \u2014 including the worst \u2014 and 81 of the 166 points over it (49%), 3.4\u00D7 the next-largest file (lib/joystick/joystick_directional.dart at 24). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/direction_animations/simple_direction_animation.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"90dbb9fc39f61efbe19a4f3ac8aebe903e415eaa398d2e0ae9474fff9f589b80"}},{"ruleId":"D2","level":"warning","message":{"text":"JoystickDirectional.update (cognitive 39): JoystickDirectional.update has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 16 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/joystick/joystick_directional.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eac8706e4246c7cfd33c1738e94c3258feff90c6f5a76bd580bf6f007fb5d8f"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleDirectionAnimation._runLeft (cognitive 28): SimpleDirectionAnimation._runLeft has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/util/direction_animations/simple_direction_animation.dart holds 2 of the 19 methods over the threshold \u2014 including the worst \u2014 and 81 of the 166 points over it (49%), 3.4\u00D7 the next-largest file (lib/joystick/joystick_directional.dart at 24). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/direction_animations/simple_direction_animation.dart"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dffb862c05342830fcd9752d4d9fc659b929a9bbaa03bdbfebb094039cb68d3"}},{"ruleId":"D2","level":"warning","message":{"text":"LightingComponent.renderTree (cognitive 24): LightingComponent.renderTree has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 4 (6 pts), ternaries 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lighting/lighting_component.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"89679b36ea5e0970dd3c4a715d7392d171289a0889c3854de06e62c52dabd85d"}},{"ruleId":"D2","level":"warning","message":{"text":"TiledWorldBuilder._addObjects (cognitive 22): TiledWorldBuilder._addObjects has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 3 (9 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/tiled/builder/tiled_world_builder.dart"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"8380f4449cebf4c8824aad16753871d5ce1c89e7f73048bd659d59e9356e4f2e"}},{"ruleId":"D2","level":"warning","message":{"text":"ShapeCollision.isCollision (cognitive 21): ShapeCollision.isCollision has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/geometry/shape_collision.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"995d18d95edbd9ddd7a47105170fb6192887518756df06fa6d9ad72e6fc1f025"}},{"ruleId":"D2","level":"warning","message":{"text":"CollisionApi.onCollision (cognitive 20): CollisionApi.onCollision has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/collision/collision_api.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2431762ed286d8fb3c8e05c860435a514db8e586a43f8a17cab8b0a690bd4c34"}},{"ruleId":"D2","level":"warning","message":{"text":"TerrainBuilder._handleBottomCorners (cognitive 20): TerrainBuilder._handleBottomCorners has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TerrainBuilder._handleTopCorners) 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":"lib/map/matrix_map/terrain_builder.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3cebbe0469fdc8a57e986e5e7a4c0afed3a8c5735faeafe389ea52d0b751e60"}},{"ruleId":"D2","level":"warning","message":{"text":"TerrainBuilder._handleTopCorners (cognitive 20): TerrainBuilder._handleTopCorners has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (TerrainBuilder._handleBottomCorners) 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":"lib/map/matrix_map/terrain_builder.dart"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f905621144a7de3738bee79ad05e8bd08357265ea7c1d70bddd97bb22fedd7"}},{"ruleId":"D2","level":"warning","message":{"text":"Keyboard.onKeyboard (cognitive 19): Keyboard.onKeyboard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 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":"lib/input/keyboard/keyboard.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"646ba581b87953e45f6057910502ae2840759ae864769ed5903e8ac3590ddaf8"}},{"ruleId":"D2","level":"warning","message":{"text":"PushableApi.handleCollision (cognitive 19): PushableApi.handleCollision has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/pushable/pushable_api.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b00cf4ed6f4b6cb58b2d8230ee422cfcad79452f0963a60db10af565ab442f"}},{"ruleId":"D2","level":"warning","message":{"text":"TiledWorldBuilder._loadLayer (cognitive 18): TiledWorldBuilder._loadLayer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 2 (5 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/tiled/builder/tiled_world_builder.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"531a91602cbe2f178f20d6774228dd9423007ef4de22b7523e96d53dfd942636"}},{"ruleId":"D2","level":"warning","message":{"text":"TiledWorldBuilder._addTileLayer (cognitive 18): TiledWorldBuilder._addTileLayer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 6, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/tiled/builder/tiled_world_builder.dart"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8d619d90a29c46a3378a75128a5d66c9dbcbdca4786b73b2a3a6226142ce9e"}},{"ruleId":"D2","level":"warning","message":{"text":"BonfireUtil.getDirectionFromAngle (cognitive 18): BonfireUtil.getDirectionFromAngle has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/bonfire_util.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead63d200505a55c0cd1e37ab22c513e8d8e7b7f36b985891148a3db84676eae"}},{"ruleId":"D2","level":"warning","message":{"text":"TiledWorldBuilder._addGameDecorationAbove (cognitive 17): TiledWorldBuilder._addGameDecorationAbove has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 4 (7 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/tiled/builder/tiled_world_builder.dart"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"57832b0b93981d5670d54a106e8e43db8f2a881972e779860296d53d022a7070"}},{"ruleId":"D2","level":"warning","message":{"text":"PathFindingApi._calculatePath (cognitive 17): PathFindingApi._calculatePath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/path_finding/path_finding_api.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"69af859201566ae99c1879658c7c84ea92a92d2a6c0eefcda3aa053741091a5d"}},{"ruleId":"D2","level":"warning","message":{"text":"ListenerGameWidgetState.build (cognitive 16): ListenerGameWidgetState.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 6, boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/listener_game_widget.dart"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af5e1f838d6bcb7cdbe91c23511f9394353569431ee3658af58ce3a4c1972bb"}},{"ruleId":"D2","level":"warning","message":{"text":"Keyboard._sendTwoDirection (cognitive 16): Keyboard._sendTwoDirection has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/input/keyboard/keyboard.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71a21942178269436d476e547211eddd84c175a465ce75a4c5e77b5eda60580"}},{"ruleId":"D2","level":"warning","message":{"text":"TerrainBuilder._buildTileCorner (cognitive 16): TerrainBuilder._buildTileCorner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/matrix_map/terrain_builder.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d51e232d2d7313bc8329a9ed765a1ff1321cc4c13fbde7bedb62e3dcbac41e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BonfireGameInterface: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/bonfire_game_interface.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fb47f06567afb40013ea6d89f5c21c3c5d8c1f7eab4df59ea80782efe97995"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TiledWorldBuilder: ClassTooLong \u2014 593 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 193 over it, 1.48\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/tiled/builder/tiled_world_builder.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6b8f456a7a049a3b99d4a34bce42d2e18ee393412376edb606909a7ad061f3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SimpleDirectionAnimation.play: MethodTooLong \u2014 play runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/direction_animations/simple_direction_animation.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9daba894073aab65db872bf26a33829e0806297e92507bc68074bcb0ee656c4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SimpleDirectionAnimation: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/direction_animations/simple_direction_animation.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"7874ab791aef1f4b942fd91d7dc8c20d03e51ea1c375dbd219e83edc61264eda"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SimpleDirectionAnimation: ClassTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 140 over it, 1.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/direction_animations/simple_direction_animation.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"641cfa30a5261eb137c42f53a7096af606c699e35cec49cc264367494d9e2ba4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: builder/tiled_world_builder.dart: FileTooLong \u2014 635 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: TiledWorldBuilder (31-899). The bar is 500 significant lines; this is 135 over it, 1.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/tiled/builder/tiled_world_builder.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e67a48b31fbe9431967d34858284c1b524fb0b67dc60fe1e926e5eace6773e4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BonfireGame: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/bonfire_game.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3307a09a940bd45e627bef81429e4242fdd63c80e02b5bedf1552a8ad3ecb4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LightingComponent: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lighting/lighting_component.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"681fc98e86667e96c6f68f899e03b1ad349b87290b50738de84b535dd0c823aa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ForcesApi: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/forces/forces_api.dart"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd8135a69f26e6ed971164a9508839057c462237328c90ad1d4a7cc679f1d65"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BonfireCamera: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/camera/bonfire_camera.dart"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"629419e4e33ba8aad5141f8ec6c804a71c8e28aa087eca4b54a5e6b0318632f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: direction_animations/simple_direction_animation.dart: FileTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SimpleDirectionAnimation (9-735). The bar is 500 significant lines; this is 45 over it, 1.09\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/direction_animations/simple_direction_animation.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5def638042ae2e42a2e837ec4e1e1b0e568df65f8d53f0cde29bc0dde2a4b9d5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LightingComponent: ClassTooLong \u2014 407 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 7 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lighting/lighting_component.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a613948ffb2946c6892b7ec12aaa62a936f5212a964306c13a51f937a318ce0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): lib/map/matrix_map/terrain_builder.dart:158-217 | lib/map/matrix_map/terrain_builder.dart:219-278 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/matrix_map/terrain_builder.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbf9fc5e958b28addb6a8f37018ddca39c3dea8561ee14cbd996bd238896140"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lib/map/matrix_map/matrix_map_generator.dart:106-134 | lib/map/matrix_map/matrix_map_generator.dart:136-164 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/matrix_map/matrix_map_generator.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5885824bb02c2145229cde74f56fac0b023506cd5216389f120065bb69dc2f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lib/geometry/shape_collision.dart:72-117 | lib/geometry/shape_collision.dart:150-185 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/geometry/shape_collision.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"df103f558064fb9c8aa99a86e51385000b8684517c991b1eadf6f67de3557cfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): awesome/turn_game/lib/characters/hero.dart:19-45 | awesome/turn_game/lib/characters/necromancer.dart:19-45 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/turn_game/lib/characters/hero.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c7fc01db24fedb01caed62177fa2fd098381a09bf0fb4ffa27ba4c37ac12dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): lib/mixins/util/util_api.dart:214-248 | lib/mixins/util/util_api.dart:250-284 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/util/util_api.dart"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9caa9a3ab6d9d2fb863504f9ba61b11d5003d225cd70d0f114a71ae1f498d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/joystick/joystick_action.dart:75-105 | lib/joystick/joystick_directional.dart:72-109 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/joystick/joystick_action.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"125cd699198a59c601dd4fbd2b67078905aec07ae86f1507757fbd90ecafecd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): awesome/turn_game/lib/util/player_turn.dart:141-172 | awesome/turn_game/lib/util/player_turn.dart:174-203 \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":"awesome/turn_game/lib/util/player_turn.dart"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e5899e3930ab8ba7cf907b320103c08092ccb6fac816a050080ad956e1f0b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/mixins/movement_by_joystick.dart:182-203 | lib/mixins/movement_by_joystick.dart:221-254 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/movement_by_joystick.dart"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f9fe2c407acee85d2e167f5b6751e1248ddd5651793138d9b4ea585241ac9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/input/gestures/drag_gesture.dart:15-43 | lib/input/gestures/tap_gesture.dart:7-31 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/input/gestures/drag_gesture.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0221834ee05b6b8fc0777b06a32d38eef111453f5549ed0279d8cef9162d8b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/map/spritefusion/reader/spritefusion_network_reader.dart:37-50 | lib/map/tiled/reader/tiled_network_reader.dart:92-107 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/spritefusion/reader/spritefusion_network_reader.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1bd307462a70230e6a5f8d4bd8959d2fba5e44cc37593fd825cf41884727fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/npc/ally/rotation_ally.dart:20-41 | lib/npc/enemy/rotation_enemy.dart:8-29 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/npc/ally/rotation_ally.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec1b57857bbce4089f6dc6901bf3ec8ad5f1d4e038f0407ee5dc6286b0e5742"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/behavior/behaviors/b_can_see.dart:20-40 | lib/behavior/behaviors/b_can_see_type.dart:18-37 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/behavior/behaviors/b_can_see.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d59c292509d1dd07e1daedc35ffba51e225b7f784a92057ee58e7be47dd5b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/geometry/shape_collision.dart:50-70 | lib/geometry/shape_collision.dart:131-148 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/geometry/shape_collision.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"543e7d36be01429c478a4fcf400d9a41fce7b3dd2f09d704cc253d730ea35a3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/color_filter/color_filter_component.dart:42-69 | lib/lighting/lighting_component.dart:328-349 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/color_filter/color_filter_component.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"830d8b5b52961f404d7fa61e9d6676ccc3ea78e6977626195333b4877be892dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/map/base/tile_component.dart:42-62 | lib/map/base/tile_component.dart:64-83 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/base/tile_component.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f8e09c38b863a4a9277dd3fded6f8d74eabbb01f52c8b6969163366f8772d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): awesome/turn_game/lib/characters/ghost.dart:22-35 | awesome/turn_game/lib/characters/knight.dart:22-35 \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":"awesome/turn_game/lib/characters/ghost.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd19e2f841ec7af6f0624155b6c81e28b46dfe47ce45d69e279154fa74000eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): lib/objects/flying_attack_game_object.dart:26-54 | lib/objects/flying_attack_game_object.dart:56-75 | lib/objects/flying_attack_game_object.dart:77-100 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/objects/flying_attack_game_object.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ecc1eb289c76095153bdb2487057899c86e677390a8d8c49681a3552e2e5d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/npc/rotation_npc.dart:20-39 | lib/player/rotation_player.dart:9-35 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/npc/rotation_npc.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e39397c7852f91a65217864f54cdd062a7f5efb0c017a461ced3d4d452aad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/base/game_component.dart:173-195 | lib/base/game_component.dart:197-223 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/game_component.dart"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"9068bfd5a0fc44cd6931927abe159caa001fc28bf5b5a70af8afbe8c2751ca71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): awesome/turn_game/lib/util/player_turn.dart:205-221 | awesome/turn_game/lib/util/player_turn.dart:223-244 \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":"awesome/turn_game/lib/util/player_turn.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9a8651917704af77eeff00d7a9074387a11439000436028ad9fd01bbaba469"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/map/tiled/world_map_by_tiled.dart:8-23 | lib/map/tiled/world_map_infinite_by_tiled.dart:75-92 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/tiled/world_map_by_tiled.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"34001ce35581b1be3a3e3c4da6a6b7660e0a8a26103c7f2ffdae86ce1bb9f309"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/input/gestures/drag_gesture.dart:79-95 | lib/input/gestures/drag_gesture.dart:97-112 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/input/gestures/drag_gesture.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d062a99eae29d2a8b5a2c8edf4d62b3d681f5fa97d227f1e3cb4a8425bf611bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/decoration/decoration.dart:27-40 | lib/decoration/decoration.dart:42-53 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/decoration/decoration.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ccc5e5e7dd59eb8218994f0d9a13494a53143431265f216c5d68a4df4b010ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): awesome/turn_game/lib/util/turn_manager.dart:69-79 | awesome/turn_game/lib/util/turn_manager.dart:81-91 \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":"awesome/turn_game/lib/util/turn_manager.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a20f5f7cc7857b1e658d7a131490305f1da2820f828ff83c46f30eb3f136e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/map/spritefusion/reader/spritefusion_network_reader.dart:20-28 | lib/map/tiled/reader/tiled_network_reader.dart:24-32 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/spritefusion/reader/spritefusion_network_reader.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"517221353d30073bf607406dc7dc8d35eb265b6dcbdeb7570161fe7cb69ef72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/mixins/direction_animation/direction_animation_api.dart:159-172 | lib/mixins/direction_animation/direction_animation_api.dart:174-187 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/direction_animation/direction_animation_api.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e753fc12aa3cd9333e28a2a025e6bc59b7ba4995ea547f24d728ea59c6e4bb95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/mixins/direction_animation/direction_animation_api.dart:257-270 | lib/mixins/direction_animation/direction_animation_api.dart:272-287 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/direction_animation/direction_animation_api.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade5b3dbfed102624aecfe7b3d2b99a7755bde3b096233058cda6a7737616e80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/util/direction_animations/simple_direction_animation.dart:704-718 | lib/util/direction_animations/simple_direction_animation.dart:720-734 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/direction_animations/simple_direction_animation.dart"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec1a83ae3ee787774560345a1ad48b1198aa34e70ae1dec733a6eb1f8f2ca6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): awesome/platform_game/lib/util/platform_spritesheet.dart:39-47 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:38-44 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"56914a69337915046e3e2ef5828ef037241e099b684c42574337691a196d2522"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/input/mouse_listener.dart:98-111 | lib/input/mouse_listener.dart:113-127 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/input/mouse_listener.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0dea9bfb53ac7c57ef81ca9874974c18252fe3a5a5751a781535cc9187c824"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/mixins/vision/vision_api.dart:480-486 | lib/base/game_component.dart:245-251 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/vision/vision_api.dart"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fdb67d6e1163c565d477a38f56158162013a909d327f4ea83c504c95656d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/map/spritefusion/reader/spritefusion_asset_reader.dart:13-21 | lib/map/tiled/reader/tiled_asset_reader.dart:13-21 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/spritefusion/reader/spritefusion_asset_reader.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d744d517118b545a1f34a09bd66ac834f3103cd07fc20f95b3c7588df1afd02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): awesome/platform_game/lib/util/platform_spritesheet.dart:31-37 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:31-36 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d210bfab5d9dbfb5421bb8d00cd5302c2be480e2db419f38cb4eb1f34d1447"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): awesome/platform_game/lib/util/platform_spritesheet.dart:49-55 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:46-53 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6764e4be154536ec457acebcfe2cb530c83f369d29779eb52220790598f8101"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/behavior/behaviors/b_parallel.dart:22-31 | lib/behavior/behaviors/b_selector.dart:26-34 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/behavior/behaviors/b_parallel.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"03534e283c135c08dd75bf929875edcf255b3d4c1968c877648c5937de38a07d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): awesome/flappy_bird/lib/components/bird.dart:64-73 | example/lib/pages/map/infinite/infinite_map_page.dart:56-66 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/flappy_bird/lib/components/bird.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"535c17055946f27ec14e7a028e5d0fc79567a6213c94c230c04e517693017a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): awesome/flappy_bird/lib/components/scenario/background.dart:13-21 | awesome/flappy_bird/lib/components/scenario/base.dart:27-36 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/flappy_bird/lib/components/scenario/background.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"04680a87325e50be26e7478b14e805cab418a4788e4cd320cd34df5c08b4c4b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): awesome/turn_game/lib/util/player_turn.dart:48-57 | example/lib/pages/mini_games/simple_example/my_player.dart:23-32 | example/lib/pages/player/simple/human.dart:20-30 \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":"awesome/turn_game/lib/util/player_turn.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"53de0bce56f28442b14baad36a3772e2c1ea31715f826ecf3ff2922d14f0ed7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/map/base/tile.dart:92-97 | lib/map/spritefusion/model/spritefucion_map.dart:61-67 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/base/tile.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bb66e3348e77b535eb349358a815927f9b3ec85d7ad73c4397c8af085d9a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): awesome/turn_game/lib/characters/ghost.dart:12-20 | awesome/turn_game/lib/characters/knight.dart:12-20 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/turn_game/lib/characters/ghost.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ce057538fc12c27161229c4cb793aef26f6113520f4ea3fc2065c79e328074"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): awesome/flappy_bird/lib/main.dart:11-23 | awesome/turn_game/lib/main.dart:15-24 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/flappy_bird/lib/main.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"703e67acb7e49e01540de3f5c71790b6a6c22a76b72e4bb29965eaa6fd39e6dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/scene_builder/actions/await_scene_action.dart:12-19 | lib/scene_builder/actions/callback_scene_action.dart:26-33 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/scene_builder/actions/await_scene_action.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f654a39cff23d494d6d5e77b89da6a67a164ec18c9fb77b42d16d83599c9d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/base/bonfire_quad_tree_collision.dart:63-84 | lib/base/bonfire_with_collision.dart:48-69 \u2014 before extracting anything, compare \u0060lib/base/bonfire_quad_tree_collision.dart\u0060 and \u0060lib/base/bonfire_with_collision.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/bonfire_quad_tree_collision.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b9cbc06bac7ed93fb9b22318bfdf55c577d6d17cab3bf88b829d1332734d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/npc/ally/rotation_ally.dart:21-39 | lib/npc/enemy/rotation_enemy.dart:9-27 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/npc/ally/rotation_ally.dart:21\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/npc/ally/rotation_ally.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfab6ffeabed69069dc7be80877c79f39fdc2b0fc920fa7a80254d3820bc6cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/widgets/bonfire_widget.dart:135-153 | lib/widgets/bonfire_widget.dart:156-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/widgets/bonfire_widget.dart:135\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/widgets/bonfire_widget.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c7ccc482ea84ae4390a6d47b5abf78e8ad78121892291ea32ac4f86d1c2ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/mixins/use_sprite_animation.dart:137-154 | lib/util/direction_animations/simple_direction_animation.dart:665-682 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/use_sprite_animation.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae8c34a3a4c860b7bff38921f928b5268b48d10a1e07af59c46e7de1ccefb84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/mixins/util/util_api.dart:232-248 | lib/mixins/util/util_api.dart:268-284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/mixins/util/util_api.dart:232\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/util/util_api.dart"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89310719661728130dbf7118e806f0f67634b776833ca817190b52cd6d18ded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/geometry/shape_collision.dart:102-117 | lib/geometry/shape_collision.dart:170-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/geometry/shape_collision.dart:102\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/geometry/shape_collision.dart"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb06923282c9f89c8442850fc8d45ede7a5d0c974bbe40578e02282ebb6f19b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/mixins/util/util_api.dart:215-229 | lib/mixins/util/util_api.dart:251-265 | lib/parallax/camera_parallax_componet.dart:19-33 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/mixins/util/util_api.dart:215\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/util/util_api.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ccc4b09dfcfc62f3c28977d1447237705d31b472e854ab1e3f592e35755999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/behavior/behaviors/b_see_and_move_to_target.dart:22-36 | lib/behavior/behaviors/b_see_and_positioned.dart:24-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/behavior/behaviors/b_see_and_move_to_target.dart:22\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/behavior/behaviors/b_see_and_move_to_target.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"473f35d8c4e0f3c26e49ea3a80bc6693b83d880b2e2758628a164510a5b2dde0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/collision/polygons_intersect_util.dart:67-81 | lib/collision/polygons_intersect_util.dart:91-105 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/collision/polygons_intersect_util.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03df47ad6f1b487060a8d9ff2a6230b79f27973454baabf2f5530487a857e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/base/bonfire_quad_tree_collision.dart:101-114 | lib/base/bonfire_with_collision.dart:86-99 \u2014 before extracting anything, compare \u0060lib/base/bonfire_quad_tree_collision.dart\u0060 and \u0060lib/base/bonfire_with_collision.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/bonfire_quad_tree_collision.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1386d44997e28afa23c8f836bf44d579a6947bb27ea8be57a7507bb9f9787fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/geometry/polygon.dart:45-58 | lib/map/tiled/builder/tiled_world_builder.dart:349-362 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/geometry/polygon.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6609af32f9f389d315954c7bed36f2105dfde2eb7ab1df58d6c46cfec80c18cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/joystick/joystick_action.dart:163-176 | lib/joystick/joystick_directional.dart:167-180 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/joystick/joystick_action.dart:163\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/joystick/joystick_action.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a9b7dc655f1932f8eeef204771d98ddab97b6ea435b41287a2cc1e993aeaca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/objects/flying_attack_game_object.dart:34-47 | lib/objects/flying_attack_game_object.dart:84-97 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/objects/flying_attack_game_object.dart:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/objects/flying_attack_game_object.dart:50\u0060 calls \u0060moveFromDirection\u0060 and \u0060lib/objects/flying_attack_game_object.dart:99\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/objects/flying_attack_game_object.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"91119082ddd8e06c0b23cc4a11c42b07227a6fce3399704311ed8efa17c076d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/npc/ally/rotation_ally.dart:29-41 | lib/npc/enemy/rotation_enemy.dart:17-29 | lib/npc/rotation_npc.dart:27-39 \u2014 before extracting anything, compare \u0060lib/npc/ally/rotation_ally.dart\u0060 and \u0060lib/npc/rotation_npc.dart\u0060 as WHOLE FILES: 82% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/npc/ally/rotation_ally.dart:29\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/npc/ally/rotation_ally.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea78d4652eecce4d67859a2116de50e37518e4d99b9dfce29d8c7436507d12f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/objects/flying_attack_game_object.dart:32-44 | lib/objects/flying_attack_game_object.dart:61-73 | lib/objects/flying_attack_game_object.dart:82-94 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/objects/flying_attack_game_object.dart:32\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/objects/flying_attack_game_object.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d721582fc808e520dd3f41b50b9f33d2cf86eb4341ef96702e9dc9addced93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/map/matrix_map/matrix_map_generator.dart:107-119 | lib/map/matrix_map/matrix_map_generator.dart:137-149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/map/matrix_map/matrix_map_generator.dart:107\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/matrix_map/matrix_map_generator.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0134220e5a3eb4597c4ac249804ee1dd5ce3e0af5a8d341ed60f71184536c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): awesome/turn_game/lib/characters/ghost.dart:24-35 | awesome/turn_game/lib/characters/necromancer.dart:33-44 \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 \u0060awesome/turn_game/lib/characters/necromancer.dart:33\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":"awesome/turn_game/lib/characters/ghost.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b96e62c8992d239cb31aa39422c0e7493db25f1ac6c7d02d04abdb9649e466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): awesome/turn_game/lib/characters/hero.dart:33-44 | awesome/turn_game/lib/characters/knight.dart:24-35 \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 \u0060awesome/turn_game/lib/characters/hero.dart:33\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":"awesome/turn_game/lib/characters/hero.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0c6d6fa6a4d746c786880a01c36e644de2cf27c9d63a9e7abdb7e4441c1306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/joystick/joystick_action.dart:83-93 | lib/joystick/joystick_directional.dart:80-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/joystick/joystick_action.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7bacf5e2656ad6297251a1a246a1b1f746a379409e7f30e808279a0dd60beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): awesome/platform_game/lib/components/fox_player.dart:57-67 | example/lib/pages/player/platform/simple_fox_player.dart:31-41 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"awesome/platform_game/lib/components/fox_player.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a9b031af61545010f82e53a4fc1a01d1eebc13d24c78baa43d3e88dd6cd383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/mixins/use_sprite.dart:47-56 | lib/mixins/use_sprite_animation.dart:137-146 | lib/util/direction_animations/simple_direction_animation.dart:665-674 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/use_sprite.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7762a249bc1d68e689ba0c4c6f952d07237534be0e5f1e3af18112fce6b3ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/map/spritefusion/reader/spritefusion_network_reader.dart:21-28 | lib/map/tiled/reader/tiled_network_reader.dart:25-32 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/map/spritefusion/reader/spritefusion_network_reader.dart:21\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/spritefusion/reader/spritefusion_network_reader.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"117511c1043a82108ede36042227788bda3e67a046e6d274211687d6b1736000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): awesome/turn_game/lib/characters/hero.dart:21-27 | awesome/turn_game/lib/characters/necromancer.dart:21-27 \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 \u0060awesome/turn_game/lib/characters/hero.dart:21\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":"awesome/turn_game/lib/characters/hero.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3439b0753381f2a1a8f84869acacadf8d4050b3281550cd4363acab11c5287ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): awesome/platform_game/lib/components/fox_player.dart:24-31 | example/lib/pages/player/platform/simple_fox_player.dart:22-29 \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":"awesome/platform_game/lib/components/fox_player.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ab05e9959c3252ed703481d19b6c86847e486f45406c9e63f519b9856c97cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): awesome/platform_game/lib/util/platform_spritesheet.dart:4-11 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:4-11 \u2014 before extracting anything, compare \u0060awesome/platform_game/lib/util/platform_spritesheet.dart\u0060 and \u0060example/lib/pages/mini_games/platform/platform_spritesheet.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"948c2229d2f45135f80842cfca82377110888252896609206d75c614ba366ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): awesome/platform_game/lib/util/platform_spritesheet.dart:13-20 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:13-20 \u2014 before extracting anything, compare \u0060awesome/platform_game/lib/util/platform_spritesheet.dart\u0060 and \u0060example/lib/pages/mini_games/platform/platform_spritesheet.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e841da078e579a3d93ff6cb773867b6eb52ab122b7f6e800316559cf83119f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): awesome/platform_game/lib/util/platform_spritesheet.dart:22-29 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:22-29 \u2014 before extracting anything, compare \u0060awesome/platform_game/lib/util/platform_spritesheet.dart\u0060 and \u0060example/lib/pages/mini_games/platform/platform_spritesheet.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25bf3ae5ca731f726b54b5b45aa7de471808ec994b2369c46fba84943b68c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): awesome/platform_game/lib/util/platform_spritesheet.dart:57-64 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:55-62 \u2014 before extracting anything, compare \u0060awesome/platform_game/lib/util/platform_spritesheet.dart\u0060 and \u0060example/lib/pages/mini_games/platform/platform_spritesheet.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6c25f8928a223d6c9f4743367b8acdf67e06b58ee76a807f00ee9e06b37788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): awesome/platform_game/lib/util/platform_spritesheet.dart:66-74 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:64-72 \u2014 before extracting anything, compare \u0060awesome/platform_game/lib/util/platform_spritesheet.dart\u0060 and \u0060example/lib/pages/mini_games/platform/platform_spritesheet.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 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":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a54a86bff8225d28a9d5a08cfde430898f32679b60b06a858634f20c1e5852c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): awesome/platform_game/lib/util/platform_spritesheet.dart:76-84 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:74-82 \u2014 before extracting anything, compare \u0060awesome/platform_game/lib/util/platform_spritesheet.dart\u0060 and \u0060example/lib/pages/mini_games/platform/platform_spritesheet.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 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":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e474d4030d2f7353ade2b435e0b1f21d9335ee7663cf736359ce8df57c0e26f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): awesome/platform_game/lib/util/platform_spritesheet.dart:86-93 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:84-91 \u2014 before extracting anything, compare \u0060awesome/platform_game/lib/util/platform_spritesheet.dart\u0060 and \u0060example/lib/pages/mini_games/platform/platform_spritesheet.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"955f34dcf5eec3160b7665483165d786b39e6c1ada0d78373c4d07d9ef22b23a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): awesome/platform_game/lib/util/platform_spritesheet.dart:95-102 | example/lib/pages/mini_games/platform/platform_spritesheet.dart:93-100 \u2014 before extracting anything, compare \u0060awesome/platform_game/lib/util/platform_spritesheet.dart\u0060 and \u0060example/lib/pages/mini_games/platform/platform_spritesheet.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/platform_game/lib/util/platform_spritesheet.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9803b0464ff281e103e6b0a315f8dcee0d73042cc571d19b0ad628f79c8ba99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/base/bonfire_quad_tree_collision.dart:55-61 | lib/base/bonfire_with_collision.dart:40-46 \u2014 before extracting anything, compare \u0060lib/base/bonfire_quad_tree_collision.dart\u0060 and \u0060lib/base/bonfire_with_collision.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/base/bonfire_with_collision.dart:38\u0060 calls \u0060configCollisionDetection\u0060 and \u0060lib/base/bonfire_quad_tree_collision.dart:53\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/bonfire_quad_tree_collision.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b0380f6f9383f1ba2d2ae63a648523da162bae610c5cfe4c41e554d0bbb888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/base/bonfire_quad_tree_collision.dart:86-99 | lib/base/bonfire_with_collision.dart:71-84 \u2014 before extracting anything, compare \u0060lib/base/bonfire_quad_tree_collision.dart\u0060 and \u0060lib/base/bonfire_with_collision.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/bonfire_quad_tree_collision.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"516db0382541c15c5b3dea6ab8b7c45a22a82db65c17d026275b107c7587c77c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/npc/ally/simple_ally.dart:20-31 | lib/npc/enemy/simple_enemy.dart:8-19 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/npc/ally/simple_ally.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2ad35ec61fa590b2067af2e7a69876d346af79adabe40be17c4b8b88be01e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): example/lib/pages/enemy/melee_enemy.dart:83-98 | example/lib/pages/enemy/range_enemy.dart:47-62 | example/lib/pages/input/drag/barrel_drag.dart:21-36 | example/lib/pages/input/move_camera_mouse/barrel_enable_move_camera.dart:23-38 | example/lib/pages/input/tap/barrel_tap.dart:33-48 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/pages/enemy/melee_enemy.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e85dd531c2b53927b0619a88bab11db8b2faed7fe203c299ff82e9592365a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): example/lib/pages/input/drag/drag_gesture_page.dart:8-25 | example/lib/pages/input/keyboard/keyboard_page.dart:8-25 | example/lib/pages/input/mouse/mouse_input_page.dart:8-25 | example/lib/pages/input/move_camera_mouse/move_camera_page.dart:8-25 | example/lib/pages/input/tap/tap_gesture_page.dart:8-25 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/pages/input/drag/drag_gesture_page.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"065696d628c5f09b50a378d2d7d0b3587a1fc84a46d4dca170d680ab60d93b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): example/lib/pages/map/terrain_builder/terrain_builder_page.dart:48-105 | example/lib/pages/mini_games/random_map/map_generator.dart:70-135 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"example/lib/pages/map/terrain_builder/terrain_builder_page.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e51a9f0aded5de57bc6f58e5405c62169a7092dd7b7789ab7366c8c48c2ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): example/lib/pages/mini_games/simple_example/simple_example_game.dart:22-58 | example/lib/pages/performance/performance_game.dart:9-45 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/pages/mini_games/simple_example/simple_example_game.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0301bd57b173b117ab65b5e5453791f15f8f090548d813b7a3e37d36688506b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): example/lib/pages/enemy/melee_enemy.dart:54-81 | example/lib/pages/enemy/range_enemy.dart:64-91 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/pages/enemy/melee_enemy.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c252489ef57b234d04e566816e373356a83e1f6b7e4b127ca44368546ae9031"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): example/lib/pages/parallax/bonfire/bonfire_parallax_page.dart:9-36 | example/lib/pages/parallax/bonfire/parallax_page.dart:9-30 | example/lib/pages/parallax/flame/parallax_page.dart:9-36 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 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":"example/lib/pages/parallax/bonfire/bonfire_parallax_page.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7f21203f46d966d63bc096bb21930432e9486de3eb24392ccbc84266d43fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): example/lib/pages/enemy/enemy_page.dart:10-35 | example/lib/pages/map/infinite/infinite_map_page.dart:13-43 | example/lib/pages/player/simple/simple_player_page.dart:8-27 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"example/lib/pages/enemy/enemy_page.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0aedcaa8dfa4c098b263259439a1206b5b9bcf1484e152eec8bc3d3289ecca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): example/lib/pages/map/spritefusion/spritefusion_page.dart:7-24 | example/lib/pages/map/tiled/tiled_page.dart:8-31 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"example/lib/pages/map/spritefusion/spritefusion_page.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a42582239ff0db2ace0357845425a4256259cdce28522f1df97660e64f101a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): example/lib/pages/path_finding/path_finding_page.dart:8-23 | example/lib/pages/player/rotation/rotation_player_page.dart:8-29 \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":"example/lib/pages/path_finding/path_finding_page.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"8861bf9e594b7a8181108e7761ebd3691766460e7d5b7bed98458a3c423c4b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): example/lib/shared/enemy/goblin.dart:26-38 | example/lib/shared/npc/critter/critter.dart:7-18 \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":"example/lib/shared/enemy/goblin.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5a04766a69f0cf9c659c5dd75f51e0367e0e3e740bd5c538937b6be1054022"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): example/lib/pages/mini_games/top_down_game/robot_enemy.dart:59-71 | example/lib/shared/enemy/goblin.dart:72-82 \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":"example/lib/pages/mini_games/top_down_game/robot_enemy.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f9c6e2d9c5324a196cfd6d731f9f6c3712e173faff01dc568d1296216bc340"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): example/lib/pages/lighting/demo_player.dart:19-23 | example/lib/pages/player/rotation/human_topdown_player.dart:26-30 \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":"example/lib/pages/lighting/demo_player.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb8fd16895da443736ed62f44992ca1db20049d9b6b489dbadbd78451f01caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): example/lib/shared/enemy/goblin.dart:120-128 | example/lib/shared/player/knight.dart:129-137 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/shared/enemy/goblin.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"12cea0c2ab46cee0d930a378da33bf4f063687191f1baaa936ff8aafc55afa1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): example/lib/shared/npc/wizard/wizard.dart:63-82 | example/lib/shared/npc/wizard/wizard.dart:88-107 \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 \u0060example/lib/shared/npc/wizard/wizard.dart:63\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":"example/lib/shared/npc/wizard/wizard.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"04307278c50b9c01e0939290d8b66a90bf3a5687082011e988126c4285db5256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): example/lib/pages/mini_games/simple_example/simple_example_game.dart:22-39 | example/lib/pages/performance/performance_game.dart:9-26 \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 \u0060example/lib/pages/mini_games/simple_example/simple_example_game.dart:22\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":"example/lib/pages/mini_games/simple_example/simple_example_game.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3ba31ccde1b0141a3de62489fd814c7b0db59763212c60beaa8151de12d090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): example/lib/pages/enemy/melee_enemy.dart:83-98 | example/lib/pages/enemy/range_enemy.dart:47-62 | example/lib/pages/input/drag/barrel_drag.dart:21-36 | example/lib/pages/input/move_camera_mouse/barrel_enable_move_camera.dart:23-38 | example/lib/pages/input/tap/barrel_tap.dart:33-48 \u2014 before extracting anything, compare \u0060example/lib/pages/input/drag/barrel_drag.dart\u0060 and \u0060example/lib/pages/input/move_camera_mouse/barrel_enable_move_camera.dart\u0060 as WHOLE FILES: 84% 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":"example/lib/pages/enemy/melee_enemy.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f7ad5034263ffb2d5ced61fdeb21f81bac7e3fad5ae9ea20391e0d5ec770c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): example/lib/shared/enemy/goblin.dart:137-152 | example/lib/shared/npc/critter/critter.dart:38-53 | example/lib/shared/npc/wizard/wizard.dart:36-51 \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. 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":"example/lib/shared/enemy/goblin.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9c5ba9694b8f6c6951d874ba65c59b998ad84359534c038329b782c0312742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): example/lib/pages/mini_games/manual_map/game_manual_map.dart:21-35 | example/lib/pages/mini_games/tiled_map/game_tiled_map.dart:32-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/pages/mini_games/manual_map/game_manual_map.dart:21\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/pages/mini_games/manual_map/game_manual_map.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cec1588f330b92ba36a37fddb3ce9eab825dc3d1085647b6273329009a31bef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): example/lib/pages/parallax/bonfire/parallax_page.dart:16-30 | example/lib/pages/parallax/flame/parallax_page.dart:22-36 \u2014 \u0060example/lib/pages/parallax/bonfire/parallax_page.dart\u0060 and \u0060example/lib/pages/parallax/flame/parallax_page.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 15 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/pages/parallax/bonfire/parallax_page.dart:16\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/pages/parallax/bonfire/parallax_page.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d605fd2c3c133c528ffb8a6487c9115ac377c955e2914b2f1e6d6c14a77a7338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): example/lib/pages/input/drag/drag_gesture_page.dart:8-19 | example/lib/pages/input/keyboard/keyboard_page.dart:8-19 | example/lib/pages/input/mouse/mouse_input_page.dart:8-19 | example/lib/pages/input/move_camera_mouse/move_camera_page.dart:8-19 | example/lib/pages/input/tap/tap_gesture_page.dart:8-19 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060example/lib/pages/input/drag/drag_gesture_page.dart:8\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/pages/input/drag/drag_gesture_page.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b05a8b0412fbbcff2d34b39aae77db80227965b03d63b27641b88fe522c5018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): example/lib/pages/input/keyboard/barrel_show_keyboard_input.dart:13-24 | example/lib/pages/input/mouse/barrel_show_mouse_input.dart:15-26 \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 \u0060example/lib/pages/input/keyboard/barrel_show_keyboard_input.dart:13\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":"example/lib/pages/input/keyboard/barrel_show_keyboard_input.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cc4c323048d45907ebe843e5214788cb9fd8ca37332c16b50fc753e6b7ecab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): example/lib/shared/interface/knight_interface.dart:25-34 | example/lib/shared/interface/knight_interface.dart:36-45 \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 \u0060example/lib/shared/interface/knight_interface.dart:25\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":"example/lib/shared/interface/knight_interface.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1539805abcf0a7b3e7bd770283ac02fcd9e605cc75f18f2c54d7a186814b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): example/lib/pages/shader/shader_layer_configuration.dart:32-39 | example/lib/pages/shader/shader_layer_configuration.dart:66-73 \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 \u0060example/lib/pages/shader/shader_layer_configuration.dart:32\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060example/lib/pages/shader/shader_layer_configuration.dart:30\u0060 calls \u0060SetterImage\u0060 and \u0060example/lib/pages/shader/shader_layer_configuration.dart:65\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/pages/shader/shader_layer_configuration.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03746f41c75d70c06c54ebd4832aa7e5bb740bf4bb70c448748347356484ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3): example/lib/shared/util/critter_sprite_sheet.dart:4-44 | example/lib/shared/util/enemy_sprite_sheet.dart:4-44 | example/lib/shared/util/player_sprite_sheet.dart:4-44 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/shared/util/critter_sprite_sheet.dart"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"890e9173846741d8475ce8896af7602bdaa9b5e2dc9e08aa2302c3e9dd181457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): example/lib/pages/enemy/melee_enemy.dart:46-52 | example/lib/pages/enemy/range_enemy.dart:38-45 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/pages/enemy/melee_enemy.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3550675c494b0f512cdbba99db148e7577d015becd6f888d916cb31042926a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): example/lib/pages/input/keyboard/barrel_show_keyboard_input.dart:26-30 | example/lib/pages/input/mouse/barrel_show_mouse_input.dart:28-32 \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":"example/lib/pages/input/keyboard/barrel_show_keyboard_input.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d5bcdf0b24b95ab4ad9a89df15ab81bcc41c95e0a8885ab4e715336f19228e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): example/lib/pages/mini_games/top_down_game/robot_enemy.dart:79-91 | example/lib/pages/mini_games/top_down_game/soldier_player.dart:103-115 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"example/lib/pages/mini_games/top_down_game/robot_enemy.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7671cb4aaed06080b4683d6110136310c5f8e5b54b86b5307d6d6f349c3244b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): example/lib/pages/parallax/bonfire/bonfire_parallax_background.dart:10-20 | example/lib/pages/parallax/flame/parallax_background.dart:10-20 \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":"example/lib/pages/parallax/bonfire/bonfire_parallax_background.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0224f373f2645ad29e69305c0b2e7045f01c9afc220d384248d367c8906afae"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BonfireGame (LCOM4 19): BonfireGame\u0027s methods fall into 19 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 19 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/bonfire_game.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"986752d291ab310f4b0f0b985b330b13ce8e7216baded48115c2c4f83b628f93"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GameComponent (LCOM4 13): GameComponent\u0027s methods fall into 13 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 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/game_component.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde55fc4097b05eb1b39caec6ac601127ea9fb03f8793beb4662af4408d33356"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BonfireCamera (LCOM4 13): BonfireCamera\u0027s methods fall into 13 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 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/camera/bonfire_camera.dart"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1737bd6236f20c6d4d14a482d566e44f456efdc3190c5cf80014cb31e6a7a485"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Bird (LCOM4 7): Bird\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":"awesome/flappy_bird/lib/components/bird.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2a526da8e87372ab7d9783d1f510dacf085e821d1c61f79d8d4abb2c514180"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FrogEnemy (LCOM4 6): FrogEnemy\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":"awesome/platform_game/lib/components/frog_enemy.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"324a0741b91c0db3c68be0d5fe171d5be2093d98df622840482227faf59c63b0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Goblin (LCOM4 6): Goblin\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":"example/lib/shared/enemy/goblin.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71122d92836d24ee2ce2c38c9ce2d85ab1ec03179af7d3ccdc44e8d6e9f14cf"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BonfireQuadTreeCollision (LCOM4 5): BonfireQuadTreeCollision\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/bonfire_quad_tree_collision.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2609d46531723837decea39b79ba435e6dba028702f66222a65051e4705ab534"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BonfireWithCollision (LCOM4 5): BonfireWithCollision\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/bonfire_with_collision.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5970347b925f0cb9d93b54e7bde870dfba5015355731c3c56d78a94ed209c9b0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FoxPlayer (LCOM4 5): FoxPlayer\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":"awesome/platform_game/lib/components/fox_player.dart"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0bf045964f0b939f6129d7ed49ae1ba13148169bdefca84a080134f24a7086"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LightingComponent (LCOM4 5): LightingComponent\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lighting/lighting_component.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf536e5ffc583de18aadf4f0bb043e85d88131cf1e8810acd8758e7db65fdcab"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FlyingAttackGameObject (LCOM4 5): FlyingAttackGameObject\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/objects/flying_attack_game_object.dart"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc1cad53b24217d8cd6345abef5d3760c0196c4d15657074bdc7b35b682df80"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseGame (LCOM4 4): BaseGame\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/base_game.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f936a70c82eecf544fdac75ba401aa5841158c85afbfd73059ab5dc37a45fb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PipeLine (LCOM4 4): PipeLine\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":"awesome/flappy_bird/lib/components/pipe/pipe_line.dart"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa48e33bf52590f46038f2e3d0e2d8433cb72a47c941edc26de07d208555d794"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlayerController (LCOM4 4): PlayerController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/input/player_controller.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1663e2c07d556a8727b6c383473d5c4afe7e3c5ce0302df796f7afa17f5d6a1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GameMap (LCOM4 4): GameMap\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/base/game_map.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e7c13d0b14fcd65e491b837afc62c8ca9681a4205fdd9246c3d945f4322cea"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TileComponent (LCOM4 4): TileComponent\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/base/tile_component.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9f7b0c18ab7ca2e882901a8984aabc66ebb70c8d59110fa36457d07652a570"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlatformPlayer (LCOM4 4): PlatformPlayer\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/player/platform_player.dart"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"9119fb496f3cb046bb29803848d1a24c35bdbb87be21f60af4a36d4e896fdd4c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BarLifeController (LCOM4 4): BarLifeController\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":"example/lib/shared/interface/bar_life_controller.dart"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62e6bcce264a3f098843115dd104f13cca1d3ce2a54c4ab0e2b4688ff507dab"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Knight (LCOM4 4): Knight\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":"example/lib/shared/player/knight.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4f3d383984e31b049a1a3ef87f45aafbb3f4fad4486e44d47826f0280d9cff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/lighting/lighting_component.dart: lib/lighting/lighting_component.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in LightingComponent.renderTree at line 157. 4 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 19:35:17 -03:00\u0027 --until=\u00272026-11-16 19:35:17 -03:00\u0027 --full-history --no-merges -- lib/lighting/lighting_component.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lighting/lighting_component.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c13d7b739429cbdef6e116ac37046764745842efa67495e7887a288ac3102fa"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060flappy_bird\u0060 is a Flutter application (\u0060lib/main.dart\u0060) and neither \u0060awesome/flappy_bird/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/flappy_bird/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d073b31e022fb5f4b11b34b4f562591779b423134d5db89631530511ea4ac5a4"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060platform_game\u0060 is a Flutter application (\u0060lib/main.dart\u0060) and neither \u0060awesome/platform_game/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/platform_game/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8988b2a93e265f006ef24b9510738264ba0a7b9d747644a4d50decbea6ac44"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060turn_game\u0060 is a Flutter application (\u0060lib/main.dart\u0060) and neither \u0060awesome/turn_game/README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/turn_game/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0eea6e41f6aa01a304bfdd49a9d53530e456f8734a3c6c3923332cf3f2565d2"}},{"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 \u0060awesome/turn_game/lib/main.dart\u0060 makes this repository a deployable product (line 7)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/turn_game/lib/main.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"5051a3fa44aea7b7031d36ca4360d6706882dcf79817bff536825b6adb20d492"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (20993 LoC, 282 module-visible types across 65 directories) overshoots its size bounds. 1 of 4 build unit(s) (pub) overshoot their size bounds, lowering Project Cohesion to 5.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9fee3010c053c10733ebad6b156234032ce361c46f8c03bb63f2bdc3c8adbd"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4fbc6df3d72864219648f8a5e2a3fe4857d204776cc76785ab693bf45ade35c2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"efdcaa71ccd1f7e55d31656b4a816620b666e29255eab006fe7aaada737ba075"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"02812bdffc3ef200daf5d00ffd4666ec4729db6a73e735fab4917f115f4f9982"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aabf3ae09d4e0b840995efb15c094ba65800ed247c88f33befc8abeed1ee2ed4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ff70cf6ae900be30ce7280db8c91563c02046cb4a5359bb2563e64d590da5e72"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9fb82e188d8f26f319d6e6920092d2c5f18342df04e0197aa65eb0e85bbddfdc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a84748ef5468ebbe9ccc8b25dcf1f8b84d0684ec4885f68673d39230b5da23b5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f45c491f39db79d2c7c4ef75fb07c3f424d4fe9c07a1b935d2378f88bc86a95a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"004c64a546d7784870ab880b6529c355dd61f61266edc30e829a87fa89d1f507"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"140cc2c9c0a079b1469d528dc4a5abce300793a2113f82be7c7da8623c6194db"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"beb7c3eaf9de5b4b83049539b3b715890a51340bbe0b6ca767159faee652b43a"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"846dcfead89b9d3f12987d1075c6a82180ef29a1f77b6ae1f52cf77d6c17822d"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: enemy.dart \u2194 player.dart: \u0060lib/npc/enemy/enemy.dart\u0060 (context npc) and \u0060lib/player/player.dart\u0060 (context player) sit in DIFFERENT parts of the tree yet change together 60% of the time (42 of the 70 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 42 shared commits counted here, the most recent 3 are \u00603b02b63d\u0060 update changelog; \u0060cd874a18\u0060 ajustes; \u00606a5477ff\u0060 adiciona sapo \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/npc/enemy/enemy.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"384ecb02b69f098bbe49e43423f64da8fa15f6f49aa4e6acaf850079fb8634e3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: use_sprite.dart \u2194 use_sprite_animation.dart: \u0060lib/mixins/use_sprite.dart\u0060 and \u0060lib/mixins/use_sprite_animation.dart\u0060 change together 91% of the time (10 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060c4babb1d\u0060 check to render; \u00602779dc47\u0060 chore: remove is visible; \u0060576a5058\u0060 update changelog \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/use_sprite.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ca96ca0a196e93c70506184b46ae9c41b2ba6f0b737b07a80635fd64dae79b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: joystick_action.dart \u2194 joystick_directional.dart: \u0060lib/joystick/joystick_action.dart\u0060 and \u0060lib/joystick/joystick_directional.dart\u0060 change together 76% of the time (13 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 13 shared commits counted here, the most recent 3 are \u00608306415b\u0060 chore: init update; \u0060a27cbe42\u0060 fix bug; \u006094abae2e\u0060 joystick improvements \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/joystick/joystick_action.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3c13579d8f685d5508b4f2412119025661dc5dda833cb64aa8c23c86e07565"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: tap_gesture.dart \u2194 mouse_listener.dart: \u0060lib/input/gestures/tap_gesture.dart\u0060 and \u0060lib/input/mouse_listener.dart\u0060 change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060005dd556\u0060 init pinch gesture; \u0060a42f423d\u0060 adds input; \u006037492ba3\u0060 melhorias (at that commit the files were still \u0060lib/gestures/tap_gesture.dart\u0060 and \u0060lib/gestures/mouse_gesture.dart\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/input/gestures/tap_gesture.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0249564e4f7cde8a850be1dc21f92868f8943b238c4854c910da4b049e3ac2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: tiled_world_builder.dart \u2194 map_assets_manager.dart: \u0060lib/map/tiled/builder/tiled_world_builder.dart\u0060 and \u0060lib/map/util/map_assets_manager.dart\u0060 change together 53% of the time (9 of the 17 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u00600a32d5a2\u0060 adds tiled_cache_provider (at that commit the file was still \u0060lib/tiled/builder/tiled_world_builder.dart\u0060); \u006061fbe1ea\u0060 delete BonfireTiledWidget (at that commit the file was still \u0060lib/tiled/builder/tiled_world_builder.dart\u0060); \u006044fa1300\u0060 improvements tile sprite (at that commit the files were still \u0060lib/tiled/tiled_world_map.dart\u0060 and \u0060lib/map/map_assets_manager.dart\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/tiled/builder/tiled_world_builder.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1633bfa60422804fb677c62a8057c38bce009cb232700713d3fc2b7002b74335"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: tiled_world_data.dart \u2194 world_map_by_tiled.dart: \u0060lib/map/tiled/model/tiled_world_data.dart\u0060 and \u0060lib/map/tiled/world_map_by_tiled.dart\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060d009b8cd\u0060 feat(tiled): lighting occluders from tile layers and objects; \u00604577de1b\u0060 Revert \u0022Revert \u0022update\u0022\u0022; \u006031723a05\u0060 Revert \u0022update\u0022 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/tiled/model/tiled_world_data.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9eaf067e6642152d3c96e2de24cb0b3692940e271d3766bd71b186231e11d4"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8f90ce159f56c8e7f1f0b02fbcf2256ca63149aa40cfc5e168e9d72a61369856"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: BonfireGameInterface (47 abstract methods): \u0060BonfireGameInterface\u0060 declares 47 abstract methods: \u0060context\u0060, \u0060player\u0060, \u0060playerControllers\u0060, \u0060lighting\u0060, \u0060colorFilter\u0060, \u0060camera\u0060, \u0060map\u0060, \u0060highestPriority\u0060, \u0060size\u0060, \u0060worldsize\u0060, \u0060hasLayout\u0060, \u0060showCollisionArea\u0060, \u0060collisionAreaColor\u0060, \u0060interface\u0060, \u0060globalForces\u0060, \u0060overlays\u0060, \u0060pauseEngine\u0060, \u0060paused\u0060, \u0060resumeEngine\u0060, \u0060add\u0060, \u0060addAll\u0060, \u0060visibles\u0060, \u0060enemies\u0060, \u0060livingEnemies\u0060, \u0060decorations\u0060, \u0060attackables\u0060, \u0060collisions\u0060, \u0060query\u0060, \u0060worldToScreen\u0060, \u0060screenToWorld\u0060, \u0060globalToViewportPosition\u0060, \u0060viewportPositionToGlobal\u0060, \u0060isVisibleInCamera\u0060, \u0060addJoystickObserver\u0060, \u0060queryHud\u0060, \u0060addHud\u0060, \u0060raycast\u0060, \u0060raycastAll\u0060, \u0060raytrace\u0060, \u0060generateValues\u0060, and 7 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/bonfire_game_interface.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"238c0cf1dcdf057addb48c1128c7ade71956bc0411e0289e8a381439d602f767"}},{"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":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 as a CI step. What was searched, so you can tell an absence from a miss: the 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/unit.yml"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"Published package \u0060bonfire\u0060 commits its lockfile: \u0060pubspec.yaml\u0060 publishes \u0060bonfire\u0060 4.1.3 to a pub registry, and \u0060pubspec.lock\u0060 is committed beside it. pub\u0027s guidance splits on exactly this: an application commits \u0060pubspec.lock\u0060 because the resolution it records is the one that runs, and a package does not, because no consumer ever uses it \u2014 they resolve your declared version ranges against their own dependency set. The cost is not tidiness: the committed lockfile is what your own CI resolves against, so the ranges you publish are never exercised, and the first consumer to resolve a newer compatible version is the one who discovers whether the range was right. Remove it with \u0060git rm --cached pubspec.lock\u0060 and add \u0060pubspec.lock\u0060 to \u0060.gitignore\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pubspec.lock"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"300451acb01ffafb0af2ec0f9bcacbf372aac6ff9f25efe4a6a80f4d54fc366b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_strockePaint != null \u0026\u0026 _strokeWidth == width \u0026\u0026 _strockePaint?.color == color\u0060 appears character-identically in 3 files \u2014 lib/mixins/use_sprite.dart, lib/mixins/use_sprite_animation.dart, lib/util/direction_animations/simple_direction_animation.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mixins/use_sprite.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f051cdb42d06288a3881fa7dbdb22bf39083c96c479e212468779b7ac23e71"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060comp is Movement \u0026\u0026 doElseBehavior == null\u0060 appears character-identically in 2 files \u2014 lib/behavior/behaviors/b_see_and_move_to_target.dart, lib/behavior/behaviors/b_see_and_positioned.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/behavior/behaviors/b_see_and_move_to_target.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"06213c504998c09f526c48af83036c52a58531995110f4ac7e58d1f232a1d870"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060type is RectLightingType || type is PolygonLightingType\u0060 appears character-identically in 2 files \u2014 lib/lighting/lighting_api.dart, lib/lighting/lighting_component.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lighting/lighting_api.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1dc987401f49fe1417cdf7aae9633ab35826e34edbad160fd46d7280ace44c"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_TurnPainelState\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_controller\u0060 itself (line 18, \u0060AnimationController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_controller.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, \u0060AnimationController\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_controller.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"awesome/turn_game/lib/interface/turn_painel.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"93920a0693226b12c70a7eec44da9b3d0f0cd3d757d0291fb2b1ee072c5942d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/util/map_assets_manager.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee672ca4c0af62cb4fc3dea06b8c3887120a841d922023a6c72b5483aeaa624"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/tiled/builder/tiled_world_builder.dart"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb13b56947d672b51e9ee7913be28e0bd2fbff1c08da929681bd8764546b023"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/map/matrix_map/matrix_map_generator.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa05611fe5e2a7717f9f1de42efa51ef34921ff9d9ad751ee72cc0aec725283d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/game_component.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffcff3132045b930c72a07ec28209e68d27b43ee1e8da3487b118a812f1b4d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/game_component.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8b8707bf8d0821179836d5bdba0a43b125c237545a66a739f69ec0858f0a6d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/game_component.dart"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0278c2f24e864bb84bf5b4942ac8632bd9dc60cbfb1e2240d2fa4191f9005f72"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060raycastAll\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/game_component.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"71662305b23d20aa68c7b9d5829444ae7e76f6f0a763822f19bdf304a941aabd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060raytrace\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/base/game_component.dart"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0761e2f7beee8fabf4c2f54228971f870c2bf92592240800c051f1ca7624e512"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":18,"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."]}]}