{"$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":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"parse.parse_options_block (cyclomatic 52): parse.parse_options_block has cyclomatic complexity 52 (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":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4f012320bde8919bdc6165b3b59550fca98cf6343e128e9f522df1c5607840"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaSessionPlugin.publishNowPlaying (cyclomatic 34): MediaSessionPlugin.publishNowPlaying has cyclomatic complexity 34 (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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e83417e363f3b0019c65e52439f54a9c3d49248f996f76009e1d474b2b64240"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaSessionPlugin.publishNowPlaying (cyclomatic 34): MediaSessionPlugin.publishNowPlaying has cyclomatic complexity 34 (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":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec1d09cbd8adaa0b89d43cdebb1554d3765c24742eb60bb465ecea5f54e3750"}},{"ruleId":"D1","level":"warning","message":{"text":"config.load_config (cyclomatic 26): config.load_config has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/config.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f476421d2f50c9a64a9446d2753fafb5654138add770fae5465bdcbd043dc515"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaSessionPlugin.installCommandTargetsIfNeeded (cyclomatic 24): MediaSessionPlugin.installCommandTargetsIfNeeded has cyclomatic complexity 24 (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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f29dd732f9dde70e5a713e1c9917b8d55244b0366a791a52c4cf20f1ed12df6"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaSessionPlugin.installCommandTargetsIfNeeded (cyclomatic 24): MediaSessionPlugin.installCommandTargetsIfNeeded has cyclomatic complexity 24 (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":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1378241e9b0de9f43c8d466d7d0bcea406b95d215c23eae9682bd1a26201df5"}},{"ruleId":"D1","level":"warning","message":{"text":"_Target.of (cyclomatic 23): _Target.of has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hook/build.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9c9bd3af7bcee203471b6d6a165ddd6932a57ea295508f5e6d3793d5b29c7b"}},{"ruleId":"D1","level":"warning","message":{"text":"generate._emit_class_doc (cyclomatic 23): generate._emit_class_doc 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":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"962e294cb1b1ba262012e3ba851eeeb2b04f902cd72dcc4f1c2ecc7a3786c073"}},{"ruleId":"D1","level":"warning","message":{"text":"parse._parse_flag_bits (cyclomatic 20): parse._parse_flag_bits has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"1007017b6d70c027b8d29a7e7b8d3a0a9de7bc553f38eaa1fc52aea6e521b54b"}},{"ruleId":"D1","level":"warning","message":{"text":"generate_studio_catalog._param_spec (cyclomatic 19): generate_studio_catalog._param_spec 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":"tool/codegen/lavfi_codegen/generate_studio_catalog.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8bc5e703ccfaa2793d7cab965b103e343d13c88899cbfeb29667a48ada8ac2"}},{"ruleId":"D1","level":"warning","message":{"text":"parse.find_filter_options_pairs (cyclomatic 19): parse.find_filter_options_pairs 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":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d6e24ad03aba44449bcc88eca5660ea803c5179771831ca893cf29447797c6"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaSessionPlugin.handle (cyclomatic 19): MediaSessionPlugin.handle 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"303fc89c9cec713a56039b512e73b7999e54573346d2a9264277dab0be6a59d5"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaSessionPlugin.handle (cyclomatic 19): MediaSessionPlugin.handle 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":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"604dde6af4d6900202ce4264b314caac5a74025270ce0ad277fd6f612505db33"}},{"ruleId":"D1","level":"warning","message":{"text":"generate.run (cyclomatic 18): generate.run has cyclomatic complexity 18 (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":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb26faf57943992c94666a35299e0473a1295ff669eb72e9a616a1639387c43"}},{"ruleId":"D1","level":"warning","message":{"text":"_EndOfContent.send (cyclomatic 17): _EndOfContent.send has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/event_end_of_content.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7193223d5fb7de9c445d6d767d5651e6d555ad105bb301c02144690e1ebf4178"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaSessionManager.onMethodCall (cyclomatic 17): MediaSessionManager.onMethodCall 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":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionManager.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"747dd17ae40cf11a0a9ff9509c3a62d30d8f8aee359b610e4830dcf495e3fb3b"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaSession.== (cyclomatic 16): MediaSession.== has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/models/media_session.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe67155dff12ec81bf36b2d346c33c12123c3c9f4f44cb1eb885784dace9cee"}},{"ruleId":"D1","level":"warning","message":{"text":"parse._resolve_symbol (cyclomatic 16): parse._resolve_symbol 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":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"7897d2462c40de1e2ec151b17545018fa1a0501e0b82b20cf15e6c2df0a5b326"}},{"ruleId":"D1","level":"warning","message":{"text":"parse.parse_filters_texi (cyclomatic 16): parse.parse_filters_texi 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":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"11913b4776e2587c3c5dc5b4beba408e97e27b8911120543dd996ac87e6e61c0"}},{"ruleId":"D1","level":"warning","message":{"text":"parse.assemble_schema (cyclomatic 16): parse.assemble_schema 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":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b76dbedfc686bfaa7ef00b3d54b04e9fa6a61b2ea7717f6a0ed9cf4e46876f8"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaSessionPlugin.handleAudioSessionInterruption (cyclomatic 16): MediaSessionPlugin.handleAudioSessionInterruption 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab822a9dd27ff913113b182cd7b6913dfe39c7beffe5e974a71306cfe54b6c27"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaSessionPlugin.handleAudioSessionInterruption (cyclomatic 16): MediaSessionPlugin.handleAudioSessionInterruption 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":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78d1a8d2e3485632c5c7197e46936e104c5cdfc35003f35dd0715853bfb0de5"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.parse_options_block (cognitive 117): parse.parse_options_block has cognitive complexity 117 (threshold 15). Drivers by points: if/else 33 (89 pts), boolean chains 13, loops 4 (8 pts), error handling 1 (5 pts), ternaries 1 (2 pts) (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: tool/codegen/lavfi_codegen/parse.py holds 8 of the 50 methods over the threshold \u2014 including the worst \u2014 and 190 of the 469 points over it (41%), 3.1\u00D7 the next-largest file (tool/codegen/lavfi_codegen/generate.py at 61). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e5ddfe93a22dd03e95d2033a546850a0676e664c30ebd4ae6152300daf746f"}},{"ruleId":"D2","level":"warning","message":{"text":"generate._emit_class_doc (cognitive 44): generate._emit_class_doc has cognitive complexity 44 (threshold 15). Drivers by points: if/else 10 (24 pts), ternaries 3 (9 pts), loops 3 (6 pts), boolean chains 5 (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":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b422819a3c500432d82ebbda624153c9e9c1bd676b2436f296399ef26a03dc"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.parse_filters_texi (cognitive 42): parse.parse_filters_texi has cognitive complexity 42 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 7 (16 pts), ternaries 1 (2 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: tool/codegen/lavfi_codegen/parse.py holds 8 of the 50 methods over the threshold \u2014 including the worst \u2014 and 190 of the 469 points over it (41%), 3.1\u00D7 the next-largest file (tool/codegen/lavfi_codegen/generate.py at 61). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ffa4cc77055ffc21e3a605c27621e8f0323e22248f29fca8ed6cf7a22cb2e6"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.assemble_schema (cognitive 36): parse.assemble_schema has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (29 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: tool/codegen/lavfi_codegen/parse.py holds 8 of the 50 methods over the threshold \u2014 including the worst \u2014 and 190 of the 469 points over it (41%), 3.1\u00D7 the next-largest file (tool/codegen/lavfi_codegen/generate.py at 61). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c386b080e678995e3cf6982c68512d4acbc3f1bfaa60a1a4b30371ab1c0238"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionPlugin.publishNowPlaying (cognitive 34): MediaSessionPlugin.publishNowPlaying has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 15, if/else 14 (15 pts), ternaries 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"578c55f943b133d265370a4a3c9bccadff1cb181818d77f6143cc386d47de5bc"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionPlugin.publishNowPlaying (cognitive 34): MediaSessionPlugin.publishNowPlaying has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 15, if/else 14 (15 pts), ternaries 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cfe296c2c3c405e343186da1af75c67baa8e2f839374df395462caab2d57a2"}},{"ruleId":"D2","level":"warning","message":{"text":"config.load_config (cognitive 32): config.load_config has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 12, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/config.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7738591ed25d68f23d0902d496f912dee70bcb9c1655eff2694fcf472e719d6"}},{"ruleId":"D2","level":"warning","message":{"text":"parse._parse_flag_bits (cognitive 31): parse._parse_flag_bits has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 4 (5 pts), boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: tool/codegen/lavfi_codegen/parse.py holds 8 of the 50 methods over the threshold \u2014 including the worst \u2014 and 190 of the 469 points over it (41%), 3.1\u00D7 the next-largest file (tool/codegen/lavfi_codegen/generate.py at 61). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b5d5958b93dd39525c1776399f6ea3f787445332d4b840c96a8451bb549d25"}},{"ruleId":"D2","level":"warning","message":{"text":"generate._emit_bound_asserts (cognitive 30): generate._emit_bound_asserts has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (18 pts), error handling 3 (8 pts), boolean chains 3, loops 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":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef08a6235b641a7bff300ff0bd485a74b7ab22cf4ffc9db200c862764eca8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"_QueueModule.replace (cognitive 29): _QueueModule.replace has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (26 pts), ternaries 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_queue.part.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a6270a474d45026a6ce546703d1d026f10fe3936f8484964ec8ee5d6257541"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.find_filter_options_pairs (cognitive 28): parse.find_filter_options_pairs has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 9 (13 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: tool/codegen/lavfi_codegen/parse.py holds 8 of the 50 methods over the threshold \u2014 including the worst \u2014 and 190 of the 469 points over it (41%), 3.1\u00D7 the next-largest file (tool/codegen/lavfi_codegen/generate.py at 61). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0802a3b15256bb24812273009c969b8a573b2b255415296774c3de68e788c53"}},{"ruleId":"D2","level":"warning","message":{"text":"generate_studio_catalog._param_spec (cognitive 27): generate_studio_catalog._param_spec has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 4, ternaries 2 (4 pts), error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/generate_studio_catalog.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5ed005877aab2531f460a44b2891c49b2f28741dc2d53a99613ba052d546a6"}},{"ruleId":"D2","level":"warning","message":{"text":"generate.run (cognitive 26): generate.run has cognitive complexity 26 (threshold 15). Drivers by points: loops 8 (10 pts), if/else 4 (9 pts), error handling 3 (5 pts), boolean chains 1, ternaries 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":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f0fe218c9acd78b36355025d9e61ddd8eea6430b5ad06814d969ecf7686b77"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionPlugin.handle (cognitive 26): MediaSessionPlugin.handle has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 2, match/switch 1 (nesting depth added 10). 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e452b6eae7189f81c31d9cf2df39f3937e99002409e88c10c4c7c743bce96ad"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionPlugin.handle (cognitive 26): MediaSessionPlugin.handle has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 2, match/switch 1 (nesting depth added 10). 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":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"5addb51820ef2882158cb50bfccd3e8ec04830e489ce584b32c8de8d0f2455d7"}},{"ruleId":"D2","level":"warning","message":{"text":"_PcmCutModule._cutPcm (cognitive 24): _PcmCutModule._cutPcm has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 3 (4 pts), boolean chains 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":"lib/src/player/mixins/player_pcm_cut.part.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f5fd750763e1d7f36c5c2c901600950ec30bcd5fda4c88df367276f8177c2a"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionPlugin.handleAudioSessionInterruption (cognitive 24): MediaSessionPlugin.handleAudioSessionInterruption has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"971a88d587f28ceaed62024424053a5dd04163d72682533ca33254cdd7ff266e"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionPlugin.handleAudioSessionInterruption (cognitive 24): MediaSessionPlugin.handleAudioSessionInterruption has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, match/switch 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a30f26b76e9357c1714dbebecde7545e9a7180e3e07d1ffc3c448bc2e62a8a4"}},{"ruleId":"D2","level":"warning","message":{"text":"_RawModule.sendRawCommand (cognitive 22): _RawModule.sendRawCommand has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (6 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_raw.part.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"c295b802c833cc353acec902c331dffaf7ce6db57885c96a2bea6f463a120023"}},{"ruleId":"D2","level":"warning","message":{"text":"_SourceResolverDriver.run (cognitive 22): _SourceResolverDriver.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/source_resolver_driver.part.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b6619b29c00cb6a338d54ad75736d9ae641cef875e9e8df4b3054ea7e20255"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionPlugin.installCommandTargetsIfNeeded (cognitive 22): MediaSessionPlugin.installCommandTargetsIfNeeded has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, loops 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"6096a1afbf6b6e48c6c0c622109a2f290f13dd0fc4a1e1e9b5e95c3f7eb5f532"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionPlugin.installCommandTargetsIfNeeded (cognitive 22): MediaSessionPlugin.installCommandTargetsIfNeeded has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, loops 1, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"49029e39f41e71a94379d94968ca0645c77369d5aa5442da88ea8e7c46fadc25"}},{"ruleId":"D2","level":"warning","message":{"text":"BandProcessor.process (cognitive 21): BandProcessor.process has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/dsp/band_processor.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab78f762833e0442cf8f57e619d2bea13db0ebd20b7dba34c9e0dfc998ac8d81"}},{"ruleId":"D2","level":"warning","message":{"text":"_OpenAllRun.run (cognitive 21): _OpenAllRun.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_open_all.part.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3650f9734653d0ecc0ff004729bea721b655602b40892f684b6d3a7ca18e13"}},{"ruleId":"D2","level":"warning","message":{"text":"_PlaybackModule.play (cognitive 20): _PlaybackModule.play has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_playback.part.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"50223138b7c568933ba3765cb3e8089ef235738c225eaa42dfd09c385fd2770f"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionManager.onMethodCall (cognitive 20): MediaSessionManager.onMethodCall has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 2 (3 pts), match/switch 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":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionManager.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6108c1eea250ff8ddad65794a32198207375ed86b9dff232e751159cbc21568a"}},{"ruleId":"D2","level":"warning","message":{"text":"parse._resolve_symbol (cognitive 20): parse._resolve_symbol has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), error handling 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: tool/codegen/lavfi_codegen/parse.py holds 8 of the 50 methods over the threshold \u2014 including the worst \u2014 and 190 of the 469 points over it (41%), 3.1\u00D7 the next-largest file (tool/codegen/lavfi_codegen/generate.py at 61). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"712ef0c22136cb6626354e76a382f2294ce0f898bb88af0754e5d8b6d7e23b91"}},{"ruleId":"D2","level":"warning","message":{"text":"parse.run (cognitive 20): parse.run has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 3 (6 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: tool/codegen/lavfi_codegen/parse.py holds 8 of the 50 methods over the threshold \u2014 including the worst \u2014 and 190 of the 469 points over it (41%), 3.1\u00D7 the next-largest file (tool/codegen/lavfi_codegen/generate.py at 61). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c242fc6741c3541fff4027751560f3a004504af8edf53df9ba32ff5a443d6065"}},{"ruleId":"D2","level":"warning","message":{"text":"BandProcessor._newFramesNear (cognitive 19): BandProcessor._newFramesNear has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/dsp/band_processor.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6318f0e9f91f6eacf283059b6dab3c693a39753eb0b88714ebb55257a5cdd6"}},{"ruleId":"D2","level":"warning","message":{"text":"EventSequencer._pumpLoop (cognitive 19): EventSequencer._pumpLoop has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/event_sequencer.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dfec4ce3a8afd0c2a32c4816c06561e30857bf054656377ee472cc0419db6e"}},{"ruleId":"D2","level":"warning","message":{"text":"system.timeline (cognitive 19): system.timeline has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/diagrams/system.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"7feb7d1a062249d0d7f569d209e2e1832cfce069829f18e5b1f0d7ac2b166e13"}},{"ruleId":"D2","level":"warning","message":{"text":"BandProcessor._runFftOnRing (cognitive 18): BandProcessor._runFftOnRing has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 5 (7 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/dsp/band_processor.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efa40d2f0f390a5e77a79592e106228d550042619350d114bc3865550f8daac"}},{"ruleId":"D2","level":"warning","message":{"text":"_OpenModule._replaceContent (cognitive 18): _OpenModule._replaceContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_open.part.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb6deae21ce10380c0305ec0b135e4961f985f8d8a797deed8b9a7a6d1cd6f4"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDescriptorChannel.onMethodCall (cognitive 18): FileDescriptorChannel.onMethodCall has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 2 (6 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/FileDescriptorChannel.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c1b0faad68525cae16b8e497a83e95b299a752cfdbc404dcd7aa862d29700b"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionMappers.buildMediaButtonPreferences (cognitive 18): MediaSessionMappers.buildMediaButtonPreferences has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionMappers.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f409e6571bf7d765a4415bd8327e13220d16f786347d302fccb4bbfd5ef6f6"}},{"ruleId":"D2","level":"warning","message":{"text":"generate._emit_wire_parts (cognitive 18): generate._emit_wire_parts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 pts), 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":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"946377795b672404e3cb5e3ee6b1827801220d812103137c2acf563bf143291d"}},{"ruleId":"D2","level":"warning","message":{"text":"_EndOfContent.send (cognitive 17): _EndOfContent.send has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/event_end_of_content.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5d65d383bbc4ce8719ceb4ebc130a86566c14972bfdd0989af8ec9242f80d8"}},{"ruleId":"D2","level":"warning","message":{"text":"OrphanHandleTracker.ensureInitialized (cognitive 17): OrphanHandleTracker.ensureInitialized has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/orphan_handle_tracker.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"377aee07ffc424a4c5705146d27a16348d0e4f7828f33b8866c754caa955fece"}},{"ruleId":"D2","level":"warning","message":{"text":"_OpenAllRun._append (cognitive 17): _OpenAllRun._append has cognitive complexity 17 (threshold 15). Drivers by points: if/else 2 (5 pts), loops 3 (5 pts), error handling 1 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_open_all.part.dart"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1199f256d12e3fae2d162fb5842cca7be819687c7cb4f59700c466fe70789c91"}},{"ruleId":"D2","level":"warning","message":{"text":"generate._emit_runtime_diff (cognitive 17): generate._emit_runtime_diff has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (5 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":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"068ca7c8a5af59b410f246a44195d4e8f052892a19152e0c6ecb3b3fe04e3621"}},{"ruleId":"D2","level":"warning","message":{"text":"EntryTable.onPlaylist (cognitive 16): EntryTable.onPlaylist has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 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":"lib/src/internals/entry_table.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f6dcef77dfe2e434f019313cfefe0214909d0dd9e02cee094093124923dd60"}},{"ruleId":"D2","level":"warning","message":{"text":"EntryTable._confirm (cognitive 16): EntryTable._confirm has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/entry_table.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cf6c9bda3b301253d69cf10b928254b4c65c0fb5f677eb617f3be983571dfc"}},{"ruleId":"D2","level":"warning","message":{"text":"EventLogic.property (cognitive 16): EventLogic.property has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (6 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/event_logic.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee46c430a2a8df591e95ca485dd9ca249056415d749f50b025e11e7dd5bb169d"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaSessionController._downloadedArtwork (cognitive 16): MediaSessionController._downloadedArtwork has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 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":"lib/src/media_session/media_session_controller.dart"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bdcc4c023c5d398b36ac18e02fdce3f716554a6b717d1e272f216f99369cb9"}},{"ruleId":"D2","level":"warning","message":{"text":"PcmSource.addStream (cognitive 16): PcmSource.addStream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/pcm/pcm_source.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d669ed0e5137e6a4991cdf8b9a889861cd3e9f49c01bce2e38e49070eded3cf7"}},{"ruleId":"D2","level":"warning","message":{"text":"_MediaSessionModule.setMediaSession (cognitive 16): _MediaSessionModule.setMediaSession has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_media_session.part.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"140dd496c3be0f5dff0e4698a785c4872296ed7a79da990bcbfed83d5c7617f5"}},{"ruleId":"D2","level":"warning","message":{"text":"MpvControllerPlayer.getState (cognitive 16): MpvControllerPlayer.getState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 6, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MpvControllerPlayer.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3234b7181ad2bee6878d2d579bcae7ceb2746d4e0be2f607df2a4348c4157d80"}},{"ruleId":"D2","level":"warning","message":{"text":"generate._emit_param_constants (cognitive 16): generate._emit_param_constants has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), error handling 1 (3 pts), loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"639b37962edd66737e006d0e72cc6b1e77618bc3b0a9bc5b8feda59e3905eecb"}},{"ruleId":"D2","level":"warning","message":{"text":"generate_studio_catalog.run (cognitive 16): generate_studio_catalog.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 4 (5 pts), error handling 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/generate_studio_catalog.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"7162f104bc9f5cd1f06ca6a94d83fceedfec5b819ad217fcd4016db1a1c93e2c"}},{"ruleId":"D2","level":"warning","message":{"text":"parse._index_enum_members (cognitive 16): parse._index_enum_members has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 1 (4 pts), loops 2 (3 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: tool/codegen/lavfi_codegen/parse.py holds 8 of the 50 methods over the threshold \u2014 including the worst \u2014 and 190 of the 469 points over it (41%), 3.1\u00D7 the next-largest file (tool/codegen/lavfi_codegen/generate.py at 61). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/parse.py"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"7023aef1a589a1888a7c375a07b5bb1826ec4d38d26766192eb4164c38a38c22"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlayerApi: TooManyMethods \u2014 88 methods. The bar is 30 methods; this is 58 over it, 2.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/player_api.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc341527852c3db2386ea520526a5fba02188e7129a5cf4e107ed5d56d6b58a4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MediaSessionPlugin: ClassTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 245 over it, 1.61\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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfca234ccce8b525f3e644ab303d952e127770f7153605c3a4897b52bd56c79"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MediaSessionPlugin: ClassTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 245 over it, 1.61\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":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4b12cfdbdac494ba424b9eae04dec45377729312b9a032264fdfd9f4d801dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mpv_audio_kit/MediaSessionPlugin.swift: FileTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MediaSessionPlugin (47-1159). The bar is 500 significant lines; this is 157 over it, 1.31\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df445904f19eb1ef5854a4f790b72886f211b537e24d5d0d91496ad3a713f93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mpv_audio_kit/MediaSessionPlugin.swift: FileTooLong \u2014 657 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MediaSessionPlugin (47-1159). The bar is 500 significant lines; this is 157 over it, 1.31\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b974d82bafcdccccf92b678d1074c73b2613ef9dfd586d5b125f17f38073f54"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MediaSessionPlugin: 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a246410ef81560019ef22df7a34b9ad5ec075a77c2eaec0446e93677baf4df82"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MediaSessionPlugin: 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":"tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c3761b812de48890220244a00e521f99a70be64aa827c829480407ccc4494c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: D: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"tool/diagrams/base.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ae90680d30eaa1fbd96dfa3025fe0a1199a96e92d01682bfc332e18e6c6df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): tool/diagrams/system.py:200-212 | tool/diagrams/system.py:229-239 \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":"tool/diagrams/system.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cda9eadfeeeb71a2b8a35454d3410d1b6526ffdd24a3cb4a19a7777299f287c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): lib/src/internals/native_reader.dart:52-66 | lib/src/internals/native_reader.dart:68-82 | lib/src/internals/native_reader.dart:84-98 \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":"lib/src/internals/native_reader.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f863e0331f09a4e6a546711d87f8de159855024515283614addae0b185e58bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/src/player/mixins/player_properties.part.dart:191-202 | lib/src/player/mixins/player_properties.part.dart:204-216 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_properties.part.dart"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"960b9646d7e2625d1af86245b70810e56aa74da3b14e03c2fae485ce849a5e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): tool/codegen/lavfi_codegen/generate.py:103-104 | tool/codegen/lavfi_codegen/parse.py:1188-1189 \u2014 These two members are one piece of code written twice and then edited apart: 2 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":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00cf9fcaab2883aebcffc374cfc00b847f441732f37ad73125f6918308d6179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (104 lines \u00D7 2): lib/src/ffi/mpv_library_bundled.dart:31-134 | lib/src/ffi/mpv_library_opened.dart:185-288 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/ffi/mpv_library_bundled.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1eb7827ca64cad9b2e58f2cc61f12e4df94a1f89dcb689f1488a43078046a0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/ArtworkChannel.kt:33-37 | android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/FileDescriptorChannel.kt:32-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/ArtworkChannel.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad53f554e11ed2a9c7111192fbefcb958ef345197485cf5612f0e1dfaf1c3a79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): tool/diagrams/system.py:200-204 | tool/diagrams/system.py:216-220 | tool/diagrams/system.py:229-233 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/diagrams/system.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef0e0caa14c926bdd429d0b5e7dcae68bdae98d7ebabb46d579ce4e595b90ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (138 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:824-961 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:824-961 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"10abe45091bc7c20a164ba5b1ee6ff202a9e04a678181c363601e7a3682956f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (126 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:548-673 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:548-673 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2798c1bb7f3acdd12a3bc33c030bf4c860ac844cb451afa1f7165c0e7900940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (88 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:162-249 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:162-249 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"5911b1f16a207ed49cb4845d9b171154cd781d5ab33bed498239b7f056b1f91d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:425-478 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:425-478 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eddba65ef81a7c6d8610a3fbc2b3bd122e3ce816a56e405037df483021c83c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:290-327 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:290-327 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"88423b90d749cfa401e36803458260a4ac36d315333010e2cb34f75057d8f2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:341-378 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:341-378 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a65450340065b9e58f47201f5438b029e4379109358f171243c6abcc1b46d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1008-1046 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1008-1046 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b8e58964c8962c3a9eeb8d97b9ba69778e7614f3d7c37dfcff250a7fbffad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:700-727 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:700-727 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"823bd4229284251b93dcdab87ad5cce2c68a51fbbd4fb02f2537e345112232b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:263-288 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:263-288 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7dfd0bcebb1707affd05f5c0ecec5705ea03f3efc4ec8d355c3006d32aa8d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:750-775 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:750-775 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ecab5fff30880acf1d8cae201dde69c06bfb335acae50f75475fec487d068b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:120-143 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:120-143 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"91903db10db7babb06f64dfa4501ffa4cc3125f8c343bf7dea36ec9c5d31b541"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:792-815 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:792-815 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"6267c6f3eb4249e61e02704aece3292317be71747980dfb326ef44f7b15d4823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1088-1121 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1088-1121 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e05b0ef798ecb0abf9f0775f35fc4bfa8fb84847536202e2a01a9b4fd77b304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:986-1006 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:986-1006 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"c613e95bb2862764b5abd1332727a6067f6c0742106643629505317bb2e35557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:511-530 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:511-530 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe93ca4dc9a5a687ece5b74d9aa4db34c3c5c3401a6530221b4cfd3079820a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:729-745 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:729-745 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73dc29fae2265c9728cb75aca138dfed673cb607f6ea67839b77c47557e1a3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1056-1072 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1056-1072 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfb9c86b9be71e1ef2af230689045a878e7efcb789774193d2348c8a169943e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:681-696 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:681-696 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82bd2507e828b83f8624e997cb51a2e1c59495e9efc5c3a97632237cb648c6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:965-980 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:965-980 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"6656fc7cd8024c10750ea0563e0b56a4d577e4d6b0f7b0c2b5c7ee65370a08dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:403-417 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:403-417 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6d72c88030ff04558fb12dd6d704d060511e3243e8ec810b459fc872d76015"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:483-492 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:483-492 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c41a707d6f839f6eeb6b95860ff1e6c69eff11afb93b4d54b64323ac7fff9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:496-505 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:496-505 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a85943318cd03dfd4fde616bcfa20ea788b81227452630feba2478d5819804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:782-790 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:782-790 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d71456083e09ea096a1a7fa2bd11c0c6d3f22d00c512241a03c7c51245cd00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1048-1054 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1048-1054 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7ff7f82b47451c3698f181e2b3e9b4565b87a50388d01dbdf49bd92415d772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1077-1084 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1077-1084 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bbc9d91ab944b1d76be1b96d9cfc6533082ff7d0b7d9189ec7d997e0f50d96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:251-256 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:251-256 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6634b87524a5e4dc8d629c12a6a241cf567bc66dec7dde8baaf019d431eb59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:383-395 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:383-395 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9133045c61efdf7700bf70cb3ffaad8e845a37e6d0b4f275d669fcfd0403ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:536-544 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:536-544 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea11bb3b76c625c1234fa23547a0309779ae44feaa47c1b05a6de684445e747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1123-1131 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1123-1131 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3f1a47c2203e5378df335cf6acd1edd2998022801d54873f880ff9b55feba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1152-1158 | tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift:1152-1158 \u2014 before extracting anything, compare \u0060darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 and \u0060tvos/Sources/mpv_audio_kit/MediaSessionPlugin.swift\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 893 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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd489ec48fdd6e4b40f4ed9f3eca9e094e0e262d488ab491c9ac074a45369d7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OpenedMpvLibrary (LCOM4 20): OpenedMpvLibrary\u0027s methods fall into 20 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 20 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/ffi/mpv_library_opened.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"372776f7e1464f48ba8462799c84a37262effe863dca4bdf18de954bc4a24773"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _LookupPcmNative (LCOM4 7): _LookupPcmNative\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/pcm/pcm_native_io.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f60262f5b742ecb643cdbd6757892a4abbe9d5e329218c988e54243731fd2f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: hook/build.dart: hook/build.dart changed 42 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in _Target.of at line 193. 5 of those changes were fix/bug commits, and the other 37 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- hook/build.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":"hook/build.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"817e66ef9a3268049dbd88a520bf94cad7854895e9767c85b43407da3dfbee86"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift: darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in MediaSessionPlugin.publishNowPlaying at line 548. 5 of those changes were fix/bug commits, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a9dcef7dedc4aeb150b9f01f91fcd3e7446c33fc93082dd23d00d02d0df2f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tool/codegen/lavfi_codegen/generate.py: tool/codegen/lavfi_codegen/generate.py changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in generate._emit_class_doc at line 774. 5 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- tool/codegen/lavfi_codegen/generate.py\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":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d4e76b90624704b8a900f035df5b42d940bc3bda064335c8d58747b83219aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionManager.kt: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionManager.kt changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MediaSessionManager.onMethodCall at line 225. 11 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionManager.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":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionManager.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e165125339d43a090df66124226aae0dde19eec9630ed024b40b2649d1a8d5aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/src/internals/event_end_of_content.dart: lib/src/internals/event_end_of_content.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in _EndOfContent.send at line 40. 5 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/internals/event_end_of_content.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/event_end_of_content.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3369e495528b84a130cbff97015fcda705fc2132f30bcd0da1e67cdfef902a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: tool/codegen/lavfi_codegen/config.py: tool/codegen/lavfi_codegen/config.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in config.load_config at line 164. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- tool/codegen/lavfi_codegen/config.py\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":"tool/codegen/lavfi_codegen/config.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a11772ac6200ebaf4284eb0ed3e138e0f023ca14d414f01840e8fd09dfd1e5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/player/mixins/player_dispatch.part.dart: lib/src/player/mixins/player_dispatch.part.dart changed 60 times in last 90 days and 33 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is _DispatchModule._dispatchEvent at line 62), 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(player): the Media cache drops the entries that left the playlist and the URLs of earlier loads\u201D; \u201Cfix(player): a core that shuts down by itself closes the session, and sendRawCommand refuses quit\u201D; \u201Cfix(state): a new file clears the analysis, and the hint follows the index\u201D; \u201Cfix: openAll hides the old entry it keeps in mpv after its jump\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/player/mixins/player_dispatch.part.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_dispatch.part.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c7797c29e3d6ac94b46f483983c65cf184cc124f5f3741b9c6ee5acf147c5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/internals/event_isolate.dart: lib/src/internals/event_isolate.dart changed 47 times in last 90 days and 31 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is MpvEventIsolate.start at line 69), 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(event-isolate): the writes mpv refuses at bring-up are reported on internalLog\u201D; \u201Cfix(player): a core left alone by a late event isolate is destroyed once the isolate exits\u201D; \u201Cfix: a pause in the last buffer keeps the rest, and play() plays it\u201D; \u201Cfix: a byte array of SIZE_MAX bytes fails the decode again, on internalLog\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/internals/event_isolate.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/event_isolate.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"074d54ce952f99ceb8ce1666910f9bc32239a9c43e6ae6bf436f64153127a19a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/media_session/media_session_controller.dart: lib/src/media_session/media_session_controller.dart changed 39 times in last 90 days and 26 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is MediaSessionController._downloadedArtwork at line 393), 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(session): the drive path rule follows the host under flutter test too\u201D; \u201Cfix(session): xesam:url of a POSIX path that starts like a drive is published\u201D; \u201Cfix(session): xesam:url of a file whose name is not UTF-8 names that file\u201D; \u201Cfix(session): xesam:url does not decode an escape inside a malformed one\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/media_session/media_session_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":"lib/src/media_session/media_session_controller.dart"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e029af2b6373d89bfca1d7d40b19688b6b2bd3d21cee6ee422a6b4c8cf98503"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/player/mixins/player_playback.part.dart: lib/src/player/mixins/player_playback.part.dart changed 38 times in last 90 days and 22 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is _PlaybackModule.play at line 9), 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(player): setChapter(-1) shows null, setAudioSpdif and openAll copy what they are given\u201D; \u201Cfix(player): the reads inside a call no longer refuse a player disposed meanwhile\u201D; \u201Cfix(docs): no reference to a deprecated flat field, and the 0.7.0 entry says the constructor change\u201D; \u201Cfix(docs): the references to a group\u0027s field name its class\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/player/mixins/player_playback.part.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_playback.part.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72cb0615596ceb5617f1ee7ad347447d11a63d1e0063fd1c347da48f9cadd0e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/player/mixins/player_hooks.part.dart: lib/src/player/mixins/player_hooks.part.dart changed 32 times in last 90 days and 17 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 _HooksModule._routeHookEvent at line 227), 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(player): a registerHook made while the same hook registers waits for mpv, and a failed one can be retried\u201D; \u201Cfix(player): the reads inside a call no longer refuse a player disposed meanwhile\u201D; \u201Cfix(player): the Media cache drops the entries that left the playlist and the URLs of earlier loads\u201D; \u201Cfix!: a libmpv of another release than the pin fails bring-up\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/player/mixins/player_hooks.part.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_hooks.part.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab807c8006f68f51f0283e856e0dd8b77a44becccd8d447ac53fe8bb44c659a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/media_session/media_session_channel.dart: lib/src/media_session/media_session_channel.dart changed 17 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is MediaSessionMetadataSnapshot.== at line 65), 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(session): supportedPlaybackRates crosses the channel as a plain list\u201D; \u201Cfix(session): the play state no longer waits for the metadata push\u201D; \u201Cfix(session): the session is a true no-op on a platform without a plugin\u201D; \u201Cfix(docs): no reference to a deprecated flat field, and the 0.7.0 entry says the constructor change\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/media_session/media_session_channel.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/media_session/media_session_channel.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a6dea2d5dad0f29f7e46f100d6b2316fc9da785643b1d92b8106ab14a2f037"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/internals/event_logic.dart: lib/src/internals/event_logic.dart changed 14 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is EventLogic.property at line 135), 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(events): a property reported unavailable after the restart is read again\u201D; \u201Cfix: a pause in the last buffer keeps the rest, and play() plays it\u201D; \u201Cfix!: a libmpv of another release than the pin fails bring-up\u201D; \u201Cfix: FILE_LOADED goes out before the reads kept for END_FILE\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/internals/event_logic.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/event_logic.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdae9a3f497d6b03a84b6db5d330c41be49736ee2c51012c1840fc2efd93097"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/types/sealed/media_session_artwork.dart: lib/src/types/sealed/media_session_artwork.dart changed 9 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is MediaSessionArtworkCustom.== at line 79), 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(models): toString hides the query values of a URL, in extras and artwork too\u201D; \u201Cfix: covers from Android providers on a queue of their own, checked as images\u201D; \u201Cfix: a content:// cover shows on Android again, read by the ContentResolver\u201D; \u201Cfix: covers reach the plugins as bytes only, file:// read in Dart everywhere\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/types/sealed/media_session_artwork.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/types/sealed/media_session_artwork.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4b1dc96ab84938a58e9c109d9af6f37457883f84e5b4d5736b5bcde10bb3a0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MpvControllerPlayer.kt: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MpvControllerPlayer.kt changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is MpvControllerPlayer.getState at line 55), 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: Android disarms the resume of a call on a stop from a controller too\u201D; \u201Cfix: Android keeps a pause made during a call, and a play then waits for the call to end\u201D; \u201Cfix: Android keeps the media service in the foreground through a call\u201D; \u201Cfix: covers reach the plugins as bytes only, file:// read in Dart everywhere\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MpvControllerPlayer.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":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MpvControllerPlayer.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d056c0ebb050c02fd469aca03ff4ed57eb72c85f05eb86668b98a01cb8a0501b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/internals/event_properties.dart: lib/src/internals/event_properties.dart changed 9 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is _PropertyForwarder._forwardValue at line 191), 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(events): a property reported unavailable after the restart is read again\u201D; \u201Cfix: END_FILE carries the duration and position of the entry that ended (kit-core-2)\u201D; \u201Cfix: a park read while an unpause was in effect is read again\u201D; \u201Cfix: the park position is not undone by a time-pos change mpv sampled before it\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/internals/event_properties.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/event_properties.dart"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"217844f605478b5c851be822b0805920fb8579641cbaf0d5c201ac0cc630c3c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/MpvAudioKitPlugin.kt: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/MpvAudioKitPlugin.kt changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is MpvAudioKitPlugin.onAttachedToEngine at line 51), 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(android): the media keys of a remote reach the player on Android 7 and 8\u201D; \u201Cfix: covers from Android providers on a queue of their own, checked as images\u201D; \u201Cfix: the Android media session belongs to the engine that enabled it\u201D; \u201Cfix: openFileDescriptor runs off the main thread\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/MpvAudioKitPlugin.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":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/MpvAudioKitPlugin.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2053c7499f914a28e28ab863cc49d26bd7162b26c4b0ed94e245d0e3bf7b35be"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/internals/entry_table.dart: lib/src/internals/entry_table.dart changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is EntryTable.onPlaylist at line 164), 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(player): a loadfile reply remaps the playlist a FILE_LOADED read\u201D; \u201Cfix: openAll hides the old entry it keeps in mpv after its jump\u201D; \u201Cfix!: a libmpv of another release than the pin fails bring-up\u201D; \u201Cfix: the source resolver runs on on_prefetch, while the current entry plays (F9)\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/internals/entry_table.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/entry_table.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f70cabd453ca5a572df42e711bca3816690b9803451c1aecd967689891e16c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/AudioFocusController.kt: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/AudioFocusController.kt changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is AndroidFocusPort.listenNoisy at line 219), 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: a pause or a stop of the app during a call disarms the resume on Android\u201D; \u201Cfix: Android keeps a pause made during a call, and a play then waits for the call to end\u201D; \u201Cfix: Android keeps the media service in the foreground through a call\u201D; \u201Cfix: the focus resume is armed only when the player was playing\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/AudioFocusController.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":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/AudioFocusController.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e83bfad61df37624592e16fe6d8f488dc2a9e64c1580e2d5c2c2163f8fbcefd"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/src/internals/event_sequencer.dart: lib/src/internals/event_sequencer.dart 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 10 (its worst body is EventSequencer._pumpLoop at line 87), 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: the web pump runs idle after every event, as the native one (kit-web-6)\u201D; \u201Cfix: a park read while an unpause was in effect is read again\u201D; \u201Cfix: a wakeup of the web module never runs in the middle of its calls\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- lib/src/internals/event_sequencer.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/event_sequencer.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"699793a0d33998ed5a62730f4f64af559028559123e35b483a1abe0961a5ec6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: tool/codegen/lavfi_codegen/required_params.py: tool/codegen/lavfi_codegen/required_params.py 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 4 (its worst body is required_params.apply_not_live at line 186), 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: an adelay delays change rebuilds the stage\u201D; \u201Cfix: alimiter, agate and the shifters rebuild for options they read at setup\u201D; \u201Cfix(codegen): Min and Max constants the filter accepts\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- tool/codegen/lavfi_codegen/required_params.py\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":"tool/codegen/lavfi_codegen/required_params.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f3bcb2cd7e050a429a17183ca3e99bf9300512c66ed4ba3e92aba05eab7fb2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/InterruptionLogic.kt: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/InterruptionLogic.kt changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is InterruptionLogic.onFocusChange at line 51), 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: Android disarms the resume of a call on a stop from a controller too\u201D; \u201Cfix: Android keeps a pause made during a call, and a play then waits for the call to end\u201D; \u201Cfix: the focus resume is armed only when the player was playing\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/InterruptionLogic.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":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/InterruptionLogic.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc220bdda6590ef13aa3b168adb785b8c68ba5f222ca67f1534b95006ebaed39"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionMappers.kt: android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionMappers.kt changed 3 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 13 (its worst body is MediaSessionMappers.buildCommands at line 54), 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: covers from Android providers on a queue of their own, checked as images\u201D; \u201Cfix: covers reach the plugins as bytes only, file:// read in Dart everywhere\u201D; \u201Cfix(android): next and previous from media keys and the notification\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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 20:16:54 \u002B01:00\u0027 --until=\u00272026-11-16 20:16:54 \u002B01:00\u0027 --full-history --no-merges -- android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionMappers.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":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionMappers.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a83812bb134a261506a158244a7cdf6baa9eafcf04ebbf6dea7cda6298bef8b"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (34921 LoC, 407 module-visible types across 22 directories) overshoots its size bounds. 1 of 7 build unit(s) (Gradle, SwiftPM, pub) overshoot their size bounds, lowering Project Cohesion to 7.1/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9fee3010c053c10733ebad6b156234032ce361c46f8c03bb63f2bdc3c8adbd"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d0b6ee2fbd65a4c00589c112f424f111ec25b0ccc7e895eb0b2305f0599edaad"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"c02a7be4bbfa1f795e81e9448068b0bffc1164527a08c948ab49aa64790625de"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"e98cf911db804a4495d3e2c649452a3aa16800417e4a5d597d841472fd3061d9"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d125baf6b84621b28e8b6445a7f316fbfaac6135dc101c14beb994599576abbb"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: build.dart \u2194 Package.swift: \u0060hook/build.dart\u0060 (context hook) and \u0060tvos/Package.swift\u0060 (context tvos) sit in DIFFERENT parts of the tree yet change together 86% of the time (12 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060cf555047\u0060 chore(libmpv): pin the published libmpv-r26, of Build 43921534261; \u0060afe348c6\u0060 chore(libmpv): pin libmpv-r26 of Build 43843399097; \u0060f755a62a\u0060 chore(libmpv): pin libmpv-r26 of Build 43737297278 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hook/build.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbaffb755cf75f11b99f59d8e3f2d261473def63d388c47e4519ce640d93a261"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: player_state.dart \u2194 default_reactives.dart: \u0060lib/src/player/player_state.dart\u0060 (context player) and \u0060lib/src/reactive/default_reactives.dart\u0060 (context reactive) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006014e6c2db\u0060 docs: what the system volume, the media role and the output state reach; \u0060fe2a6814\u0060 fix: audioDriver starts empty, as mpv reports the automatic choice; \u006037d8209c\u0060 fix: A-B loop points apply to the current file only \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/player_state.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e913139bf1f9bf7441442f7d151452ddc3155c636d03458d5c81d5470a327723"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: player_stream.dart \u2194 default_specs.dart: \u0060lib/src/player/player_stream.dart\u0060 (context player) and \u0060lib/src/reactive/default_specs.dart\u0060 (context reactive) sit in DIFFERENT parts of the tree yet change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060ca22a6fb\u0060 feat(state): the hint over an estimated duration, and the same file k\u2026; \u0060e2734f06\u0060 docs: comments that still described the eof-reached hook, JSON and ol\u2026; \u0060b706e1dc\u0060 feat!: synchronous Dart-side setters, exact values in state, one emis\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/player_stream.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eaeb728e247ee0a5ca0b01b3d8625ec670f7dc48fd8621ed5c2bc1ec7a21794"}},{"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":"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: MpvLibrary (20 abstract methods): \u0060MpvLibrary\u0060 declares 20 abstract methods: \u0060mpvCreate\u0060, \u0060mpvInitialize\u0060, \u0060mpvTerminateDestroy\u0060, \u0060mpvWakeup\u0060, \u0060mpvSetOptionString\u0060, \u0060mpvSetPropertyString\u0060, \u0060mpvGetPropertyString\u0060, \u0060mpvGetProperty\u0060, \u0060mpvSetPropertyAsync\u0060, \u0060mpvGetPropertyAsync\u0060, \u0060mpvCommandAsync\u0060, \u0060mpvCommandString\u0060, \u0060mpvWaitEvent\u0060, \u0060mpvObserveProperty\u0060, \u0060mpvFree\u0060, \u0060mpvFreeNodeContents\u0060, \u0060mpvErrorString\u0060, \u0060mpvRequestLogMessages\u0060, \u0060mpvHookAdd\u0060, \u0060mpvHookContinue\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":"lib/src/ffi/mpv_library.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc6cffc0981dc0141434c58878ddae4e1419214c434b1de9f929b6dba37f36f"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: PlayerApi (88 abstract methods): \u0060PlayerApi\u0060 declares 88 abstract methods: \u0060configuration\u0060, \u0060state\u0060, \u0060stream\u0060, \u0060dispose\u0060, \u0060open\u0060, \u0060openAll\u0060, \u0060openPlaylistFile\u0060, \u0060openPcmStream\u0060, \u0060play\u0060, \u0060pause\u0060, \u0060stop\u0060, \u0060seek\u0060, \u0060seekToPercent\u0060, \u0060revertSeek\u0060, \u0060setChapter\u0060, \u0060setChapters\u0060, \u0060setAbLoopA\u0060, \u0060setAbLoopB\u0060, \u0060setAbLoopCount\u0060, \u0060writeResumeConfig\u0060, \u0060deleteResumeConfig\u0060, \u0060add\u0060, \u0060remove\u0060, \u0060next\u0060, \u0060previous\u0060, \u0060nextPlaylist\u0060, \u0060previousPlaylist\u0060, \u0060jump\u0060, \u0060move\u0060, \u0060replace\u0060, \u0060insert\u0060, \u0060clearPlaylist\u0060, \u0060setLoop\u0060, \u0060setShuffle\u0060, \u0060setPrefetchPlaylist\u0060, \u0060setVolume\u0060, \u0060setRate\u0060, \u0060setPitch\u0060, \u0060setMute\u0060, \u0060setAudioDevice\u0060, and 48 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/player_api.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"852a6a5ac8384f01d75cd0f47215ea9bcd0409b836f37f8bbc0edf6587a48516"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 57 public types in \u0060repository.src\u0060 are marked as implementation by their own namespace, folder or name: \u0060CoreCalls\u0060 (lib/src/internals/core_calls.dart:51, \u0060internals\u0060), \u0060MpvIsolateEvent\u0060 (lib/src/internals/core_events.dart:12, \u0060internals\u0060), \u0060MpvPropertyEvent\u0060 (lib/src/internals/core_events.dart:17, \u0060internals\u0060), \u0060MpvReplyEvent\u0060 (lib/src/internals/core_events.dart:20, \u0060internals\u0060), \u0060MpvEventStartFile\u0060 (lib/src/internals/core_events.dart:23, \u0060internals\u0060), \u0060MpvEventFileLoaded\u0060 (lib/src/internals/core_events.dart:33, \u0060internals\u0060), \u0060MpvEventPlaybackRestart\u0060 (lib/src/internals/core_events.dart:113, \u0060internals\u0060), \u0060MpvEventEndFile\u0060 (lib/src/internals/core_events.dart:129, \u0060internals\u0060), and 49 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/core_calls.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5828958304a9a4c95e585574990823a0e57691bb42bbbfecb93dbe2f10d993b5"}},{"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":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 as a CI step. What was searched, so you can tell an absence from a miss: the 6 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060android/build.gradle.kts\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/build.gradle.kts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4c7bd31c84a8a7d4e714704585fe15dd2fa7199d215fe298f42d4d08f53c39"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!seekable \u0026\u0026 (durationMs == nil || durationMs! \u003C= 0)\u0060 appears character-identically in 2 files \u2014 darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift, tvos/Sources/mpv_audio_kit/MediaSessionPlugin.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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"03251d9345d572b92eb90e384653573515624049e67f1c54029444e1c52ca4d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rate == 0.0 \u0026\u0026 lastPublishedPlaybackState == .paused\u0060 appears character-identically in 2 files \u2014 darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift, tvos/Sources/mpv_audio_kit/MediaSessionPlugin.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":"darwin/mpv_audio_kit/Sources/mpv_audio_kit/MediaSessionPlugin.swift"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ccead1d08a7c6b233134fd8e66d65fa7922c1493480a7b7d985ef27f6a87e4"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060materializeBytes\u0060 is public and takes \u0060Object ? value\u0060 from its caller, and it calls itself at line 125 (\u0060materializeBytes\u0060) with a piece of \u0060value\u0060 (and at line 130) \u2014 and nowhere in \u0060materializeBytes\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. \u0060jsonDecode\u0060 sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws \u0060StackOverflowError\u0060 from about 20,000 levels \u2014 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser\u0027s stack). That is an \u0060Error\u0060, not an \u0060Exception\u0060: an \u0060on Exception catch\u0060 around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through \u0060materializeBytes\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/internals/native_memory.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"90acb7492d3216c80a03e662954ec09884635686060187b8b14bb15576985074"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tool/codegen/lavfi_codegen/generate.py"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"6387db03296b675906b45d91fc61f77ee7bcb8e51c2674c06c7bc0798bd8aec1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/web/mpv_audio_kit_web.dart"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cda3a1071bc3a53bef32e6a88f3111a62bc41f87a07b977ea3e4807f03a0d0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/web/mpv_audio_kit_web.dart"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74209ba4dbdb7e77760ce59c43686e701ebd32a511fe24d9b7a48b308f53c73"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_teardown.part.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b134cd697979dd7a4be22833154e2a86dae82d3d2307feac70daa63eae656c2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/player/mixins/player_teardown.part.dart"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"301aa419f7ecb3120d4a1786bde916ceab4907f53b433fc2976d4ead230972ea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/media_session/artwork_download_io.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aed7ca8cba220bd445abdadf09e6eda371d1a7557cf9a1e1096a75a25406b21"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/media_session/artwork_download_io.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1d1727d62cb1e8f180c9f1603089b84d1b4d146b7add629fb4ca8c60a37a5c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/media_session/artwork_download_io.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8b03bb59174ccc737fac42ce7b7ee637f3aea79f759df605502117b3b8913d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/media_session/artwork_download_web.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"075a83bbdca1b6f14c1346fdba7cb1999f5855c39fd68352f40e747a137c01fc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/media_session/artwork_sources.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb7778ef7807829182d6bba13dd42c3c65d5a047f9f91350b1b458c1eb9b055"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/backend/native_backend.dart"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c99f0b9aa5eb6f7176cb78ac859cdb320f0490a9e5341e3571d31fc91adb3cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/backend/web/mpv_module.dart"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b033d1695c96b9be5d91c16da67680fa4ac12f4bee9474079d7d8d937dc35f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/backend/web/web_registry.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf1a09a69259a188528fb6ac01d0671efe987b12a129dab4a3aa3c19816bed7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/backend/web/web_registry.dart"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5b394126fcc71ec1e0da8b9c6c7dac197c45e72ffb17db3fb604f94162c7da"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/src/backend/web/web_registry.dart"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e02afff8108576ea954a24ffc2a1b1421b8d317570bf4d783d6cbe1f725f66"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionManager.kt"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d85dc8d03479763b12f9b6b208fe4825a42c2294a9b9385ce7c64af1ad4dbd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/src/main/kotlin/com/alesdrnz/mpv_audio_kit/media_session/MediaSessionManager.kt"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce28bc133d5860eb2508736662ab9b17d946648732dd847be42292ea8974928"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-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-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":"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-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"id":"CICD-SEC-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":7,"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."]}]}