{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"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":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"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":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"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":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Cryptographic Hygiene","shortDescription":{"text":"Cryptographic Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"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":"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":"BetterPlayer.observeValue (cyclomatic 65): BetterPlayer.observeValue has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cebea248ac3f494f0192f15085854431a59a48071924d6927320f3457cc58d6"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayer.observeValue (cyclomatic 64): BetterPlayer.observeValue has cyclomatic complexity 64 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"87708fc2f31cc50e0392a076f00ad8230eb461b5472ef0b0c28deba8665861d8"}},{"ruleId":"D1","level":"warning","message":{"text":"HlsPlaylistParser._parseMediaPlaylist (cyclomatic 42): HlsPlaylistParser._parseMediaPlaylist has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"388ac4addd232470c76348f1ed306abc938d50eaf163eee6b4c7b0205685341a"}},{"ruleId":"D1","level":"warning","message":{"text":"MpvPlayer._onPropertyChange (cyclomatic 41): MpvPlayer._onPropertyChange has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7484fd1e6d3c0dc964b83258341fef3410f5a019ef4cd2b7dbbfa3b3602a30"}},{"ruleId":"D1","level":"warning","message":{"text":"MpvPlayer._onPropertyChange (cyclomatic 41): MpvPlayer._onPropertyChange has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"8686ea2e3bed496fe2757e11164d8fd06c5d7e9e5fc720cfe6c4dde100f62632"}},{"ruleId":"D1","level":"warning","message":{"text":"HlsPlaylistParser._parseMasterPlaylist (cyclomatic 32): HlsPlaylistParser._parseMasterPlaylist has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dda09d41a8461c2928f56664f8ef12ff0abc314896651e27aaba7a61ea7ce7a"}},{"ruleId":"D1","level":"warning","message":{"text":"MimeTypes.getMediaMimeType (cyclomatic 32): MimeTypes.getMediaMimeType has cyclomatic complexity 32 (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":"packages/better_player/lib/src/hls/hls_parser/mime_types.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb41c72b8cdb7cdfb0ba1d1cfc018a24738774e64a9e38fae78dde4c2af2c55"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayer.setTextTrack (cyclomatic 27): BetterPlayer.setTextTrack has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"937e5fc3b6e86329799eccea4be206fc6b819133025ed119b3dd9e6b4f8acbcc"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerEngineController._create (cyclomatic 25): PlayerEngineController._create has cyclomatic complexity 25 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/engine/player_engine_controller.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8500fe63342936592c9154ec7bb68adb0f9a1f641a2134a11dd663eb79ab49"}},{"ruleId":"D1","level":"warning","message":{"text":"MpvPlayer._handleEvent (cyclomatic 25): MpvPlayer._handleEvent has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdd482ad81cd33e57b2075142cdd6c255a35e932bfcd6222135a12bb4eb16ce"}},{"ruleId":"D1","level":"warning","message":{"text":"MpvPlayer._handleEvent (cyclomatic 25): MpvPlayer._handleEvent has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8109497e23ab5517fe2d23d2f605e9aa08182d57b538b25ad0139e261ad4b6"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayerWebPlayer.buildShakaConfig (cyclomatic 23): BetterPlayerWebPlayer.buildShakaConfig has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"288166f12c8e13b7f702ce9aa0c648aa89f8b46416bffbaf9b2110a9c92f47ff"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayerWebPlayer.setTextTrack (cyclomatic 23): BetterPlayerWebPlayer.setTextTrack has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd9b6dbd7279d6d625eb611fc89fc709576a329e67fa0d901c6929cb45e3665"}},{"ruleId":"D1","level":"warning","message":{"text":"_PlayerWebBottomBarState.build (cyclomatic 21): _PlayerWebBottomBarState.build has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_web_controls.dart"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"239f2faf20c28c271f938bf5454ebc042d5720eb768cb1ed1048d49560d08fc9"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayer.onReadyToPlay (cyclomatic 21): BetterPlayer.onReadyToPlay has cyclomatic complexity 21 (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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"5718e7f73000c8a7b0626a8417603ce7d7ae4a470158b396f6bbd4c2b5438d96"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayer.onReadyToPlay (cyclomatic 21): BetterPlayer.onReadyToPlay has cyclomatic complexity 21 (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":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c909e67354145a4a6d4e543b71aa4f82bfd63596ea2d147dcaae60676508c6"}},{"ruleId":"D1","level":"warning","message":{"text":"MimeTypes.getTrackType (cyclomatic 20): MimeTypes.getTrackType has cyclomatic complexity 20 (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. This is NOT this file\u0027s highest cyclomatic complexity: MimeTypes._getMimeTypeFromMp4ObjectType (cyclomatic 27) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/mime_types.dart"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c7c362349b02b6c7d36ba3448f2d1804fd74ad4809cb24896a7a199a41b064"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerSubtitlesFactory._parseString (cyclomatic 19): PlayerSubtitlesFactory._parseString has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/subtitles/player_subtitles_factory.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"feaec17fcc8b5329ffb68e3074dba6168035c869bfbf8dd2a12e16d50276ef29"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayer.setAudioTrack (cyclomatic 19): BetterPlayer.setAudioTrack has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbad911e389b4df256c1585ef6aab9a3415ed4ad9a718a7f8fb4a85a3903c1fc"}},{"ruleId":"D1","level":"warning","message":{"text":"CacheWorker.doWork (cyclomatic 19): CacheWorker.doWork has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/CacheWorker.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e77057f2ceb51702f18b9d8b6d91c640527fa165dafb17d91a8a15e50f109c"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerControlsConfiguration.withCupertinoIcons (cyclomatic 18): PlayerControlsConfiguration.withCupertinoIcons 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":"packages/better_player/lib/src/configuration/player_controls_configuration.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5d6141efbdaa541edfe04782cdbe68b51d53cbbd27486dcb927f74f833f5d2"}},{"ruleId":"D1","level":"warning","message":{"text":"MpvPlayer.setDataSource (cyclomatic 18): MpvPlayer.setDataSource 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":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c5bef3e76690bee1c160015bfe8657cfc069fd30cb6c20fc4b341ab5f987ca"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayer.setDataSourcePlayerItem (cyclomatic 18): BetterPlayer.setDataSourcePlayerItem has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec78f65318d97b95a130f95d450fe3c67042f45200669501f092dd5c07d1576"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayer.setDataSourcePlayerItem (cyclomatic 18): BetterPlayer.setDataSourcePlayerItem has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7bab23edbde98951c8ffb53a1142a3d61b57ee86da71686fbb30fa121bd4a8"}},{"ruleId":"D1","level":"warning","message":{"text":"_PlayerWebControlsState._handleVolumeAndSeek (cyclomatic 17): _PlayerWebControlsState._handleVolumeAndSeek has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_web_controls.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7583a40e01bf26231cd61d3a110d26dfed059596f277e35747f94da363c8f0"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayerFeedController.onIndexChanged (cyclomatic 17): BetterPlayerFeedController.onIndexChanged has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/list/better_player_feed_controller.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a7449b49cd92f954f46614f2ce14392226a9afebc4feb369e33c08c847c7ac"}},{"ruleId":"D1","level":"warning","message":{"text":"MpvPlayer.setTrackParameters (cyclomatic 17): MpvPlayer.setTrackParameters 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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7578eaaee6815a387da020c640965c8296beb181447611950370919084a7dd"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerTizenController._handleEvent (cyclomatic 17): PlayerTizenController._handleEvent has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_tizen/lib/src/player_tizen_controller.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"359597a7d054635ad3e01c700c222c6f200ff546b4a69426382f58d50e6f59db"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayerWebPlayer.setTrackParameters (cyclomatic 17): BetterPlayerWebPlayer.setTrackParameters has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf00ace47d52bf6041ea96b700e5098eaeb35948e1505881a9c45f8118130351"}},{"ruleId":"D1","level":"warning","message":{"text":"MpvPlayer.setTrackParameters (cyclomatic 17): MpvPlayer.setTrackParameters 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":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d45813ab95330f390abe96405d824150167c22c372f9ac01b48d90e71d4992"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayer.setDataSource (cyclomatic 17): BetterPlayer.setDataSource has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a8a330ca2e199075c1b720dbfb9f1dda1542afc655bcb80018a4ad664396af"}},{"ruleId":"D1","level":"warning","message":{"text":"BetterPlayerController._onVideoPlayerChanged (cyclomatic 16): BetterPlayerController._onVideoPlayerChanged has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/core/better_player_controller.dart"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"23617cb43cd05f15f3da0a65e68818e6a27b530b09f093bfa62c191783e2a2d5"}},{"ruleId":"D1","level":"warning","message":{"text":"MpvPlayer.setDataSource (cyclomatic 16): MpvPlayer.setDataSource has cyclomatic complexity 16 (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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5146f295878f1ff325f09fe0dbc9fb7ee3a7de34c2012245d47b9fbea7835c"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.observeValue (cognitive 116): BetterPlayer.observeValue has cognitive complexity 116 (threshold 15). Drivers by points: if/else 41 (90 pts), boolean chains 20, loops 1 (3 pts), match/switch 1 (3 pts) (nesting depth added 53). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a1220e23c0e683f037a2961777159b6fb930a96abb642fa39f243d5c9781e5"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.observeValue (cognitive 115): BetterPlayer.observeValue has cognitive complexity 115 (threshold 15). Drivers by points: if/else 41 (90 pts), boolean chains 19, loops 1 (3 pts), match/switch 1 (3 pts) (nesting depth added 53). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1b368d5b50dde91e4b821cd9c39249e2cd2eee11aafa16b9be31a0aca4d23f"}},{"ruleId":"D2","level":"warning","message":{"text":"HlsPlaylistParser._parseMediaPlaylist (cognitive 93): HlsPlaylistParser._parseMediaPlaylist has cognitive complexity 93 (threshold 15). Drivers by points: if/else 44 (90 pts), boolean chains 2, loops 1 (nesting depth added 46). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6cfd6225a0fd831fc99dac305a08a424dbedf7250a7d4a3db0c92469723698"}},{"ruleId":"D2","level":"warning","message":{"text":"HlsPlaylistParser._parseMasterPlaylist (cognitive 65): HlsPlaylistParser._parseMasterPlaylist has cognitive complexity 65 (threshold 15). Drivers by points: if/else 20 (44 pts), ternaries 5 (15 pts), loops 3, match/switch 1 (2 pts), boolean chains 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2320bb88662f1a0f2d3f8ef637fbff2e50e8528e3af9cf9943595f018db6c8e9"}},{"ruleId":"D2","level":"warning","message":{"text":"MpvPlayer._onPropertyChange (cognitive 65): MpvPlayer._onPropertyChange has cognitive complexity 65 (threshold 15). Drivers by points: if/else 19 (42 pts), ternaries 6 (18 pts), boolean chains 4, match/switch 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3db23d69cd4e6da2233c482df6652e85b0cbb1044ba4986d3651a67c4a9414"}},{"ruleId":"D2","level":"warning","message":{"text":"MpvPlayer._onPropertyChange (cognitive 65): MpvPlayer._onPropertyChange has cognitive complexity 65 (threshold 15). Drivers by points: if/else 19 (42 pts), ternaries 6 (18 pts), boolean chains 4, match/switch 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"512cbe3ef7546cbef77d31f39933bd8b4be54dd9befe1dcc222f229e3b7fb318"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.setTextTrack (cognitive 64): BetterPlayer.setTextTrack has cognitive complexity 64 (threshold 15). Drivers by points: if/else 13 (37 pts), loops 6 (18 pts), boolean chains 8, error handling 1 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b427e05495feee1883ae8fa8eee571c1e85eedc7e3974b9b9ff264ed344b6e"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.setAudioTrack (cognitive 45): BetterPlayer.setAudioTrack has cognitive complexity 45 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 7 (20 pts), boolean chains 4, error handling 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a1d4fe7eb69a24b0bac431a57031502c77e93b1699a892e6da3121a1a450fb"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.setDataSource (cognitive 39): BetterPlayer.setDataSource has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (24 pts), error handling 2 (9 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59e8bcf49ada4ba25764fe02b4f1709466a352be741273e8c189813f6ac2bc7"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerPool._performBindSlot (cognitive 38): BetterPlayerPool._performBindSlot has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (33 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/list/better_player_pool.dart"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b8487176874575eff3c627b5d9a9ab63e9733ff844f025a235f2e20c559020"}},{"ruleId":"D2","level":"warning","message":{"text":"MimeTypes.getMediaMimeType (cognitive 37): MimeTypes.getMediaMimeType has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 12, error handling 1 (4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/mime_types.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"caab37ccb90997a0869ace127092b5759db5a746f53cbefcca7607decbcfa109"}},{"ruleId":"D2","level":"warning","message":{"text":"MpvPlayer._handleEvent (cognitive 34): MpvPlayer._handleEvent has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 5 (14 pts), if/else 6 (12 pts), boolean chains 7, match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e09380753def2d019d76029999e3e8e38ca271edcdc1a17c9bd48c7547b774"}},{"ruleId":"D2","level":"warning","message":{"text":"MpvPlayer._handleEvent (cognitive 34): MpvPlayer._handleEvent has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 5 (14 pts), if/else 6 (12 pts), boolean chains 7, match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1693eb6ff55ee4445dea7a2aab4344409b78559e207f663791947f88df4d5ac"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerHlsUtils.parseSubtitles (cognitive 32): PlayerHlsUtils.parseSubtitles has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 3 (15 pts), if/else 3 (9 pts), loops 2 (7 pts), error handling 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/player_hls_utils.dart"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e9e940da1bb44d392546b967b2d0df109b1b914f972d4c7ca5361f36f71a68"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheWorker.doWork (cognitive 32): CacheWorker.doWork has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/CacheWorker.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"780eaf79173e82312b2d7dd76795933ff830a26e9a158f16511e81844b46bfe4"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.setDataSourcePlayerItem (cognitive 32): BetterPlayer.setDataSourcePlayerItem has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 8 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e3367e08a0fb67c7ac1a7bd35b53e78717ab2aeba46264d783d93a4b11ee55"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.setDataSourcePlayerItem (cognitive 32): BetterPlayer.setDataSourcePlayerItem has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 8 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7f8655b2821063f7b2a0febc6ad8e9b2b36cf53a470e99f5a2556b1b17387c"}},{"ruleId":"D2","level":"warning","message":{"text":"_PlayerWebBottomBarState.build (cognitive 31): _PlayerWebBottomBarState.build has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 6 (12 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_web_controls.dart"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12057f2adc2c91e02564d60d92710bf3f1defda7c9dd4f7a87ad45eddeb7f48"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerWebPlayer.buildShakaConfig (cognitive 31): BetterPlayerWebPlayer.buildShakaConfig has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 4, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fe3d6373d32f85d147ef1d4dc2ea8f5d39e0edfda68215c28d9f7c2a1cde45"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerFeedController.onIndexChanged (cognitive 30): BetterPlayerFeedController.onIndexChanged has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 6, error handling 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/list/better_player_feed_controller.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71c495f091f4b3e3434e88fb151b76dd53d5f03d8b78f2a0220eff58f26cf24"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerWebPlayer._parseClearKeys (cognitive 30): BetterPlayerWebPlayer._parseClearKeys has cognitive complexity 30 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 2 (8 pts), boolean chains 4, error handling 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd2c2fd8b725cd041be25114c41d1db0a34765ddbd341ad1f56307df48fe3b6"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerWebPlayer.emitActiveCaptions (cognitive 29): BetterPlayerWebPlayer.emitActiveCaptions has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (19 pts), loops 2 (9 pts), boolean chains 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f21998e917fcee17e46085347af586cec3485214fd431119be7c0f80588584b"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerTtmlParser.parse (cognitive 28): PlayerTtmlParser.parse has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (23 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/subtitles/player_ttml_parser.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6d9c8d635acaf232df5edb17336299c6702b36c46b2df6d0d6c10df98a4856"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerWebPlayer.setTextTrack (cognitive 28): BetterPlayerWebPlayer.setTextTrack has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (13 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61e43efd8be52228fad086fd48365599686614080b6225253c5c1415665cc56"}},{"ruleId":"D2","level":"warning","message":{"text":"_PlayerWebControlsState._handleVolumeAndSeek (cognitive 27): _PlayerWebControlsState._handleVolumeAndSeek has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (23 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_web_controls.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"af917ef7e1d1fcbf6b8f1e4f095f952b9151558bd2690b0a2e6ecfcf4afefb3e"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerSubtitlesFactory._parseString (cognitive 27): PlayerSubtitlesFactory._parseString has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 6, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/subtitles/player_subtitles_factory.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"243be57a8ba36f5de56a940ddf9ea85ddccccf56868fe9a051233a65e1f85b8c"}},{"ruleId":"D2","level":"warning","message":{"text":"MpvPlayer.setDataSource (cognitive 26): MpvPlayer.setDataSource has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e05c8c72d7ea4cbc5be917f0f5ed5ec045864ea5c4343068e39f7fddc8cf07e"}},{"ruleId":"D2","level":"warning","message":{"text":"WebVttInlineParser._parseStack (cognitive 24): WebVttInlineParser._parseStack has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/subtitles/webvtt_inline_parser.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"350a620d76f9dacfd5d723e6a0238d343a5c23bb865c4a3805eb55d43ae3afd4"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerController._onVideoPlayerChanged (cognitive 23): BetterPlayerController._onVideoPlayerChanged has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/core/better_player_controller.dart"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"712ed46df3f9b549fa0337dfb5be6f661daae0d5e92d7d0812bd080b1663c48c"}},{"ruleId":"D2","level":"warning","message":{"text":"MpvPlayer.setDataSource (cognitive 23): MpvPlayer.setDataSource has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"857ba56186c79f6de0610b88fc382585b340723573dc4916a8b4d9e83c03ec8e"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerIOS.cleanupOrphanedPlayers (cognitive 22): BetterPlayerIOS.cleanupOrphanedPlayers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (8 pts), boolean chains 1, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"78effc078f8800bca104c496ee2f8d66a934ea12e0022a564a439f1eea2a5fc6"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerMacOS.cleanupOrphanedPlayers (cognitive 22): BetterPlayerMacOS.cleanupOrphanedPlayers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (8 pts), boolean chains 1, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/lib/better_player_macos.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0677688f9ca8b3d3accedb05461b4a4edd3f20679ebc59a7f53c9caab30a51"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.onReadyToPlay (cognitive 22): BetterPlayer.onReadyToPlay has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 9, ternaries 2 (4 pts) (nesting depth added 2). 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44b55b2728466f6094c6bc0e6da0dad71021ce88bff1fd335bb2ca5d0f4f32c"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.onReadyToPlay (cognitive 22): BetterPlayer.onReadyToPlay has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 9, ternaries 2 (4 pts) (nesting depth added 2). 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":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4899daeb37f18122d61678ddee05267760de0d7824c911f5a67b5e767cbdbf"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerDashUtils.parse (cognitive 21): PlayerDashUtils.parse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (2 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/dash/player_dash_utils.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacf418513f9f4694d615699310cf3b64073e48872992d6482cb04bd2a63a617"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerFeedController.insertAll (cognitive 21): BetterPlayerFeedController.insertAll has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (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":"packages/better_player/lib/src/list/better_player_feed_controller.dart"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b293fba7099aa85bff642c129c1ab0785e64afc176a928f247fd7d4b715daae"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerWebPlayer.getAudioTracks (cognitive 21): BetterPlayerWebPlayer.getAudioTracks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb10add61c70f368fb7d204a9538c49b8b173e145c4b23e80447a9900e574e2a"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.setupPlayerNotification (cognitive 21): BetterPlayer.setupPlayerNotification has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecbf2fa382eef72cc4bb339528a23756b3c7c4cac76aca338defc9837d0817c"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerMaterialBottomBar.build (cognitive 20): PlayerMaterialBottomBar.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (17 pts), ternaries 2, boolean chains 1 (nesting depth added 2). 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":"packages/better_player/lib/src/controls/player_material_bottom_bar.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1eceadcfce50331834840cb366925bef871dbf676fc92dc40a0f3dc56fa907f"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerControlsSelectionWidget.build (cognitive 20): PlayerControlsSelectionWidget.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5 (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":"packages/better_player/lib/src/core/player_with_controls.dart"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"2647b7bcc7aee40bdc29934dcc25eaef32692a63bb66863e6c1ab0b0ffa24d73"}},{"ruleId":"D2","level":"warning","message":{"text":"MimeTypes.getTrackType (cognitive 20): MimeTypes.getTrackType has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/mime_types.dart"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba3ae8007d85003ba4b18421717ab4fe7d42f044402e424d404fe712d62d4aa"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerWebPlayer.setTrackParameters (cognitive 20): BetterPlayerWebPlayer.setTrackParameters has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 9, 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":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"2008320424f8f8a5ebed26e46c039daf07e9ce0182ddd34bfc90a4d458b94c02"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerTtmlParser._resolveElementStyle (cognitive 19): PlayerTtmlParser._resolveElementStyle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/subtitles/player_ttml_parser.dart"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0e8adff30a3c288daab1f90d8b9260a255096066d0fccad8293c032d59b4b4"}},{"ruleId":"D2","level":"warning","message":{"text":"MpvPlayer.setTrackParameters (cognitive 19): MpvPlayer.setTrackParameters has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"da52d42045a29b0745f3453af1cdd55bfd4f19f4d18433d7f32c1bf2651627de"}},{"ruleId":"D2","level":"warning","message":{"text":"MpvPlayer.setTrackParameters (cognitive 19): MpvPlayer.setTrackParameters has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"f575806baf3d765abeacaca67300481707e3f1dfaece472820da606b83893e4e"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerEngineController._create (cognitive 18): PlayerEngineController._create has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, match/switch 1 (nesting depth added 5). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/engine/player_engine_controller.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c9c81f68a4e3e1c38ed2aeedaf5c563d8b2977972c3f380f7495da45ed72d5"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.setTextTrack (cognitive 18): BetterPlayer.setTextTrack has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c487fd7a237cbb0b6ae01f8b24cd7051ed92c35d117c0630fc1bef9e4ebea85"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerControlsConfiguration.withCupertinoIcons (cognitive 17): PlayerControlsConfiguration.withCupertinoIcons has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 17. 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":"packages/better_player/lib/src/configuration/player_controls_configuration.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0a38e2576d703f8cb9c3b2418f0328413e07e79a9c383fd6aa14d5327c438d"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerTtmlParser._toAlignment (cognitive 17): PlayerTtmlParser._toAlignment has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2 (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":"packages/better_player/lib/src/subtitles/player_ttml_parser.dart"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8105dc8757722ecea44f937d81e3904ccc6e6cf469299f5db7fcfcdc4b20f87"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerWebPlayer._attachListeners (cognitive 17): BetterPlayerWebPlayer._attachListeners has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 4, loops 1 (2 pts), 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":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6185679f4b81764b3e14868490ffbbba38a2052b4978cfa1d5e18183068bb80d"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.startStalledCheck (cognitive 17): BetterPlayer.startStalledCheck has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2 (nesting depth added 8). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"728399e35313806c8c259f34906d505cf3f3032695c8b1dfbbaa9e4dc8207364"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.startStalledCheck (cognitive 17): BetterPlayer.startStalledCheck has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2 (nesting depth added 8). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e16e480a23137471b04bfc7021bb6ce6d161e0a6672408589f5e1e55784299"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerAsmsUtils.getDataWithRedirectUrl (cognitive 16): PlayerAsmsUtils.getDataWithRedirectUrl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 1 (3 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/asms/player_asms_utils.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b288162e10fb886202ab080e7be635d9ef1e79c7eae645af5b59f0bc3fb77c"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayerPool.acquire (cognitive 16): BetterPlayerPool.acquire has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/list/better_player_pool.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d6aa602558f64e22d8c6e93c5c7afe546beadbbde2ae7593d4c127c8816f43"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerLogger._getCaller (cognitive 16): PlayerLogger._getCaller has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 1 (2 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/logging/player_logger.dart"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f5947798be426dbdf5ab771f3ce7fa5184458afca26f7e7883416f37acfec7"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.setAudioTrack (cognitive 16): BetterPlayer.setAudioTrack has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (6 pts), loops 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd1fe4cb24e518f109037c3042acc4e1b44861ed933ed5e58ece973e4bb1464"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.setTextTrack (cognitive 16): BetterPlayer.setTextTrack has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"3068ee9c883360cb1cb0e4c854d1e3dc2a0c562b23c66d37bdf852f20466f82f"}},{"ruleId":"D2","level":"warning","message":{"text":"BetterPlayer.setAudioTrack (cognitive 16): BetterPlayer.setAudioTrack has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (6 pts), loops 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"5602f7a44ee033a1ec30562edc9da8e71d2511cada69552c664ca26ef9fcf251"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HlsPlaylistParser._parseMasterPlaylist: MethodTooLong \u2014 _parseMasterPlaylist runs 317 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 217 over it, 3.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15f1d089cdd0f5eb3bfe7054053c133ac45ddef1febe2aca123a751b3b79921"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HlsPlaylistParser._parseMediaPlaylist: MethodTooLong \u2014 _parseMediaPlaylist runs 254 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 154 over it, 2.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"9137d40d746c8d3da111707ef3dd53ca0b32d8535971555d1fc89a89657b0404"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerController: TooManyMethods \u2014 67 methods. The bar is 30 methods; this is 37 over it, 2.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":"packages/better_player/lib/src/core/better_player_controller.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3b3400fbcbdfc624372f0b2df44a2bb0160fa00ccb6968eaaada91dfc59181"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HlsPlaylistParser: ClassTooLong \u2014 821 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 421 over it, 2.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd7468aa68a1aeedc8cbc56e4b2fa2d86beab11053ebd58b178e743a95dce07"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayer: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e79f95fed2b4b21c661ad2bfd11ee529815ae09e9d021768c617641ca336dc3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BetterPlayer: ClassTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 280 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5fd9148e3cb54ac88f2cf5f133c66c8ce7040b368d8ff04ec811a0d19ba8fa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BetterPlayerWebPlayer: ClassTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 277 over it, 1.69\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba0b73e73464292d1e39dbe594a6379726aba5e524192e043a3b58ab178b476"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hls_parser/hls_playlist_parser.dart: FileTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: HlsPlaylistParser (21-1084). The bar is 500 significant lines; this is 339 over it, 1.68\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1498e0f8027f6e3cc54831c694ea2c31b0c31003b8a6aba2a3d72203a22c0e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BetterPlayerWebPlayer._attachListeners: MethodTooLong \u2014 _attachListeners runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c02a525f0e09444ee29c436671d6adf587225d7719f08a1f7f1bfb0c9f71e5b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayer: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddc3e3d679bcc2100bcb87b496bf6f1c64c1b3b148133b92986c1c62f9fc0cf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MpvPlayer: ClassTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 233 over it, 1.58\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bddee9a27b2468d4b29dbf941c39c76c80c8a28425bc6a2a54eafb5bd7d767"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MpvPlayer: ClassTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 232 over it, 1.58\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afa7abc04f6b8c7b4d5ddf836ba29d60f4b5fe693558e16384a06214c274a6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: better_player/BetterPlayer.kt: FileTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: BetterPlayer (65-1002). The bar is 500 significant lines; this is 241 over it, 1.48\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7dfe7b4512c3b0a65d71494a40503dd5ad5977830ba4b69b9669a419a2dfb73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: better_player_ios/BetterPlayer.swift: FileTooLong \u2014 716 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: externalPlaybackActiveContext (46-1101). The bar is 500 significant lines; this is 216 over it, 1.43\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfd50ba1af4dad4f08ad905f3314c0a4506f8263203bdb2baacf218497a4a26"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/better_player_web_player.dart: FileTooLong \u2014 686 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: BetterPlayerWebPlayer (12-990). The bar is 500 significant lines; this is 186 over it, 1.37\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b23c6cc8eb9ef6567095f1a75b8ce4ae305db7374e3320bc40c2b57602d87d7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerWebPlayer: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"67907d4ac466ad756ee488cdaa10925219e0637e28450afb87e9fb7c96914588"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PlayerWebBottomBarState.build: MethodTooLong \u2014 build runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_web_controls.dart"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a62fdf6d245d0d14f9f26cc9708042955764fcd2c5e192bcf0edf471887bc9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerIOS: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"002294422c0209acbdd2ab8a171f5a6094c1d192b955d542c8fc1c418efc68f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: better_player_macos/BetterPlayer.swift: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: externalPlaybackActiveContext (41-1036). The bar is 500 significant lines; this is 162 over it, 1.32\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1c498b55b848a9cab92730a780658a6890ec2df4ebd595f352967db6f7d103"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mpv/mpv_player.dart: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MpvPlayer (33-892). The bar is 500 significant lines; this is 160 over it, 1.32\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"510d6f7bc1567cd3ac76b14a7bbcd484c66ceb33cb8b5aac158ef16b6f7787ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlayerWebSettingsRootView.build: MethodTooLong \u2014 build runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_web_settings_root_view.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"31047e08a2c6987d6f8e85febb89b64fb5e8a50308730f5c211c3c23d7999151"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mpv/mpv_player.dart: FileTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MpvPlayer (33-891). The bar is 500 significant lines; this is 159 over it, 1.32\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefd3b2d987f8b465888e4b9764a625942c3cf3735c2b899610309bc59272e31"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerMacOS: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/lib/better_player_macos.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"822f36ec61a4612e501f1034cb6d98288b5f676dab03df6308c90d9597c82bc3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PlayerWebControlsState.build: MethodTooLong \u2014 build runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_web_controls.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abe167747646ae53dd786aa5dd9bd211e51457a27bf72297847041831fc8eaa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerAndroid: 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":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba8345bab0d933d030ee6a1b05b2557ff29668ca493e3e4e8723820d0f0f16b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlayerEngineController: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/engine/player_engine_controller.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8305b1de5416d3179d9462a3cefb43851e23208c44bbf44f54856e97f81d114"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerTizen: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_tizen/lib/better_player_tizen.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa496fc145d179f4854fea0b11580348c0c334a0a2c490341783f36b81a8dd6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controls/player_web_controls.dart: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 95 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_web_controls.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f544c89d9e23a4d0c17e054625fe7e1e4383776c778022f2346d4d32a91c82"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PlayerCupertinoControlsState.build: MethodTooLong \u2014 build runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d795c7afcfd44053990df1e26739c40c9e623235bb385e915bec24cb25dc899"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerPlatform: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_platform_interface/lib/src/better_player_platform_interface.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa650f3d27f4e07c6be3ca2684032cabb710e9123e3fd22e5d0480955e83363c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerFeedController: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/list/better_player_feed_controller.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86548f37bee2c61f7c7aad2ea1057702261f2886e18486a3015d4d1308f2315"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MpvPlayer: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73fa39620b56dc3b828caa658fbffe9f7aee3cd16c2c4ef965f03f15edeec84"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerWindows: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_windows/lib/better_player_windows.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6985c02999daa92c432b5c488af994db1e7759c6fc55697cbd078005d3ed5286"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MpvPlayer: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc8bd38b99f5a46662df18bc1104cb81d65105b6a879d0aeedc6bf25708ac60"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlayerWebSettingsQualityView.build: MethodTooLong \u2014 build runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_web_settings_quality_view.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28716678abeedf371b89e7cd84617f2a1abc549b32ec92ceecdaed10e5604f8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerLinux: 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9ceadd2f0a6d70672d5eaeee8bc09245a92c78a273ecc15ac351deacd76ed3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/better_player_ios.dart: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: BetterPlayerIOS (13-588). The bar is 500 significant lines; this is 35 over it, 1.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae7287decc5f657bdc742587b58c485b179f87480ebcce38359aba7828ec1a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/better_player_macos.dart: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: BetterPlayerMacOS (13-565). The bar is 500 significant lines; this is 18 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/lib/better_player_macos.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fd5f1beba1172c356cad764ad44f561c35ff04969bb3efd6e3984965338566"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayer: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcff1973f2a2387f6719587696f6be314b887dcb1ff29683c0bea7d5df4e815"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BetterPlayerWeb: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc2feec5f9afb9af486814718db5fbcf7771f8137b522f021dda5f5e49bc700"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BetterPlayerIOS: ClassTooLong \u2014 404 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 4 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddbf2dcb04b3d2df417aa40845c40eb299b844f35d0903a39f1de3151b9aa81"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BetterPlayerAndroid.create: MethodTooLong \u2014 create runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e00a9441ac068cf9595046933ef3648039ad6e7645d1fe268c13acfe4698db8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BetterPlayerFeedController: ClassTooLong \u2014 403 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 3 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/list/better_player_feed_controller.dart"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b87173ed026f3309e58c91db6b45dbbf1db04fadeb48a837907974fbfebf96f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:74-174 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:70-182 \u2014 These two members are variants of one another: 53 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3a4a28f5e5c5e023f48d59cb6a427c1f8a6c8bab9a5e0257cb87c8f764d4c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:511-523 | packages/better_player_macos/lib/better_player_macos.dart:488-500 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69662149625057923e6d0f0f13ef902442183066fa25c4798c88a7040bc9e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:939-962 | packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:968-993 | packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:999-1029 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:884-907 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:913-938 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:944-975 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb70d51979ab06cf579ea7eeb8896220d7128ef92a7958a9c33d79201d9ef182"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): packages/better_player_linux/lib/src/mpv/mpv_player.dart:760-778 | packages/better_player_linux/lib/src/mpv/mpv_player.dart:780-805 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:761-779 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:781-806 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4868c56583e2be82bcc17201508cfe9c1ad40a02f7ae9479e866c4a28cdaf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): packages/better_player_linux/lib/src/mpv/mpv_player.dart:844-866 | packages/better_player_linux/lib/src/mpv/mpv_player.dart:868-890 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:845-867 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:869-891 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93a1f7c9bdb6eff400f97e9f43c6776125c931cf0bfdd44b68969377710f0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:224-250 | packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:257-276 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:224-250 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:257-276 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"14092c403172b8646df39c6a30dcc820911e9e4c8ef241ad3b92e6daa4df3520"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): packages/better_player_linux/lib/src/mpv/mpv_player.dart:490-576 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:490-577 \u2014 These two members are one piece of code written twice and then edited apart: 87 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf77cc2c50b38a18f587f80a286eea37cd839f1bbbf9609a1dc00679d5908ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:274-352 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:282-347 \u2014 These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"0842bfb9eacaf77798ca2f55cd17ce9f29afa840a4aba6d3b1eaf84707a2314c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:364-392 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:321-349 \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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ff14941c93674b0d425299cda528071f75a2b8d883f9d4c8949daaa9686354"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:298-348 | packages/better_player_macos/lib/better_player_macos.dart:289-338 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"9288c3d283a53f1aa1cba5788298f61a0bd4f954e091dd22fa183c05a245eadf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:639-671 | packages/better_player_macos/lib/better_player_macos.dart:616-646 \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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"0655ae2221c2afce9e6312d32f90e50dffaeaa46758ba74dbc5039d4a7663a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): packages/better_player/lib/src/controls/player_cupertino_next_video_widget.dart:13-46 | packages/better_player/lib/src/controls/player_material_next_video_widget.dart:15-50 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_next_video_widget.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad1a2c644490714173059df759c4a07d9cda38fe71a9c34b1ab6e06d69e1c06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:67-95 | packages/better_player_macos/lib/better_player_macos.dart:54-82 \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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"010fd113aa3838e1f7ea784f91135001ee88f9a1c024d19f78e0f1c985c170b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): packages/better_player/lib/src/controls/player_cupertino_error_widget.dart:13-46 | packages/better_player/lib/src/controls/player_material_error_widget.dart:12-45 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_error_widget.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7b80e314bdf9c2ca863540242566758757d3b5183e05b0070faa7ea4cc284e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift:74-94 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift:38-60 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00b6022056f3ba71b26f9905f79a34af4a8e8282511eae60900773950bcadba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): packages/better_player/lib/src/controls/player_material_top_bar.dart:197-236 | packages/better_player/lib/src/controls/player_web_controls.dart:789-829 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_material_top_bar.dart"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1368a246a303e2905d166f12d576ede2e7ffea4479aa38ea8171be23968232d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift:104-125 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift:70-92 \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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3a897a0097adfa8aee8e42fea97c8db6141a8d6637e134220d69a6c449bc71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): packages/better_player/lib/src/controls/player_cupertino_controls.dart:324-352 | packages/better_player/lib/src/controls/player_material_controls.dart:300-323 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e52ab1784571c9891545a69b3777af34335947b96a849218328a70298da59f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (9 members, 31\u002B corresponding lines): packages/better_player/lib/src/configuration/player_translations.dart:44-80 | packages/better_player/lib/src/configuration/player_translations.dart:82-113 | packages/better_player/lib/src/configuration/player_translations.dart:115-146 | packages/better_player/lib/src/configuration/player_translations.dart:148-179 | packages/better_player/lib/src/configuration/player_translations.dart:181-212 | packages/better_player/lib/src/configuration/player_translations.dart:214-245 | packages/better_player/lib/src/configuration/player_translations.dart:247-277 | packages/better_player/lib/src/configuration/player_translations.dart:279-310 | packages/better_player/lib/src/configuration/player_translations.dart:312-342 \u2014 These 9 members are one piece of code written 9 times and then edited apart: every two of them correspond over at least 31 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 9 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/configuration/player_translations.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c6fa1ce4049b76f2bd29f4e7dd1fde154a426a1c500062077a989efc171845"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift:19-40 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift:15-36 \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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cbfaa470109f0dd503c3fbebaa58b40e539226f69b02094692162b6ca4c003"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:813-816 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:769-772 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"5403ff7fed19a4ea8ca67ad9ca389f499217f6cc359ed8493b77473b1d77adac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:821-831 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:777-787 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b77855efe944bec2018c688288dc745c11f9025eef331e9588f6e6d599d524c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:1069-1093 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:1011-1028 \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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d77f9152838ab768f1e68ebaa4c0a1f6252036e9c4b8ecf089446a479b1d5c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): packages/better_player/lib/src/controls/player_overflow_menu.dart:101-123 | packages/better_player/lib/src/controls/player_selection_list_item_widget.dart:20-44 \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":"packages/better_player/lib/src/controls/player_overflow_menu.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e0ed1b78a698db91b8f2d22c32576cc8f0ec8a65d5139f56e89594e62c9c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:419-434 | packages/better_player_macos/lib/better_player_macos.dart:410-425 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a7bb329a03a246a5c5235957602bb9b6dc95b5b00f5f2702e18026ade1ade0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): packages/better_player_android/lib/better_player_android.dart:321-344 | packages/better_player_macos/lib/better_player_macos.dart:386-408 \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":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f962c9bf718f000e22f060f04774c1d19271f63ec07bb5e304e1610634a6ca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:129-143 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:123-136 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3440219d72a069ab19e932bab0e6b1c2610f2d51d0c179461a8c5e2c3a7294a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): packages/better_player/lib/src/controls/player_cupertino_top_bar.dart:125-147 | packages/better_player/lib/src/controls/player_cupertino_top_bar.dart:332-350 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_top_bar.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b279f7880a1900d929fd9dab12a962fa2e1f0f1d8f0221228d56016ac602569"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): packages/better_player_android/lib/better_player_android.dart:20-37 | packages/better_player_ios/lib/better_player_ios.dart:20-35 | packages/better_player_macos/lib/better_player_macos.dart:18-32 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"02dd9f42fd431e105cf1d0776d5a98894cc626d98c6b95431d8b419633c61156"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:642-655 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:598-611 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d3bc1a49afaeb630561843fde7ff89d23e99751a5927d31f87060d1690b075"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): packages/better_player_android/lib/better_player_android.dart:529-545 | packages/better_player_web/lib/src/better_player_web_player.dart:920-939 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f5272641a247654d5b49155476938bcedef153d8de1dbee4d589cc7afa2e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:837-846 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:793-802 \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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf00445b32bb72acf50ed527efdbc79a7beff42503c954c02cf5f6793ad755a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift:131-138 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift:98-105 \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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"56832f8e64c5d480d7d13d82041408b1143c6511877274dd6863a6729df6be44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): packages/better_player_linux/lib/src/mpv/mpv_ffi.dart:336-356 | packages/better_player_windows/lib/src/mpv/mpv_ffi.dart:335-347 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_ffi.dart"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"09626221d2e94cc33ce910b9cecce282568a007565f5324d7e5f9702df80f4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift:112-115 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift:112-115 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"21af99c7ecc14a5179dd73fbe1ee8231570eab9244f4ae7522820abb2996bb55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:673-686 | packages/better_player_macos/lib/better_player_macos.dart:648-661 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2a343097924107496de7610039c8cd1e831a7e1eb1b141eece4ca2e98b35ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift:70-72 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift:70-72 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b23206d3db5304097b1410410617b85f5e4dfe784bfcebd8acbdd8789a5e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerView.swift:41-49 | packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerView.swift:40-46 \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":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerView.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"65654bdfd0bc205c8784ae81e0a5d56fefd5a11227b64988a515a76087562291"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:216-227 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:223-235 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6697934bf303c87d66fb921ed3895382f9a314861dc3a73d5f328cdf84d974e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:854-863 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:810-817 \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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bdcc09ee3ede3edb6aa7e557087e6c704ad03fb211b474c913d9be701a7e417"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift:244-247 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift:244-247 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aebbeba6612425f216df299d037f5055d96fbf5e6d44ea6f03c7f7b88fd0783"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:26-26 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:27-27 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa8103da585d90f02abb21f240a0ece179af4281aceb7f7f73adeec425a4980"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): packages/better_player_android/lib/better_player_android.dart:384-396 | packages/better_player_ios/lib/better_player_ios.dart:496-509 | packages/better_player_macos/lib/better_player_macos.dart:473-486 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"02122b0fadfce33ded05e5addd02ff8a74ce006326c04738c5540c57f19c279d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:453-456 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:409-412 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb53273daefc54fa7c9e45ca5f5c5371b9a85a5d06167112e800fdde73448ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:214-216 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:214-216 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"895717bf5b24e7ba9de3a14d957a6c4ebc3a40df82e9f05500ddf72044ef1fce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:280-282 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:280-282 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf9655e6a0f402b8cb53e378eed1d66b9a53960629547441c9897d4457afd02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): packages/better_player/lib/src/controls/player_cupertino_controls.dart:311-322 | packages/better_player/lib/src/controls/player_material_controls.dart:289-298 \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":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20d80cada4e995e45515d343334744c92b4d10ebf575fab58b4f696b87fe7d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): packages/better_player_android/lib/better_player_android.dart:412-415 | packages/better_player_ios/lib/better_player_ios.dart:525-529 | packages/better_player_macos/lib/better_player_macos.dart:502-506 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2e9591f20c391556c29bc4819a8eb4905e0cb6fa2759868f0bc04a2b030118"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): packages/better_player_android/lib/better_player_android.dart:417-420 | packages/better_player_ios/lib/better_player_ios.dart:531-535 | packages/better_player_macos/lib/better_player_macos.dart:508-512 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f90dd7882694b593b90fef6695c263d365f9ae3553bfe100c3188232c45cb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:350-354 | packages/better_player_macos/lib/better_player_macos.dart:340-344 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb59929f09d795c3cd05444993ba58c8299c10e7883b38658feb27b0e278788"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:537-541 | packages/better_player_macos/lib/better_player_macos.dart:514-518 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fe2a6954c6c8bf3a835ae12ab36521db9a658284149600b0208606f7cc4c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:695-704 | packages/better_player_macos/lib/better_player_macos.dart:670-679 \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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbcd20223fb2a82172c017e24f3388c30c0ee233fd9e744ce873216150719315"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:25-25 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:26-26 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5069dedbf5f18242cd32ad5238215f05f0fada9a3785b4d8cf913a3f0468b07f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:746-749 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:702-705 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3918a60966aab98676e82306f9b36fcfd52e22f3d42d621e3021949c555823d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:27-27 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:28-28 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6f4e0c000fc2c5e80b77b14508f00a5308e76b35bf2d50e5955a65fd3b1ef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:203-209 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:211-216 \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":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edc8058d09c1740ef88fb20b0974df27b3ec44048c06d2016dd0a819b28396f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): packages/better_player_linux/lib/better_player_linux.dart:17-21 | packages/better_player_windows/lib/better_player_windows.dart:17-23 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9af517ea7c724cdc0725df6d5a5f33719cd16cbd4a8e211954a5c2a41a4137d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:808-811 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:764-767 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4db66432f125b9cc340b235220e03f42ef3e08d269a96233e2b417044e11886"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:706-708 | packages/better_player_macos/lib/better_player_macos.dart:681-683 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c222ec6db91d1c8330e36205ee43fcaa980b47ae2ab25546679cac551301cba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): packages/better_player_ios/lib/better_player_ios.dart:713-715 | packages/better_player_macos/lib/better_player_macos.dart:688-690 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedddac678e1736b4550912e4c012c955880997fe417ba8a28069748ce63c538"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (133 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:155-287 | packages/better_player_macos/lib/better_player_macos.dart:146-278 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d131e3560060f69daf41156ec9dca3601c4ef1a3bd47bf622cc38db036047a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (126 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:248-373 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:248-373 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37aef25740bff969d566445733cca9ba1237ca503c1c38b1b535b90de7f9414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (79 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:145-223 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:145-223 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e07a5c41b888e3659d01ea51d5f5ed7d14cdfe0ac48515e935e72f7f4b31a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:490-556 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:490-556 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart:490\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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f50d47d0ff6103e8625b1d9dead66384b5c72656756c205fbe2e27f105272b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:652-703 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:653-704 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"f949d1b746b0a7d08f7bb3c8424c07a145d7fb8841a4c0cb6cdb6ffccc12518d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:286-318 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:291-323 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_progress_bar.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:286\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b8d3661aec90bbd0733a5b4a0a08d6792b7013002cb3770699f00e4e7d71b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:112-143 | packages/better_player_macos/lib/better_player_macos.dart:103-134 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6bf59bf22bb7189a6d58e628c99e4cbc86f4ed4fd15cd4ed265e762ee8f010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:122-152 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:131-160 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_progress_bar.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dffd45e8a668f00a5122cb31d406662bc96d47c1e03df65bc43bdbef0c9794d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_controls.dart:282-309 | packages/better_player/lib/src/controls/player_material_controls.dart:259-287 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_controls.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_controls.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ebb097c17d41a8c596e2c8060515f5de7eb76faa41079eb02ac7a12e3601a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:730-758 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:731-759 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"15378d747b184f90cdadb9f432f563913f97de208b587248f20deb9e94e82a09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:87-122 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:87-122 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b3d739b377ea1766d0ef9ef6fc40a5e495e2324f63069e985289df3954bab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:298-323 | packages/better_player_macos/lib/better_player_macos.dart:289-314 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/lib/better_player_ios.dart:298\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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fb90f7cc990e4c32358b1f8e970e92c4231ebeb30d36117c83e0d3e9b171f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:780-805 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:781-806 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5db90c02a264b2733e58b852b4dbe88c81fcafd50bed8c1d5d7c66adf82c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:92-116 | packages/better_player_windows/lib/better_player_windows.dart:94-118 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b3068cd121a6ebb0747fa196d82c54e0848f0d7517ea0d2f0a036df844dda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:229-252 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:237-260 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_progress_bar.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7058076c27081e331bb61cd2f8650bb0124e48518656147114ea6f5e5c58f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:705-728 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:706-729 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"46954a178a6e6712ef617b5bf895e0be615cfae01de2c0e1092b932a5dc43abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:62-83 | packages/better_player_windows/lib/better_player_windows.dart:64-85 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_linux/lib/better_player_linux.dart:62\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"804834c59e43c11eeabdfac0cfbc12ca8fa81f08437b31c6c55383b8e3690f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:225-246 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:225-246 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2e2a07907c6f76333286f1977d6eb2fa3960c9d4c00e2f6602c38b63f6b4f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_controls.dart:180-200 | packages/better_player/lib/src/controls/player_material_controls.dart:93-113 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_controls.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_controls.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player/lib/src/controls/player_cupertino_controls.dart:180\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060packages/better_player/lib/src/controls/player_cupertino_controls.dart:201\u0060 calls \u0060_onPlayPause\u0060 and \u0060packages/better_player/lib/src/controls/player_material_controls.dart:114\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6e6907b6dbc3f1cd8f876bb36e042349d77999bf8b2b0cfae02553096e0abd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:398-417 | packages/better_player_macos/lib/better_player_macos.dart:389-408 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/lib/better_player_ios.dart:398\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"93073c6f95ed138e7f0d4439f12eaa50cfcc93a3258a2df4edca93867ce34242"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:388-407 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:388-407 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c4e4623310546be3ac141e639953e40c5d41db51669cfe23645f819bf4b622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:409-428 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:409-428 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ebeb92b57b89dc6ed1a0f0d67846dab42dafa34c6fded83c50fbd792872a5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:430-449 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:430-449 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4d9de4fb88c8cda9ba1f7dc0055fa09979f7c055cb0253be3e9e94ec3cb384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:614-633 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:615-634 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69f0b75f4246f1117792eb9db62d91de3e4803649e9d32bd2f5f2e4d24e08f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:844-863 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:845-864 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart:844\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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"619e759f05e31fbff71ec0bd31a97ffb681b48907e9a46536ff8f1502744df16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:868-887 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:869-888 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart:868\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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"b641f47b651f32f5e486732f706c33b3c2a7af1045ad452a4eb07aa8963ed6b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:760-778 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:761-779 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bc7df5316ebca3d046c3ae11cdcd541daacb05a84420749ae9a9bd4ecd1544"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:96-112 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:96-113 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_progress_bar.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:96\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0494ee1df3d3198435f3ce585a792c56e10e0d140e9511ee92325fa34e511b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:654-671 | packages/better_player_macos/lib/better_player_macos.dart:629-646 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/lib/better_player_ios.dart:654\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060packages/better_player_ios/lib/better_player_ios.dart:653\u0060 calls \u0060startsWith\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart:628\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"506c2c0d6559d1a454de52c3418c6fd8167866120a010079393b94363dcc6ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:212-229 | packages/better_player_windows/lib/better_player_windows.dart:214-231 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9ae8c48377185b2a3c0edf52b4ffc2ed368ec614b1874d2956edf48409dfd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:825-842 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:826-843 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"5048c7d7c260d3fb509ef10e8ae8abd904d48d1bcbcafac238ba1b4b150691e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_error_widget.dart:30-46 | packages/better_player/lib/src/controls/player_material_error_widget.dart:29-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player/lib/src/controls/player_cupertino_error_widget.dart:30\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_error_widget.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46642af569e1429bcbeb301062f4d8aeeb1742b70042e07496d59727426da95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:548-564 | packages/better_player_macos/lib/better_player_macos.dart:525-541 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"202d7ba3a79370cffb96900414e29de5e9c985b36edbf243edbacc5eeae066b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_error_widget.dart:13-28 | packages/better_player/lib/src/controls/player_material_error_widget.dart:12-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 \u0060packages/better_player/lib/src/controls/player_cupertino_error_widget.dart:13\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":"packages/better_player/lib/src/controls/player_cupertino_error_widget.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbe2796bf874875b2f91cb25837a41a3ddc758c8634fde2b039aa2c6a15a9de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:176-191 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:184-199 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_progress_bar.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 144 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":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"101196e0c235e2ac0ff304967a35ba4aad266a85805ea1ee662a8267affce7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:80-95 | packages/better_player_macos/lib/better_player_macos.dart:67-82 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/lib/better_player_ios.dart:80\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060packages/better_player_macos/lib/better_player_macos.dart:84\u0060 calls \u0060registerWith\u0060, \u0060BetterPlayerMacOS\u0060 and \u0060packages/better_player_ios/lib/better_player_ios.dart:97\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7494cf7b7f32b07fd7cd456d640ad46c8d19f114697609969c1a6a91839aee2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:807-823 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:808-824 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"835b04290baba2c2eb863f46a030f9a159a730a40fa7f45f8f4931c9ca1dda36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_controls.dart:324-338 | packages/better_player/lib/src/controls/player_material_controls.dart:300-314 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_controls.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_controls.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player/lib/src/controls/player_cupertino_controls.dart:324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e199b5cfc21a220efaef681fa903fafb5114eff8967c2f10987e0636795932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:451-465 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:451-465 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f5b9a26a33124ab63cb1a6490a1341b7be33815ae72df29bf6f0a78ddf9cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): packages/better_player_linux/lib/src/mpv/mpv_player.dart:853-866 | packages/better_player_linux/lib/src/mpv/mpv_player.dart:877-890 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:854-867 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:878-891 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart:853\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1e568347e2ec85831dde14ef5ca1bbc471673c14a521a5ef98d5d8868d4b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:563-576 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:564-577 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart:563\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8145ae865c52bc393b0f8b815e2a8afc126ab35da7c22fdd3ed507c1c86d94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:336-348 | packages/better_player_macos/lib/better_player_macos.dart:327-338 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/lib/better_player_ios.dart:336\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"299567da553e07cf86544aff6be0824c972ada4bd6ea546cf302fafa27afa04f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:70-82 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:70-82 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"200acfded3be7549ab17d42d6e25d5ae75b536a5fb9122a32ce3715b2e412784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_bottom_bar.dart:31-42 | packages/better_player/lib/src/controls/player_cupertino_top_bar.dart:29-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player/lib/src/controls/player_cupertino_bottom_bar.dart:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_bottom_bar.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abf951cfb9f67fb73a0cbf83fb87dcec84eedc8b16302dbd6e58004c90c1978"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_controls.dart:252-264 | packages/better_player/lib/src/controls/player_material_controls.dart:219-230 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_controls.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_controls.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed25d51ec0cbcb07b0c194fddd1e58ea82c8cbf356709b9fada6ddf7b1b94ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:324-335 | packages/better_player_macos/lib/better_player_macos.dart:316-325 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/lib/better_player_ios.dart:324\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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18005cbf2eff04a325910ff1aaec0fc9f9f8fab61167cb0e8c7e030cbb0f603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:467-478 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:467-478 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"afee51fc6392d801976e49d998d4dde013ba030182d8052bba2d72f4610bac32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:578-588 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:579-589 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b395d881d38ec5d1ace3b3aa6378a5c4ae580e7c25de3c84683746e11266a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): packages/better_player/lib/src/subtitles/player_subtitle.dart:92-100 | packages/better_player/lib/src/subtitles/player_subtitle.dart:103-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player/lib/src/subtitles/player_subtitle.dart:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/subtitles/player_subtitle.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5951f652dc1fb1d8deac601b892fc1bfa20298ea29bb8b851b2da4841bb1927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/better_player/lib/src/subtitles/player_ttml_parser.dart:415-424 | packages/better_player/lib/src/subtitles/player_ttml_parser.dart:428-437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/subtitles/player_ttml_parser.dart"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b6af576d9e7accc56672bfc510c82bab8e861a70435baf520332668354d093"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:118-127 | packages/better_player_windows/lib/better_player_windows.dart:120-129 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_linux/lib/better_player_linux.dart:118\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1510e0d078a25d5a9507fa908f89e05248d6a92e27c37fa40812343dd034a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:129-138 | packages/better_player_windows/lib/better_player_windows.dart:131-140 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dac16c764e89aa4470e74f45a7d5130cfed9a4dd319c660abf885073d0f32f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:238-247 | packages/better_player_windows/lib/better_player_windows.dart:240-249 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce019dd7924db26a342580823ce6b6bd4ecf119905c27f2d0d3a049b30b677a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:249-258 | packages/better_player_windows/lib/better_player_windows.dart:251-260 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"567ebb344a785325813db9a596c8cb8c9be47497010543ef36a17cc125d5675d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:145-153 | packages/better_player_macos/lib/better_player_macos.dart:136-144 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"020b8d45cc2d51d01a2b7b2424a1f48550301cd34d88f313514a129718f0b38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:574-582 | packages/better_player_macos/lib/better_player_macos.dart:551-559 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"8266757a985cfc73f8d5142c7ea366e08595ca00c4c64eed2bc83d3fcf50b12e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): packages/better_player_android/lib/better_player_android.dart:402-410 | packages/better_player_ios/lib/better_player_ios.dart:515-523 | packages/better_player_macos/lib/better_player_macos.dart:492-500 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_android/lib/better_player_android.dart:402\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"caada3d4a761fb78a3905419d63bf854f811b5bcd96c2c284880c97d3317dd22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/better_player_android/lib/better_player_android.dart:613-619 | packages/better_player_android/lib/better_player_android.dart:621-627 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1159ae7014b285d80a9c9adc2bfe817d03d732be755b2337dcca904b1ea1ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_web/lib/src/better_player_web_player.dart:373-378 | packages/better_player_web/lib/src/better_player_web_player.dart:404-409 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_web/lib/src/better_player_web_player.dart:373\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"928419c9b44d79d75da577ca3de1654e9115b55456c270a4ebe149c865866d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): packages/better_player_linux/lib/src/mpv/mpv_player.dart:762-766 | packages/better_player_linux/lib/src/mpv/mpv_player.dart:782-786 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:763-767 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:783-787 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart:762\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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae4328fdf82a29cfb6ce50e567b3d20ca7f91fbe6245aaf5dc274a8491176bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:154-158 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:162-166 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_progress_bar.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d48d0fd0aacf4f687ec8c7b746ed4b9a9f751efe1d2b1463cfcf7c5a17e41b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_controls.dart:239-250 | packages/better_player/lib/src/controls/player_web_controls.dart:48-57 \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":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"950a91ae6e7a415a1a6494f363f14fda7135eef21095c0cccec406145a497e8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_controls.dart:266-273 | packages/better_player/lib/src/controls/player_material_controls.dart:351-358 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_controls.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_controls.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e524d56f7b837018c83c5c7cf701dea511f4d31408980f02b17c4ede45395b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_controls.dart:354-361 | packages/better_player/lib/src/controls/player_material_controls.dart:325-332 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_controls.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_controls.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c102d3612ff557416454b62ea7b73baed7c9f89212779967f41da2780db73cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:193-201 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:201-209 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_progress_bar.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:204\u0060 calls \u0060cancel\u0060 and \u0060packages/better_player/lib/src/controls/player_material_progress_bar.dart:212\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4b8396504017c5f904b7fca885a05f9fbc12270cdcf3b1201271d7f2a0b677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): packages/better_player_android/lib/better_player_android.dart:375-382 | packages/better_player_ios/lib/better_player_ios.dart:487-494 | packages/better_player_macos/lib/better_player_macos.dart:464-471 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 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":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"555ed6deb8508e19744bb200fb60aa9d8aa89d2aad8313792ed17190e697048a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:37-41 | packages/better_player_macos/lib/better_player_macos.dart:34-38 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c9697450bed5862b89830dac45ce4c6eca789fc569c1aeebb9cc12345854c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:356-360 | packages/better_player_macos/lib/better_player_macos.dart:346-350 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1a0cc1dfb082d2586f790240b24bd444463ef5de6f9303911cdc54e25ac538"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:362-366 | packages/better_player_macos/lib/better_player_macos.dart:352-356 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cfdc27023170cbc9c2d528963386ae085e19e0c1cc0461a438e319a60f1bb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:368-372 | packages/better_player_macos/lib/better_player_macos.dart:358-362 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3be5c97a3670865e21f946eaea854db04843197aabfaef09925bb7c170f6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:374-378 | packages/better_player_macos/lib/better_player_macos.dart:364-368 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d26f589deae1fd7ad08da9968751366d1cc194e1bd5d3f9e01dfdd1a128741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:380-384 | packages/better_player_macos/lib/better_player_macos.dart:370-374 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0f2993eee39153826a3cef580000a37c6242bbe04de0f8ea3ced116a69ee25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:386-391 | packages/better_player_macos/lib/better_player_macos.dart:376-381 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"d973b8fbc8933966eacf2a9f0239c12806713d87609403285bddb46ba26d977e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:436-442 | packages/better_player_macos/lib/better_player_macos.dart:427-433 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"bafbed19dd9927ca39831c5512a3a316e8685913e3ca3c7e06e6f887e9ffe79f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:456-462 | packages/better_player_macos/lib/better_player_macos.dart:447-453 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec84a254300ccd5a1bdd8f42a1b2038d4b5aef221d9b0ad643f1291181ddec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:464-471 | packages/better_player_macos/lib/better_player_macos.dart:455-462 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"14061ead120d5e67ffb827c77808b14a53ecf02e97c6b70db1827a62685813fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:566-570 | packages/better_player_macos/lib/better_player_macos.dart:543-547 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"0157e7f4bc103d577b0f653104dd4068e6fb763c88b8c16d728ecf793c29043b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:25-30 | packages/better_player_windows/lib/better_player_windows.dart:27-32 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd987f23c30df2c1e58cd2c617a1015eeae618535d6f233c2aed3b2abf0eedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:85-90 | packages/better_player_windows/lib/better_player_windows.dart:87-92 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb616017713889c2fe5e890f8b910361117933a7f0410e5bd8ea668fa06f9a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:140-144 | packages/better_player_windows/lib/better_player_windows.dart:142-146 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1dab392afd7ca46658e4ba7465b60515eee7a8d9fc57083c9a658f35a2ed073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): packages/better_player_linux/lib/better_player_linux.dart:146-150 | packages/better_player_tizen/lib/better_player_tizen.dart:171-175 | packages/better_player_windows/lib/better_player_windows.dart:148-152 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_tizen/lib/better_player_tizen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a324eae7509ab2a85bca8dd0008aee552bd27747b5015ea330761bd0913107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): packages/better_player_linux/lib/better_player_linux.dart:152-156 | packages/better_player_tizen/lib/better_player_tizen.dart:177-181 | packages/better_player_windows/lib/better_player_windows.dart:154-158 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_tizen/lib/better_player_tizen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75990909a8eaef45a913731ea96cb1d46746c081bf3c839dcbd81959834a2c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): packages/better_player_linux/lib/better_player_linux.dart:158-165 | packages/better_player_tizen/lib/better_player_tizen.dart:183-190 | packages/better_player_windows/lib/better_player_windows.dart:160-167 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_tizen/lib/better_player_tizen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfbf47bcf03559f23a30eb82bf50b4638c2412281124b50db9193a5d6cdd7cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): packages/better_player_linux/lib/better_player_linux.dart:167-174 | packages/better_player_tizen/lib/better_player_tizen.dart:192-199 | packages/better_player_windows/lib/better_player_windows.dart:169-176 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_tizen/lib/better_player_tizen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33041e65192e16911bcfa85ed35b61a302e7f4d193067f2c2139e7bf43eadec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:176-184 | packages/better_player_windows/lib/better_player_windows.dart:178-186 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"44244eac996a96294a08b0cbb3df38ffdae30456b86220ad43c00a3d028a8ea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:186-191 | packages/better_player_windows/lib/better_player_windows.dart:188-193 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db1cab45f805ffb9b218ff21bcf8625846a06b8bbebb7fce9a3ca6d3f16f9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:193-201 | packages/better_player_windows/lib/better_player_windows.dart:195-203 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"af699b9670dd8a0c88361b1af9bc9c4e45d4feee43f57903f503e7dd338f7d9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): packages/better_player_linux/lib/better_player_linux.dart:203-210 | packages/better_player_tizen/lib/better_player_tizen.dart:227-234 | packages/better_player_windows/lib/better_player_windows.dart:205-212 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_tizen/lib/better_player_tizen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a604f673922f6a4815fb12c0ed1e8e153a14cc25f2220fe16a10384d3272fd78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:231-236 | packages/better_player_windows/lib/better_player_windows.dart:233-238 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0298847608af41df67d4a6eb821cbc529a0f929a09dfae63f875a05d7b40d4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): packages/better_player_linux/lib/better_player_linux.dart:260-268 | packages/better_player_tizen/lib/better_player_tizen.dart:282-290 | packages/better_player_windows/lib/better_player_windows.dart:262-270 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_tizen/lib/better_player_tizen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f67966f0887627276bdb0bd9eec1651e658b6ce359af94d7c83467c514e497"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): packages/better_player_linux/lib/better_player_linux.dart:270-281 | packages/better_player_tizen/lib/better_player_tizen.dart:292-303 | packages/better_player_windows/lib/better_player_windows.dart:272-283 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_tizen/lib/better_player_tizen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a6631c2b63dc1ba88e0c0771ee986aeaeb6568bc1b22d7f99e03563150fe5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): packages/better_player_linux/lib/better_player_linux.dart:291-302 | packages/better_player_tizen/lib/better_player_tizen.dart:313-323 | packages/better_player_windows/lib/better_player_windows.dart:307-318 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_tizen/lib/better_player_tizen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7f70b2a7376a8e9743ac6f32bbb2bf864d2ed7eccc730564fc469b116686b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player_linux/lib/better_player_linux.dart:309-317 | packages/better_player_windows/lib/better_player_windows.dart:325-333 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_windows/lib/better_player_windows.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 241 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"0350a3d79aefdfe337017ac4a705c2e00bc23cb21a48760c81acb06d167a3f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): packages/better_player_linux/lib/better_player_linux.dart:319-331 | packages/better_player_tizen/lib/better_player_tizen.dart:338-350 | packages/better_player_windows/lib/better_player_windows.dart:335-347 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/better_player_linux.dart\u0060 and \u0060packages/better_player_tizen/lib/better_player_tizen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 80 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":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e11007631deb847445622841eda078a4c90b25805963e85c80091327c7da0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_ffi.dart:322-332 | packages/better_player_windows/lib/src/mpv/mpv_ffi.dart:321-331 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_ffi.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_ffi.dart\u0060 as WHOLE FILES: 99% 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_ffi.dart"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f3e52762297ebb4b09eacb3f9d04e7f3dcdc3eb7a08d1962c6f69bb3249896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:34-43 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:34-43 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7943939c50b5fdd20c386cb1a12e25f3cbcc185c77070dfb59b407e6775164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:124-131 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:124-131 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec52db550257504afa6e5683b767b717df5cf5a4e7e54ba0f1e8d986b86d439"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:133-143 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:133-143 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2189b66870a4954592f764d3f83bc229c9316c08a9fcd55321485623709219e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:375-386 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:375-386 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ab275039d0563bcc4e543f82b89ce16d9a7e17144ef9a7c5bb73cdf70835dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:480-488 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:480-488 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef857849c804848e95592fa8a95f81eb28157a00ed5909f74fd17abb21d2b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:590-595 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:591-596 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ce0d9b95accdb9bd2d36258b2a8e436c6cbefef53364f75e94533a5e8376cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:597-605 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:598-606 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4ed1b5a2538b5876e0e3907a6ef8b455f0134d3dac4f33c2fc8ed75ae3defc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:607-612 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:608-613 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"e279818e05e8ca0a3609fbdcb791402056104d8b4762e3092cc3b37cd344dab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:635-643 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:636-644 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"2217ad6a2511dc026c7b6fc077bef1581bfbb9b4339171a33795b6dd939d0432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_linux/lib/src/mpv/mpv_player.dart:645-650 | packages/better_player_windows/lib/src/mpv/mpv_player.dart:646-651 \u2014 before extracting anything, compare \u0060packages/better_player_linux/lib/src/mpv/mpv_player.dart\u0060 and \u0060packages/better_player_windows/lib/src/mpv/mpv_player.dart\u0060 as WHOLE FILES: this scan already matched 35 separate duplicated blocks between them, totalling at least 805 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43d3b309408c23908e472c63833e9bb4e7e7dbc12002fc08a18003af08bc19f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart:58-65 | packages/better_player/lib/src/controls/player_material_progress_bar.dart:54-61 \u2014 before extracting anything, compare \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart\u0060 and \u0060packages/better_player/lib/src/controls/player_material_progress_bar.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 144 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"babe48806d7045ed99760b746ff299d2a76ca2f202b5945f33d0cb9e21063a92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/better_player_ios/lib/better_player_ios.dart:289-296 | packages/better_player_macos/lib/better_player_macos.dart:280-287 \u2014 before extracting anything, compare \u0060packages/better_player_ios/lib/better_player_ios.dart\u0060 and \u0060packages/better_player_macos/lib/better_player_macos.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 393 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"d108059b16b0e1a502a1906427d113748eaa821a5d3569000095a4f243bd9862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt:708-713 | packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt:736-741 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt:708\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea63a4fc3c590bb100db10a03304ac81037808df5039097a3d306a6203dd5e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (118 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:501-618 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:457-574 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:501\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cf4d5c822032f5c2e02cac545ac9d82d83a7d25d0db5e0a8916ecdda73f951"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift:74-145 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift:74-145 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 243 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e103213963e67d11148cdbf9d451bd5011d3a519ef46d6479486e8a91056dd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (66 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:657-722 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:613-678 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca04baed7c303c287a4e85b85cdf940e2c42fb0559774761ec080f75a0dfc74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift:194-242 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift:194-242 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 243 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e181e70d0b80decd5e1a479dffcf1567a716cb9633f86b1f18c9e6c99bb66b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift:147-192 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift:147-192 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 243 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb753896357fd86bcdda5e6303cb9ca42803c5b6ef2a3536016b501802427555"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift:79-115 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift:79-115 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb853a59d128d0c1ddc83f05fb6a06a0ea5fddb799728d2816ad90e052ddc1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:286-318 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:243-275 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f3b39379bb21574da266da92a0b9f9f8fed357f8cae787e311063f39129eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift:246-277 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift:246-277 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 243 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2ea40f0456596ac3f204a45d5908caafa196d257f6db630e4f9e5f5f410e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift:207-237 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift:207-237 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f502c816e5eb633590fe33a4d72f63ea0ecd1f609e403e716e388e4f393c0ba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201350 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:394-443 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:351-399 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04c350d146126aa34b97c280b8c3dbf1013ce54cb6f51a7b8b986acfeab9e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift:169-195 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift:169-195 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcda847cbd8397d801a425ab16e6a3d919c4521fc7f7be51a8edb8e7f15bd1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift:33-57 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift:33-57 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 243 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"3951c1fa4b7c2f93f8ed124b82bb9be225c1cf2e0848938a6be5927fc41ace19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:224-248 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:224-248 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:224\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"834a2a11fc7a7961ea1c9c028414869a254c9f68c086a28e04b327d4fe20cacc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:365-387 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:322-344 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5e103e012209844674ab536f97e55b9af96d66af27568e1100daaf53191d4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:458-477 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:414-433 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"134216b3e92fb7b2651a0fe5875218ca49ff104c340ebe939a763d5a36b400e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:623-640 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:579-596 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6efeb8304b03bc513afa78074328f6bfaabbfeea8927568da96c496e51bef4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:138-155 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:138-155 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"682d2d6e91c3fff0c16b31dd99270319cb01ff9ffa632b710a6b9c536a01a42f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:257-274 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:257-274 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:257\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"7984d2e2c4360efbcc7e205808c9fc1becd4f12ff09e277e199db5dd188029da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201317 lines \u00D7 6): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:946-948 | packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:971-987 | packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:1007-1023 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:891-893 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:916-932 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:953-969 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:968\u0060 calls \u0060setAudioTrack\u0060, \u0060log\u0060, \u0060mediaSelectionGroup\u0060 and \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:1006\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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"a846706729cb413af63fd74259c4cee24a339863302a62e51fda29677ebae14c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:770-786 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:726-742 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fa9fdd39d71a8af77e70f09b6c800df82e63ea4e5b3a2fbeaaa99b5ff64912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift:143-160 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift:143-160 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c7ce7ba464fd85659513d843d820b5fbf14b4cc150b751b62cc1bb295f80dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:72-87 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:72-87 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd488efc948c02d9404f87c23a569441c407a34c065f2c5146104eb705f3d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:121-136 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:121-136 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b249155bdfe2b144b5d56dbe70534b068bf5b42d1ca58f4c5e337e5d69ddac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:157-172 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:157-172 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"7591656d4932b3948929c1140810697c9f95d2f51a49b778814fc6f78df5b93c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:320-334 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:277-291 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"107dafaf0706b3a5791a34ae009cbc77d5ad08cbf2b1059d9e88db8056b97d21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:339-361 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:296-318 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"547f8efc5f7494a66ef5bf9fe7d1b5282e73da550d26437ce88bc73624b8f634"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:752-766 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:708-722 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d3c6725a5ac6a48ef962791e2d20eb70a755d064b11e50b3708e3ba821b829"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:50-64 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:50-64 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"68349e8e00672750820918ec8a79a92a05d0814e6d573242a811fb2b59b2cb66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift:59-72 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift:59-72 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 243 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdb8b083f4285548e1caf2807747733368c1b7b82963683720c9f0b58d25000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:264-276 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:221-233 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"9382770db499bb041e096d1ce567901b3b9d130fd9f61ebbc34fca0706c054c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:879-890 | packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:893-905 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:893\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a7a4b10bf273ebaf540f220e3564e5a00fa7f8043fecf838c1015f2a9526e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:939-962 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:884-907 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c76f3100633a4e14501ee73493d84f7578c1b90aad5687bded79f2f29bba55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift:56-68 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift:56-68 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"26328bdc580ed022263d821208c475bac81bc81f12197593506366a882f33efc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:239-262 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:196-219 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e00af3cb89f940710c76627eb20f6d9183dc0664cdcb91c1c49d69924454a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:106-117 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:106-117 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ef0a5b639c11fd9d5ce764ec095814d14a8d45298b97147da94b014be4ba07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:216-237 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:173-194 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:216\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5fba0380df4f2764954b9cf00ea459555a7caf0ca31b2119c62cd592b22e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:488-499 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:444-455 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:488\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"92de46169e41741db5e9b06e9cb7357917a8465c89fbc69d291c8141dbad9243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift:122-133 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift:122-133 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"890e47338263012c5e1b600093aca096c250af3277eca30f853c16e47f8f5ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:243-250 | packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:270-276 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:243-250 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:270-276 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4b292e3eab331d0cebc7e18723d3bd6e4bf5eec578adedef5ff6d81fb15cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift:74-81 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift:38-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f14c800606e706067860b885f24cb84fab071f65f34dcc717014acd85e538d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift:86-94 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift:52-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"be01f686dc324babc8f842bf12f7b973d8dfc9a49e0c4f49c965d12c98f8cc5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:91-97 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:91-97 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da4028ff13149ed555b98eb43e33ac425c2c1e4c372f3a4d31a254d5c4068b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift:74-78 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift:74-78 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a459e51d0f64886552864b395a654bf6faf7da2107a9cf9c5de36e3a53223164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerTimeUtils.swift:12-22 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerTimeUtils.swift:12-22 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerTimeUtils.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerTimeUtils.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerTimeUtils.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac35977087e4e40719a1570214ed4ab79ec932573495d05e744436d2129fbad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:11-16 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:12-17 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"804af8abb86f8e5b4cc7da966f3063e7132532a56078f45a8f165bf26732a623"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:202-212 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:159-169 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"5571447218c6097b5c39dbb8a9e5f037ecc28373d0b306240cdba16e5cf28b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:280-284 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:237-241 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af8925c5bafc964c3ba6c9d0292485861a985fbbe222ae2ad9410a3962e756c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:479-484 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:435-440 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"532eeb558bbb2affdc62a2f9e7b6599858dd568b6519fdb5551a93bd37658c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:725-731 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:681-687 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e0a42d799f0fa35d5c8e501e634c9114c2532b1d1906fa113ab02457c43394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:790-794 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:746-750 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d678b25a38809bd5b0a0e00ab3dc82187bb02fe9f38f017d5f8de79bdd63a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:799-806 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:755-762 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"969363af72642c7bb4f86f7f91a56ba6935fc2cc3a6a0365c0fa6547226609b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:867-871 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:821-825 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"beeed80e8675db9d1da5e6e388efcb030a366c4ca9b4c3e44ce9fa22ff991433"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:1051-1059 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:993-1001 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78ebffc82d5be09d23d9578f15d6d97a96832dbd277e09c8cfaf5de5af05fbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift:49-56 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift:49-56 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2cd92767c0cec647fa546c8148d9262e1884cbdd4684f7c1c2189f6436394c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift:80-92 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift:80-92 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"21143ed2fe0293f028ee9d8d1da3d7e3475e29590cffb83e08425ed2250263ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift:125-134 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift:125-134 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f7a7ec653965369c03a54a1765bbb44ce0cf0601039675702cb991e4b5973d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift:25-29 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift:25-29 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 243 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6fda0f76932b525df86490ec191ad8a4a9826ec5b5cfd60245fe24413f782e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift:189-193 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift:111-115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85e09f840655a729fbc0556e4a0cef4e3fae40f27f4b3ff5881332940842dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift:34-40 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift:34-40 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c700606793e0fc636ce405751e479ebd8c3c0db9e5afa3d54bebebf223cd2307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift:198-203 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift:198-203 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 151 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e07dfa6686d64de4a2550dcd0802292f954302af76472711bf7f72694736397"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift:99-104 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift:99-104 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CachingPlayerItem.swift\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 157 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CachingPlayerItem.swift"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fbf87acf986ca5d1c1957c85b3e0a980a370c589be127b3662ff9940bdfd15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift:96-102 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift:62-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerPlugin.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb9bb908c2fc1ad483fa4b0298fca52235457d5a94df131dacf0e27bd38c257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerView.swift:48-54 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerView.swift:51-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerView.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b62786f7032eca95ea83d99b9a0d05d60c668878d8bf11dd226043f8ec2309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:999-1003 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift:944-948 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\u0060 as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 577 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift:999\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc8ef89684c1266df2eeb5bd34f333fd82f080b2decee0bc594c6af159dd22e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift:103-109 | packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift:103-109 \u2014 before extracting anything, compare \u0060packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift\u0060 and \u0060packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0085e63a0a9b1ce5db313393f9ca1ebaaf59f45c186a9b25862554cda865f3e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): packages/better_player_example/lib/pages/clearkey_page.dart:123-233 | packages/better_player_example/lib/pages/dash_page.dart:60-130 | packages/better_player_example/lib/pages/drm_page.dart:94-202 | packages/better_player_example/lib/pages/hls_subtitles_page.dart:70-152 | packages/better_player_example/lib/pages/subtitles_page.dart:155-261 \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":"packages/better_player_example/lib/pages/clearkey_page.dart"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60bead980b725e11548a2f5d0a7aa377d9eec66501e9ff985d82ee83acc5d7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (73 corresponding lines): packages/better_player_example/lib/pages/auto_fullscreen_orientation_page.dart:48-120 | packages/better_player_example/lib/pages/picture_in_picture_page.dart:59-132 \u2014 These two members are one piece of code written twice and then edited apart: 73 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/auto_fullscreen_orientation_page.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"35dbaa5c0b8d42025718ee8067e78c0ee9a527eecbc65a19327a644e59be5789"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): packages/better_player_example/lib/pages/controls_always_visible_page.dart:37-80 | packages/better_player_example/lib/pages/controls_configuration_page.dart:50-95 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/controls_always_visible_page.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04f28da62160672c72a11cde4aa65f74a0b7d73bcb6b1552e3591d42a5cf77e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): packages/better_player_example/lib/pages/overridden_aspect_ratio_page.dart:33-59 | packages/better_player_example/lib/pages/rotation_and_fit_page.dart:32-59 \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":"packages/better_player_example/lib/pages/overridden_aspect_ratio_page.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ba14d02bf2f4f5807c78cfa59a81cb85b14fc9872d7fec9f9e5c67a31b24e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): packages/better_player_example/lib/pages/fade_placeholder_page.dart:27-50 | packages/better_player_example/lib/pages/placeholder_until_play_page.dart:28-49 \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":"packages/better_player_example/lib/pages/fade_placeholder_page.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8214e58addfbaf55490d5ae03f1aad5f59ff16eb1c52dcef86bf1f5f387788f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): packages/better_player_example/lib/pages/controller_controls_page.dart:21-49 | packages/better_player_example/lib/pages/picture_in_picture_page.dart:21-41 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/controller_controls_page.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe69a571917d3043cf6c9e06124c140d3acd66dbec44e168eee817cc0270d283"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): packages/better_player_example/lib/pages/better_player_feed_page.dart:420-432 | packages/better_player_example/lib/pages/better_player_feed_page.dart:434-446 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/better_player_feed_page.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05d96c27ca6fedb0b798f3f057c7bb5b65e37f7cb4d290070083072fa5651a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): packages/better_player_example/lib/pages/event_listener_page.dart:22-36 | packages/better_player_example/lib/pages/normal_player_page.dart:19-38 \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":"packages/better_player_example/lib/pages/event_listener_page.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"829fb19992009bd9a14ad247c1a2f917d18d9466b755f5a3538cf17bdc9ed5af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 14\u002B corresponding lines): packages/better_player_example/lib/pages/auto_fullscreen_on_rotation_example_page.dart:28-42 | packages/better_player_example/lib/pages/auto_fullscreen_orientation_page.dart:26-40 | packages/better_player_example/lib/pages/hls_audio_page.dart:17-30 | packages/better_player_example/lib/pages/hls_tracks_page.dart:17-30 | packages/better_player_example/lib/pages/resolutions_page.dart:17-31 | packages/better_player_example/lib/pages/rotation_and_fit_page.dart:17-30 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 14 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/auto_fullscreen_on_rotation_example_page.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb69cb42e95960d820e2d8a6059fd0048915d9172231542012a19f9ee9bb202"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): packages/better_player_example/ios/Runner/AppDelegate.swift:6-12 | packages/better_player_ios/example_ffi/ios/Runner/AppDelegate.swift:6-11 \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":"packages/better_player_example/ios/Runner/AppDelegate.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6311463621ee998765a60379acb97b86a928eb3ea24fc8f4ca25ad09780e3281"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): packages/better_player_example/lib/pages/controls_always_visible_page.dart:29-35 | packages/better_player_example/lib/pages/overridden_duration_page.dart:28-35 \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":"packages/better_player_example/lib/pages/controls_always_visible_page.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"399904e336c5ae57de5326a1aaa64fd54d290fc131f6f0147a6562ff7d8f1851"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): packages/better_player_example/lib/utils/example_io_utils_stub.dart:29-36 | packages/better_player_example/lib/utils/example_io_utils_web.dart:23-28 \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":"packages/better_player_example/lib/utils/example_io_utils_stub.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9734abdf488df0a9bab0c5f3b5383cfddd1f1b95b5dbe341ab94246c293286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): packages/better_player_android/example_ffi/lib/main.dart:70-121 | packages/better_player_ios/example_ffi/lib/main.dart:70-121 \u2014 before extracting anything, compare \u0060packages/better_player_android/example_ffi/lib/main.dart\u0060 and \u0060packages/better_player_ios/example_ffi/lib/main.dart\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/example_ffi/lib/main.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d78b6f7a1d693a0aaff0a78d1c4a59e03daf89d56614da5045f876ca192dff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): packages/better_player_example/lib/pages/subtitles_page.dart:91-115 | packages/better_player_example/lib/pages/subtitles_page.dart:119-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/subtitles_page.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7388905cd4b70fde1e71bdfbe18b4e97e9f9372a3d2523f4da78e493eed82a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): packages/better_player_example/lib/pages/hls_subtitles_page.dart:93-115 | packages/better_player_example/lib/pages/hls_subtitles_page.dart:121-143 | packages/better_player_example/lib/pages/subtitles_page.dart:202-224 | packages/better_player_example/lib/pages/subtitles_page.dart:230-252 \u2014 before extracting anything, compare \u0060packages/better_player_example/lib/pages/hls_subtitles_page.dart\u0060 and \u0060packages/better_player_example/lib/pages/subtitles_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/hls_subtitles_page.dart:93\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":"packages/better_player_example/lib/pages/hls_subtitles_page.dart"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8358fd588ef85087bc4a17067e4d73245a03bee40272eb7e88cd66f346bdde5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 7): packages/better_player_example/lib/main_e2e.dart:651-670 | packages/better_player_example/lib/main_e2e.dart:672-691 | packages/better_player_example/lib/main_e2e.dart:693-712 | packages/better_player_example/lib/main_e2e.dart:714-734 | packages/better_player_example/lib/main_e2e.dart:736-755 | packages/better_player_example/lib/main_e2e.dart:757-776 | packages/better_player_example/lib/main_e2e.dart:778-797 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/main_e2e.dart"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab69aa6b3394214b796ae6538508715bbab7622740c505a6ffe6e5dbb40e4f07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): packages/better_player_example/lib/main_e2e.dart:607-626 | packages/better_player_example/lib/main_e2e.dart:630-649 | packages/better_player_example/lib/main_e2e.dart:799-818 | packages/better_player_example/lib/main_e2e.dart:820-839 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/main_e2e.dart"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce0521478bf9e44f42dd8f6ca0206f4e257386265057697ed018ed304753b6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): packages/better_player_example/lib/pages/drm_page.dart:140-159 | packages/better_player_example/lib/pages/drm_page.dart:164-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/drm_page.dart:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/drm_page.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9795c6c889594eb835870a192fee96c68255691b5c3e6f8e6e9a8882158c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): packages/better_player_example/lib/pages/dash_page.dart:100-117 | packages/better_player_example/lib/pages/hls_subtitles_page.dart:112-130 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/hls_subtitles_page.dart:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060packages/better_player_example/lib/pages/dash_page.dart:99\u0060 calls \u0060_ResolutionText\u0060, \u0060SizedBox\u0060 and \u0060packages/better_player_example/lib/pages/hls_subtitles_page.dart:112\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/dash_page.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"728032369aac8adb8c8b9c9314e1344e33fc9e14432e4844bf8b655c36b19214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): packages/better_player_example/lib/widgets/category_nav_card.dart:58-76 | packages/better_player_example/lib/widgets/example_card.dart:111-129 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/widgets/category_nav_card.dart:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/widgets/category_nav_card.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"150eaf7a0702fb62a74f8033d613b37acfeb553ecea2d7aeecbdec7b95030038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 5): packages/better_player_example/lib/pages/hls_subtitles_page.dart:90-106 | packages/better_player_example/lib/pages/hls_subtitles_page.dart:119-134 | packages/better_player_example/lib/pages/subtitles_page.dart:172-187 | packages/better_player_example/lib/pages/subtitles_page.dart:200-215 | packages/better_player_example/lib/pages/subtitles_page.dart:228-243 \u2014 before extracting anything, compare \u0060packages/better_player_example/lib/pages/hls_subtitles_page.dart\u0060 and \u0060packages/better_player_example/lib/pages/subtitles_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/hls_subtitles_page.dart:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/hls_subtitles_page.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"74030920c5c3410b6ecbda9996eeebbc482a710788283cdea6b42f90f9f536c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): packages/better_player_example/lib/pages/controls_configuration_page.dart:58-74 | packages/better_player_example/lib/pages/custom_controls/change_player_theme_page.dart:65-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/controls_configuration_page.dart:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/controls_configuration_page.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b88bcbbf76f04c2051396a9424489ee460e71eaa1f62c981be2ca718b28ed03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 13): packages/better_player_example/lib/pages/controls_always_visible_page.dart:37-52 | packages/better_player_example/lib/pages/controls_configuration_page.dart:50-65 | packages/better_player_example/lib/pages/fade_placeholder_page.dart:52-67 | packages/better_player_example/lib/pages/hls_audio_page.dart:32-47 | packages/better_player_example/lib/pages/memory_player_page.dart:51-66 | packages/better_player_example/lib/pages/normal_player_page.dart:40-55 | packages/better_player_example/lib/pages/notification_player_page.dart:55-70 | packages/better_player_example/lib/pages/overridden_duration_page.dart:37-52 | packages/better_player_example/lib/pages/picture_in_picture_page.dart:59-74 | packages/better_player_example/lib/pages/placeholder_until_play_page.dart:51-66 | packages/better_player_example/lib/pages/resolutions_page.dart:33-48 | packages/better_player_example/lib/pages/rotation_and_fit_page.dart:32-46 | packages/better_player_example/lib/pages/rtsp_page.dart:52-67 \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 13 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/controls_always_visible_page.dart:37\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/controls_always_visible_page.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8405d330501db11cdaafd934a60126b6dce37d30dadcf4e8f07ab3ae041f39c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 5): packages/better_player_example/lib/pages/clearkey_page.dart:123-137 | packages/better_player_example/lib/pages/dash_page.dart:60-74 | packages/better_player_example/lib/pages/drm_page.dart:94-108 | packages/better_player_example/lib/pages/hls_subtitles_page.dart:70-85 | packages/better_player_example/lib/pages/subtitles_page.dart:155-169 \u2014 before extracting anything, compare \u0060packages/better_player_example/lib/pages/clearkey_page.dart\u0060 and \u0060packages/better_player_example/lib/pages/drm_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/clearkey_page.dart:123\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/clearkey_page.dart"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a94b2b711aea58fcaa11f77a785500cb50dc2b0362b42e1d9ee08b199dafe5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/better_player_example/lib/main.dart:52-66 | packages/better_player_example/lib/main.dart:92-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/main.dart:52\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":"packages/better_player_example/lib/main.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5ffd622db124863399805592db0c8660ed4742367397ccad4e18556903bcf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/better_player_example/lib/main_e2e.dart:887-901 | packages/better_player_example/lib/main_e2e.dart:906-920 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/main_e2e.dart:887\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":"packages/better_player_example/lib/main_e2e.dart"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67a4559acb892143bd9ece7c629aeb1c128dabbb049726cf9dbcd37f5c8a1c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/better_player_example/lib/pages/auto_fullscreen_orientation_page.dart:48-62 | packages/better_player_example/lib/pages/custom_controls/change_player_theme_page.dart:58-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/auto_fullscreen_orientation_page.dart:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/auto_fullscreen_orientation_page.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3f80fbe43db759c6401c2238887f7e887899f74d01628506e9c13408236cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/better_player_example/lib/pages/clearkey_page.dart:150-164 | packages/better_player_example/lib/pages/drm_page.dart:121-135 \u2014 before extracting anything, compare \u0060packages/better_player_example/lib/pages/clearkey_page.dart\u0060 and \u0060packages/better_player_example/lib/pages/drm_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/clearkey_page.dart:150\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":"packages/better_player_example/lib/pages/clearkey_page.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb5dfade9032673928dcf5b3100afbd2b8d406fcbb1cd3001e7c49b5e31679f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): packages/better_player_example/lib/pages/clearkey_page.dart:169-182 | packages/better_player_example/lib/pages/clearkey_page.dart:187-200 | packages/better_player_example/lib/pages/clearkey_page.dart:207-220 | packages/better_player_example/lib/pages/drm_page.dart:146-159 | packages/better_player_example/lib/pages/drm_page.dart:170-183 \u2014 before extracting anything, compare \u0060packages/better_player_example/lib/pages/clearkey_page.dart\u0060 and \u0060packages/better_player_example/lib/pages/drm_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/clearkey_page.dart:169\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/clearkey_page.dart"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b247ab74a8cfb7fc0d1b083c7e2e9bb7516930a1af49530de319333dfbb853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): packages/better_player_example/lib/pages/subtitles_page.dart:63-76 | packages/better_player_example/lib/pages/subtitles_page.dart:91-104 | packages/better_player_example/lib/pages/subtitles_page.dart:119-132 \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 \u0060packages/better_player_example/lib/pages/subtitles_page.dart:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/subtitles_page.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bbec73e3392be329e7c3205f07039716a7907b2b6eee7df2dd044cb6628281"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): packages/better_player_example/lib/pages/basic_player_page.dart:18-31 | packages/better_player_example/lib/pages/overridden_aspect_ratio_page.dart:33-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/basic_player_page.dart:18\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/basic_player_page.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9a01c9e73fae7e6c44d528c4d34de8a38f6d23f9124fb78f3b1b02c26a04c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): packages/better_player_example/lib/main_e2e.dart:975-987 | packages/better_player_example/lib/main_e2e.dart:992-1004 | packages/better_player_example/lib/main_e2e.dart:1009-1021 \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 \u0060packages/better_player_example/lib/main_e2e.dart:975\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":"packages/better_player_example/lib/main_e2e.dart"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee3f12dde9b5abab3c9fc1b0f6798080f3ee210179282e91a2b7696c826c8ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/better_player_example/lib/pages/auto_fullscreen_orientation_page.dart:71-83 | packages/better_player_example/lib/pages/cache_page.dart:136-148 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/auto_fullscreen_orientation_page.dart:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/auto_fullscreen_orientation_page.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e7f21fb8520eb1698f49f3546c4dd764f1445bd4b67063050465f34b4280b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/better_player_example/lib/pages/controller_controls_page.dart:21-33 | packages/better_player_example/lib/pages/picture_in_picture_page.dart:21-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/better_player_example/lib/pages/controller_controls_page.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":"packages/better_player_example/lib/pages/controller_controls_page.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"670f5f7a1f6cc1f995e904481fb051d680d8f746203296e6a2e1a094eb74e301"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/better_player_example/lib/pages/seek_e2e_page.dart:175-187 | packages/better_player_example/lib/pages/seek_e2e_page.dart:199-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/seek_e2e_page.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea61d083c30ec9211226b8e5f3298be8423413793f0448683f00670d72d87e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/better_player_example/lib/pages/welcome_page.dart:517-529 | packages/better_player_example/lib/pages/welcome_page.dart:532-544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/welcome_page.dart"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86f1ce7ff7c05f647e688ebc76a252d9c12082520443a70b1250198b6acc63d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): packages/better_player_example/lib/utils/e2e_local_media_server_stub.dart:5-18 | packages/better_player_example/lib/utils/e2e_local_media_server_web.dart:5-18 \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":"packages/better_player_example/lib/utils/e2e_local_media_server_stub.dart"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca36caef5f2c2df02fd152163c3cc3e52427cc321204fc0f813d84699d5a2e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): packages/better_player_android/example_ffi/lib/main.dart:11-35 | packages/better_player_ios/example_ffi/lib/main.dart:11-35 \u2014 before extracting anything, compare \u0060packages/better_player_android/example_ffi/lib/main.dart\u0060 and \u0060packages/better_player_ios/example_ffi/lib/main.dart\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/example_ffi/lib/main.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"661326d27e3dc4a31e980a730a63aa0b6d29bf46c855f800638a717abb5c086e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): packages/better_player_example/lib/pages/controls_always_visible_page.dart:18-27 | packages/better_player_example/lib/pages/memory_player_page.dart:17-27 | packages/better_player_example/lib/pages/overridden_duration_page.dart:17-26 \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":"packages/better_player_example/lib/pages/controls_always_visible_page.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e88f1e9848f5c57eb2216a759ba51efa732bafd4c8404d720d7b5811f8dda0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/better_player_example/lib/pages/reusable_video_list/reusable_video_list_page.dart:41-46 | packages/better_player_example/lib/pages/video_list/video_list_page.dart:51-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/reusable_video_list/reusable_video_list_page.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c87adffccffaee8a13fc8d2a91e5477fdaee7e0b1554638757376d1d5a6ac75"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: better_player_platform_interface: better_player_platform_interface: abstractness 0.09, instability 0.00, distance 0.91 \u2014 zone of pain \u2014 concrete and depended on by 8 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"31554cd34acf3c602e55438448b9300846fe76e8de75e727fe6e8490efe6c2b2"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: better_player_ios (SwiftPM): better_player_ios (SwiftPM): abstractness 0.17, instability 0.00, distance 0.83 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f5fecc9d28503d586c09fb84a629714afddf6f9b7b916f545e690ab079105f9f"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: better_player_macos (SwiftPM): better_player_macos (SwiftPM): abstractness 0.20, instability 0.00, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b4608682905aa2575e00bd0f13634f091e0f8cd678f44fedcf3a2e662d35462d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BetterPlayerAndroid (LCOM4 10): BetterPlayerAndroid\u0027s methods fall into 10 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 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8923e5a6706f4475202b7727c28ab2b26950b9c8d5470aa9c4db62c767cc9023"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BetterPlayerMacOS (LCOM4 9): BetterPlayerMacOS\u0027s methods fall into 9 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 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/lib/better_player_macos.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"892c90471871d82140eb5f5a7275ee6ccf8d38acb43300c060c08b4089d5a00c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BetterPlayerIOS (LCOM4 8): BetterPlayerIOS\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a894197e8390dba138371804e037fd1f49f5def487a5704575fe35ecd35a7f9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BetterPlayerControlsState (LCOM4 5): BetterPlayerControlsState\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/better_player_controls_state.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c34f5aa82d93f5d61873f4f4adcf447c0049d627f3144fbd285a5692340dbc0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BetterPlayerTizen (LCOM4 4): BetterPlayerTizen\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_tizen/lib/better_player_tizen.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"06387c8f4dc2c2dd99c069ac1e8b9683b9f7a2526220ec3d21081c889a900494"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _BetterPlayerState (LCOM4 4): _BetterPlayerState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/core/better_player.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0136246987754da7b7eebacc29cc4c7073d74560d2563e71d90bd8bd39eb599d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _PlayerWithControlsState (LCOM4 4): _PlayerWithControlsState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/core/player_with_controls.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5885c6e3cf92d0a8f3b5735da8c6d45395ff08fa61a2dd944dd8bb044892e77"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift: packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in BetterPlayer.observeValue at line 488. 10 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift\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":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c3f59106f16b4b6079eb0e770dd5b5a2f99f46e08404b529f37bea8f144ac3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player_example/lib/main_e2e.dart: packages/better_player_example/lib/main_e2e.dart changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in _E2EPlayerPageState.initState at line 89. 7 of those changes were fix/bug commits, and the other 20 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player_example/lib/main_e2e.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":"packages/better_player_example/lib/main_e2e.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5376073d26d11ccbd97bfe3e03615c8f8aefda7482212b93799d448639b0ad"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift: packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in BetterPlayer.observeValue at line 444. 6 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift\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":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"b858adf3f9ede3e49310da7048fb439ae2a516af472e9dc5aa136f5884b3339c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player/lib/src/core/better_player_controller.dart: packages/better_player/lib/src/core/better_player_controller.dart changed 32 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in BetterPlayerController._onVideoPlayerChanged at line 550. 8 of those changes were fix/bug commits, and the other 24 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player/lib/src/core/better_player_controller.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":"packages/better_player/lib/src/core/better_player_controller.dart"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cdca3bb95ca818ab02edb9bdb7b4c6c52e5a4346f93f67fd65e6b1259b4556"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player/lib/src/engine/player_engine_controller.dart: packages/better_player/lib/src/engine/player_engine_controller.dart changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in PlayerEngineController._create at line 52. 6 of those changes were fix/bug commits, and the other 14 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player/lib/src/engine/player_engine_controller.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":"packages/better_player/lib/src/engine/player_engine_controller.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc34c5b49aabd98230d5ead06d6ca268a708e37f9f42bc9af7d5617ac39cfb9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt: packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in BetterPlayer.setAudioTrack at line 695. 7 of those changes were fix/bug commits, and the other 13 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt\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":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"3843d3ab443236043302d994d5463088f92e101256966623b85d306593420ee1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player/lib/src/controls/player_web_controls.dart: packages/better_player/lib/src/controls/player_web_controls.dart changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in _PlayerWebBottomBarState.build at line 600. 8 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player/lib/src/controls/player_web_controls.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":"packages/better_player/lib/src/controls/player_web_controls.dart"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a81382f186f939ccb7100c4e83a9faad35b6f15c3f83f9ff7261495e6678a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player_windows/lib/src/mpv/mpv_player.dart: packages/better_player_windows/lib/src/mpv/mpv_player.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in MpvPlayer._onPropertyChange at line 248. 3 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player_windows/lib/src/mpv/mpv_player.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":"packages/better_player_windows/lib/src/mpv/mpv_player.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45cee39f0ae48f50e4a190d07e14cdda5caa55945cb88689c9d1bc1e5594ea0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player/lib/src/subtitles/player_subtitles_factory.dart: packages/better_player/lib/src/subtitles/player_subtitles_factory.dart changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in PlayerSubtitlesFactory._parseString at line 117. 2 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player/lib/src/subtitles/player_subtitles_factory.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":"packages/better_player/lib/src/subtitles/player_subtitles_factory.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb4802d9cf6b29e3adfc2980c0544385b3fd7bd2dc171563cfde1fe8164ef0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player_web/lib/src/better_player_web_player.dart: packages/better_player_web/lib/src/better_player_web_player.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in BetterPlayerWebPlayer.buildShakaConfig at line 502. 2 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-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player_web/lib/src/better_player_web_player.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":"packages/better_player_web/lib/src/better_player_web_player.dart"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb83f5938f4b210608a255fefebb91404b01f195021188a15ccd2b7d0d927a3d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player/lib/src/configuration/player_controls_configuration.dart: packages/better_player/lib/src/configuration/player_controls_configuration.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in PlayerControlsConfiguration.withCupertinoIcons at line 121. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player/lib/src/configuration/player_controls_configuration.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":"packages/better_player/lib/src/configuration/player_controls_configuration.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62d75521970ea5544a4c301011be346ce5c3ad93b7aaf0e186a01ffe3a759fa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart: packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in HlsPlaylistParser._parseMasterPlaylist at line 179. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.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":"packages/better_player/lib/src/hls/hls_parser/hls_playlist_parser.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fd0ec7eed1790d8ce99b90d4c0a83b1cded4e09447466fc7bfdead0863fb4e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/CacheWorker.kt: packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/CacheWorker.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in CacheWorker.doWork at line 30. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/CacheWorker.kt\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":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/CacheWorker.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"94dee1e614731ece4a36dd0dc94108f78c57e13eddce3b4ae7b2d3f5e9309678"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player_example/lib/pages/seek_e2e_page.dart: packages/better_player_example/lib/pages/seek_e2e_page.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in _SeekE2EPageState.initState at line 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player_example/lib/pages/seek_e2e_page.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/seek_e2e_page.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b8b5079d4484a9a28aada8608e8572d0532a5810863130af0671d7ce504259"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player/lib/src/list/better_player_feed_controller.dart: packages/better_player/lib/src/list/better_player_feed_controller.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in BetterPlayerFeedController.onIndexChanged at line 194. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player/lib/src/list/better_player_feed_controller.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":"packages/better_player/lib/src/list/better_player_feed_controller.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f2bceec27a1f0b3cb2244646aa50da0f76ea90730306e07cfff64876c52ae9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/better_player_linux/lib/src/mpv/mpv_player.dart: packages/better_player_linux/lib/src/mpv/mpv_player.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in MpvPlayer.setDataSource at line 490. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player_linux/lib/src/mpv/mpv_player.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":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b03154b60e8a0abb2434052dc90c38c05074a5dbdea0f366e568332e4cd0065"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift: packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is BetterPlayerPlugin.handle at line 38), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: resolve desktop deadlocks, race conditions, listener leaks, and clean up recent merges (#1636)\u201D; \u201Cfix(macos): prevent app crash on hot restart (#1617) (#1619)\u201D; \u201Cfix(macos): prevent KVO crash on disposal and hot restart (#1600) (#1602)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 17:43:39 \u002B01:00\u0027 --until=\u00272026-11-12 17:43:39 \u002B01:00\u0027 --full-history --no-merges -- packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift\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":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerPlugin.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8574c2fbf07ba3103a79a365ec70abf1404a44660d3c77aaad4b6554a9e6350"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060better_player_android\u0060 is a published pub package (\u0060pubspec.yaml\u0060 without \u0060publish_to: none\u0060) and neither \u0060packages/better_player_android/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":"packages/better_player_android/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe122816cab4bd3dd890871090865f94f3da41f6d9e54757a56d203c6abd26a"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060example_ffi\u0060 is a Flutter application (\u0060lib/main.dart\u0060) and neither \u0060packages/better_player_android/example_ffi/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":"packages/better_player_android/example_ffi/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb1a0d1cb9116496924e5914486870dc999ceaea9d0f0e49c7509e38078b68f"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060better_player_ios\u0060 is a published pub package (\u0060pubspec.yaml\u0060 without \u0060publish_to: none\u0060) and neither \u0060packages/better_player_ios/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":"packages/better_player_ios/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc9ee89314d7c854b9f8e4c7735ff54b74a4a7393e7ddf9a5d9d30ef6d82c03"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060example_ffi\u0060 is a Flutter application (\u0060lib/main.dart\u0060) and neither \u0060packages/better_player_ios/example_ffi/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":"packages/better_player_ios/example_ffi/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6dcb3dc238bb4d14c1105ad74551e4fae4322dbd86f03cb8154d810c7a99fa1"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: \u0060better_player_platform_interface\u0060 is a published pub package (\u0060pubspec.yaml\u0060 without \u0060publish_to: none\u0060) and neither \u0060packages/better_player_platform_interface/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":"packages/better_player_platform_interface/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe363bc770ae3d49fe2c37330fd69653acbd2be038d8db5f34e165a415e7a0f"}},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d6ef83ffa0c8595e2a18663502721462b8599d5aefb489cd95ccdcf10cf6da38"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ba831e8008f54eef34c69d23d60a7349db4fe946ad38a09b1fb71d5742e890f1"},"properties":{"dependency":{"package":"proxy-addr","version":"2.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"critical","fixedVersion":"2.0.8","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d9312d138ba7e43d7979bbaeb0fad465084e7e0f1d1004a8f6dbdc6ba93c958"},"properties":{"dependency":{"package":"shell-quote","version":"1.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"critical","fixedVersion":"1.11.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d1521d4df38892c8360f4021e3e60a84abee4ddb3bd9a9223f7ca0d504e933c2"},"properties":{"dependency":{"package":"tinypool","version":"1.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"critical","fixedVersion":"2.1.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9eabe50e921d2c2a306c1659895f52c11083f6a9b5afd9baccfb22db496e06e7"},"properties":{"dependency":{"package":"body-parser","version":"1.20.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.20.9","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5663b5d3983a9f6f7744b9af8d10ede9d273d65b8a859266b06bf516fc0e4e27"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.18","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.1.19","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9299c8bec39d44a6490c6c739e9035d3c6f3392f33ae12e1a08c160f49420d43"},"properties":{"dependency":{"package":"compression","version":"1.8.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.8.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5d977ce210e7ce57deef485ef4a31fa024f312e9ec29e59cbcf449aa27274f80"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.1.7","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ec98ce9551df602242a7f118a0edde5356cbd1400c0abc82227a52f1a97280a6"},"properties":{"dependency":{"package":"follow-redirects","version":"1.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"1.16.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d20b4ad5b396d5bdab0959a3f43334da25bf5f1ffffe4ef41876ffd687a0569"},"properties":{"dependency":{"package":"image-size","version":"2.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.0.3","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4c0fc252a3751c060c616eede577d31cd5a2ffdcb88b8b26b6bef777be29d43e"},"properties":{"dependency":{"package":"joi","version":"17.13.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"17.13.9","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5a31a0b5364830f542d37385755d27dd90f97746286a80cb6c17836bc6e14179"},"properties":{"dependency":{"package":"js-yaml","version":"4.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.3.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b694dace86fb7d15873b2ddd65002632093db12bc6146d23cde087273cc549f5"},"properties":{"dependency":{"package":"launch-editor","version":"2.14.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.14.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"66e45c79338e5e1175240ddc87a7925c38e72d7410d4eeac67a42d8a759d0ebc"},"properties":{"dependency":{"package":"picomatch","version":"2.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"87839f7289af0999d94a99db6eefa4a0c9cb8f6ea36e8599abd5bd35ced532c8"},"properties":{"dependency":{"package":"serialize-javascript","version":"6.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"7.0.3","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a143e49def50f6267786be10dea52190e0d09245364207bf6c8be5fcae3b49ff"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"81b7b9dfbf773ab7ae562487ae3013ad74403b3954dbb293af4699518bcb829e"},"properties":{"dependency":{"package":"webpack-dev-middleware","version":"7.4.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"7.4.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d73414af32e646721377cbc8b1afc30369b561a789980069b095dba84378ed4c"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"7.1.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"7.1.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cbb4e03c9301a57cff53bfec2ef1de6cf4e8a5290e9b9ea9413e8c56ee54c03"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"6.1.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"6.1.5","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"98645b36f3d8a19e1462b10ae8d23a6853b810993981c4fc4065e762fff2771b"},"properties":{"dependency":{"package":"qs","version":"6.15.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"6.16.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c93c9e9a7508d1bb1d419bfe67a538fbd81572ddc053c684d546cff31ca78570"},"properties":{"dependency":{"package":"uuid","version":"8.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"severity":"medium","fixedVersion":"11.1.1","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: player_cupertino_controls.dart, player_cupertino_progress_bar.dart, player_material_controls.dart, player_material_progress_bar.dart: 4 files \u2014 \u0060packages/better_player/lib/src/controls/player_cupertino_controls.dart\u0060, \u0060packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart\u0060, \u0060packages/better_player/lib/src/controls/player_material_controls.dart\u0060, \u0060packages/better_player/lib/src/controls/player_material_progress_bar.dart\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 6 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ab592d22da1d89ad9d5ba5bc0561633911426825bd3d8d59d7947efbbe0542"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","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: BetterPlayerWrapper (18 abstract methods): \u0060BetterPlayerWrapper\u0060 declares 18 abstract methods: \u0060dispose\u0060, \u0060release\u0060, \u0060setDataSource\u0060, \u0060setTrackParameters\u0060, \u0060setAudioTrack\u0060, \u0060getAudioTracksJson\u0060, \u0060setTextTrack\u0060, \u0060mixWithOthers\u0060, \u0060play\u0060, \u0060pause\u0060, \u0060looping\u0060, \u0060volume\u0060, \u0060speed\u0060, \u0060seekTo\u0060, \u0060position\u0060, \u0060absolutePosition\u0060, \u0060sendBufferingUpdate\u0060, \u0060setMatchFrameRate\u0060. 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":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb39125c5894cc104762164d33ac247c47b4d752966f9b94ff1260016e57ace"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: BetterPlayerWrapper (18 abstract methods): \u0060BetterPlayerWrapper\u0060 declares 18 abstract methods: \u0060dispose\u0060, \u0060setDataSourceURLString\u0060, \u0060setDataSourceAsset\u0060, \u0060setLooping\u0060, \u0060setMixWithOthers\u0060, \u0060setTrackParameters\u0060, \u0060setAudioTrack\u0060, \u0060getAudioTracksJson\u0060, \u0060setTextTrack\u0060, \u0060enablePictureInPicture\u0060, \u0060disablePictureInPicture\u0060, \u0060absolutePosition\u0060, \u0060play\u0060, \u0060pause\u0060, \u0060setVolume\u0060, \u0060setSpeed\u0060, \u0060seekTo\u0060, \u0060position\u0060. 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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ead33ba4f6b0c9640c284f0b95b7ac8815526066dc2ea45a272405e328a888c"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: BetterPlayerWrapper (18 abstract methods): \u0060BetterPlayerWrapper\u0060 declares 18 abstract methods: \u0060dispose\u0060, \u0060setDataSourceURLString\u0060, \u0060setDataSourceAsset\u0060, \u0060setLooping\u0060, \u0060setMixWithOthers\u0060, \u0060setTrackParameters\u0060, \u0060setAudioTrack\u0060, \u0060getAudioTracksJson\u0060, \u0060setTextTrack\u0060, \u0060enablePictureInPicture\u0060, \u0060disablePictureInPicture\u0060, \u0060absolutePosition\u0060, \u0060play\u0060, \u0060pause\u0060, \u0060setVolume\u0060, \u0060setSpeed\u0060, \u0060seekTo\u0060, \u0060position\u0060. 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":"packages/better_player_macos/lib/better_player_macos.dart"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"d470b9e84aabae14eaf990295f9d94b1c6d2ac6268f8c911b51c506f04f867d5"}},{"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":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060packages~better_player_ios~ios~better_player_ios~better_player_ios\u0060 are marked as implementation by their own namespace, folder or name: \u0060_DummyBetterPlayerCallbackImpl\u0060 (packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift:143, name ends in \u0060Impl\u0060), \u0060_DummyLogCallbackImpl\u0060 (packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift:158, name ends in \u0060Impl\u0060), \u0060_DummyPreCacheCallbackImpl\u0060 (packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift:162, name ends in \u0060Impl\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerApi.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fa0ad42b671e424e4baaa69070bddc6c9496a1d6135eb8bb2c2d182ea3e0aa"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060packages~better_player_macos~macos~better_player_macos~better_player_macos\u0060 are marked as implementation by their own namespace, folder or name: \u0060_DummyBetterPlayerCallbackImpl\u0060 (packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift:143, name ends in \u0060Impl\u0060), \u0060_DummyLogCallbackImpl\u0060 (packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift:158, name ends in \u0060Impl\u0060), \u0060_DummyPreCacheCallbackImpl\u0060 (packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift:162, name ends in \u0060Impl\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerApi.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b37cc3b02d4857faa0deb8bb3abc25fa3e2e52131e211a63d1694834956b21"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 3/11 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060packages/better_player_android\u0060, \u0060packages/better_player_android/example_ffi\u0060, \u0060packages/better_player_example\u0060, \u0060packages/better_player_example/ios\u0060, \u0060packages/better_player_example/macos\u0060 and 3 more."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"S1","level":"warning","message":{"text":"Third-party script without Subresource Integrity: \u0060https://cdn.jsdelivr.net/npm/shaka-player@4/dist/shaka-player.compiled.js\u0060 is executed by this page with no Subresource Integrity. Whoever can answer that request \u2014 the CDN, anyone who compromises it, anyone on the network path \u2014 runs arbitrary script in this page\u0027s origin, with its session."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/web/index.html"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2eeee9188fa3395525651bad9503732c5860cbac8735c9cddced0dd0ec80327"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: e2e/playwright/package.json declares dependencies that no committed lockfile resolves \u2014 there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it \u2014 so its installs aren\u0027t reproducible (SSDF PW.4.4). Commit its package manager\u0027s lockfile (or add it to the locked workspace) and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"e2e/playwright/package.json"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ef88b06d59298fe8129c2a27968924adcfb476617f92c68fe19a5dd2518764"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!kIsWeb \u0026\u0026 (defaultTargetPlatform == TargetPlatform.android || defaultTargetPlatform == TargetPlatform.iOS)\u0060 appears character-identically in 3 files \u2014 packages/better_player_example/lib/pages/auto_fullscreen_on_rotation_example_page.dart, packages/better_player_example/lib/pages/auto_fullscreen_orientation_page.dart, packages/better_player_example/lib/pages/notification_player_page.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/auto_fullscreen_on_rotation_example_page.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f786a2bd176fa354f5223d6b2dd229d8b363ed499df835b8fb22058e759a76"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!kIsWeb \u0026\u0026 (defaultTargetPlatform == TargetPlatform.iOS || defaultTargetPlatform == TargetPlatform.macOS)\u0060 appears character-identically in 2 files \u2014 packages/better_player_example/lib/pages/dash_page.dart, packages/better_player_example/lib/pages/drm_page.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/dash_page.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b33623b273926aaade9e87b74b4ee219e2130147038c2bc9ce320743b1930b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!kIsWeb \u0026\u0026 defaultTargetPlatform == TargetPlatform.android\u0060 appears character-identically in 2 files \u2014 packages/better_player_example/lib/pages/clearkey_page.dart, packages/better_player_example/lib/pages/rtsp_page.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_example/lib/pages/clearkey_page.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb8f95fa3459980d11d0fca71665f2b70f77f4c2bb7458e4819c3a8f67c8068"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(endFileData == ffi.nullptr || reason == MpvEndFileReason.eof) \u0026\u0026 !_completedEmitted\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"878b83227a41e6e26a29f517c345c85e837d4aaf48712df8e23f8e34c230ac98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(event.ref.error \u003C 0 || (endFileData != ffi.nullptr \u0026\u0026 (endFileData.ref.reason == MpvEndFileReason.error || endFileData.ref.error \u003C 0))) \u0026\u0026 \u2026\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab1b4e43cac447ad4be54b6f3113987182b4e1ecbe424fe9b8478b693b003ef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_latestValue?.position != null \u0026\u0026 _latestValue?.duration != null\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/controls/player_cupertino_controls.dart, packages/better_player/lib/src/controls/player_material_controls.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_controls.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32a68fe523003c88fbe0eb60ca523fbc99dd27b1d797441ec0807cb3bb6cd95"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bitrate \u003E 0 \u0026\u0026 (trackBitrate == bitrate || (trackBitrate - bitrate).abs() \u003C 50000)\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52bc13115014c2b0b049a190b2684122a3e720610268c762cf0af31704866cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060controlsConfiguration.enableAirPlay \u0026\u0026 controller.isExternalPlaybackSupported\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/controls/player_cupertino_top_bar.dart, packages/better_player/lib/src/controls/player_material_top_bar.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_top_bar.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"f877ff5e0ceb541a8726d6939fecd8607e072964c40357ce3cac8c08cc6381cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dataSource.headers != null \u0026\u0026 dataSource.headers!.isNotEmpty\u0060 appears character-identically in 3 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_web/lib/src/better_player_web_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c41f98bf3a8fa7bc44d8e8a1b7a21da9dc1ccbf9292708f9f4d1ee3aba74584"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dataSource.sourceType == DataSourceType.asset || dataSource.asset != null\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"093dfeb4212e32d87dd1d22876a92f0c64a431870d724958f5ba6c8dedc02aa8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dataSource.uri?.contains(\u0027.mpd\u0027) == true || dataSource.formatHint == VideoFormat.dash\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/lib/better_player_ios.dart, packages/better_player_macos/lib/better_player_macos.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"162fdafef6b5723658d3bde40efdc4cebba1eeab47de0e71bc979ddf3ba1deca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060defaultTargetPlatform == TargetPlatform.iOS || defaultTargetPlatform == TargetPlatform.macOS\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/core/better_player_controller.dart, packages/better_player/lib/src/core/extensions/player_view_state_extension.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/core/better_player_controller.dart"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"83432eda371d6886f7ab2fcd023ec897632a86af4858199aac4191496781db9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060endFileData != ffi.nullptr \u0026\u0026 endFileData.ref.error \u003C 0\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"5524649b950a0dd173a3ab37879194b8b745190d882e85d910274ed454de14b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kIsWeb || defaultTargetPlatform == TargetPlatform.windows || defaultTargetPlatform == TargetPlatform.macOS || defaultTargetPlatform == Targe\u2026\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/core/player_with_controls.dart, packages/better_player_example/lib/main_e2e.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/core/player_with_controls.dart"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87d50cdf9a46e93307b73803668975947c3f4cc1fe769bfadeb1e44564c0a87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060latestValue != null \u0026\u0026 latestValue!.volume \u003E 0\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/controls/player_cupertino_top_bar.dart, packages/better_player/lib/src/controls/player_material_bottom_bar.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_top_bar.dart"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8952d8fff3882cfa5fe67c516eec4ee07e71e0b09007c38790407fe6edd1dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matchedTrackId != null \u0026\u0026 matchedTrackId \u003E 0\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ac4eea9e4ca5a05457fa915e51fb31f3b5615d65d31fa18188090949efd32f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name.isNotEmpty \u0026\u0026 (title == name || lang == name)\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"629ee7b98aafb3e1d48c26685c0616e3742c34d282ee11dd4bba0018b6bfcac0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060playedPartPercent.isNaN || !playedPartPercent.isFinite || playedPartPercent \u003C 0\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart, packages/better_player/lib/src/controls/player_material_progress_bar.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b4e1ba51e0096d134fbf15d099c269741c5bed0dc20fb502f4c72c9c72ac21"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pos == null || pos \u003C= 0 || pos \u003E _maxMillisecondsSinceEpoch\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/lib/better_player_ios.dart, packages/better_player_macos/lib/better_player_macos.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"59582d09306e9b62010dec48b141310380630962d3a278ac494e8f1510f687c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060prop == ffi.nullptr || prop.ref.name == ffi.nullptr\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e44b0d08a56d08198b7f9e36c7953d22a07f8df0da0fcc63fdf665d9cb6c6fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resolutions != null \u0026\u0026 resolutions.isNotEmpty\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/controls/player_web_settings_quality_view.dart, packages/better_player/lib/src/controls/player_web_settings_root_view.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_web_settings_quality_view.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ae89740383e288ad8760cd8b5007ee3eefc1fa18d94f4dfa94532dbb1e5a03"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.statusCode \u003E= 200 \u0026\u0026 response.statusCode \u003C 300\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/asms/player_asms_utils.dart, packages/better_player/lib/src/subtitles/player_subtitles_factory.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/asms/player_asms_utils.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e1194338fc733fd094c9db357b0d53c2e7097ac50248896646c1be4e60046f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060start.isNaN || !start.isFinite || start \u003C 0\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart, packages/better_player/lib/src/controls/player_material_progress_bar.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"32879252febe93987fbc25f947719cc3342c70ea1696d35982475d9025a98b94"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060textureId == null || mpvHandleAddress == null\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/better_player_linux.dart, packages/better_player_windows/lib/better_player_windows.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/better_player_linux.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f29efd2ddcebf9f2d9db02ff03b5678ce86c51e61504524f5db45e35e07453"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060videoPlayerValue != null \u0026\u0026 duration != null\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart, packages/better_player/lib/src/controls/player_material_progress_bar.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35c02b0d707ab70de7cdef9531bf094c97cdd98ac46060863356a1230dc9c27"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060videoPlayerValue == null || !videoPlayerValue.initialized || !enableProgressBarDrag\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart, packages/better_player/lib/src/controls/player_material_progress_bar.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c30a4ad78938c4d04fb97a759423567c079947ce7cd11d36aa8d46d587ce578"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060videoPlayerValue == null || duration == null\u0060 appears character-identically in 2 files \u2014 packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart, packages/better_player/lib/src/controls/player_material_progress_bar.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player/lib/src/controls/player_cupertino_progress_bar.dart"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ae9b6443136b1fb5841882327b7ad57bd39191a9210009a34f7e0389e507e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width == 0 \u0026\u0026 height == 0 \u0026\u0026 bitrate == 0\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc25bf93dbd15ff8f6764f98c80bc3160d44f4ad7b3ae2abf680f54b890b24c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060width \u003E 0 \u0026\u0026 height \u003E 0 \u0026\u0026 trackWidth == width \u0026\u0026 trackHeight == height\u0060 appears character-identically in 2 files \u2014 packages/better_player_linux/lib/src/mpv/mpv_player.dart, packages/better_player_windows/lib/src/mpv/mpv_player.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_linux/lib/src/mpv/mpv_player.dart"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bac04acb8bae08fc8809877e2a56cc4a8eda7468e731c08c7861f84fd30a82"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cacheKey != null \u0026\u0026 cacheKey.isNotEmpty()\u0060 appears character-identically in 2 files \u2014 packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt, packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/CacheWorker.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_android/android/src/main/kotlin/pl/hasoft/better_player/BetterPlayer.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5129e0d8de13f5d5f3a8790d1de29cf68e8b2486bb18b1c67690c09725bbc3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!fixedTransform.isIdentity \u0026\u0026 (rotationDegrees == 90 || rotationDegrees == 180 || rotationDegrees == 270)\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c6d23c4b4ec79d9f7431d5344f6c0f74663af7756f602deb8596290f48aa4a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mimeTypeResult.1.isEmpty \u0026\u0026 mimeTypeResult.1 != \u0022application/vnd.apple.mpegurl\u0022\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"afae2a41bf7e18f9112193526d893a05f09758b76b4b2fc776b15d55b5ccf728"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!onlyAudio \u0026\u0026 height == .zero \u0026\u0026 width == .zero\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8104ec42ed646570d0d0b9892d7c4bece1f1e9c87a34d211e5b1085a7f3e5a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060CMTIME_IS_INDEFINITE(itemDuration) \u0026\u0026 CMTIME_IS_INDEFINITE(assetDuration)\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea684c125b308ab02b3cd2b65d3556e853d2073b8574c58e2b3fe623a0624dfb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060CMTIME_IS_INDEFINITE(time) || CMTIME_IS_INVALID(time) || time.value == 0\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fe504814ec3705c2740316aa595e43a63f2b9cd71854cd9b942261678a6a33"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060CMTIME_IS_VALID(asset.duration) \u0026\u0026 !CMTIME_IS_INDEFINITE(asset.duration) \u0026\u0026 asset.duration.seconds \u003E 0\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b9caa4c11344345f53c286d9983810b36e8299f74fefb4a64ba1aa349dd2b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bytesDownloaded - lastReported \u003E= throttleThreshold || (bytesExpected \u003E 0 \u0026\u0026 bytesDownloaded \u003E= bytesExpected)\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2f1915a00e2756ab16b9bdcf498d7b73b2c3a0bb0d37d13c35b8fde6aee5fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentItem.isPlaybackLikelyToKeepUp || (availableDuration() - CMTimeGetSeconds(currentItem.currentTime())) \u003E 10.0\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b36982b0c476ff41e686b31552f90e3d18939f2f63a9666fe97352f1302b90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060displayName == name || title == name || (!title.isEmpty \u0026\u0026 name.contains(title)) || (!displayName.isEmpty \u0026\u0026 name.contains(displayName)) || \u2026\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fd3d4285e2b6a838f170b1338227868c5812beb70e59871b86d05de5f7f780"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isPlaying \u0026\u0026 playerRate \u003E 0 \u0026\u0026 player.rate \u003E 0 \u0026\u0026 abs(player.rate - playerRate) \u003E 0.0001\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff72b61c3843ff1b3c60696d1250e7f9c248ab992b03a51f1937ea9c5d26daed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nsError.domain == NSURLErrorDomain \u0026\u0026 nsError.code == NSURLErrorCancelled\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/CacheManager.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/CacheManager.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"e895058c0bb6deb132a9f0b829d34d7974f5baa9c73f85cd8ab1d9c704b64e26"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060overriddenDuration \u003E 0 \u0026\u0026 durMs \u003E Int64(overriddenDuration)\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"be910d63bad41fe4b84fa1953f55b7de426089cc60888c5cc8b0bce29cbdee7b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pipController?.isPictureInPictureActive == true \u0026\u0026 (player.timeControlStatus == .playing || player.timeControlStatus == .waitingToPlayAtSpec\u2026\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60c0daf6b32ff2fb6c92ea204fcae19006373be8f5b16927fe5f9016e497290"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rotationDegrees == 90 || rotationDegrees == 270\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayer.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"db33694e58503f440c98131c6bf17e9dc76761e7fb0b96e487dbc21b17be1b3a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060targetURL.query == nil \u0026\u0026 !targetURL.path.contains(assetId)\u0060 appears character-identically in 2 files \u2014 packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift, packages/better_player_macos/macos/better_player_macos/Sources/better_player_macos/BetterPlayerEzDrmAssetsLoaderDelegate.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/better_player_ios/ios/better_player_ios/Sources/better_player_ios/BetterPlayerEzDrmAssetsLoaderDelegate.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"948dc92465bdf52cf93bc01651a2124a2fddcf280e59d71c247f370a0bab9579"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getAudioTracks\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":"packages/better_player_android/lib/better_player_android.dart"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d954ca5bddb6294157f7a9388add6ad588703fed89dce5a5937828ac8b40274"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getAudioTracks\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":"packages/better_player_ios/lib/better_player_ios.dart"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb3a899266f5ab88e2cfa950b154c6d69bd636a207b4dc18e738e19f5b1ea13"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getAudioTracks\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":"packages/better_player_macos/lib/better_player_macos.dart"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d64bca57334ec76e226319cdf79cca048ee9e75fda71cdae3bfd46101d45d6"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-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-561","guid":"522a7ba7-45e9-ab53-9088-45d86e04b53a","name":"CWE-561","shortDescription":{"text":"CWE-561"},"helpUri":"https://cwe.mitre.org/data/definitions/561.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-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-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":26,"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."]}]}