{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"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":"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":"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"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":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"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":"main.swift.runMain (cyclomatic 145): main.swift.runMain has cyclomatic complexity 145 (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":"Sources/APIExplorer/main.swift"},"region":{"startLine":4072}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a70d020250e2ee19fa70fa9052a1cdad347f2e9085f684de5267011d78cf6fc"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountService.switchAccount (cyclomatic 69): AccountService.switchAccount has cyclomatic complexity 69 (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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0afa0ccaad3642b1b0d07b89ebdc047f5a68fe9b07e590737ce2c5986bdc2d"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.processStateUpdate (cyclomatic 55): Coordinator.processStateUpdate has cyclomatic complexity 55 (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":"Sources/Kaset/Views/MiniPlayerWebView\u002BCoordinator.swift"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"135c4ba2fca6174834ac5a3866501e1262a12500c4e6e89b05be38499303586c"}},{"ruleId":"D1","level":"warning","message":{"text":"PodcastParser.parseShowDetail (cyclomatic 51): PodcastParser.parseShowDetail has cyclomatic complexity 51 (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":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb17fe47cace7e7af419861721f94414b22edb5bd210d5806167c7acc5c30bc"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.discoverBrandAccounts (cyclomatic 48): main.swift.discoverBrandAccounts has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3546}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e1245c16a856bf42bd3e2bb35724f11b1f54ef7b210ed9952619580d161d65"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountService.scheduleRestoredSessionPin (cyclomatic 47): AccountService.scheduleRestoredSessionPin has cyclomatic complexity 47 (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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"4126c4135b874d8d15ac3b38cdd2cfd3f98a2f9c3ae091ebc685ea12de9370ae"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.finishTrackEnded (cyclomatic 45): PlayerService.finishTrackEnded has cyclomatic complexity 45 (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":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f67504eca43245aab85c5e2ee40f3d431acbe2fce36497d1aa8442c311d894"}},{"ruleId":"D1","level":"warning","message":{"text":"AskVideoAudit.swift.auditAskVideo (cyclomatic 43): AskVideoAudit.swift.auditAskVideo has cyclomatic complexity 43 (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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcebf33156ffdb1c71162f7d71529db3e4751a692488db4a1bceb9d83232c3a"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscoveryAudit.walk (cyclomatic 41): DiscoveryAudit.walk has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ff5d04389a67074fcee3b1ac632e575e14f195137d4dd0f903787b75505c4d"}},{"ruleId":"D1","level":"warning","message":{"text":"fetch (cyclomatic 39): fetch has cyclomatic complexity 39 (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":"worker/src/index.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9c4eb722679354773ace4d9dfc30eaeffa4ea1771dc547efe24baba0e8329f"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.performNextNavigation (cyclomatic 38): PlayerService.performNextNavigation has cyclomatic complexity 38 (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":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"989fe464d9d1a84d12028d177a42317fe50da2755d2fe2ccd0be4f387d59d11d"}},{"ruleId":"D1","level":"warning","message":{"text":"ArtistParser.parseArtistDetail (cyclomatic 38): ArtistParser.parseArtistDetail has cyclomatic complexity 38 (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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3174c5d441e620029381c8f78e3dd679bc01141577cab5c450c1302106e9fe"}},{"ruleId":"D1","level":"warning","message":{"text":"KasetApp.body (cyclomatic 35): KasetApp.body has cyclomatic complexity 35 (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":"Sources/Kaset/KasetApp.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac1e55a06c2aa2b55232c2f614078651654ef9c76fcf3742a382145b0311575"}},{"ruleId":"D1","level":"warning","message":{"text":"AskVideoResponseAuditor.walk (cyclomatic 33): AskVideoResponseAuditor.walk has cyclomatic complexity 33 (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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2553}}}],"partialFingerprints":{"codehealthFindingId/v1":"a588324df5b40e41e5bbc9ed72e877a2fbfedf0ce580986d6a1742e5cbc6a756"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscoveryRequest.init (cyclomatic 33): DiscoveryRequest.init has cyclomatic complexity 33 (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":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e42223b501ece57ada525c389acbe6cf3ff03cb1654e4e49cddf19817527cb"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.applyRemoteMusicRelativeSeek (cyclomatic 33): PlayerService.applyRemoteMusicRelativeSeek has cyclomatic complexity 33 (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":"Sources/Kaset/Services/Player/MusicPlaybackIntent.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"456faf69bd75e435aabae3da72ca6c634a215c2b8ac3a09a6340f8d1ae2245a5"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscoveryAudit.swift.discoverAPI (cyclomatic 32): DiscoveryAudit.swift.discoverAPI has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d92c0c029805d511f63074e0e81c08bbcf0f344cbf2bb50dad8e2afbb8e222d"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.fetchAccountInfo (cyclomatic 31): main.swift.fetchAccountInfo has cyclomatic complexity 31 (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":"Sources/APIExplorer/main.swift"},"region":{"startLine":3080}}}],"partialFingerprints":{"codehealthFindingId/v1":"1642f62815df05a27508ce43b23254883900fc4c9decd417e91432b1683bc9c6"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountService.fetchAccounts (cyclomatic 30): AccountService.fetchAccounts has cyclomatic complexity 30 (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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ad72af764063e0695408ed5f159171f1cb61b863fdde623ad8b91f8df043f8"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentSourceResolver.suggestedContentSource (cyclomatic 29): ContentSourceResolver.suggestedContentSource has cyclomatic complexity 29 (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":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5b52a623ac56dbd11348540c9c32f961b7b02fcfb93a9995e7333987218bf1"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrobblingCoordinator.pollPlayerState (cyclomatic 29): ScrobblingCoordinator.pollPlayerState has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"170eee6bdd7b6cd1692bd425e59c124dde234f82c52b964bb39ab6f5834b8bdd"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountService.handleRestoredSessionPinFailure (cyclomatic 28): AccountService.handleRestoredSessionPinFailure has cyclomatic complexity 28 (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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ccba14c3070656bbbe83ac0ff87cdfd33136672ea40c8c35c648a29cac1a3c2"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.play (cyclomatic 28): PlayerService.play has cyclomatic complexity 28 (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":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfb90c38889bc73c385ab42d4d43e40302291b1f5be088012bea3dcd11393c9"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.fetchMoreMixSongsIfNeeded (cyclomatic 28): PlayerService.fetchMoreMixSongsIfNeeded has cyclomatic complexity 28 (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":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"14159edc4c1d8154b2c3e981380eb83eb081a4dce5d4d3f1f18b3c9ec7c8edea"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.fetchAndApplyRadioQueue (cyclomatic 28): PlayerService.fetchAndApplyRadioQueue has cyclomatic complexity 28 (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":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"966f080d0e72e78313045fefadb94efeaf353c3819b3813f53828e736527ea09"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsingHelpers.extractLastThumbnailURLString (cyclomatic 28): ParsingHelpers.extractLastThumbnailURLString has cyclomatic complexity 28 (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":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a30b0847b892fdac2b082bfc0d8cff6fb8c0195589186dfc61b579c30f2325c"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.analyzeResponse (cyclomatic 27): main.swift.analyzeResponse has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a12ee38eec4f831b0821a85955f85ca0af334a0b9239c1d9ba821b4a591b1a7"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentSourceResolver.groundedIntent (cyclomatic 27): ContentSourceResolver.groundedIntent has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0d5ef5e3b9a99fb06af9400145c03cda6a06b07cee810b829eaf95d61414a1"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.exploreContinuation (cyclomatic 26): main.swift.exploreContinuation 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":2857}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2afed9d5b013a9cf12d489445cf514a3148401ac65d23128e04ca9a6c73c91f"}},{"ruleId":"D1","level":"warning","message":{"text":"LoginSheet.prepareLoginAttempt (cyclomatic 26): LoginSheet.prepareLoginAttempt 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":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"0320169772b2632c40f5f4dcacf61eaffea69a12b31287c0dac8c74162ecc5f8"}},{"ruleId":"D1","level":"warning","message":{"text":"MainWindow.viewForNavigationItem (cyclomatic 26): MainWindow.viewForNavigationItem 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":"Sources/Kaset/Views/MainWindow.swift"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"395d6a94764b4ff75f366333ef189a84fd5fdba789932d78d456dd759a232c32"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistParser.parsePlaylistTracks (cyclomatic 26): PlaylistParser.parsePlaylistTracks 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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd126a18ce444423e78f573dfd5171de08999814c0eb4fe1f450f14db5e14949"}},{"ruleId":"D1","level":"warning","message":{"text":"ProvisionalMixPlaybackHistory.credits (cyclomatic 25): ProvisionalMixPlaybackHistory.credits has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ProvisionalMixPlaybackHistory.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a976bafa35807fb49666f25833e093d3d0b418f520af0ac93b5a1fe0bfae2f5d"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsingHelpers.extractDurationFromFlexColumns (cyclomatic 25): ParsingHelpers.extractDurationFromFlexColumns has cyclomatic complexity 25 (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":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cde4d7f26957d8ad11665abee7dffb513fc48d0f5bc46f4eb32afeadb6c212d"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentSourceResolver.canonicalToken (cyclomatic 24): ContentSourceResolver.canonicalToken has cyclomatic complexity 24 (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":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce69b89717eca7b605d4a5eadcc6c574eb60682625d67136167fe8365800e05"}},{"ruleId":"D1","level":"warning","message":{"text":"ArtistParser.parseSubscriptionButton (cyclomatic 24): ArtistParser.parseSubscriptionButton has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd4536ac44e5fa2b05d20933e4298ca4c51787cccdde18605a0f2d29781a3d6"}},{"ruleId":"D1","level":"warning","message":{"text":"ArtistParser.parseArtistSongs (cyclomatic 24): ArtistParser.parseArtistSongs has cyclomatic complexity 24 (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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"3319fb70b578ecb466a444ea84f46ef06216c13dcb06c207facc693a3f7c986b"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistParser.applyResponsiveHeaderRenderer (cyclomatic 24): PlaylistParser.applyResponsiveHeaderRenderer has cyclomatic complexity 24 (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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"627fe60949d978d0423e6f1d521eda4933be2906797e3584016cf40993c48692"}},{"ruleId":"D1","level":"warning","message":{"text":"WebKitManager.beginLoginCookieBackup (cyclomatic 23): WebKitManager.beginLoginCookieBackup 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":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffabacc3bdd0beb3cdef929883a45c02b4cd110f9dbda6827217f8fe68891a3"}},{"ruleId":"D1","level":"warning","message":{"text":"AskVideoAudit.swift.loadAskFreeTextCommand (cyclomatic 22): AskVideoAudit.swift.loadAskFreeTextCommand has cyclomatic complexity 22 (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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":1598}}}],"partialFingerprints":{"codehealthFindingId/v1":"584c49e638579660932d812467b8c5b95015afd60b14a638c79fed07cebf8428"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerBarProgressLane.progressBar (cyclomatic 22): PlayerBarProgressLane.progressBar has cyclomatic complexity 22 (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":"Sources/Kaset/Views/PlayerBarProgressLane.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc658ffece46efbd66c45f8d1e7f949ec6457172edaf6341b716f6a8105a143"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthService.completeLoginAfterDraining (cyclomatic 22): AuthService.completeLoginAfterDraining has cyclomatic complexity 22 (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":"Sources/Kaset/Services/Auth/AuthService.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"c595e0dd938451eb5670a442a30c66a682bf98192fd63bf76afa6fdbe1521d9c"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.resume (cyclomatic 22): PlayerService.resume has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6d2b05badc10e702663a865d168dd811c2a8c8eeaf1136d9368056c924a1b5"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.updateTrackMetadata (cyclomatic 22): PlayerService.updateTrackMetadata has cyclomatic complexity 22 (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":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"60540d41d8d5d6e2def6a654fcc62f06d334a9fd2112a7f5cbcb8eedd1b7b9e8"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrobblingCoordinator.deferPendingRegularTrackFinalizationIfNeeded (cyclomatic 22): ScrobblingCoordinator.deferPendingRegularTrackFinalizationIfNeeded has cyclomatic complexity 22 (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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BDeferredFinalization.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f36628e0e1137d9a49b923cc84664a643a8f673a3b6ec7b4a762cfeba36434"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.probeYtcfg (cyclomatic 21): main.swift.probeYtcfg has cyclomatic complexity 21 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":3438}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad573612d24194ba457f07ef3e789e78b13b01f201068f51ca681d421da318f"}},{"ruleId":"D1","level":"warning","message":{"text":"SingletonPlayerWebView.commitDocumentNavigation (cyclomatic 21): SingletonPlayerWebView.commitDocumentNavigation has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee7eeb968fd72c10651c74ba2b71637241f17e5d3699096cac995b4e5e74768"}},{"ruleId":"D1","level":"warning","message":{"text":"NowPlayingManager.handleCapturedRemoteMusicCommand (cyclomatic 21): NowPlayingManager.handleCapturedRemoteMusicCommand has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/NowPlayingManager.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"29734ebb6c32e84ee9b57d1751860532b138f584d2e32e32ca1c52513c36b1de"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.fetchSongMetadata (cyclomatic 21): PlayerService.fetchSongMetadata has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BLibrary.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e00fcad4d2b64f5b9402432afbce0ac4fde78a6e1e085e7ad46778103cb5fe"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.previous (cyclomatic 21): PlayerService.previous has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf8c5c9a37334e77ddbed5ab08bc0fd144c8a312c231e8a5be5ec39b62a8232"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.reconstructedPreShuffleEntries (cyclomatic 21): PlayerService.reconstructedPreShuffleEntries has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd16b4daa39cd9b605c75fd4193c047e7406e04184a4a84a923a9e90e207f6b"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrobblingCoordinator.resolveMixDetection (cyclomatic 21): ScrobblingCoordinator.resolveMixDetection has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"57940983cc0aa03342b33a64d2bf9d84e9d34ab8d8998214586827e9135614bd"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsingHelpers.extractThumbnails (cyclomatic 21): ParsingHelpers.extractThumbnails has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9002afcfa8072bf77274482e2cf1ae4b0a3a6aa272b7342e0b72e6949a8f05"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTubeAskWireDecoder.parseLengthPrefixedJSON (cyclomatic 21): YouTubeAskWireDecoder.parseLengthPrefixedJSON has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/YouTubeAskCore/YouTubeAskWireDecoder.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca98c8274d84249858c39e57b4c7d58e116d50bae28c1d08c3016a4b24af620a"}},{"ruleId":"D1","level":"warning","message":{"text":"AskVideoAuditSafety.isOpaqueField (cyclomatic 20): AskVideoAuditSafety.isOpaqueField has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2415}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d317e1fda726103ebc98953650fe7713300198fb2d6e6ba5776cff35020d72"}},{"ruleId":"D1","level":"warning","message":{"text":"WireResponseAuditor.parseLengthPrefixedJSON (cyclomatic 20): WireResponseAuditor.parseLengthPrefixedJSON 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"da663cbdf128ee45308136be38e97ef399e08e63a4738baa919e91e1deaaec6b"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscoveryAudit.rendered (cyclomatic 20): DiscoveryAudit.rendered has cyclomatic complexity 20 (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":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5defb691159b51772cc30508c909d1b957c1556b6fa02d85f78893b5bc83257"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.probeSigninSwitchReal (cyclomatic 20): main.swift.probeSigninSwitchReal 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":3289}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadc4ad35acb944e95699ebeeb4e9e8937364c900218a1210213d06a0f20f114"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistDetailViewModel.applyRemainingTracksResponse (cyclomatic 20): PlaylistDetailViewModel.applyRemainingTracksResponse has cyclomatic complexity 20 (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":"Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92574cd3e0130fcf343635f7261089dd30b7422773d74e3c2c35351eeb0c4a9"}},{"ruleId":"D1","level":"warning","message":{"text":"DraggableTableView.handleSwipeEnded (cyclomatic 20): DraggableTableView.handleSwipeEnded 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":"Sources/Kaset/Views/QueueSidePanelView.swift"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bac87d8715ca428d69b7f5b260e90d6f19a4b9c25bbacf80d6f865ecf324dbb"}},{"ruleId":"D1","level":"warning","message":{"text":"MusicDiscoveryTaxonomy.activityEvidencePhrases (cyclomatic 20): MusicDiscoveryTaxonomy.activityEvidencePhrases has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Sources/Kaset/Services/AI/MusicDiscoveryTaxonomy.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4209306949b59c74f37a9d792e49316088bd93d82567caef4da1494b62811e0e"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.bindWebMusicPlaybackOccurrence (cyclomatic 20): PlayerService.bindWebMusicPlaybackOccurrence has cyclomatic complexity 20 (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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ff2dbea578ab2c780008625d0ae424c7b527c0468ec79a5817c2857cb1c374"}},{"ruleId":"D1","level":"warning","message":{"text":"WebKitManager.finalizeLoginCookieBackup (cyclomatic 20): WebKitManager.finalizeLoginCookieBackup has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b0d2d3e717d3d0d2082205b6442ce60b75441748d6d9205815ea0883e272b8"}},{"ruleId":"D1","level":"warning","message":{"text":"AskVideoAuditSafety.safeYouTubeInnerTubePath (cyclomatic 19): AskVideoAuditSafety.safeYouTubeInnerTubePath has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"5211e4820074faafc3f7cafb3135c368eaf37141e283625d0ad97980b8050694"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchAudit.swift.currentBrowseDisposition (cyclomatic 19): SearchAudit.swift.currentBrowseDisposition has cyclomatic complexity 19 (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":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8d5d8b6006d3f6fdba3425b24b4db1f4d3feb5a4012323235539fc07863abf"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchAudit.swift.currentSearchParserCoverage (cyclomatic 19): SearchAudit.swift.currentSearchParserCoverage has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ece8c8b5c1354c42d7ce0c71704a70c148bdad05b4def89f74ab4e39eb27b5"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.probeQueue (cyclomatic 19): main.swift.probeQueue 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"645cb52dd6eb9dbdb96c71c123da20414acb7a9d5a714066e1d51b955ca63d1f"}},{"ruleId":"D1","level":"warning","message":{"text":"SingletonPlayerWebView.loadVideo (cyclomatic 19): SingletonPlayerWebView.loadVideo has cyclomatic complexity 19 (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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"19860fac33b8699ef3749acfd70915781d8fe28a1e07e1609141dcb9f761ec66"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownContentView.blocks (cyclomatic 19): MarkdownContentView.blocks has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Sources/Kaset/Views/WhatsNewView.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"38392211703e6a180c94658ebdf1e9876aadb05b60c6adadb6ea6d985645d72a"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.handleNearEndTrackChangeIfNeeded (cyclomatic 19): PlayerService.handleNearEndTrackChangeIfNeeded 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":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a4188901e2d839533e65b5f7e92a9d9ad778a59cb15e3c927a9253a76eb5e4"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrobblingCoordinator.startMixParse (cyclomatic 19): ScrobblingCoordinator.startMixParse has cyclomatic complexity 19 (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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adcc0646eddc0afc86a460be37e9d97c32a45e0e072e40ce70f20987123dde1"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrobblingCoordinator.handleMixPlayback (cyclomatic 19): ScrobblingCoordinator.handleMixPlayback 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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"209365e1a7e9c93d757d35464341377c8009f931097ce523555f0508683023f3"}},{"ruleId":"D1","level":"warning","message":{"text":"PullToRefreshState.update (cyclomatic 19): PullToRefreshState.update 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":"Sources/Kaset/Views/SharedViews/PullToRefresh.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f8407ec7946e21d3b0b04ebb11bdf9f1d1fa0d67d8153da5a28c158be8a670"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTubeAskMarkdown.blocks (cyclomatic 19): YouTubeAskMarkdown.blocks has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"109abf691646c9376fe3cfe1d757765f953f9302c23d44b5f84d77125b7e157f"}},{"ruleId":"D1","level":"warning","message":{"text":"ArtistParser.parseCarouselItemFromTwoRowRenderer (cyclomatic 19): ArtistParser.parseCarouselItemFromTwoRowRenderer 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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b40fe76f5c8801e74273356aeed9a45214d49e65a943a4c7566711d408b75f3"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsingHelpers.extractArtistsFromFlexColumns (cyclomatic 19): ParsingHelpers.extractArtistsFromFlexColumns has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"b890c0f7908b3513f1e65eb6c2960bef9610dd53aaa0b4f9aae7aa6123b8e2f3"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistParser.extractHeaderSections (cyclomatic 19): PlaylistParser.extractHeaderSections has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"5976c03dc3e69c98b7bebc42114b93836e540b4a1ba41851d34447fab9eab7c5"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchResponseParser.parseItemRenderer (cyclomatic 19): SearchResponseParser.parseItemRenderer 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":"Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"705ee57b56c235ee639bd1e2d14cbb72ab37a6d20041bd5caba690b0fd422514"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchResponseParser.browseKind (cyclomatic 19): SearchResponseParser.browseKind has cyclomatic complexity 19 (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":"Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"908f084a51542926b44d0de163ad71123b01fa4ffa764eaa9bffe5ceeeaea8ed"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTubeAIFrontendFlowDebugAuditor.normalize (cyclomatic 18): YouTubeAIFrontendFlowDebugAuditor.normalize has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: AskFreeTextValidationError.errorDescription (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":3355}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed7d9070e718bc43c526cd4d015ed7a4bf0d59d8c5e57363cd2e19dd1b6f95c"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeSectionItem.hasSameCardContent (cyclomatic 18): HomeSectionItem.hasSameCardContent has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/HomeSection.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"821bc66b9f1cf10d86a909207462f8a7ec11f0539407bce0c5252d82fc2f17b4"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsManager.init (cyclomatic 18): SettingsManager.init has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: ContentLanguage.displayName (cyclomatic 20) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/SettingsManager.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc3f797d45aa61166637d82af7069865c611e082c3f5272d6304e7ed96619c1"}},{"ruleId":"D1","level":"warning","message":{"text":"SingletonPlayerWebView.decideNavigationPolicy (cyclomatic 18): SingletonPlayerWebView.decideNavigationPolicy has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b15971fdc749066c9b184cf789bdbbe46ba33213489b9ca9ffae15d769b3347"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandExecutor.executeMusicIntent (cyclomatic 18): CommandExecutor.executeMusicIntent has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6673772c2dfba43dd4444ba7dffd89bd2678f0ba51481485851ba14ebfb0483"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandIntentParser.fallbackRequest (cyclomatic 18): CommandIntentParser.fallbackRequest has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/CommandIntentParser.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4481af6bc4046c31c44ef955c55f5cbbaccf0a7b97ddc6a16ee9efdd19746fd9"}},{"ruleId":"D1","level":"warning","message":{"text":"EqualizerAudioEngine.performRender (cyclomatic 18): EqualizerAudioEngine.performRender 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":"Sources/Kaset/Services/Audio/EqualizerAudioEngine.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd7d81089424bba669450aaff43691d23bd633fb2b25bba2a3b6fb441b342c4"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.drainRemoteMusicTransportCommands (cyclomatic 18): PlayerService.drainRemoteMusicTransportCommands 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":"Sources/Kaset/Services/Player/MusicPlaybackIntent.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9f2df45a6d6f3c9087786824268cc2f353da91de445022929fc2d0527cc1b0"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.scheduleTerminalRestoredSeekIfNeeded (cyclomatic 18): PlayerService.scheduleTerminalRestoredSeekIfNeeded has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackRestoration.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"5153434fb96b8b411bbb0e9f25da064fa1bc42b51a1ccb5f07685febb10428a8"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.saveQueueForPersistence (cyclomatic 18): PlayerService.saveQueueForPersistence has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b6758d508b8714b09bb8141716e5bd82150f35aa27aec1a633610f3cc384e4"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.reconcileWebPlaybackMetadata (cyclomatic 18): PlayerService.reconcileWebPlaybackMetadata has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BWebPlaybackIdentity.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d256eaf4e96c9a2d0748062facb96de9e65ae2b3b2e39b0222a3a43e26c4f847"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTubePlayerService.followPageDriftIfNeeded (cyclomatic 18): YouTubePlayerService.followPageDriftIfNeeded has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/YouTubePlayerService.swift"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"590ad176bc877f768147eda236994be2d4c8fd074a769a39cca721479172d950"}},{"ruleId":"D1","level":"warning","message":{"text":"CookieBackupStabilizer.persistStableSnapshot (cyclomatic 18): CookieBackupStabilizer.persistStableSnapshot has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0dbe5c7b0c5b539e3c20d436a333effb4f25a91d7e7a44e19702fff0184b834"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeItemShelfDocumentView.scrollWheel (cyclomatic 18): HomeItemShelfDocumentView.scrollWheel has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a41b8af82fd309af370fa9f3a29d129727e73317c9a1960b86e1d3fe10eb5bb"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTubeInlineVideoControlsModifier.body (cyclomatic 18): YouTubeInlineVideoControlsModifier.body has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubePlayerBarPlacement.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c446270f824f6ec0b6ebe610a11edda0fcf060b40ca5b8b58abc3721cfdd69ce"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTubeWatchWebView.commitDocumentNavigation (cyclomatic 18): YouTubeWatchWebView.commitDocumentNavigation has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3ca124ad8a7ca422fb5508dd07e1a11f8c5e26edb2d719b033224f71dcde69"}},{"ruleId":"D1","level":"warning","message":{"text":"LibraryContentParser.parseAlbumRenderers (cyclomatic 18): LibraryContentParser.parseAlbumRenderers has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"b376a0a361c16356a96ef89037a74dd64563da2897df294ad0f9ff1b3b6e4550"}},{"ruleId":"D1","level":"warning","message":{"text":"PodcastParser.parseMultiRowListItem (cyclomatic 18): PodcastParser.parseMultiRowListItem has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"55dc9552d08b1edd68b042656087052918b02893cf138f830ec9b5d7bba91df1"}},{"ruleId":"D1","level":"warning","message":{"text":"SongMetadataParser.extractPanelVideoRenderer (cyclomatic 18): SongMetadataParser.extractPanelVideoRenderer has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6e429d840c33b673bf5aee0006b6ccde270a6465f7b4e6f23d4331e72cd0b5"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTubeMainAppScriptExtractor.extract (cyclomatic 17): YouTubeMainAppScriptExtractor.extract has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: AskFreeTextValidationError.errorDescription (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":3109}}}],"partialFingerprints":{"codehealthFindingId/v1":"49923f82079e11962b8a8502dd54c391ae887d654238c54eeebf836d368c951e"}},{"ruleId":"D1","level":"warning","message":{"text":"AskVideoAudit.swift.askPanelSuggestions (cyclomatic 17): AskVideoAudit.swift.askPanelSuggestions has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 2 function items inside it that branch (collectSuggestions, walk). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: AskFreeTextValidationError.errorDescription (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b551bd66c75d9a6946e59bbb8e5375262e5084c9eb6c93a47001e1658d8532"}},{"ruleId":"D1","level":"warning","message":{"text":"AskVideoAudit.swift.liveTestAskVideoFreeText (cyclomatic 17): AskVideoAudit.swift.liveTestAskVideoFreeText has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file\u0027s highest cyclomatic complexity: AskFreeTextValidationError.errorDescription (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":1740}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6176cf85023d23ba174d447f3db5f64426a5b6281057cc1f67341820ac88383"}},{"ruleId":"D1","level":"warning","message":{"text":"AskVideoAudit.swift.liveTestAskVideo (cyclomatic 17): AskVideoAudit.swift.liveTestAskVideo 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. This is NOT this file\u0027s highest cyclomatic complexity: AskFreeTextValidationError.errorDescription (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9355b8df8f43f2cc666dc34f119a4adcc001e46fd29942f274e9a819e9bba1"}},{"ruleId":"D1","level":"warning","message":{"text":"URLHandler.parseYouTubeMusicURL (cyclomatic 17): URLHandler.parseYouTubeMusicURL 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":"Sources/Kaset/Services/URLHandler.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74d6aa8a48e0afbafbc1d95a39d5ee3a4ecd061b78f573a323c98f2dec7a393"}},{"ruleId":"D1","level":"warning","message":{"text":"LoginSheet.body (cyclomatic 17): LoginSheet.body 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":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"773531aa509adffaa7a8fe48be53d8e4002bd4fc4cdc4df88ac5d243c98360ea"}},{"ruleId":"D1","level":"warning","message":{"text":"LoginSheet.checkForSuccessfulLoginAsync (cyclomatic 17): LoginSheet.checkForSuccessfulLoginAsync 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":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"c592b6d92f25b3d4b83d1da3b173f6689a8ee1aa52cf50650ce5c367bd73e066"}},{"ruleId":"D1","level":"warning","message":{"text":"MainWindow.handleAuthStateChange (cyclomatic 17): MainWindow.handleAuthStateChange 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":"Sources/Kaset/Views/MainWindow.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f716dbd4dac76267da1b1190d8fae48e5bb0b5df35bfcbdabc83ddcaeb70cc1"}},{"ruleId":"D1","level":"warning","message":{"text":"SingletonPlayerWebView.recoverFromContentProcessTermination (cyclomatic 17): SingletonPlayerWebView.recoverFromContentProcessTermination 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcd119795724ebaa20692acf6597d051f3fabad39415e4171708826660da3e9"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaybackBridgeMultiplexer.userContentController (cyclomatic 17): PlaybackBridgeMultiplexer.userContentController has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8d66a108d01a66bf5c0e2d834865fafa671c2050b27a1d6f37d202d1780a96"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandExecutor.execute (cyclomatic 17): CommandExecutor.execute 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":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7024f5e89ba4e77b4d138c7f0de4158ed9eee539d3dffa4a9031dd298b8d3e"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandExecutor.queueContent (cyclomatic 17): CommandExecutor.queueContent 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":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"931e9179492ea5b6cf558a94e1bfe1eefd52195ee796bfc1bfd24cdcf6391909"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentSourceResolver.buildSearchQuery (cyclomatic 17): ContentSourceResolver.buildSearchQuery has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0240fcf9eef4f36021929e5e23ffb4f0d27adb7e0119c6a3b372a7dc20f294c"}},{"ruleId":"D1","level":"warning","message":{"text":"AuthService.transitionToResolvedState (cyclomatic 17): AuthService.transitionToResolvedState 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":"Sources/Kaset/Services/Auth/AuthService.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aab5daabfd2d1a5831d8754fee6fc2e4f7a594d5af3b7817b463461a22c43cf"}},{"ruleId":"D1","level":"warning","message":{"text":"LibraryMutationActions.deletePlaylist (cyclomatic 17): LibraryMutationActions.deletePlaylist 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":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c91579e77a7ec69ada9974d21416b4baa35cd0def256959121d80df92c005d"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.setLibraryStatus (cyclomatic 17): PlayerService.setLibraryStatus 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":"Sources/Kaset/Services/Player/PlayerService\u002BLibrary.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"276323553366664eb9339b99f5f96d216b4a6aceccb81db09ab92d4f6092a17a"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.performSmartShuffleFill (cyclomatic 17): PlayerService.performSmartShuffleFill 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":"Sources/Kaset/Services/Player/PlayerService\u002BSmartShuffle.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb21db2a88a70d1ed0e71fa7d99fe26560998f6526f18f97c55ce1b517ea39d"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.handleUnexpectedQueueDriftIfNeeded (cyclomatic 17): PlayerService.handleUnexpectedQueueDriftIfNeeded 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":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8211e96d26ef68a72ad950a40307cdcab0ea43204bde3591fbc2a13d84f60d"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrobblingCoordinator.consumeProvisionalPlayback (cyclomatic 17): ScrobblingCoordinator.consumeProvisionalPlayback 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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BProvisionalMix.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58658306a0737b44d85c28034f3d276cb7f152d7b4fd4faf0acb9a0c95689ba"}},{"ruleId":"D1","level":"warning","message":{"text":"WebKitManager.commitLoginCookieBackup (cyclomatic 17): WebKitManager.commitLoginCookieBackup has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e813ab993cf1486fd4759fdd764825a3d3bcd7ba225a5fc54b6b385b066a6a"}},{"ruleId":"D1","level":"warning","message":{"text":"WebKitManager.restoreAuthCookiesFromBackup (cyclomatic 17): WebKitManager.restoreAuthCookiesFromBackup 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":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieRestore.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"589e188253359d74037c88a1fad809ec2e0818593be068926330566b11cd5e4e"}},{"ruleId":"D1","level":"warning","message":{"text":"StoryboardSheet.init (cyclomatic 17): StoryboardSheet.init has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/AmbientVideoBackdrop.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e62354ad23d2c18aa0c2a64ec1e605389ea236d06aead03f067a85c4d006da8"}},{"ruleId":"D1","level":"warning","message":{"text":"LRCParser.parse (cyclomatic 17): LRCParser.parse 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":"Sources/Kaset/Services/API/Parsers/LRCParser.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5134b3719c86ed20072a787c68ff41ba900c5b590d9b89369c319b363fe25608"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsingHelpers.extractAlbumFromFlexColumns (cyclomatic 17): ParsingHelpers.extractAlbumFromFlexColumns has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4792c3117bb428135da29262dca79f2b0dd290c01ee301ce3dccf3acda3fb3"}},{"ruleId":"D1","level":"warning","message":{"text":"RadioQueueParser.parse (cyclomatic 17): RadioQueueParser.parse has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a07e8aca70073704b089ef7cd2d33be8bfc4215a89f8e39b6b4b7be29d56fa"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTubeAskVisibleTextSanitizer.isLikelyOpaqueIdentifier (cyclomatic 17): YouTubeAskVisibleTextSanitizer.isLikelyOpaqueIdentifier has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/YouTubeAskCore/YouTubeAskVisibleTextSanitizer.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f0f7dd81a4172aca2319e32a8948a830296204865808904656a8286609a404"}},{"ruleId":"D1","level":"warning","message":{"text":"WireResponseAuditor.summary (cyclomatic 16): WireResponseAuditor.summary 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. This is NOT this file\u0027s highest cyclomatic complexity: AskFreeTextValidationError.errorDescription (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2727}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06238e4dce5af6ea020cd166b26f3b20d20c1070bfe8582b37d475b35295013"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchAudit.swift.boundedSearchAuditRenderers (cyclomatic 16): SearchAudit.swift.boundedSearchAuditRenderers has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a139219310391509aa6fca534b9cb32e0cf7d944ec7f8eab49c1d11c0ff12e"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.playlistNavigationSummary::visit (cyclomatic 16): main.swift.playlistNavigationSummary::visit has cyclomatic complexity 16 (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":"Sources/APIExplorer/main.swift"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbbbd520f9f6bba7ef69c696e0831541502ed91f017089c9b48c67f0c2198d5"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.exploreAction (cyclomatic 16): main.swift.exploreAction 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":2176}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8bb67d9df4ae6a8e368d7ad368f8a5f291ddf6a9ca87e17597894671285760"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandBarViewModel.describeQueue (cyclomatic 16): CommandBarViewModel.describeQueue has cyclomatic complexity 16 (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":"Sources/Kaset/ViewModels/CommandBarViewModel.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c0c6e3bbbc3dc751ed76626e4b4e20b86f269c96a464d5e3de34f649391f4c"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryViewModel.performLoadMore (cyclomatic 16): HistoryViewModel.performLoadMore 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":"Sources/Kaset/ViewModels/HistoryViewModel.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc74dbdf8dea8bba3081e4a7311b591bf174b3331f5c51fceca8084f95f578e"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistDetailViewModel.performLoadMoreBatch (cyclomatic 16): PlaylistDetailViewModel.performLoadMoreBatch 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":"Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe72e1baa851111ca4dd4cb9676af65f1a36b03c4b24146f9b1de4388d5ba14"}},{"ruleId":"D1","level":"warning","message":{"text":"LoginSheet.retryLoginRecovery (cyclomatic 16): LoginSheet.retryLoginRecovery 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":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f38b1629e8e0557313f56b81805416be8066ba1a8e42285e143f3cf15f2889"}},{"ruleId":"D1","level":"warning","message":{"text":"WebPlaybackIdentityTransition.isValidTrackEndedIdentityDeadlinePayload (cyclomatic 16): WebPlaybackIdentityTransition.isValidTrackEndedIdentityDeadlinePayload 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bf03c174e5ebd265f73e10feb8b5bc70ef1c3313c967436a3f6721c3ebbf13"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountService.resolveFavoritesOwnerID (cyclomatic 16): AccountService.resolveFavoritesOwnerID 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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c16d15b297f9b983f3dccf664f8b64b6ce1959c5b9e79dadcccb2033ae1bc3"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountService.rollbackSessionAfterFailedSwitch (cyclomatic 16): AccountService.rollbackSessionAfterFailedSwitch 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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"5044434eae93fbbc8d2ec9f156212a2cbb49d2aa858f78c2ce63f626091e74f4"}},{"ruleId":"D1","level":"warning","message":{"text":"NowPlayingTracklistProvider.update (cyclomatic 16): NowPlayingTracklistProvider.update 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":"Sources/Kaset/Services/Player/NowPlayingTracklistProvider.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcdedabbcd255e2954dce6f19a43ae03f109bcd4bfad3779a024a3c23e6ad84"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.init (cyclomatic 16): PlayerService.init 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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9b03da0f92c4c0cb1023300bf9c1c6de19051cff9ec16413b4d57d89a3cadc"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.claimTerminalMusicPlaybackOccurrence (cyclomatic 16): PlayerService.claimTerminalMusicPlaybackOccurrence 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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9cd8b492281525c219c35ef960c6d0eff449d32d028bad84f82ca1ff27924e"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerService.handleTrackEnded (cyclomatic 16): PlayerService.handleTrackEnded 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":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"d379f0aa13cf71c418e51577ef08fbaa8ef0c51fe359d7d6b6f2cc90abeabd5d"}},{"ruleId":"D1","level":"warning","message":{"text":"MixTracklistParser.timeInterval (cyclomatic 16): MixTracklistParser.timeInterval 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":"Sources/Kaset/Services/Scrobbling/MixTracklistParser.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"88628b1b5f879a3c9485f934b212b4ba551dbd5e85db8ccb44c8405fac879bb3"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrobblingCoordinator.finalizeCurrentTrack (cyclomatic 16): ScrobblingCoordinator.finalizeCurrentTrack 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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd4060f63f149710d3fd345fa82402dab934aa794c8607a2e4dc7902b6b62e8"}},{"ruleId":"D1","level":"warning","message":{"text":"AccountsListParser.parse (cyclomatic 16): AccountsListParser.parse 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":"Sources/Kaset/Services/API/Parsers/AccountsListParser.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0577527823006c921930a3ec0907c2fab02b4efe447f6c87d568e601bff2c762"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeResponseParser.parseNavigationButton (cyclomatic 16): HomeResponseParser.parseNavigationButton 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":"Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7e55c3949a7d7717d2a1aab1c0634b6165fddea376e1f4c8a52a6390e0a462"}},{"ruleId":"D1","level":"warning","message":{"text":"LibraryContentParser.parseLibraryAlbumsContinuation (cyclomatic 16): LibraryContentParser.parseLibraryAlbumsContinuation 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":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d38cf78da1041b6bfaa26f0e46605f212eafd0d34d3850f062561f50ccad7b"}},{"ruleId":"D1","level":"warning","message":{"text":"LibraryContentParser.nextPage (cyclomatic 16): LibraryContentParser.nextPage 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":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d2271fbd5444e9e10dd5bf5c0ae17ad3f934bc05864b2302d80823fbf32ebb"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsingHelpers.extractArtists (cyclomatic 16): ParsingHelpers.extractArtists 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":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb027bbaade4bca8cf2425b070ee666f0472600debdb1d36389a8795b6c4fb29"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.runMain (cognitive 186): main.swift.runMain has cognitive complexity 186 (threshold 15). Drivers by points: if/else 48 (105 pts), boolean chains 43, ternaries 11 (26 pts), error handling 4 (8 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 77). 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":4072}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07b9ef52f3a810bf68bce7e3a4f70c4d4c8666d20c9dd855b014d13fe8767fd"}},{"ruleId":"D2","level":"warning","message":{"text":"PodcastParser.parseShowDetail (cognitive 107): PodcastParser.parseShowDetail has cognitive complexity 107 (threshold 15). Drivers by points: if/else 15 (55 pts), boolean chains 29, loops 6 (23 pts) (nesting depth added 57). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d27f9a68d03f0cd2ffd9df69ea4587b6299f3e3929c20ccd853c7db94de959"}},{"ruleId":"D2","level":"warning","message":{"text":"AskVideoAudit.swift.auditAskVideo (cognitive 100): AskVideoAudit.swift.auditAskVideo has cognitive complexity 100 (threshold 15). Drivers by points: if/else 24 (52 pts), loops 4 (20 pts), boolean chains 13, ternaries 3 (8 pts), error handling 3 (7 pts) (nesting depth added 53). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe13fdb1b87fc339f442be85dd6798fb7059cdefc1b01e455a54a9e56e2ffef"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountService.switchAccount (cognitive 90): AccountService.switchAccount has cognitive complexity 90 (threshold 15). Drivers by points: if/else 35 (54 pts), boolean chains 35, error handling 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ad8911d5d2aaab7a1cbde6245b7674a2d07cc3cf49956a9c9e1b4d4acd0078"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtistParser.parseArtistDetail (cognitive 89): ArtistParser.parseArtistDetail has cognitive complexity 89 (threshold 15). Drivers by points: if/else 16 (62 pts), boolean chains 16, loops 2 (6 pts), match/switch 1 (5 pts) (nesting depth added 54). 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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"566d3d00c382b5a4262a7e7ddfe03664e4b3340196c1f20b428ac625e800da6d"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.discoverBrandAccounts (cognitive 82): main.swift.discoverBrandAccounts has cognitive complexity 82 (threshold 15). Drivers by points: if/else 15 (41 pts), boolean chains 26, loops 3 (8 pts), ternaries 2 (6 pts), error handling 1 (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3546}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e15161d1544f944c7e8d6c3de17ce73c37f863f29d84eb404b2a7081f89e3e"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.analyzeResponse (cognitive 80): main.swift.analyzeResponse has cognitive complexity 80 (threshold 15). Drivers by points: if/else 15 (52 pts), loops 4 (20 pts), boolean chains 8 (nesting depth added 53). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"9184937592d6090f64b1dc792829da5f0a455b96bfe30a6f481c89031c32ced0"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryAudit.walk (cognitive 79): DiscoveryAudit.walk has cognitive complexity 79 (threshold 15). Drivers by points: if/else 21 (56 pts), boolean chains 19, loops 2 (4 pts) (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"93126bc8c541aa47f4c45333641f84bd1ebeabefad1d3de73fb96f20824e67c3"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.exploreContinuation (cognitive 77): main.swift.exploreContinuation has cognitive complexity 77 (threshold 15). Drivers by points: if/else 16 (54 pts), loops 3 (14 pts), boolean chains 6, ternaries 1 (2 pts), error handling 1 (nesting depth added 50). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":2857}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89c7c613398130894f7fe1fa65b042295e47cc30115131029b990134b4b05db"}},{"ruleId":"D2","level":"warning","message":{"text":"AskVideoResponseAuditor.walk (cognitive 67): AskVideoResponseAuditor.walk has cognitive complexity 67 (threshold 15). Drivers by points: if/else 18 (51 pts), boolean chains 12, loops 2 (4 pts) (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2553}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fdf6c0eb16c48b27d85a83f3ad82d6d82a44d961df4c826c8a04f8c9f4c9fc"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.finishTrackEnded (cognitive 64): PlayerService.finishTrackEnded has cognitive complexity 64 (threshold 15). Drivers by points: if/else 29 (47 pts), boolean chains 16, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"8307ac3f66fbd5ed9b1701d6858bc175fc83a019795cac6e2fd8bfbda4044f58"}},{"ruleId":"D2","level":"warning","message":{"text":"Coordinator.processStateUpdate (cognitive 62): Coordinator.processStateUpdate has cognitive complexity 62 (threshold 15). Drivers by points: if/else 26 (33 pts), boolean chains 29 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView\u002BCoordinator.swift"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cb0653c0067cd2663b98fdbbea291cf4dc41d026a127f874beffe14cee369b"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryAudit.swift.discoverAPI (cognitive 59): DiscoveryAudit.swift.discoverAPI has cognitive complexity 59 (threshold 15). Drivers by points: ternaries 9 (23 pts), if/else 9 (21 pts), boolean chains 8, error handling 4 (5 pts), loops 1 (2 pts) (nesting depth added 28). 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":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"e773b810554e84ed132ec2c4b05dc280b8238ab9d58cbaa44a90d0afad5238b4"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.performNextNavigation (cognitive 59): PlayerService.performNextNavigation has cognitive complexity 59 (threshold 15). Drivers by points: if/else 24 (45 pts), boolean chains 14 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd293f2a1393f474641814e62c95c091b1d2b6ff009dc37c562c9fe948a75520"}},{"ruleId":"D2","level":"warning","message":{"text":"ProvisionalMixPlaybackHistory.credits (cognitive 59): ProvisionalMixPlaybackHistory.credits has cognitive complexity 59 (threshold 15). Drivers by points: if/else 14 (43 pts), ternaries 3 (7 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 34). 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":"Sources/Kaset/Services/Scrobbling/ProvisionalMixPlaybackHistory.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a412153ba94a913c2738afbc03735064f87d6012d354745d20f150e713a87bd8"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountService.scheduleRestoredSessionPin (cognitive 54): AccountService.scheduleRestoredSessionPin has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 28, if/else 16 (24 pts), error handling 2 (nesting depth added 8). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"19862bf56b7c00ca070b3d3646a81b87932547fa5e057be869f6046e1f0c7f04"}},{"ruleId":"D2","level":"warning","message":{"text":"fetch (cognitive 54): fetch has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (35 pts), boolean chains 11, error handling 3 (6 pts), loops 1 (2 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":"worker/src/index.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46bf00ac20f0dd30d04fee5e0c072b2a0a44e8e21a5d2694afdf602be1ba761"}},{"ruleId":"D2","level":"warning","message":{"text":"KasetApp.body (cognitive 53): KasetApp.body has cognitive complexity 53 (threshold 15). Drivers by points: if/else 29 (38 pts), boolean chains 7, ternaries 6, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/KasetApp.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3eaee0be431a327f740f145591ac6c0b0d41df1dc26e418342dcf0380dcb2f"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.fetchAndApplyRadioQueue (cognitive 49): PlayerService.fetchAndApplyRadioQueue has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 8, ternaries 1 (3 pts), error handling 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e5af89e76f30f3eafb962f79d31588ae0cbd61529eed356c9cce3280304e00"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAIFrontendFlowDebugAuditor.normalize (cognitive 42): YouTubeAIFrontendFlowDebugAuditor.normalize has cognitive complexity 42 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 4 (10 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 25). 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":3355}}}],"partialFingerprints":{"codehealthFindingId/v1":"96711b50f5fc94b1846e3a9843ad66b8732290a6535fb14499313ab9d742da03"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.fetchAccountInfo (cognitive 42): main.swift.fetchAccountInfo has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 14, error handling 3, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3080}}}],"partialFingerprints":{"codehealthFindingId/v1":"964bad85660fc37f981883e294c601d4f7cb59741b1a9caba5b9290b1a6af9ff"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryRequest.init (cognitive 41): DiscoveryRequest.init has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 18, match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f03becaab2e11e974a58a9d15fd54a3cafe80b3974140c199182557a6918f17"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandExecutor.queueContent (cognitive 41): CommandExecutor.queueContent has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (32 pts), ternaries 2 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 27). 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":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"715ce40719e104086ca7bab11c689e2c34a528f11bd1e900e88a3a55fb279145"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.fetchSongMetadata (cognitive 41): PlayerService.fetchSongMetadata has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (23 pts), ternaries 4 (12 pts), boolean chains 4, error handling 1, match/switch 1 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BLibrary.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56d211355025cb87982e9ed81eeb54b16dc14c1b1f8a066c2ce132bf036f0d6"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistParser.parsePlaylistTracks (cognitive 41): PlaylistParser.parsePlaylistTracks has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 15, loops 1 (3 pts) (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"53824e0a4ba5db1f4e7dbe6b4e8804b808cce5bd94e65ed9e74db27289b78162"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskWireDecoder.parseLengthPrefixedJSON (cognitive 41): YouTubeAskWireDecoder.parseLengthPrefixedJSON has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 3 (5 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/YouTubeAskCore/YouTubeAskWireDecoder.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec35b17b763f4067c7d3d649b8b946c1b0facf18fbeae5d4de62a4d227de0d21"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.previous (cognitive 39): PlayerService.previous has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (28 pts), ternaries 2 (6 pts), boolean chains 5 (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":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa801cb7525a5f973da2afb1c6869fa362d20331e14f7c39575fe8de31e62ab6"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountService.fetchAccounts (cognitive 38): AccountService.fetchAccounts has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 17, error handling 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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b25f0889b87603ae0ce169731e8dc3b0cdf309d8e02d21fda8887d99eecd07"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.applyRemoteMusicRelativeSeek (cognitive 38): PlayerService.applyRemoteMusicRelativeSeek has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 19, if/else 11, ternaries 4 (8 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/MusicPlaybackIntent.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e45660c06301ead500f63055ce387e3dbf411f3d9b5b45b219cda9786f8d65"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.resume (cognitive 38): PlayerService.resume has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (29 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffa05d0182384076956ab2f030b60af96affcffd4fcce40735c97711a06a8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskMarkdown.blocks (cognitive 38): YouTubeAskMarkdown.blocks has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 5 (13 pts), boolean chains 3 (nesting depth added 20). Of this number, 37 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"886244744a15b63a81e3945af8051d8f304123a139d9aacec33f0d71a7b5a2ab"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingHelpers.extractDurationFromFlexColumns (cognitive 38): ParsingHelpers.extractDurationFromFlexColumns has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 14, loops 3 (8 pts) (nesting depth added 14). 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":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"9171ff4791d67efaf0a681a6a90bdc084e5988d77105671bf340a6d05b302e10"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.play (cognitive 36): PlayerService.play has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 13, ternaries 3 (5 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":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94db30a9bb2c24bed69a569c0d81f01743174b401c675dd54cecd422adb549f"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrobblingCoordinator.pollPlayerState (cognitive 36): ScrobblingCoordinator.pollPlayerState has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 12, match/switch 2 (5 pts), ternaries 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"b453ff672a7ff6f9001eb14d2f3d5849e0f4b182ec6e7e3a8ad37e7c140b9293"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.probeYtcfg (cognitive 35): main.swift.probeYtcfg has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 4 (10 pts), loops 2 (5 pts), boolean chains 4, error handling 1 (nesting depth added 14). Of this number, 24 points are the body\u0027s own statements and 11 belong to one function item inside it that branches. 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":3438}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b71c2ad84587e6f3e48ea30b319ae11264c8a387963d5040c67af42c145fa20"}},{"ruleId":"D2","level":"warning","message":{"text":"WireResponseAuditor.parseLengthPrefixedJSON (cognitive 34): WireResponseAuditor.parseLengthPrefixedJSON has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 5, loops 3 (5 pts), ternaries 1 (nesting depth added 14). 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"f449a37796851a1fe1f087b381207a91e9655a7df9776d65d30dc506e86e213f"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.collectLibraryFeedbackProbeItems (cognitive 34): main.swift.collectLibraryFeedbackProbeItems has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde10b6eb4e063343323c8412f0809343d13c0be3b9920e41c91b6a79a54c2c1"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicDiscoveryTaxonomy.activityEvidencePhrases (cognitive 34): MusicDiscoveryTaxonomy.activityEvidencePhrases has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 6, loops 3 (4 pts) (nesting depth added 15). Of this number, 33 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Sources/Kaset/Services/AI/MusicDiscoveryTaxonomy.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faaec0afdbf72ebad1dde6b27ef684bd67d296c470bc1ebd698524d78c5c198"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtistParser.parseSubscriptionButton (cognitive 34): ArtistParser.parseSubscriptionButton has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 11, 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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a6017aad46e579c2835556952384e8a85c9f3433f63237a0f4b07980ce3d3a0"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistPlaybackActions.playPlaylist (cognitive 33): PlaylistPlaybackActions.playPlaylist has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (28 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlaylistPlaybackActions.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"efde59d301c3519c0f3b1cd427061da69a45995e0e181c1b4f0af14b060de877"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryViewModel.performLoadMore (cognitive 32): HistoryViewModel.performLoadMore has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (26 pts), boolean chains 2, error handling 2, loops 1 (2 pts) (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":"Sources/Kaset/ViewModels/HistoryViewModel.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb71051f333d03ac3074e88f2b296dd5c4af23df05cac2c33b84e68e0ccb9a4d"}},{"ruleId":"D2","level":"warning","message":{"text":"CookieBackupStabilizer.persistStableSnapshot (cognitive 32): CookieBackupStabilizer.persistStableSnapshot has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 3 (9 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01490dd8b0c2867d035fb5227bb805ca4fbf54eb1f802565f8382d52892c4b1"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountsListParser.parse (cognitive 32): AccountsListParser.parse has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 3 (9 pts), boolean chains 6 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/AccountsListParser.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2fcb0d53b613abe5c74a431dbed07e1285ff26cb7c4d5d903e5d4ccf954596"}},{"ruleId":"D2","level":"warning","message":{"text":"LRCParser.parse (cognitive 32): LRCParser.parse has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LRCParser.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"027e06a3b7396b2eb2d9533a188722ba6a285094ac8b3257f5ad6c140769c72b"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingHelpers.extractLastThumbnailURLString (cognitive 32): ParsingHelpers.extractLastThumbnailURLString has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 18, if/else 9 (14 pts) (nesting depth added 5). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacd358379115145940277821c5751475e0536018694df67311ef33990077f7e"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.probeQueue (cognitive 31): main.swift.probeQueue has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 6 (12 pts), boolean chains 5, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc656a9f070458273d65ee5c3fa33c173ae70bc02312793748063109a981f72"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownContentView.blocks (cognitive 31): MarkdownContentView.blocks has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 4 (10 pts), boolean chains 2 (nesting depth added 12). Of this number, 30 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Sources/Kaset/Views/WhatsNewView.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b3cb02d84190ce1e55e57e40094077c872f894dde75dec79465aa3e1e88ca3"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.fetchMoreMixSongsIfNeeded (cognitive 31): PlayerService.fetchMoreMixSongsIfNeeded has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 19, if/else 7 (11 pts), error handling 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6546ad495626b920cb89ffeaa7b0e7f0a9e84d50826b7b035aae740e3daae0"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentSourceResolver.groundedIntent (cognitive 30): ContentSourceResolver.groundedIntent has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 8 (10 pts), ternaries 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45409872fdb34f05ba897758194581272310d285e2c0557b77013467d7757ff"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginSheet.prepareLoginAttempt (cognitive 29): LoginSheet.prepareLoginAttempt has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 13 (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":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d064d03f864678361ec1abf4b45a8b91bf13da573febf6a6dd649f1e544ace4"}},{"ruleId":"D2","level":"warning","message":{"text":"MainWindow.viewForNavigationItem (cognitive 29): MainWindow.viewForNavigationItem has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 1, match/switch 1 (nesting depth added 12). 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":"Sources/Kaset/Views/MainWindow.swift"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c1c638443578e720c1f5f04761ab38c043ccd2dcff60d91c3053fa0e6f721c"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentSourceResolver.suggestedContentSource (cognitive 29): ContentSourceResolver.suggestedContentSource has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 14, if/else 13, ternaries 1 (2 pts) (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":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bd21900c3d7e1847970576e1d8d244a6a0be426a9a07ebe798c098ee9165af"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrobblingCoordinator.consumeProvisionalPlayback (cognitive 29): ScrobblingCoordinator.consumeProvisionalPlayback has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BProvisionalMix.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2281edd78f194a7f469533b7254171ea9414c809ee1cb075d9136513bbad5b74"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtistParser.parseArtistSongs (cognitive 29): ArtistParser.parseArtistSongs has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 17, if/else 4 (8 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30571bd8d3f648656da95c1bcf4b56db15a0f3162bba530bcef44287fbbbed2"}},{"ruleId":"D2","level":"warning","message":{"text":"WireResponseAuditor.collectRenderers (cognitive 28): WireResponseAuditor.collectRenderers has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2981}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf3164013858b435059556e00b6374680371862452d92b510f80034a7c8c090"}},{"ruleId":"D2","level":"warning","message":{"text":"SingletonPlayerWebView.commitDocumentNavigation (cognitive 28): SingletonPlayerWebView.commitDocumentNavigation has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 5 (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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade9af6c7911262d9848033f5f70337ba885f626108e8056ed8b6c86840d67f0"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMusicClient.fetchLibraryAlbums (cognitive 28): YTMusicClient.fetchLibraryAlbums has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (16 pts), error handling 4 (8 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c5416e582c8e75862dd1486d1c09774b0b49217a43c4601c97cbd6d65f455b"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountService.handleRestoredSessionPinFailure (cognitive 28): AccountService.handleRestoredSessionPinFailure has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 19, if/else 6, error handling 1 (2 pts), ternaries 1 (nesting depth added 1). 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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9568e1cf31525ae7c884b12270e6ceb184e5efc02466997d230f10613fb46c"}},{"ruleId":"D2","level":"warning","message":{"text":"NowPlayingManager.handleCapturedRemoteMusicCommand (cognitive 28): NowPlayingManager.handleCapturedRemoteMusicCommand has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, ternaries 1 (3 pts), 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":"Sources/Kaset/Services/Player/NowPlayingManager.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88e9a6a4734784e1066137cb38e8c51e1b147b3ec43dd824d978a238e0d65f1"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrobblingCoordinator.handleMixPlayback (cognitive 28): ScrobblingCoordinator.handleMixPlayback has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 8 (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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"7736c82db562fa5478dda22299d8a81ce74d44442650037c34e9eaf4798e8e6b"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryMutationActions.deletePlaylist (cognitive 27): LibraryMutationActions.deletePlaylist has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 2, error handling 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":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acc3637d7e74316c2f272b3277d25b06add6c10b6541af7a15bd43c0a9ddab3"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.saveQueueForPersistence (cognitive 27): PlayerService.saveQueueForPersistence has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 5 (10 pts), boolean chains 2, 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":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8b63c786af5e0d19c3ad7c221006aad631fb3fe32e6f328d0f2895888c65ac"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.enrichQueueMetadata (cognitive 27): PlayerService.enrichQueueMetadata has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BQueueEnrichment.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abf63a40bae8741dddf9f17fbe423e852aa8d301efc214e73ef2981b20f26d1"}},{"ruleId":"D2","level":"warning","message":{"text":"LastFMService.pollForSession (cognitive 27): LastFMService.pollForSession has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (18 pts), boolean chains 4, error handling 2 (4 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/LastFMService.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"8321237787bc2e497825b49a869c74cfe6edfbf039da796f40bfb02b73893318"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchAudit.swift.currentSearchParserCoverage (cognitive 26): SearchAudit.swift.currentSearchParserCoverage has cognitive complexity 26 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 8 (10 pts), boolean chains 4 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c6738e718ba075cfa2573caa0f04f15307084fbbbf634868fe612b8114ab4d"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.probeSigninSwitchReal (cognitive 26): main.swift.probeSigninSwitchReal has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (17 pts), ternaries 2 (4 pts), boolean chains 2, error handling 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3289}}}],"partialFingerprints":{"codehealthFindingId/v1":"198cd09e272b5ded7f3ace1c1fcaed426df48b6038d1084bff02e9591a4edd21"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.extractBrandSigninURL::walk (cognitive 26): main.swift.extractBrandSigninURL::walk has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 3 (7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3397}}}],"partialFingerprints":{"codehealthFindingId/v1":"252f47ed78281b2f50db6529b129f120eea26d08775443a03b0e06507e35babb"}},{"ruleId":"D2","level":"warning","message":{"text":"URLHandler.parseYouTubeMusicURL (cognitive 26): URLHandler.parseYouTubeMusicURL has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 5 (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":"Sources/Kaset/Services/URLHandler.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"168e5d6df3f088f9238e10919c329083ae808c8d7fe8ac178fb2633a13ead661"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrobblingCoordinator.resolveMixDetection (cognitive 26): ScrobblingCoordinator.resolveMixDetection has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 6, ternaries 1 (2 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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"036fc7ecb094eaf359a796f12353f6acb8727197a30a92bd4b5d6d5c0bdeb22f"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeWatchWebView.commitDocumentNavigation (cognitive 26): YouTubeWatchWebView.commitDocumentNavigation has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4 (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":"Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec28439802975add9ccd05e1882b1838e05a501fb9b93a4c916c3fc4907d0b1a"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingHelpers.extractThumbnails (cognitive 26): ParsingHelpers.extractThumbnails has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 10 (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":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"964a45cf0aa4baa54349a9c66f68d72efd1f350e5c857b042edcefd17488d356"}},{"ruleId":"D2","level":"warning","message":{"text":"DraggableTableView.handleSwipeEnded (cognitive 25): DraggableTableView.handleSwipeEnded has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/QueueSidePanelView.swift"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"426dec8288adba78e93ce7bc62a8fac03318f7fd150364e452b06c13c6e84028"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandExecutor.queueSearchResult (cognitive 25): CommandExecutor.queueSearchResult has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (24 pts), error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b51b8460c708bfee3db13e0ae4626b1581efbce20a00600f4119b5cd3f8918a"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentSourceResolver.liveVersionHasQualifierContext (cognitive 25): ContentSourceResolver.liveVersionHasQualifierContext has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a57c77d1409333dc8ea3f6507673b8581a57d7094a5a5fd4e66ba3f0513a3e4"}},{"ruleId":"D2","level":"warning","message":{"text":"EqualizerAudioEngine.performRender (cognitive 25): EqualizerAudioEngine.performRender has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 5 (9 pts), boolean chains 6 (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":"Sources/Kaset/Services/Audio/EqualizerAudioEngine.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3187b508130c0f49b99e59ab885703ad54cf2edd4a4380fa69fb877d81e67c7"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.setLibraryStatus (cognitive 25): PlayerService.setLibraryStatus has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 6, ternaries 1 (2 pts), error handling 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":"Sources/Kaset/Services/Player/PlayerService\u002BLibrary.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf28e0b9f3b7f683b267c877941013b2c19aaca496eb37efe3db7576b7f9f05"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.performSmartShuffleFill (cognitive 25): PlayerService.performSmartShuffleFill has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 6, error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BSmartShuffle.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b686a96fbacbe984b283baf698b72090b85affe83e602eaaa4eccc8bff2825c"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrobblingCoordinator.deferPendingRegularTrackFinalizationIfNeeded (cognitive 25): ScrobblingCoordinator.deferPendingRegularTrackFinalizationIfNeeded has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, loops 2 (4 pts), match/switch 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BDeferredFinalization.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f29b2dd43ba760756f7da7efa96b6fbf8ffc35d78daf302171fc2ca4c586c90"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeHomeViewModel.performLoad (cognitive 25): YouTubeHomeViewModel.performLoad has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 2, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeHomeViewModel.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ecc80b2ce2cf3a837ac25f84edc048d4431f13ae7f9d19c20dd6531f081885"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseString (cognitive 25): Parser.parseString has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (5 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/YouTubeAskCore/YouTubeAskJSONDuplicateKeyValidator.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c410be58b03d06f43e7bf7f4dbf4fbd7f8ade0c3d7b3801d8a7225dbc49cfa73"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.exploreAction (cognitive 24): main.swift.exploreAction has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 3 (5 pts), boolean chains 4, 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":2176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00ce7174f2312c74a53858fce0da85d1dc73d3ea42a0641df546dbd8c320308"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsManager.init (cognitive 24): SettingsManager.init has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, boolean chains 8. 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":"Sources/Kaset/Services/SettingsManager.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"7712e02492133439c2eb703ac2023df2bde9f08abdab174dce5b88a58ffacc9b"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerBarProgressLane.progressBar (cognitive 24): PlayerBarProgressLane.progressBar has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5, ternaries 4 (5 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarProgressLane.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e430d50f90042875f23ea7e88ced9e164e6efca554103737c9c2cce6171f2e"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.enqueueSerializedLibraryMutation (cognitive 24): PlayerService.enqueueSerializedLibraryMutation has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 6, error handling 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BLibrary.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b254d16a2a36c24dc472a5c11d1e8fbfaaf115a7a3fe21a57112d039fb41828"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.updateTrackMetadata (cognitive 24): PlayerService.updateTrackMetadata has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebabf28d8ba8bd3d9db05d56254b65b571cb2a75a300ba8e6222cb243007da38"}},{"ruleId":"D2","level":"warning","message":{"text":"WebKitManager.beginLoginCookieBackup (cognitive 24): WebKitManager.beginLoginCookieBackup has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 9, match/switch 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":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a552c6a483a80368b3e44622905e4a6893fe4c0ab073793ba00a47a274e67b"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistParser.applyResponsiveHeaderRenderer (cognitive 24): PlaylistParser.applyResponsiveHeaderRenderer has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 14, if/else 9 (10 pts) (nesting depth added 1). 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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4fb1af276cdc18278649ce5002996428c1207f991c039ed74a003d145bba74"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeFeedParser.collect (cognitive 24): YouTubeFeedParser.collect has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (4 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":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubeFeedParser.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc22a8a08b2f933334a2c50469d83305635550e536716f9cd5d0b07f2ed2807e"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.discoverAccounts (cognitive 23): main.swift.discoverAccounts has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3028}}}],"partialFingerprints":{"codehealthFindingId/v1":"93217af47b8aed8a91608cc6856a3a24dab01cf598be8383c868761717cbb5fc"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.init (cognitive 23): PlayerService.init has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 3 (7 pts), match/switch 1 (3 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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f0eca879633a9f18bb6ef4f5391e0def5870a262750267a46604ea7575befb"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.reconstructedPreShuffleEntries (cognitive 23): PlayerService.reconstructedPreShuffleEntries has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 4 (6 pts), ternaries 2 (3 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a46c9fc18dce13a3009ac9d46ec5862a5aa399c2011c71ebbeeb425e637ca0"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.handleNearEndTrackChangeIfNeeded (cognitive 23): PlayerService.handleNearEndTrackChangeIfNeeded has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 9 (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":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"86990192c6f9f29bdb5551eeed6c092423f82a53ad538076b9dc5f099971c1e9"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.handleUnexpectedQueueDriftIfNeeded (cognitive 23): PlayerService.handleUnexpectedQueueDriftIfNeeded has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 7 (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":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdd7111af4e0a5a39a0460790ee449412ec8fef9753c932ecb7e0ba04db772b"}},{"ruleId":"D2","level":"warning","message":{"text":"PullToRefreshState.update (cognitive 23): PullToRefreshState.update has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 9). 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":"Sources/Kaset/Views/SharedViews/PullToRefresh.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aef1e9cbad516099c532ea15d568942fa0156b7a826ead63cfb7a0c04226be9"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtistParser.parseCarouselItemFromTwoRowRenderer (cognitive 23): ArtistParser.parseCarouselItemFromTwoRowRenderer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 9 (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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"057942e8bebf60cf26e92e4212666a2591fef236b3d6b80dd7f73ca2a8a11f66"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingHelpers.extractPlaylistSetVideoIdFromEditEndpoint (cognitive 23): ParsingHelpers.extractPlaylistSetVideoIdFromEditEndpoint has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BPlaylist.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0500af4abb8912e167db48fe5cabc204d804dd237fa67e36e1cc1331aaf32c"}},{"ruleId":"D2","level":"warning","message":{"text":"AskVideoAuditSafety.safeYouTubeInnerTubePath (cognitive 22): AskVideoAuditSafety.safeYouTubeInnerTubePath has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (10 pts), match/switch 1 (nesting depth added 2). 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91d9e84cbcd8e923e595f99256202f79bd1a968646eaa8433508f02bd96eb99"}},{"ruleId":"D2","level":"warning","message":{"text":"WireResponseAuditor.summary (cognitive 22): WireResponseAuditor.summary has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 4 (5 pts), 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2727}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf306fe17f361a62edbe519a0b21ce7a602d7ded59e53745f4b3ef3315d997c"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryAudit.rendered (cognitive 22): DiscoveryAudit.rendered has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (12 pts), loops 4 (5 pts), ternaries 4 (5 pts) (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":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f34fa81e78fba0bf8b2cb2d395cf2c16cefde76b15349c68042860aba3db7a2"}},{"ruleId":"D2","level":"warning","message":{"text":"AskVideoAudit.swift.loadAskFreeTextCommand (cognitive 22): AskVideoAudit.swift.loadAskFreeTextCommand has cognitive complexity 22 (threshold 15). Drivers by points: error handling 12, if/else 9 (10 pts) (nesting depth added 1). 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":1598}}}],"partialFingerprints":{"codehealthFindingId/v1":"7313e2f8bae688f152585462795a210577714719e1bc49632dd50f12bba531d1"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchAudit.swift.currentContentKind (cognitive 22): SearchAudit.swift.currentContentKind has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (7 pts), boolean chains 3 (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":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa096844fd9026a06ac4f61bbdfff5eef4d6c9f7c61b283e508c59d13113a0c"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.playlistNavigationSummary::visit (cognitive 22): main.swift.playlistNavigationSummary::visit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, loops 3 (6 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26bb47919e3a41f345bc79c7a881b6dd8471bb3a1f07b6c4ed900790ccf9ed1"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.auditSearch (cognitive 22): main.swift.auditSearch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 3 (5 pts), loops 1 (2 pts), boolean chains 1, error handling 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":2786}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a788b572cc0d051042ea51925fd9a98e3d5e63b838dfd9adb18d16347fdf82c"}},{"ruleId":"D2","level":"warning","message":{"text":"MainWindow.handleAuthStateChange (cognitive 22): MainWindow.handleAuthStateChange has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 4, match/switch 1 (nesting depth added 9). 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":"Sources/Kaset/Views/MainWindow.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"920b766e12d83419547a4702e65bf34a10d887f8361e53633925c323014613ef"}},{"ruleId":"D2","level":"warning","message":{"text":"SingletonPlayerWebView.decideNavigationPolicy (cognitive 22): SingletonPlayerWebView.decideNavigationPolicy has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"98658684744416538c533d10392d2ba3634478d1bb249e3316f0cad307fdb023"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMusicClient.fetchSongDurations (cognitive 22): YTMusicClient.fetchSongDurations has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb8401f9e8603c2d15ed53e186e5178a9ce29aa7939241d99235ddfbb153ada"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrobblingCoordinator.startMixParse (cognitive 22): ScrobblingCoordinator.startMixParse has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 8 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4256c56a8fb561e215ba8403c0bb7b0d9085b09811abce366cc4b6a6510ec64"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeItemShelfDocumentView.scrollWheel (cognitive 22): HomeItemShelfDocumentView.scrollWheel has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, ternaries 2 (3 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81463366fb5c8b0c5d2d56491f655db424d0288a664d8d8160df0d5e24a1efb"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchResponseParser.parseItemRenderer (cognitive 22): SearchResponseParser.parseItemRenderer has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (8 pts), ternaries 2 (3 pts), loops 2 (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":"Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7ae11741b46bdddd7cf3bfecba7ef8f6be6a0715d29897f3cbf0958f43ff4c"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeMainAppScriptExtractor.extract (cognitive 21): YouTubeMainAppScriptExtractor.extract has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, loops 1, ternaries 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":3109}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7ca04b50f6d3ada4b1bc2714f1ff4f5b0cbed2650d9c7567e392c77ebcb55b"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryAudit.walkSchemaOnly (cognitive 21): DiscoveryAudit.walkSchemaOnly has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (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":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b1f03690943bf4524b645534b1de58cf55b9cb1224eb8d007276df319bd5a1"}},{"ruleId":"D2","level":"warning","message":{"text":"AskVideoAudit.swift.liveTestAskVideoFreeText (cognitive 21): AskVideoAudit.swift.liveTestAskVideoFreeText has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 4 (6 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":1740}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7364c52dfc6f02edf54a094d60e73bb65ca837e1ca24da3030200f76a29e1b9"}},{"ruleId":"D2","level":"warning","message":{"text":"AskVideoAudit.swift.liveTestAskVideo (cognitive 21): AskVideoAudit.swift.liveTestAskVideo has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce46a96dbd5cfeb4c54f1fff451866feabd4024ddb020ee2508e6b923050d84"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchAudit.swift.boundedSearchAuditRenderers (cognitive 21): SearchAudit.swift.boundedSearchAuditRenderers has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (10 pts), if/else 5 (7 pts), boolean chains 4 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdd9661c0b919e454fe95febe571ded8e1113269ded63fb581fceabd0f8625c"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.exploreBrowse (cognitive 21): main.swift.exploreBrowse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (3 pts), boolean chains 2, error handling 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"94be67089a2587aed5b731b762ae743518d701b84f8a39e85b584f88a9269e95"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.loadPrivatePrompt (cognitive 21): main.swift.loadPrivatePrompt has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b1b7a0f9aeea50a096773f84ebfe6f14bae6ff26de9d88f512b12734db9451"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.loadRequestBodyJSON (cognitive 21): main.swift.loadRequestBodyJSON has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3 (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":"Sources/APIExplorer/main.swift"},"region":{"startLine":2583}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e93af235748a0e1a22af377ceaa5bd5f46d1e306dc3a6c64f380d27cbcf55e"}},{"ruleId":"D2","level":"warning","message":{"text":"FavoritesManager.prepareStoredScopeMerge (cognitive 21): FavoritesManager.prepareStoredScopeMerge has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 1 (2 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":"Sources/Kaset/Services/FavoritesManager.swift"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"b521bef174ef6e62200ca6b55c8d179bad8992fedad73db83da831a9d340185f"}},{"ruleId":"D2","level":"warning","message":{"text":"SongLikeStatusManager.reconcileLikedMusicTracks (cognitive 21): SongLikeStatusManager.reconcileLikedMusicTracks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, loops 2 (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":"Sources/Kaset/Services/SongLikeStatusManager.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"54440ca49d9e30f580a621fe99ae19356f737a6a27f8668f17244c025e3950c1"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistDetailViewModel.applyRemainingTracksResponse (cognitive 21): PlaylistDetailViewModel.applyRemainingTracksResponse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 9, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ae23d81f0c574ea9a9ce8615c900b3ee82738a6e04dacd59dab85211e28351"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistDetailViewModel.performLoadMoreBatch (cognitive 21): PlaylistDetailViewModel.performLoadMoreBatch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, error handling 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":"Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85b5a1efae878f067009fa2ca4715b53cbb318896c0b5f259deabe625f6b63b"}},{"ruleId":"D2","level":"warning","message":{"text":"SingletonPlayerWebView.recoverFromContentProcessTermination (cognitive 21): SingletonPlayerWebView.recoverFromContentProcessTermination has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":2091}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a2f1ec1072d3f27bd6102ed94704f2f6ea717b1cbfd9124b286baf716566b4"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandExecutor.playContent (cognitive 21): CommandExecutor.playContent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 12). 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":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"8557eaf4b854afbba472c1663731d143e7f306c0378a08bb6df5b92eefa9879f"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthService.completeLoginAfterDraining (cognitive 21): AuthService.completeLoginAfterDraining has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 17, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Auth/AuthService.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cde842d5b58f9143e3bbb32fa1d6f1b8477dcfba03edac77a7237c7c857609"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.bindWebMusicPlaybackOccurrence (cognitive 21): PlayerService.bindWebMusicPlaybackOccurrence has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 10, ternaries 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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abb8f0da9e1d9a25315d9868e798afc059d9ef44b632b4833448c64a2e8aa4f"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.claimTerminalMusicPlaybackOccurrence (cognitive 21): PlayerService.claimTerminalMusicPlaybackOccurrence has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 6 (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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8dc6e6aa9e5174372b3c6c4045981550772c1ea55c88601182bdb60dac728f"}},{"ruleId":"D2","level":"warning","message":{"text":"LastFMService.parseScrobbleResponse (cognitive 21): LastFMService.parseScrobbleResponse has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 6 (7 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/LastFMService.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b508b1575e75ad6a7b73792a401d99f236eb6edd5c14680784a204180f180dd"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrobblingCoordinator.flushQueue (cognitive 21): ScrobblingCoordinator.flushQueue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 3 (6 pts), loops 2 (4 pts), match/switch 1 (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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"0339684f983fb9b82fafc9500ae2b91bfed1440756db662a38510ee756f48d3c"}},{"ruleId":"D2","level":"warning","message":{"text":"WebKitManager.finalizeLoginCookieBackup (cognitive 21): WebKitManager.finalizeLoginCookieBackup has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (9 pts) (nesting depth added 2). 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":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"be012aaae99c865922d6a1b740f5eec10b99700892c91ed01a811b40a6025052"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeSearchViewModel.performLoadMore (cognitive 21): YouTubeSearchViewModel.performLoadMore has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 1, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeSearchViewModel.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cd86c7775e4317b7480b212c029fcde80843e158fe31b677f7b9d2958f5276"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryContentParser.parseAlbumRenderers (cognitive 21): LibraryContentParser.parseAlbumRenderers has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 4 (8 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"888c5c132ff79b42f7cdb469ffd1da8af391aa63ca641ce4e6a4d85b2c24d188"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistParser.findTracksRecursively (cognitive 21): PlaylistParser.findTracksRecursively has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (8 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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"44eb8513609f8d0aa85cef3ba0256101b45153419e4ba28c1eff0a1c88a0220d"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskParser.containsUnsupportedChipDecorator (cognitive 21): YouTubeAskParser.containsUnsupportedChipDecorator has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 4, loops 1 (2 pts), 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":"Sources/YouTubeAskCore/YouTubeAskParser.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"708a0201d6317001363f5560372cafd52b9eae902b9f1fc08ff7c249c01feecf"}},{"ruleId":"D2","level":"warning","message":{"text":"WireResponseAuditor.topLevelKeys (cognitive 20): WireResponseAuditor.topLevelKeys has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 9). Of this number, 16 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":3038}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efa47bfd1e46d52f39f04b16244890b5c303d3dc131cb5626e986c5f89f42b6"}},{"ruleId":"D2","level":"warning","message":{"text":"AskVideoAudit.swift.askPanelSuggestions (cognitive 20): AskVideoAudit.swift.askPanelSuggestions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 7, loops 3 (5 pts) (nesting depth added 4). None of this is in the body itself: all 20 points belong to 2 function items inside it that branch (collectSuggestions, walk). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ef4254b2154051a00928d2678fd8d3c4a3184d9da6292ff669e5f8b23fb48b"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchAudit.swift.firstSearchContinuationValue (cognitive 20): SearchAudit.swift.firstSearchContinuationValue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (7 pts), boolean chains 5 (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":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"7708ce93624c7ca9b08fe0fe36370f4fb4be186f6d8d63839125fc2beb2adc1b"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchAudit.swift.recordCurrentSearchContainer (cognitive 20): SearchAudit.swift.recordCurrentSearchContainer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 4 (7 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e5d7b2eada38f5a41173726753178f45fbfa1f3da2e16a6ead19a0626219b0"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountService.updateContentScopes (cognitive 20): AccountService.updateContentScopes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c85747dd5b5b744d65acb1f49875bfe2b405d28979f1c0c2e45cf0e7183130d"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountService.resolveFavoritesOwnerID (cognitive 20): AccountService.resolveFavoritesOwnerID has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 5 (6 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0e1c3827a6464b3025137e338815623a98d03f23b11e43266d21ff17952bb0"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.handleManualSeekToEnd (cognitive 20): PlayerService.handleManualSeekToEnd has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 7 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BManualSeek.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bc74f4ba4af676d88c47f512b42c9c84a3fd26776da1e67e3288a578b3ef69"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.reconcileWebPlaybackMetadata (cognitive 20): PlayerService.reconcileWebPlaybackMetadata has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, ternaries 3 (6 pts), if/else 2 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BWebPlaybackIdentity.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ea6aca023dd110b3cdabbb498416ab65afe68b60c48b56eb477115a380f58b"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.handleTrackEnded (cognitive 20): PlayerService.handleTrackEnded has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6 (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":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4be0f12e794ecef6384e00b1e855c1b0695e47c4bb0b970bb28dc95123677e6"}},{"ruleId":"D2","level":"warning","message":{"text":"WebKitManager.commitLoginCookieBackup (cognitive 20): WebKitManager.commitLoginCookieBackup has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 4 (8 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"9523429215a52f74fecacac3c08be365436b21b3727ff65f0ffd937557f29280"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingHelpers.extractArtistsFromFlexColumns (cognitive 20): ParsingHelpers.extractArtistsFromFlexColumns has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (8 pts), loops 1 (nesting depth added 2). 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":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b70847e1b8ef3819e74325c3fc5d7af3eaa6a59eec8dcc04f05629945d8e1b1"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingHelpers.extractAlbumFromFlexColumns (cognitive 20): ParsingHelpers.extractAlbumFromFlexColumns has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 3 (6 pts), loops 2 (3 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a858e2eb71cc2ef3353dd3ea6010ceaa501928bbcee5a8698a9fd9458163781"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistParser.extractHeaderSections (cognitive 20): PlaylistParser.extractHeaderSections has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (7 pts) (nesting depth added 2). 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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aafe9984c0ae630ec87d0d3ea6141e7a9671ff2887d834b04a1a095c53fb4de"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistParser.parseTracksFromSections (cognitive 20): PlaylistParser.parseTracksFromSections has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (6 pts), boolean chains 3 (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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e0eff7fba1383310015efe6a5f9e952a767cbb2dd8c11c68de813b5e52bc06"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchNextParser.findDescriptionText (cognitive 20): WatchNextParser.findDescriptionText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 2 (4 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":"Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f13664b6cb7f08d61250a75568d1082f1a17ab77cd0d5c75024e529be685a4"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskParser.parseBootstrap (cognitive 20): YouTubeAskParser.parseBootstrap has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, loops 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/YouTubeAskCore/YouTubeAskParser.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59e5a75d6e24d55f4219d73afecb2eba8f05eb332fcaa94448c86abe46235fb"}},{"ruleId":"D2","level":"warning","message":{"text":"AskVideoAuditSafety.isOpaqueField (cognitive 19): AskVideoAuditSafety.isOpaqueField has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 18, if/else 1. 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2415}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee589296ceed0c04acdd8e8769d07f006d9e88741cc0e60ea621acf186adc96"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.auditSearchFilter (cognitive 19): main.swift.auditSearchFilter has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 4 (8 pts), 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":2721}}}],"partialFingerprints":{"codehealthFindingId/v1":"7133348349c62f3e9f5b564d8795fac62c811d4b8b14c56c8f1b986e86b08bc7"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginSheet.retryLoginRecovery (cognitive 19): LoginSheet.retryLoginRecovery has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"19881c0fd13dd113edf3dd4e36c68bf7a294b0303832ba128fd81ee33e30004f"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentSourceResolver.cleanQueryForAppending (cognitive 19): ContentSourceResolver.cleanQueryForAppending has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (5 pts), boolean chains 3 (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":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1c93d34f08b854a8111cd7bcb6a59b6d4ef91337c2cb126dbc9e4f445c0441"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryMutationActions.removeSongFromPlaylist (cognitive 19): LibraryMutationActions.removeSongFromPlaylist has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), error handling 4 (6 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":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b65afa12796fe0566ea590e6727286740b8321ec9b05b3749a7ae2fe9c73e1"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryMutationActions.scheduleArtistReconciliation (cognitive 19): LibraryMutationActions.scheduleArtistReconciliation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"718f1fdad0286e67f9e54f22e411e6a1d6cf6e58de4096ca10374ae6342e25e8"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.acceptsWebMusicPlaybackOccurrence (cognitive 19): PlayerService.acceptsWebMusicPlaybackOccurrence has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4 (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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"68362fe6798e55f2fc48e2bcb74fc98c3c24ad83893078366d727f74de21950e"}},{"ruleId":"D2","level":"warning","message":{"text":"LikeButton.body (cognitive 19): LikeButton.body has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5 (7 pts), boolean chains 2 (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":"Sources/Kaset/Views/SharedViews/LikeButton.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2099da1cb7d17491ead09bed0d90d5f7f2a1a4a89ef45c20c43894720c6246"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryContentParser.appendLibraryItems (cognitive 19): LibraryContentParser.appendLibraryItems has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 2 (4 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":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7ce7bfae7a22e4dc79538e3511af5a682071a016f2701c84b749947f3af503"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingHelpers.extractArtists (cognitive 19): ParsingHelpers.extractArtists has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2366e992c5b99408c55bcc080d9f4cea60f5708b6d9564ff637711a3cee5cae1"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistParser.extractTokenFromSectionContents (cognitive 19): PlaylistParser.extractTokenFromSectionContents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3, loops 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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53b4f2ad03c0c4542721e31c41d1b1c738005620dcc92f8d4eb6eac5f79d676"}},{"ruleId":"D2","level":"warning","message":{"text":"ScriptDetector.isLatinOnly (cognitive 19): ScriptDetector.isLatinOnly has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Lyrics/Romanization/ScriptDetector.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76c8aaac4602e681e2f1472b407af42702c5d789ae55b70f388aa00f6520f97"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeCommentsParser.commentsFromEntityPayloads (cognitive 19): YouTubeCommentsParser.commentsFromEntityPayloads has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, 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":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubeCommentsParser.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b58b297375032fc3266aaee0c966e21b03ecada31247bdffaaf4f0d5eba1ce8"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryAudit.collectNavigation (cognitive 18): DiscoveryAudit.collectNavigation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (6 pts), loops 3 (5 pts), ternaries 2 (4 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":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"64da9cbfe241dda4da66f258e3e0ec95d5727c39d1f15426e8e647c3b5d82637"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.auditQueueRatingRow (cognitive 18): main.swift.auditQueueRatingRow has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 1 (3 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"74389f8c2a70b673c486258332563acd00193312263c9636361e63e3ef14859d"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginSheet.body (cognitive 18): LoginSheet.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 6, ternaries 1 (2 pts) (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":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8d825f1ff3a31c918d716a387b9d42f35705796ac7a5a42174785ec8768516"}},{"ruleId":"D2","level":"warning","message":{"text":"LoginSheet.checkForSuccessfulLoginAsync (cognitive 18): LoginSheet.checkForSuccessfulLoginAsync has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9287215ad02591833acd11ce2e8752661b3fcbbd123a059e7e0f72560e201e3"}},{"ruleId":"D2","level":"warning","message":{"text":"SingletonPlayerWebView.loadVideo (cognitive 18): SingletonPlayerWebView.loadVideo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, ternaries 3, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc875458a4861c280f8c33458a15c9ff004f4f02d066af4d1bf4ef575e556718"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandExecutor.execute (cognitive 18): CommandExecutor.execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, match/switch 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":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"40aa588211103079d437c38a3d6a145ad01d0563accf844c13ff909e66cb59fe"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandIntentParser.fallbackRequest (cognitive 18): CommandIntentParser.fallbackRequest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7 (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":"Sources/Kaset/Services/AI/CommandIntentParser.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1057b7b0cd0652c9dce9d878245a98317294089cbe7c39c9f55d65c5bcdea44b"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentSourceResolver.buildSearchQuery (cognitive 18): ContentSourceResolver.buildSearchQuery has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (8 pts) (nesting depth added 1). 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":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc49a03bd8da302abd82efe734bca1030e31b784d08234cfa4c3072f1ae2660e"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentSourceResolver.appendAdditionalComponents (cognitive 18): ContentSourceResolver.appendAdditionalComponents has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 1 (3 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":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d582d81d6babcde56872b4501ae3304be11d7023afb9f3b9e916d716ba49f6bc"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentSourceResolver.canonicalToken (cognitive 18): ContentSourceResolver.canonicalToken has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (7 pts), match/switch 1 (nesting depth added 1). 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":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba25b10f91f1705c67aff960018ab2bd436ebe395b095c16bc48cc3ccc445c59"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryMutationActions.subscribeToArtist (cognitive 18): LibraryMutationActions.subscribeToArtist has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, error handling 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. This shape REPEATS in the file: one other method here (LibraryMutationActions.unsubscribeFromArtist) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"c701cb178024e98da4aec52f68721355c21fe1d4d8e4ea9a4001e6206559e5ee"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryMutationActions.unsubscribeFromArtist (cognitive 18): LibraryMutationActions.unsubscribeFromArtist has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, error handling 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. This shape REPEATS in the file: one other method here (LibraryMutationActions.subscribeToArtist) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f2021f64160a50e8ef0b184ed0d19e1d9393785b9d62aa8e0aeb6b1af8d72c"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.restoreQueueOrderBeforeShuffle (cognitive 18): PlayerService.restoreQueueOrderBeforeShuffle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, loops 3 (6 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"463be8623a88509d98a608fe0723d6ba77f13a825e83983439efbddbf4cc96aa"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubePlayerService.followPageDriftIfNeeded (cognitive 18): YouTubePlayerService.followPageDriftIfNeeded has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, if/else 6. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/YouTubePlayerService.swift"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"ced53bc17c80f5c862cb0147535a8fa95e5b0bdae6f61333cb45e67168bc0334"}},{"ruleId":"D2","level":"warning","message":{"text":"MixTracklistParser.timeInterval (cognitive 18): MixTracklistParser.timeInterval has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/MixTracklistParser.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8a07a67d307789f7ca29871eb61b759b4602dcefe5449889110f55fc9bf293"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskViewModel.submitInput (cognitive 18): YouTubeAskViewModel.submitInput has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, error handling 2 (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":"Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1648a5bf6783d59c1f392fe74fd7ad58044bafebc1f3fcfb9e0c425262f5f679"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicSearchTool.call (cognitive 18): MusicSearchTool.call has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (8 pts), boolean chains 5, if/else 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/Tools/MusicSearchTool.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e8a08c44a5032dbe1dffdec1371fd808e5de670c9b4a57282f1d799c91990e"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtistParser.parseArtistEpisodesGrid (cognitive 18): ArtistParser.parseArtistEpisodesGrid has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (6 pts), loops 2 (3 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (ArtistParser.parseArtistDiscography) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"825c9d725cbca222adff7351a6ce9c2d8e2b25be420fc6f713b0bd387f731fa8"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtistParser.parseArtistDiscography (cognitive 18): ArtistParser.parseArtistDiscography has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 3 (6 pts), loops 2 (3 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (ArtistParser.parseArtistEpisodesGrid) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"6268e68a9b58c01b1aa2a3087edfa467e22dcd0f81b20870eaf6857514c1c9ab"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryContentParser.parseLibraryAlbumsContinuation (cognitive 18): LibraryContentParser.parseLibraryAlbumsContinuation has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff6b3726c3ee6bf63d341b4523e26b21ef675d25927d96bc8e6ba9b8582fdbd"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistParser.extractPlaylistId (cognitive 18): PlaylistParser.extractPlaylistId has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28bb50e4306c1918cd04023caaa2a1a3789d68c0065d2f215dd215d33c68271"}},{"ruleId":"D2","level":"warning","message":{"text":"PodcastParser.parseContinuation (cognitive 18): PodcastParser.parseContinuation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc050046c48fba872186a586b15511d18397ebee52ff44b711769bf8ff03a939"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchResponseParser.extractContinuationToken (cognitive 18): SearchResponseParser.extractContinuationToken has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (7 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":"Sources/Kaset/Services/API/Parsers/SearchResponseParser\u002BSupport.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"6013d77c0f88c46fefe40e63deb5bb4d7200143a33f8cee9068a2f15451fe2fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelPageParser.firstText (cognitive 18): ChannelPageParser.firstText has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/ChannelPageParser.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea208414433577a574d92728f91b6912c1a8a37ffa748875a69180caf5eba5e"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubePlaylistPageParser.firstText (cognitive 18): YouTubePlaylistPageParser.firstText has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubePlaylistPageParser.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f13daa10c4376d71258183ad8f16e1982318e489c17efad862e89d128aa784"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskWireDecoder.parseNewlineDelimitedJSON (cognitive 18): YouTubeAskWireDecoder.parseNewlineDelimitedJSON has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/YouTubeAskCore/YouTubeAskWireDecoder.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afc37e73b3542057705877edc8e412b4fa9c6bd4b2f186726ca0ef78e8cfe5c"}},{"ruleId":"D2","level":"warning","message":{"text":"WireResponseAuditor.parseNewlineDelimitedJSON (cognitive 17): WireResponseAuditor.parseNewlineDelimitedJSON has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1, ternaries 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2929}}}],"partialFingerprints":{"codehealthFindingId/v1":"060769802e306b7c88a9c5ef2aa9282e7f6aa317bae990af45018e20a64d93a4"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.probeSigninSwitch (cognitive 17): main.swift.probeSigninSwitch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 2 (3 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85bc6f7a83a545bef7800f21198b97070c6deec8824275fd53e0bb5445dfade"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeSectionItem.hasSameCardContent (cognitive 17): HomeSectionItem.hasSameCardContent has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, if/else 2. 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":"Sources/Kaset/Models/HomeSection.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98a64a97b14bfb3d86c05f2fc94ee788f31e071827e23b7bcab1ee9c4ba5b23"}},{"ruleId":"D2","level":"warning","message":{"text":"Playlist.init (cognitive 17): Playlist.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 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":"Sources/Kaset/Models/Playlist.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2414e1b3bd9f1034bb39f833190384686c870997da4517e41f7437504c79b8ae"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryViewModel.refresh (cognitive 17): HistoryViewModel.refresh has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 1 (3 pts), error handling 2, 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":"Sources/Kaset/ViewModels/HistoryViewModel.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8543082a542ee4be2de7cdee1b77f2e413093218afc0e911464b712682a452b"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistDetailViewModel.fetchAndInsertLiveSyncedLikedSong (cognitive 17): PlaylistDetailViewModel.fetchAndInsertLiveSyncedLikedSong has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 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":"Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fff67753a33b750c81a40c9b6b081ca13cb9ba6c314a55c8013ca9bda9b08f"}},{"ruleId":"D2","level":"warning","message":{"text":"SingletonPlayerWebView.handleDocumentNavigationFailure (cognitive 17): SingletonPlayerWebView.handleDocumentNavigationFailure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5 (nesting depth added 7). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":2051}}}],"partialFingerprints":{"codehealthFindingId/v1":"648756ff4752fdd13c8520ea914adabc4627e491d23494168a8321d1959bc85c"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaybackBridgeMultiplexer.userContentController (cognitive 17): PlaybackBridgeMultiplexer.userContentController has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac72a62441adebff0a3ae4e344adc9959348984921cd0c96a725232c7cbda77"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandExecutor.describeQueueLocally (cognitive 17): CommandExecutor.describeQueueLocally has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 4 (7 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ecc5e24443fb39b1236c47ff57a69f37ce20e26203d560902ce27a26d009ed0"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthService.transitionToResolvedState (cognitive 17): AuthService.transitionToResolvedState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Auth/AuthService.swift"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"51527d18293fe0f3ec30d1b6f96303bb2a7478e7c11133e8ea8a36b7ff1ac0cf"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.playPause (cognitive 17): PlayerService.playPause has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"aedbb1cb35ebf243f5253350f0970be1eb52b08e01d4cb68f00a923d5e310b22"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.scheduleTerminalRestoredSeekIfNeeded (cognitive 17): PlayerService.scheduleTerminalRestoredSeekIfNeeded has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, if/else 2. 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":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackRestoration.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e3b92fa120eb3ab3ae442e1253d2418f8c5704dcfb1ffe76eff16e76b6a1c5"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.nextSuggestionSlot (cognitive 17): PlayerService.nextSuggestionSlot has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, 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":"Sources/Kaset/Services/Player/PlayerService\u002BSmartShuffle.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f101e730cb28ec09fdf9031a88be2f36d30b6d29170304d4167418205df8334"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrobblingCoordinator.finalizeCurrentTrack (cognitive 17): ScrobblingCoordinator.finalizeCurrentTrack has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"7503cf2f5ca23a6e29285fb66637d07d34b567ea6d971476b330dbd619e17ae9"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskViewModel.selectSuggestion (cognitive 17): YouTubeAskViewModel.selectSuggestion has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, error handling 2 (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":"Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f994fbdee70c3e3c4819c2827f8a1956f776d19f6c2d03fea0b998de740cadc"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskViewModel.startNewChat (cognitive 17): YouTubeAskViewModel.startNewChat has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, 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":"Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"5380bd605c07766fb57a670249a9e19b253b2b173852782b6891096ffa5a6ef3"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskViewModel.presentationError (cognitive 17): YouTubeAskViewModel.presentationError has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (10 pts), match/switch 2 (4 pts), if/else 3 (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":"Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda6934ea3ce5513e7ed95e3f4a7c4bbdb46756e541f0500634f490f84dc6046"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeWatchViewModel.performCommentsLoad (cognitive 17): YouTubeWatchViewModel.performCommentsLoad has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeWatchViewModel.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fa20403a5054ca76e7f15875550ac9bf957399a29e261244ce6c2185dfac6e"}},{"ruleId":"D2","level":"warning","message":{"text":"AmbientVideoBackdrop.load (cognitive 17): AmbientVideoBackdrop.load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/AmbientVideoBackdrop.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb72bde9bd0091c8fe3f10e1854c433902059a20d1488f98206e7c39ff804d7b"}},{"ruleId":"D2","level":"warning","message":{"text":"StoryboardSheet.init (cognitive 17): StoryboardSheet.init has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts), loops 1 (nesting depth added 1). 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":"Sources/Kaset/Views/YouTube/AmbientVideoBackdrop.swift"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3bfda55bd547003148c9216a7756ab0ad87c52a23949eb987a4bffa769e9e3"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeInlineVideoControlsModifier.body (cognitive 17): YouTubeInlineVideoControlsModifier.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7, match/switch 1 (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":"Sources/Kaset/Views/YouTube/YouTubePlayerBarPlacement.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5deb083d00fa3ed35f81a06db63eb486bf9fe60783c22b77d48ed9d4cfbaea"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeWatchWebView.decideNavigationPolicy (cognitive 17): YouTubeWatchWebView.decideNavigationPolicy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BCoordinator.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ba4662ab1de1f2e16ebce8759f62082677c6877e59baa1563f4d3242c09445"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeWatchWebView.handleDocumentNavigationFailure (cognitive 17): YouTubeWatchWebView.handleDocumentNavigationFailure has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5 (nesting depth added 7). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc7a1d4fcd4ec86cdc782f149c20d1639a3eae1aeb708920b90a56baa98910a"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsingHelpers.extractSongCount (cognitive 17): ParsingHelpers.extractSongCount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73331493691be3899991178b990f6ee37f78b8393ecbf126cc84ac4f830f2f7"}},{"ruleId":"D2","level":"warning","message":{"text":"PodcastParser.parseMultiRowListItem (cognitive 17): PodcastParser.parseMultiRowListItem has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 11, if/else 6. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"707fb7647f8f424df8dd2ce7f91bac2314d8e63642eb758ac2d411939cbc5436"}},{"ruleId":"D2","level":"warning","message":{"text":"SongMetadataParser.extractPanelVideoRenderer (cognitive 17): SongMetadataParser.extractPanelVideoRenderer has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 14, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99ca54c64e33c8a296714df16776d914ee89df02372e8ae1e13b9e03f8957df"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskParser.visibleText (cognitive 17): YouTubeAskParser.visibleText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 1 (2 pts), match/switch 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":"Sources/YouTubeAskCore/YouTubeAskParser\u002BVisibleText.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"50284524fe257f24843363f439f23c917c48e143f41116c356af9a8ea03af9dc"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryNavigation.priority (cognitive 16): DiscoveryNavigation.priority has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84bde3af6c81384169ddb4f080a74a44b60887b6703662e797abf111a1dd512"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryAudit.collectBrowseSelection (cognitive 16): DiscoveryAudit.collectBrowseSelection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, loops 1, match/switch 1 (nesting depth added 2). 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":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83e45cc5931bf813b4443ee58686420356b1b0a150be9a033ffd744c4ec4112"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryAudit.collectChartCountries (cognitive 16): DiscoveryAudit.collectChartCountries has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (7 pts), loops 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a78809a2c3f755d3a2780d406b2659cb466cf8bbfa5b8d504fb4c3a5f5b879c"}},{"ruleId":"D2","level":"warning","message":{"text":"AskVideoAudit.swift.askParityServerLoggedOutState::collectLoggedOutValues (cognitive 16): AskVideoAudit.swift.askParityServerLoggedOutState::collectLoggedOutValues has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (4 pts), boolean chains 3, match/switch 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7ce7aa55c315617ed21c22429a6ec2be7c063a3cfc95e412f710dda4bb5ed6"}},{"ruleId":"D2","level":"warning","message":{"text":"AskVideoAudit.swift.firstAskSchemaValue::find (cognitive 16): AskVideoAudit.swift.firstAskSchemaValue::find has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"071c7bce5b3914420f7d146ecb76f0a01ffef675d5f9e7666b3c317392fa8d74"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchAudit.swift.currentBrowseDisposition (cognitive 16): SearchAudit.swift.currentBrowseDisposition has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 4, ternaries 2 (4 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"543610db5b7fe998a1d732617810c228492d806eeb63eb515d6d49a2f714975f"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.libraryFeedbackProbeSummary (cognitive 16): main.swift.libraryFeedbackProbeSummary has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (12 pts), match/switch 1 (2 pts), if/else 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c4566cca131fa644ff13103a295194f6631f78b820c3881ca5672a6b62717b"}},{"ruleId":"D2","level":"warning","message":{"text":"FavoritesManager.finalizeAccountScopeMerge (cognitive 16): FavoritesManager.finalizeAccountScopeMerge has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/FavoritesManager.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ebb3918343039849431e30bb1e2a0c4d9717cdb84f5fe2ef97e2d120324448"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryViewModel.load (cognitive 16): LibraryViewModel.load has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 2 (5 pts), error handling 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":"Sources/Kaset/ViewModels/LibraryViewModel.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c37037d2ac8e03f03c6fa63223eeba59406a338b4b589436e5a4d313624358"}},{"ruleId":"D2","level":"warning","message":{"text":"PodcastsViewModel.load (cognitive 16): PodcastsViewModel.load has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 3, boolean chains 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":"Sources/Kaset/ViewModels/PodcastsViewModel.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2036edcda25db0db7e6abd939e33890c462f65f00a61676a82fbacbbb9fd4d6c"}},{"ruleId":"D2","level":"warning","message":{"text":"PodcastsViewModel.performLoadMore (cognitive 16): PodcastsViewModel.performLoadMore has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 2, 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":"Sources/Kaset/ViewModels/PodcastsViewModel.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"26966bdc64a00193f4a2274fb80a6caa720f3eb3df35142e128c66b54fa9f593"}},{"ruleId":"D2","level":"warning","message":{"text":"MainWindow.body (cognitive 16): MainWindow.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MainWindow.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa64300e8f6a08d88b5ad4824b9b0c0da88642d45d1a051ee7820bf33741bcb8"}},{"ruleId":"D2","level":"warning","message":{"text":"SingletonPlayerWebView.startDocumentNavigation (cognitive 16): SingletonPlayerWebView.startDocumentNavigation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb363ce321e7478c392f1d9318b55105009afe8263a9938d15999a62e73d5a76"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncedLineView.body (cognitive 16): SyncedLineView.body has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 12 (15 pts), if/else 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SyncedLyricsDisplayView.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1811ae9e3f229072f87cb653b6beb414237c05189e446d33dcc6fa91255a7d4c"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMusicClient.performRequest (cognitive 16): YTMusicClient.performRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 1, match/switch 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":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bfdf21d8943f3ba4a042403b56c0b8d5ad376de9ee8133c9b34759d365cf00"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountService.rollbackSessionAfterFailedSwitch (cognitive 16): AccountService.rollbackSessionAfterFailedSwitch has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (5 pts), error handling 2 (nesting depth added 1). 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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd632922ae26d367a8b5eca4d515ad7c472d35b45c12176c4a79c74dbfe7beba"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.playWithMix (cognitive 16): PlayerService.playWithMix has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, error handling 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":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7af4232a4a48a9ce903636c21a33a24236044cdbb0b10b52da7f8128e21adbc"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubePlayerService.claimEndedPlaybackOccurrence (cognitive 16): YouTubePlayerService.claimEndedPlaybackOccurrence has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/YouTubePlayerService.swift"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cf7eb03dc562598a3064a3c2842826978a02fdf9309e3d823b0e1736aabc2f"}},{"ruleId":"D2","level":"warning","message":{"text":"WebKitManager.restoreAuthCookiesFromBackup (cognitive 16): WebKitManager.restoreAuthCookiesFromBackup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (4 pts), match/switch 2, boolean chains 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":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieRestore.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81e96ac151e75c8776e2e3d860ae40dbe378d23f21ceda1239c8fc76df8b63b"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskViewModel.prepareInitialConversationIfNeeded (cognitive 16): YouTubeAskViewModel.prepareInitialConversationIfNeeded has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, error handling 2 (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":"Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7f1fbc165513fd9a4f25753d31e88cc33be628ff3fb0d93d8ced1d674a3f97"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeResponseParser.parseContinuation (cognitive 16): HomeResponseParser.parseContinuation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"29212a095a16bb5659b634c60effc949273e9a53f828e22977599dcd10c24a96"}},{"ruleId":"D2","level":"warning","message":{"text":"LibraryContentParser.nextPage (cognitive 16): LibraryContentParser.nextPage has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (6 pts), loops 1 (nesting depth added 1). 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":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c64b5cb49682d5406955d011ba2bf1754cac57696001583b0ac5a190eac43e"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistParser.extractCreatedPlaylistIdFromKnownPaths (cognitive 16): PlaylistParser.extractCreatedPlaylistIdFromKnownPaths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"287ae2a27b107513d6754f8b4bc1f7364516a15e96ec2ef458c9916fa69a9855"}},{"ruleId":"D2","level":"warning","message":{"text":"RadioQueueParser.parse (cognitive 16): RadioQueueParser.parse has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 2. 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":"Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d907793f80a8c714715e17d41d9c9cc6886cf6e65d29d3b53a7b36755928c8"}},{"ruleId":"D2","level":"warning","message":{"text":"RadioQueueParser.parseArtists (cognitive 16): RadioQueueParser.parseArtists has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb40e5fdf022679baf0757696dd7b492db319de08d1e39b3649eaf428339be5e"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchResponseParser.browseKind (cognitive 16): SearchResponseParser.browseKind has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, boolean chains 5, ternaries 2 (4 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb9166fcf068ec088d739ed49cb2a2e3ca61583d9e86d71cbebe2ec823de415"}},{"ruleId":"D2","level":"warning","message":{"text":"SongMetadataParser.parseArtists (cognitive 16): SongMetadataParser.parseArtists has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"503870d230ae6b385fb2388a6636569c31e703d6188eb05a0b440272faa48b67"}},{"ruleId":"D2","level":"warning","message":{"text":"SongMetadataParser.parseToggleLikeStatus (cognitive 16): SongMetadataParser.parseToggleLikeStatus has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), ternaries 3 (6 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92c7a36030bad2bbb89eddd240a2404b7caaf97d33d69a89d85791e56f78085"}},{"ruleId":"D2","level":"warning","message":{"text":"LRCLibProvider.search (cognitive 16): LRCLibProvider.search 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":"Sources/Kaset/Services/Lyrics/Providers/LRCLibProvider.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"05953c7ead8c469fa3a4580d8da733fb26a94aa54b37678e1783e26c1f992110"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchNextParser.parse (cognitive 16): WatchNextParser.parse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, 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":"Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b515f9adf4ce4de6eba8be5aff7dbc3127c9b53c42b0f4a84d4ca3609532803b"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeItemParser.firstBrowseId (cognitive 16): YouTubeItemParser.firstBrowseId has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 2 (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":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"1579ce567316045d3ec4b0ce499864eb14f5e0bd8982c52ed06c77aafe860ded"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskParser.collectBootstrapContinuations (cognitive 16): YouTubeAskParser.collectBootstrapContinuations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), boolean chains 5, loops 2 (4 pts), match/switch 1 (nesting depth added 5). 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":"Sources/YouTubeAskCore/YouTubeAskParser.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6eaeb9c2af91961aeb03c76f348d3230be0d054e4841db31837a4a184bb602c"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeAskVisibleTextSanitizer.isLikelyOpaqueIdentifier (cognitive 16): YouTubeAskVisibleTextSanitizer.isLikelyOpaqueIdentifier has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 5, match/switch 1 (2 pts), loops 1 (nesting depth added 1). 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":"Sources/YouTubeAskCore/YouTubeAskVisibleTextSanitizer.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f144911a47831ad104df5af6ab10c39fe1ddbd826f07925dbae1e03a76ef0aa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlayerService: TooManyMethods \u2014 341 methods, declared across 16 files: Player/PlayerService\u002BQueue.swift (58), Player/PlayerService\u002BPlaybackControls.swift (49), Player/PlayerService.swift (36), Player/PlayerService\u002BWebQueueSync.swift (34), \u002B12 more file(s). The bar is 30 methods; this is 311 over it, 11.37\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"342a10b55c0397539374a0dd132e75ebcbaaa84c70068f185435af2b4f787dd9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: APIExplorer/main.swift: FileTooLong \u2014 3050 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2550 over it, 6.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8f938e2b0623104ba79dcb6c274e5748110832cd8f3cec7fadcdb1e797c260"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: APIExplorer/AskVideoAudit.swift: FileTooLong \u2014 2481 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1981 over it, 4.96\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f4b4497c9d680d8235bce566444c49bb75b2e130731b98cfed8174ef2ec602"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SingletonPlayerWebView: TooManyMethods \u2014 123 methods, declared across 9 files: Views/MiniPlayerWebView.swift (71), Views/SingletonPlayerWebView\u002BPlaybackControls.swift (15), Views/SingletonPlayerWebView\u002BVideoMode.swift (12), Views/SingletonPlayerWebView\u002BPlaybackPreferences.swift (9), \u002B5 more file(s). The bar is 30 methods; this is 93 over it, 4.10\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9031bcad218e07625a63f81c3452baf9718b8ae4d08c2b3db21fa726b9c190"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.swift.runMain: FunctionTooLong \u2014 runMain runs 367 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 267 over it, 3.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":4072}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef04158dc255d02825a1bbffcbfded5f8f532cc3137b93aba7a9a8f1db2a4c4e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YouTubePlayerService: TooManyMethods \u2014 104 methods, declared across 3 files: Player/YouTubePlayerService.swift (86), Player/YouTubePlayerService\u002BSeeking.swift (10), Player/YouTubePlayerService\u002BRemoteCommands.swift (8). The bar is 30 methods; this is 74 over it, 3.47\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Kaset/Services/Player/YouTubePlayerService.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bbf9394db97da1615fa7d06a9d1f10384bf8d39d629abe4d190620dbe1f5c5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: YTMusicClient: ClassTooLong \u2014 1260 significant lines (blank, comment-only and punctuation-only lines excluded), 90 methods. The bar is 400 significant lines; this is 860 over it, 3.15\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":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fed782b707b3c9617c902cdc5724ec00d7e3eec54e0b15ecce9edc4a7bb84a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockUITestYTMusicClient: TooManyMethods \u2014 93 methods, declared across 3 files: API/MockUITestYTMusicClient.swift (73), API/MockUITestYTMusicClient\u002BSearchFixtures.swift (14), API/MockUITestYTMusicClient\u002BDefaultData.swift (6). The bar is 30 methods; this is 63 over it, 3.10\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. Most of these members implement Kaset.YTMusicClientProtocol (65 of 92 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/MockUITestYTMusicClient.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c82844efa091d83e4dadbdedf4e96d962a36497cc476d0d8d701b6b2599fe27"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/MiniPlayerWebView.swift: FileTooLong \u2014 1545 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1045 over it, 3.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cd5d349fda39b84ce78c6123be5f2f4de8036c4007307ce1056b46f2629d51"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YTMusicClient: TooManyMethods \u2014 90 methods. The bar is 30 methods; this is 60 over it, 3.00\u00D7 the bar. Most of these members implement Kaset.YTMusicClientProtocol (65 of 89 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"568d20fd1b9b95359ccdd44266705fcf769ce4f54f6b834ff9460fa3e6c1b099"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: API/YTMusicClient.swift: FileTooLong \u2014 1349 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: YTMusicClient (38-2221). The bar is 500 significant lines; this is 849 over it, 2.70\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":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"413e3ce1b7d2f32575d5c9e58a378f696fe137fe8865a7496f51e2f7ddaffa1a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebKitManager: TooManyMethods \u2014 74 methods, declared across 5 files: WebKit/WebKitManager.swift (39), WebKit/WebKitManager\u002BCookieBackup.swift (24), WebKit/WebKitManager\u002BCookieRestore.swift (7), WebKit/WebKitManager\u002BAuthMaterial.swift (3), \u002B1 more file(s). The bar is 30 methods; this is 44 over it, 2.47\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Kaset/Services/WebKit/WebKitManager.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"98565432560895c5059148c515a4e20a209e573ba1ae712efd74c53eccb224ef"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AccountService: ClassTooLong \u2014 985 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 585 over it, 2.46\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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43fb9512aaa77fd112f8ea58338571cd936de852ba5947a5208a01dfeeddd3f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KasetApp.body: MethodTooLong \u2014 body runs 238 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 138 over it, 2.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/KasetApp.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"148f5ec26ea05333a88ca205ae8878fac8e09a45855dde1185c5dee7f5bcc94b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FavoritesManager: TooManyMethods \u2014 71 methods, declared across 2 files: Services/FavoritesManager.swift (43), Services/FavoritesManager\u002BConvenience.swift (28). The bar is 30 methods; this is 41 over it, 2.37\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Kaset/Services/FavoritesManager.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c067916a4f509280f3e89704b06fdf5d9f60cff8c5f9a17f0c2274b7423b37"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YouTubeWatchWebView: TooManyMethods \u2014 69 methods, declared across 6 files: YouTube/YouTubeWatchWebView.swift (30), YouTube/YouTubeWatchWebView\u002BScripts.swift (17), YouTube/YouTubeWatchWebView\u002BRecoverySeek.swift (13), YouTube/YouTubeWatchWebView\u002BDocumentGeneration.swift (7), \u002B2 more file(s). The bar is 30 methods; this is 39 over it, 2.30\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb385f6951d4d0fcf99a350e11c91653065b95de7e4e847c5807aa1b1e96644"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Player/YouTubePlayerService.swift: FileTooLong \u2014 1063 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 563 over it, 2.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/YouTubePlayerService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1988771966e62e1049f85844b64cbcddf3452087304f9d5956d3518140a9575"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Player/PlayerService\u002BQueue.swift: FileTooLong \u2014 1059 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 559 over it, 2.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da17a53070357978aa408fe70882e0503b5fe8f73c2b0e95d4e60c3111fdd4fc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YouTubeClient: TooManyMethods \u2014 63 methods, declared across 2 files: API/YouTubeClient.swift (58), API/YouTubeClient\u002BAsk.swift (5). The bar is 30 methods; this is 33 over it, 2.10\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Kaset/Services/API/YouTubeClient.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9abb7b65546160c844434474b7cdb03bc887490981ce630aa308f0e77460eb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PlaylistParser: ClassTooLong \u2014 831 significant lines (blank, comment-only and punctuation-only lines excluded), 69 methods. The bar is 400 significant lines; this is 431 over it, 2.08\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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dae95bfaba58e4fe68e60c988c04a6fb2ade11b98deec3dc3e0d15da25fe80a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LibraryMutationActions: ClassTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 428 over it, 2.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":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e34c3664ea6e0916ef07c9caab2ca37b39c362a669dd06361d2e2db16a1128"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AccountService.switchAccount: MethodTooLong \u2014 switchAccount runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1d015d4ea71090e109eb82611f6d2e0855c96983d871608894aa3a86d8d51b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Auth/AccountService.swift: FileTooLong \u2014 989 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: AccountService (31-1564). The bar is 500 significant lines; this is 489 over it, 1.98\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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d245afe845069ae6c832d52df9b183c60766cb6151741f6bcc67a9d3843bac9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Player/PlayerService\u002BWebQueueSync.swift: FileTooLong \u2014 984 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 484 over it, 1.97\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0192f0548c9d003aab03ea19023a20b52a0e6cb155a3aa9f97fb19c7933598be"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: YouTubeClient: ClassTooLong \u2014 777 significant lines (blank, comment-only and punctuation-only lines excluded), 63 methods. The bar is 400 significant lines; this is 377 over it, 1.94\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":"Sources/Kaset/Services/API/YouTubeClient.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"719d408997810f0806f8e1c6453a810e529d6afbd10710c2cf065a2f5b906d3d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PlayerBar: ClassTooLong \u2014 747 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 347 over it, 1.87\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":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be60b924614dd2bf21c653ce5f5a79f0d2298ba89742554f1dee3d1a10f6b13"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SingletonPlayerWebView.videoContainerScriptInPlace: MethodTooLong \u2014 videoContainerScriptInPlace runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SingletonPlayerWebView\u002BVideoMode.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"665be39b739929867d67c815df78af1aaebc89304d8591fe2e210e06e35d7673"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SingletonPlayerWebView: ClassTooLong \u2014 721 significant lines (blank, comment-only and punctuation-only lines excluded), 123 methods. The bar is 400 significant lines; this is 321 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"70c9f36364292f471688dda24820830705b0a6828474c798a79cd849bdda9103"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlaylistDetailViewModel: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f23cb7c6f8cd8b4fdcc057955f30bfa5e211b928a3ed424ffb991a91c381ce2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MainWindow: ClassTooLong \u2014 694 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 294 over it, 1.74\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":"Sources/Kaset/Views/MainWindow.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9da462a2241d8373532102fc0da4102bf5a4f5bf1c8b99833d7e6a8b88a230"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Player/PlayerService\u002BPlaybackControls.swift: FileTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 339 over it, 1.68\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ee803dadc8b9cc791dc706ab1b8926bccac067e8b250183fce39b2220454f4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ScrobblingCoordinator: TooManyMethods \u2014 50 methods, declared across 7 files: Scrobbling/ScrobblingCoordinator.swift (22), Scrobbling/ScrobblingCoordinator\u002BState.swift (11), Scrobbling/ScrobblingCoordinator\u002BPendingWholeTrack.swift (5), Scrobbling/ScrobblingCoordinator\u002BDeferredFinalization.swift (4), \u002B3 more file(s). The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b4eba5e380dace4a6d75ddb7555ce475fe7667ee45fcd9df6dd5b31d0b9e7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Parsers/PlaylistParser.swift: FileTooLong \u2014 833 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: PlaylistParser (7-1456). The bar is 500 significant lines; this is 333 over it, 1.67\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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6255d83da9b8f2cfa128a7b1e2db9b9b8d3ed315b7ede11628f8a5737084e165"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Library/LibraryMutationActions.swift: FileTooLong \u2014 830 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: LibraryMutationActions (9-1135). The bar is 500 significant lines; this is 330 over it, 1.66\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":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2e6dfaec124247b8b81f64d434590ff1e81c19025a92657e3b618aef28f71e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/MiniPlayerWebView\u002BCoordinator.swift: FileTooLong \u2014 825 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 325 over it, 1.65\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView\u002BCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"479f19f23c6e1e809850ac29f8de4532935fcec4bb2d1b04bd8bf3ec2d86e0de"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.swift.listEndpoints: FunctionTooLong \u2014 listEndpoints runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3703}}}],"partialFingerprints":{"codehealthFindingId/v1":"77613958beaf0ad75ad3073a70f660c89733b4352b82e2938355d2d6a631f1d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/MainWindow.swift: FileTooLong \u2014 792 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: MainWindow (8-1096). The bar is 500 significant lines; this is 292 over it, 1.58\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":"Sources/Kaset/Views/MainWindow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e761353abc2a4a7d77c0e16dcf5770b9b043b38ac1553f724e18d7bf900fb7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ViewModels/PlaylistDetailViewModel.swift: FileTooLong \u2014 783 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 283 over it, 1.57\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c482933ebb71b67df8df0f04c2c091d9bbc7a6d2c4d875de1ce2cd843536e9d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FavoritesManager: ClassTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), 71 methods. The bar is 400 significant lines; this is 225 over it, 1.56\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":"Sources/Kaset/Services/FavoritesManager.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"577ad47ff81cf903e2bf0c08246bac621af7e87d2692713969976ecafa8c3828"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ArtistDetailView: ClassTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 225 over it, 1.56\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":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c95c7b47545fd7e08da1d582f2547d003ce5e71353726d05d964234c8ea4eb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: API/YouTubeClient.swift: FileTooLong \u2014 781 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: YouTubeClient (20-1246). The bar is 500 significant lines; this is 281 over it, 1.56\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":"Sources/Kaset/Services/API/YouTubeClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3904834bf8f0aecd5b6ed08d755ce0abbf8d62231090f890a0420d5ecd292d53"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PlayerService: ClassTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded), 341 methods. The bar is 400 significant lines; this is 215 over it, 1.54\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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3354cc8c976eb6c7a40300135adb576311e4ad47d3600df58fbe0a358c9d8b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/PlayerBar.swift: FileTooLong \u2014 757 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PlayerBar (8-1114). The bar is 500 significant lines; this is 257 over it, 1.51\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":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a26dae889a2a7a38e3245e45b728d9194b6dd17f8e93282c18ac6773ce8fde0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: APIExplorer/SearchAudit.swift: FileTooLong \u2014 755 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 255 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb28056b9e985cfec22a014ae2cc643be6ff9289bbe44c3616b6e50daa633dc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlayerService.finishTrackEnded: MethodTooLong \u2014 finishTrackEnded runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a0defa19ea6d432d088facc7e3a1e7a6cc9fac4034ca8819f9726ff0d1baed"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: YouTubePlayerService: ClassTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded), 104 methods. The bar is 400 significant lines; this is 170 over it, 1.43\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":"Sources/Kaset/Services/Player/YouTubePlayerService.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63e7e3a9fa572879fc08ddad4b1c382a35488c51154040f997f393150a22413"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ArtistParser: ClassTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 166 over it, 1.42\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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"165d2ef1a32c5b7ccac706b69b3aa3f87c2505ab9043a8297f93c364da7ae854"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AuthService: ClassTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 162 over it, 1.41\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":"Sources/Kaset/Services/Auth/AuthService.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3099bd8fc488730be3588413051cb550d2f925b20e3e2a10ec29e211fc8aa5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ScrobblingCoordinator: ClassTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), 50 methods. The bar is 400 significant lines; this is 156 over it, 1.39\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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ab1b1aaddbf2f194668b8e40e9d5fb2720c836bbbe06e4193c84e3359fe695"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SongLikeStatusManager: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/SongLikeStatusManager.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"886ab8d0900279ef6be5371f58a902dd3a318e1c219d386f053c331d9906eb46"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AccountService: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb0c8f8bdd36d18d77f1ef28aab24755dd7c50fe06de3b434f732d77005c054"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MiniPlayerWindow: ClassTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 114 over it, 1.29\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":"Sources/Kaset/Views/MiniPlayerViews.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fae0dcccbccd18344c0b2c7fc3bfea3742a6b4cf0798f69166ca8b0c82ee59c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/ArtistDetailView.swift: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ArtistDetailView (6-926). The bar is 500 significant lines; this is 139 over it, 1.28\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":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bf809ca4ced7727631384c5cf1735dc10da9f9a6caa9f801306063c3b237bd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LibraryContentParser: ClassTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 104 over it, 1.26\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":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6342d0bd5034275b36c45ad491091c646adf9a86ea367721a3dc0b6a9e8b423e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/FavoritesManager.swift: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: FavoritesManager (9-897). The bar is 500 significant lines; this is 129 over it, 1.26\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":"Sources/Kaset/Services/FavoritesManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de232c2fe201d0269d7cf07f3d0ee973ff2c64427d168ca4a1d077c7bae6ea1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: YouTube/YouTubeWatchWebView.swift: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 125 over it, 1.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b5a648c7429c6b2de295271d70227fb4ea3c51abb85638037b740d254c6873"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Player/PlayerService.swift: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PlayerService (19-1210). The bar is 500 significant lines; this is 122 over it, 1.24\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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d814de5994c381b4253563b62868d051ab0e83d39a1ad8a8e9bae15f0ef34027"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: YouTube/YouTubeWatchView.swift: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 122 over it, 1.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeWatchView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eabf5a9c39170733a24e6095804eb349780f4cae393a1be3cb41359d715d134"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SongLikeStatusManager: ClassTooLong \u2014 488 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 88 over it, 1.22\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":"Sources/Kaset/Services/SongLikeStatusManager.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f48029771b10f8b055fa559d2657a19eba3ad5fd650908183603f7ab570305a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KasetApp: ClassTooLong \u2014 488 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 88 over it, 1.22\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":"Sources/Kaset/KasetApp.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8774d6316b33060d79ccc8bc5e600d68bf0dbdd061cd8d1e1e08a4f8cc522d66"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: YouTubePlayerBar: ClassTooLong \u2014 484 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 84 over it, 1.21\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":"Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ae309cc998cb1c5beb15bd776316bfc9a2a00ffb06ea9b81c1ca8f08bfdd15"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ParsingHelpers: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 80 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"be97af48712879ca54c2b4408829fb840b62d30ceeb7bf03811e94311d3af350"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlayerBar: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1406f746a486c37e28feafbf0858ca6e512b3b2ccc29ca62f2fe5a92709c309e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: APIExplorer/DiscoveryAudit.swift: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: DiscoveryAudit (184-705). The bar is 500 significant lines; this is 100 over it, 1.20\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":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d0890401a270ad9925d046b01f9b31218e1bcdaf957a46341926eb35ef52be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: YouTubeWatchWebView.documentStartAudioGuardScript: MethodTooLong \u2014 documentStartAudioGuardScript runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BDocumentGeneration.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d5e9f71bbb147a430c6629af7828e27335d59af90f9489884c4cf2b39add9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AI/ContentSourceResolver.swift: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 95 over it, 1.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e93a7fda9d18f9e638bc032eb26b9cc043ebce6b4c478f4372668d07b0260d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: WebKit/WebKitManager\u002BCookieBackup.swift: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 88 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c6c310e4b9826bece184733f0074e6c08dfe1969d9fc3438f986e2e0d0491e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GeneralSettingsView.body: MethodTooLong \u2014 body runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/GeneralSettingsView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a4f304b897d88cb81e21dcbdf7e7059f4bb73a1498c3bb489d323c0d9f717b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Parsers/SearchResponseParser.swift: FileTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 84 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b518b9eb89d29994f012a335bbe2fad8953c5529061cd8913e66d3b198261ee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WebPlaybackDocumentGeneration: 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":"Sources/Kaset/Services/Player/WebPlaybackDocumentGeneration.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c46c788af3e18198e7a1f23b0045739d63251b4494379d56eeeafcae4f3328"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SharedViews/HomeItemCell.swift: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: HomeItemCell (18-663). The bar is 500 significant lines; this is 81 over it, 1.16\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":"Sources/Kaset/Views/SharedViews/HomeItemCell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"513052752986c6e23b8151b7bf0bd2189b323bb835d3ff65bf25f7e791882cfc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CommandExecutor: ClassTooLong \u2014 457 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 57 over it, 1.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee63c657429631d49929d289a179dafbbfb9da2c52e28273c59d4320d28b628"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Parsers/ArtistParser.swift: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ArtistParser (7-914). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10fd83b13a4bcfeb38f8e9baa1c3f01ae54d8b5d0109cb2e721cc8d2f5ec9f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Auth/AuthService.swift: FileTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AuthService (8-808). The bar is 500 significant lines; this is 67 over it, 1.13\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":"Sources/Kaset/Services/Auth/AuthService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fccf759727e196b80bdc129130f17b73c47104c00918ce0dce2b99714754d4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ArtistParser.parseArtistDetail: MethodTooLong \u2014 parseArtistDetail runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"4377d804470927522a63bb91154fbcaf99544c26387bab0a8273a75cefc2ec22"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Scrobbling/ScrobblingCoordinator.swift: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ScrobblingCoordinator (7-900). The bar is 500 significant lines; this is 60 over it, 1.12\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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c69ea3456ab48293f4498897f05b29c7e4660df9e649b430d1445edcabe22aa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlayerService.play: MethodTooLong \u2014 play runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1b26ab8838cb21dbc28519e070f2d4eea3d81dd13b1186c45af30a931669e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: YouTube/YouTubePlayerBar.swift: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: YouTubePlayerBar (6-710). The bar is 500 significant lines; this is 58 over it, 1.12\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":"Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04e4be7750ccabf94e98beccf7772c36beae7ce88e44a12eaaa69be6c99a83b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/MiniPlayerViews.swift: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: MiniPlayerWindow (76-802). The bar is 500 significant lines; this is 57 over it, 1.11\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":"Sources/Kaset/Views/MiniPlayerViews.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2367f0e0f3db36ba82e28b1fcbad1bdf35873b3b5da60d2b8d79a3daa70169b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/QueueSidePanelView.swift: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 57 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/QueueSidePanelView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2986086963824198f7cdfbf3c7eb7995a71c9ace17447d0ada162ac460016e6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockUITestYouTubeClient: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. Most of these members implement Kaset.YouTubeClientProtocol (30 of 31 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/MockUITestYouTubeClient.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffefa6cd3745442eb20af84cc444ba04c9f9489a4b83bf443f98903728b0fdbf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: View: TooManyMethods \u2014 33 methods, declared across 20 files: Utilities/LiquidGlassCompat.swift (5), Views/PlayerBarIconButton.swift (3), SharedViews/AnimationModifiers.swift (3), YouTube/YouTubePlayerBarPlacement.swift (3), \u002B16 more file(s). The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Kaset/Utilities/AppLocalization.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"765df5585cd31c5638f4adefddd97986ec8bb02d7f22e8b37e87e32de17d66c3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlaylistDetailView: TooManyMethods \u2014 33 methods, declared across 3 files: Views/PlaylistDetailView.swift (21), Views/PlaylistDetailView\u002BHeaderActions.swift (10), Views/PlaylistDetailView\u002BLibraryActions.swift (2). The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Sources/Kaset/Views/PlaylistDetailView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad65b85197bb5e165c649cedbedcf507f207340a612a5c1599be01730005e87e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.swift.showHelp: FunctionTooLong \u2014 showHelp runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3909}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2a846fb041122b6d5d0e17b5cc567b65af8ea3309af5ca40d1e7f920319d95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: YouTubeAskCore/YouTubeAskParser.swift: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 39 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/YouTubeAskCore/YouTubeAskParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f562a5f282e25cc8b2b494b76f63d3b377727a960f31489e7738c0b90a19763"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Kaset/KasetApp.swift: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: KasetApp (40-842). The bar is 500 significant lines; this is 37 over it, 1.07\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/KasetApp.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c07eba8b4184c317fba7024f42f511bbc9842a49936a74677919f3fb20ecb33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlayerService.updateTrackMetadata: MethodTooLong \u2014 updateTrackMetadata runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5409e98330ece3f7e0684118e6ac9cf84cd99917c4bb9b765833732dad7fa5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AuthService: 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":"Sources/Kaset/Services/Auth/AuthService.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedda51f7f95ce7b3a65e4a630cf92a9d9ca820a2595da98f1fdfd68b23c17be"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LibraryViewModel: 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":"Sources/Kaset/ViewModels/LibraryViewModel.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7d468b64f9b41a242ded126e92be8520b04649bae098b3c1fef83bf2bfc79d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HomeItemCell: 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":"Sources/Kaset/Views/SharedViews/HomeItemCell.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11d24ce480e4610fdbee8f13d0bbdeae0803511ccaa6946c2a9c64e25b0cbe6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/SongLikeStatusManager.swift: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: SongLikeStatusManager (73-828). The bar is 500 significant lines; this is 29 over it, 1.06\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":"Sources/Kaset/Services/SongLikeStatusManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51729164b8d7a12d628a05e8b5bdb88b0b466d4e25d4faa14242ac51ba42cce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HomeItemCell: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 23 over it, 1.06\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":"Sources/Kaset/Views/SharedViews/HomeItemCell.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc9eac1c8b300899d8674cbdacf92cc1720886ab6d4adba7d844c2dadd30c46"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MockUITestYTMusicClient: ClassTooLong \u2014 422 significant lines (blank, comment-only and punctuation-only lines excluded), 93 methods. The bar is 400 significant lines; this is 22 over it, 1.06\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":"Sources/Kaset/Services/API/MockUITestYTMusicClient.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"c733603f84da86182d36ca829b894922ab50b80c780d369a9f7f3309ceab3da2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: YouTubeHomeViewModel: ClassTooLong \u2014 420 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 20 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeHomeViewModel.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b55b8116d52bcc691dcf4eed55e7de22db53c06f32d0e49bb826ae29e1b48c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AccountService.scheduleRestoredSessionPin: MethodTooLong \u2014 scheduleRestoredSessionPin runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01d91ea6307e03a2ee2e02b76a58cebf0b3935c48aa3359bb1065904b374fc2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: WebKit/WebKitManager\u002BCookies.swift: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 16 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookies.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4094f3e275764052c5a880e83641d3149be25f3f7dcc550eb2d56fcde04ff2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Player/PlayerService\u002BPlaybackRestoration.swift: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackRestoration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e741f133147815bc16ec95af821fafe1ef29ea499bc868b3855e6a2d1b645b30"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlayerBarProgressLane.progressBar: MethodTooLong \u2014 progressBar runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarProgressLane.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8442595aea7e8639b47720c2326aecd78c9824cb617bbd17250e224aa85d00ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Parsers/LibraryContentParser.swift: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: LibraryContentParser (5-739). The bar is 500 significant lines; this is 6 over it, 1.01\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":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1547ba2a3cf3ce338b2b8def741c6b936861491dcec3cc5ae43682d34b5c8a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MixTracklistParser: ClassTooLong \u2014 403 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 3 over it, 1.01\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/MixTracklistParser.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b040009266e8ce1d22ec7f854a49341fa4c7d4cac36bb884a0b8b7d84c0015"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (7 members, 24 shared lines): Sources/Kaset/Views/ChartsView.swift:10-54 | Sources/Kaset/Views/ExploreView.swift:10-54 | Sources/Kaset/Views/HomeView.swift:12-53 | Sources/Kaset/Views/LibraryView.swift:63-152 | Sources/Kaset/Views/MoodsAndGenresView.swift:10-54 | Sources/Kaset/Views/NewReleasesView.swift:10-54 | Sources/Kaset/Views/PodcastsView.swift:12-59 \u2014 These 7 members are variants of one another: a block of 24 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a67492179df8ae8014d400908c16fe3a5d484bbab2b1aa7d5f42b0f2e23868"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 7 shared lines): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:255-284 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:290-319 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:8-37 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:291-305 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:11-35 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:21-51 \u2014 These 6 members are variants of one another: a block of 7 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ede849c4d63b541b3612b52d6520db88a36b346fd8b16da18c3ef207407a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 3 shared lines): Sources/APIExplorer/main.swift:1837-1853 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:8-37 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:68-84 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:291-305 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:11-35 \u2014 These 5 members are variants of one another: a block of 3 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ca834c992013c41402c4036a20f5a14ca82e33e7a4e631cdf29fd5fda51775"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/Kaset/Services/API/Parsers/YouTube/ChannelPageParser.swift:60-83 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubePlaylistPageParser.swift:77-100 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/ChannelPageParser.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"00be9edf91b9fd108a85edc88b5fe737993e726398ea977b16f46ea300bbb147"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:1618-1634 | Sources/Kaset/Services/API/YTMusicClient.swift:1643-1660 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6845a81104bffadea11cf141b3808e3b2ca379cedb121c7808f05b4ae3e483"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Sources/Kaset/Views/ChartsView.swift:129-150 | Sources/Kaset/Views/ExploreView.swift:130-152 | Sources/Kaset/Views/HomeView.swift:183-209 | Sources/Kaset/Views/MoodCategoryDetailView.swift:85-138 | Sources/Kaset/Views/MoodsAndGenresView.swift:142-163 | Sources/Kaset/Views/NewReleasesView.swift:129-150 | Sources/Kaset/Views/SearchView.swift:444-473 | Sources/Kaset/Views/SharedViews/FavoritesSection.swift:65-88 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"092e28f1a1697f819c861ad3e632993df9efb2a0aa97326af2d70ec5a1f0e60c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:17-42 | Sources/Kaset/Views/YouTube/YouTubeExploreView.swift:14-58 | Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift:7-41 | Sources/Kaset/Views/YouTube/YouTubePlaylistDetailView.swift:17-42 | Sources/Kaset/Views/YouTube/YouTubePlaylistsView.swift:7-41 | Sources/Kaset/Views/YouTube/YouTubeShortsView.swift:17-64 | Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift:14-40 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeChannelView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ae1a3dd13ec51efb6eae9e1cf0a29f648856f86e04575dc2382e23a99d8b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/Kaset/ViewModels/ChartsViewModel.swift:35-61 | Sources/Kaset/ViewModels/ExploreViewModel.swift:35-62 | Sources/Kaset/ViewModels/HistoryViewModel.swift:66-96 | Sources/Kaset/ViewModels/HomeViewModel.swift:59-92 | Sources/Kaset/ViewModels/MoodsAndGenresViewModel.swift:35-60 | Sources/Kaset/ViewModels/NewReleasesViewModel.swift:35-60 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/ChartsViewModel.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"174c6e107d21bae44ea90fc365bf6633a68bedead70560d5ccbf934289264eb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/Kaset/ViewModels/YouTube/YouTubeChannelViewModel.swift:27-47 | Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift:55-81 | Sources/Kaset/ViewModels/YouTube/YouTubePlaylistViewModel.swift:27-47 | Sources/Kaset/ViewModels/YouTube/YouTubePlaylistsViewModel.swift:45-69 | Sources/Kaset/ViewModels/YouTube/YouTubeShortsViewModel.swift:48-72 | Sources/Kaset/ViewModels/YouTube/YouTubeSubscriptionsViewModel.swift:59-93 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeChannelViewModel.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"281ffc2ca83d05000e633d52615d9bdbbab009822f051702d625e7d8fe5c4d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/Kaset/Views/LegacyFallbackViews.swift:349-366 | Sources/Kaset/Views/LegacyFallbackViews.swift:368-385 | Sources/Kaset/Views/LyricsView.swift:384-401 | Sources/Kaset/Views/LyricsView.swift:403-420 | Sources/Kaset/Views/QueueSidePanelView.swift:69-87 | Sources/Kaset/Views/QueueView.swift:83-101 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"7792844ef77488c1d2dfb26ece3bf8255c18e7f7b83cba8d43c454510752c681"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:148-175 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:177-204 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:206-240 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:242-269 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:271-301 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"6151a5a5a49630ece6333300b85a0691075bbf3c661509deb169c07002d41f4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift:5-46 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ChineseRomanizer.swift:5-44 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/HindiRomanizer.swift:5-44 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/JapaneseRomanizer.swift:6-58 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ThaiRomanizer.swift:5-46 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a3dfede694326920d80b78fb2171648461e6e65f29ec555a995e81eff38c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Kaset/ViewModels/ChartsViewModel.swift:64-97 | Sources/Kaset/ViewModels/ExploreViewModel.swift:65-99 | Sources/Kaset/ViewModels/HomeViewModel.swift:96-128 | Sources/Kaset/ViewModels/MoodsAndGenresViewModel.swift:63-96 | Sources/Kaset/ViewModels/NewReleasesViewModel.swift:63-96 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/ChartsViewModel.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"01580468082b4c267874b33bca534c2ce5f5631e43e21cdc5054b68109d1ba32"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Kaset/ViewModels/YouTube/YouTubeExploreViewModel.swift:40-53 | Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift:40-53 | Sources/Kaset/ViewModels/YouTube/YouTubePlaylistsViewModel.swift:30-43 | Sources/Kaset/ViewModels/YouTube/YouTubeShortsViewModel.swift:33-46 | Sources/Kaset/ViewModels/YouTube/YouTubeSubscriptionsViewModel.swift:44-57 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeExploreViewModel.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"71820fadd0fc5bbe7abcc4cb10ff0e61da7c72dd1fc81ae311769535ea7f21dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Kaset/Views/ChartsView.swift:58-81 | Sources/Kaset/Views/ExploreView.swift:58-82 | Sources/Kaset/Views/MoodsAndGenresView.swift:59-103 | Sources/Kaset/Views/NewReleasesView.swift:58-81 | Sources/Kaset/Views/PodcastsView.swift:63-86 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ad56b4197ffaa867602412f58ca4608f092b3462e13c517f07ac0b8affafeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Kaset/Views/ChartsView.swift:83-109 | Sources/Kaset/Views/ExploreView.swift:84-110 | Sources/Kaset/Views/HomeView.swift:113-134 | Sources/Kaset/Views/MoodsAndGenresView.swift:105-122 | Sources/Kaset/Views/NewReleasesView.swift:83-109 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73adc998b27b0a0d265992e1570cad62b9af5d1b1ad207299d56d360ff3c9b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Kaset/Views/ChartsView.swift:113-127 | Sources/Kaset/Views/ExploreView.swift:114-128 | Sources/Kaset/Views/HomeView.swift:138-152 | Sources/Kaset/Views/MoodsAndGenresView.swift:126-140 | Sources/Kaset/Views/NewReleasesView.swift:113-127 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"50dcaaff50844d33f82079c26d0c30899b277e6b54fd7c313808161482fbd886"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Kaset/Services/API/Parsers/YouTube/YouTubeCommentsParser.swift:216-237 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeFeedParser.swift:26-53 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:44-76 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:356-377 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubeCommentsParser.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f73514eaef7b4625e6973e7784d69b509a30cfa1e80830f478f7547544f3f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Kaset/Services/API/YTMusicClient.swift:1208-1224 | Sources/Kaset/Services/API/YTMusicClient.swift:1227-1241 | Sources/Kaset/Services/API/YTMusicClient.swift:1247-1261 | Sources/Kaset/Services/API/YTMusicClient.swift:1433-1448 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e1ee9944aaff73182d738a51a4d585e5479a39b1a60ef1f496c56518796f61"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Kaset/ViewModels/ArtistDetailViewModel.swift:43-66 | Sources/Kaset/ViewModels/ArtistDiscographyViewModel.swift:22-42 | Sources/Kaset/ViewModels/ArtistEpisodesListViewModel.swift:27-47 | Sources/Kaset/ViewModels/MoodCategoryViewModel.swift:27-50 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/ArtistDetailViewModel.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f32eab9a9ff38959a4cdcef5cb3d1ffa81ac17c79a186e5bb4d4204d50f836"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:71-114 | Sources/Kaset/Views/YouTube/YouTubeListRows.swift:50-97 | Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift:83-133 | Sources/Kaset/Views/YouTube/YouTubeWatchView.swift:735-754 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeChannelView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb621c365fe4e50b1d4783246a9f934634d966344f85b78015500cf615b6770"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:92-149 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:172-231 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf6a9ca1893db8b2024808943d2b5c45558e32d657320853eea04353209604d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): Sources/Kaset/Services/API/YouTubeClient.swift:921-979 | Sources/Kaset/Services/API/YouTubeClient.swift:983-1038 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YouTubeClient.swift"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e1f5b6f75327106270743c2375173537a3dbdb168ec3e736fe80697c874e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (86 corresponding lines): Sources/Kaset/Services/AI/FoundationModelsService.swift:377-468 | Sources/Kaset/Services/AI/FoundationModelsService.swift:498-583 \u2014 These two members are one piece of code written twice and then edited apart: 86 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":"Sources/Kaset/Services/AI/FoundationModelsService.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf67d8fb4a1a0b3ab982c7bf890276b8d02a5b43d492ae51b7a79b975adf696"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): Sources/Kaset/Views/ArtistDetailView.swift:321-384 | Sources/Kaset/Views/TopSongsView.swift:75-138 \u2014 These two members are one piece of code written twice and then edited apart: 64 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":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"23849cc441dc8c3efa465831a05a0f9bdcdaed21511cfd0cdff1f28ad6964597"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:685-728 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:649-685 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:848-903 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9c224aa77ca46cc25b6409db1a2aa9ad59fd6e977147b905300e2faf8728b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Sources/APIExplorer/SearchAudit.swift:608-666 | Sources/APIExplorer/SearchAudit.swift:726-772 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cabf56aadc08fe3abe9adb8df3dab6c2fd2a670c2184c76751b0556d728413e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): Sources/Kaset/Views/LegacyFallbackViews.swift:24-74 | Sources/Kaset/Views/PlaylistDetailView.swift:56-129 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68642916d297d0a03b44b0812a5ebc738dc08085929aff6aa8110507df65f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): Sources/Kaset/Views/YouTube/YouTubeListRows.swift:106-161 | Sources/Kaset/Views/YouTube/YouTubeListRows.swift:171-221 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"Sources/Kaset/Views/YouTube/YouTubeListRows.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed3cab72d5d7b6da43a8f3f788fa955cf83e4be4d997d13ecc9dc29c89fc03d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): Sources/APIExplorer/main.swift:2087-2145 | Sources/APIExplorer/main.swift:2176-2237 \u2014 These two members are one piece of code written twice and then edited apart: 59 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd46334a068fac41b08bc41c398e5366c130bbb341346170f3b9c74800b0fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): Sources/Kaset/Views/ArtistDetailView.swift:655-704 | Sources/Kaset/Views/ArtistEpisodesListView.swift:62-121 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7bfe18926d91c842413edfce7caa6c070d316eecf02f823a9852aae19573c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (89 corresponding lines): Sources/Kaset/Views/MiniPlayerWebView.swift:1555-1643 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BCoordinator.swift:327-417 \u2014 These two members are one piece of code written twice and then edited apart: 89 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fc88ec49f1b252944455ea2c19ed6472a817439c24decfb393d263784bad2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): Sources/Kaset/Views/MiniPlayerWebView.swift:1791-1855 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:519-587 \u2014 These two members are one piece of code written twice and then edited apart: 65 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9cd4ac0d7887bef5da5b4d2b8897e301e649717159a1928ebf384ac95c6bb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:1994-2061 | Sources/Kaset/Services/API/YouTubeClient.swift:736-809 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"2567da109d04f15b9a4bbdcf3e7539059022c265cb90c39d5ae22ebf595bd092"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): Sources/Kaset/Services/Library/LibraryMutationActions.swift:887-946 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:949-1008 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b25f2b5d5f8c1ee60eb3ca8e0d01899ea93d3812be686f1b34fb91534cc67d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): Sources/Kaset/Services/AI/CommandExecutor.swift:483-536 | Sources/Kaset/Services/AI/CommandExecutor.swift:538-603 \u2014 These two members are one piece of code written twice and then edited apart: 54 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":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fa4fc7793669d2a8b100b4102d379ce442b763f1b72d1d0003551c9402f18d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Sources/Kaset/Services/AI/CommandExecutor.swift:409-440 | Sources/Kaset/Services/AI/CommandExecutor.swift:442-481 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4348236c017e54038144a6cdd665253e6180aa3cf51a362d442d174f105a33c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Sources/Kaset/Services/Library/LibraryMutationActions.swift:374-411 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:414-452 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"62da243f9c31ca6661e6c39d79e5264f4b4d718b680f0c374835f3884c1fb546"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Sources/Kaset/Views/LegacyFallbackViews.swift:399-444 | Sources/Kaset/Views/LyricsView.swift:424-472 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f39ed6d750e7c5ef58cda436223e62caa6d507ddf46dab8ba3c52716835c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 43\u002B corresponding lines): Sources/Kaset/Views/LibraryView.swift:315-377 | Sources/Kaset/Views/LibraryView.swift:379-426 | Sources/Kaset/Views/LibraryView.swift:442-484 | Sources/Kaset/Views/LibraryView.swift:486-530 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 43 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LibraryView.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25cbf527782acaab5fc366539b72f8ee8b1916b021f47f7620468695a609229"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): Sources/Kaset/Views/PlayerBar.swift:41-99 | Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift:53-104 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2811aa9d00ddd0facad45afb1ee8b97da9697c2f91e2c52d1d043a36953686d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Sources/Kaset/Views/PlayerBar.swift:535-574 | Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift:507-546 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2c2ef8d7045b1dcb14d285fefe6d78e2be3622a1f40cc3d59ec5a97e9505fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Sources/Kaset/Services/Audio/BiquadFilter.swift:151-195 | Sources/Kaset/Services/Audio/BiquadFilter.swift:198-232 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Audio/BiquadFilter.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c32d1161d1b8c1a6b95488692113070c7173ef2b08ccd21c9bea5407ed66747"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Sources/Kaset/Services/Library/LibraryMutationActions.swift:454-495 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:644-688 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"886e7711a15e1dd0213b28c8c818aed3b2e5b6c2c0e898d5d357cd10aedf7b61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): Sources/Kaset/Views/MiniPlayerWebView.swift:614-677 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:64-111 \u2014 These two members are one piece of code written twice and then edited apart: 48 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"16daf997ba91dd38f9800747dfd63b6afb4c6b30316cca65cc5fa711db07bcf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Sources/Kaset/Services/Library/LibraryMutationActions.swift:543-581 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:609-642 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"60413d309c6bed33b0a82a735ba32796e12d2b9f3c3b0d4d342a91f9f13ce316"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Sources/Kaset/Views/MiniPlayerWebView.swift:1645-1686 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:382-433 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef797ecb499190abca20f7ec34689b7785a250c3652e0001b0050ae32e5bacc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:694-732 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:386-415 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0c2c172d0e709b547cb3055fd4a0b9b22d9b21995086ec7f97b906cd5aba45"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Sources/Kaset/Views/LegacyFallbackViews.swift:246-285 | Sources/Kaset/Views/LyricsView.swift:54-99 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0510a28a6e97e0c012681b4a196bef6f661c05b238e16718af331adaa42b66c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Sources/Kaset/Services/Library/LibraryMutationActions.swift:808-844 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:847-884 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"126d9ba0492e22132f8fb78b817e1f84aa5e4fbe6af84d600c226cb95ec02af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Sources/Kaset/Services/AI/AIErrorHandler.swift:164-207 | Sources/Kaset/Services/AI/AIErrorHandler.swift:242-284 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"Sources/Kaset/Services/AI/AIErrorHandler.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2015fabcfc076a3ba4f5a3413bd7697212c2788f18ed0fb88903bc0cbf3320"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:462-506 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:561-604 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca3355ccbf8116b9bc04b32a0e2bd286c59b40085d4b4758dd220c8502e1c13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:528-556 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:558-586 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:602-633 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c5a1d55e17944650c499a9a29db7ba7942e2036797817a5a61bb7befe914d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Sources/Kaset/Views/ArtistDetailView.swift:17-53 | Sources/Kaset/Views/ArtistEpisodesListView.swift:10-45 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"84183aeef7c7f1247e413e81b0e5566f99d9784a5c9a26f7eb895b27c577eebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift:108-156 | Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift:158-207 | Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift:268-304 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 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":"Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"693ae8b101a40916b098a87384a9ffe18ca6b06763b0ea785895908f761faf97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:1268-1295 | Sources/Kaset/Services/API/YTMusicClient.swift:1299-1332 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"85432513a18311686d40b25df4231287491832d1b1d80b4a1d87941992e787e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:1917-1952 | Sources/Kaset/Services/API/YouTubeClient.swift:670-705 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"adef800d6c4b8a3a1137041a13f572fb6fdf3ebcbcdf99cb5e659f0b73f2aee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:730-766 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:971-1009 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"3274cec712c356d10eb028a5f34e47f70636351e7a5f93e7b1a9cc49f03f758e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Sources/Kaset/Services/Scripting/ScriptCommands.swift:530-575 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:585-617 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"Sources/Kaset/Services/Scripting/ScriptCommands.swift"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99efc758ae7c14890429b12475d443a4d10ba3b1d2e4d2879683f0d70f44efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Sources/Kaset/Views/MiniPlayerWebView.swift:2051-2089 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:756-793 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":2051}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bbd2a2828453eaa966d346c7dcf9b6fbb42881297c67b592fc8ccdf6890f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/APIExplorer/AskVideoAudit.swift:2812-2832 | Sources/YouTubeAskCore/YouTubeAskWireDecoder.swift:130-156 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2812}}}],"partialFingerprints":{"codehealthFindingId/v1":"60344ae94351f28461e4486adc42673cbefe0f0831e454728946ca908498f96f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:1956-1991 | Sources/Kaset/Services/API/YouTubeClient.swift:708-733 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88f0e0327c208a0d9e0ab71d678f9ba0f8ed3a364cdadb643dbb26bbe6a1cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): Sources/Kaset/Views/YouTube/VideoCard.swift:10-40 | Sources/Kaset/Views/YouTube/YouTubeListRows.swift:9-41 | Sources/Kaset/Views/YouTube/YouTubeWatchView.swift:905-936 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/VideoCard.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"80024ce8e515440a8e156e49fdf50201e5a00a2ef0416af4ebafee40481bc9c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:292-325 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:383-412 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"224760ee2e34c41ae7307677ec4c87aac4297a7d213efcb3f128d95527ce63fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/Kaset/Views/ArtistDiscographyView.swift:7-37 | Sources/Kaset/Views/TopSongsView.swift:9-50 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDiscographyView.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"9046e750cbeb6c6f2ca63a35426c299551e9720f6d85a01d852d5398fca15dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/Kaset/Views/ArtistDetailView.swift:557-590 | Sources/Kaset/Views/ArtistDetailView.swift:834-858 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaffb0617eef7d5fe9f4eb520cc2c89faca8d3c67c710dbffb489b20c9f9c190"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Sources/Kaset/Views/MiniPlayerWebView.swift:1906-1937 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:598-636 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1906}}}],"partialFingerprints":{"codehealthFindingId/v1":"363cb05c2d69712025c7a56a9453711cb0db28b70ea93e1effa3be520ecc1ec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/Kaset/Services/API/Parsers/LyricsParser.swift:10-35 | Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BTrackCredits.swift:15-39 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LyricsParser.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b3b88f613ca58b7ed30645ae727df5ae6bbc28d7e34963ac41a82665a6df96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1044-1064 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1066-1087 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6e2f66631fd1bb5998330eecf3b59233b865df7da48d02eae08c47fa3f9080"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): Sources/Kaset/Views/ArtistDetailView.swift:482-516 | Sources/Kaset/Views/ArtistDetailView.swift:788-812 | Sources/Kaset/Views/ArtistDiscographyView.swift:70-101 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 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":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ae6055bca6931fc5f80a6e8217855ed26a309fc5c8d35285088733f234e920"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 39\u002B corresponding lines): Sources/YouTubeAskCore/YouTubeAskParser\u002BFreeText.swift:4-44 | Sources/YouTubeAskCore/YouTubeAskParser.swift:164-202 | Sources/YouTubeAskCore/YouTubeAskParser.swift:213-256 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 39 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":"Sources/YouTubeAskCore/YouTubeAskParser\u002BFreeText.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f88550e7ee9af62ffba64105e7f4ed831ce5a07c2fe0eefe5c428e02b24739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): Sources/Kaset/Views/PlayerBar.swift:617-640 | Sources/Kaset/Views/PlayerBar.swift:642-664 | Sources/Kaset/Views/PlayerBar.swift:688-709 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae0a6a04cde52a1502a89e97bba439728da6f6762445d3a2448121053459e56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:102-127 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:129-154 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc70d09a399b22860ba2c545f6ae0e7fc9b261b1f2d748d3d5a113d66c0f197a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:143-170 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:56-76 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/AccountsListParser.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a90e708162f4ef79258dbe11229af43eb0869bbc7d526261f9091886f35d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:485-505 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:507-527 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"c046326562470878506e67f222cee5ef8febb3017401c349a085b0f5282979bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/APIExplorer/SearchAudit.swift:341-366 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:223-250 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"824339b299c485a486a2714a36b80ee68ab77724ead1a7920ea97229d75bf0b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 27\u002B corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:220-246 | Sources/Kaset/Services/API/YTMusicClient.swift:320-346 | Sources/Kaset/Services/API/YTMusicClient.swift:377-403 | Sources/Kaset/Services/API/YTMusicClient.swift:952-985 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddddf015d841db6608fb77f7bd1f3b248e06f68e928c7ad3d7f975593408e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Sources/Kaset/Services/AI/FoundationModelsPromptLibrary.swift:253-293 | Sources/Kaset/Services/AI/FoundationModelsPromptLibrary.swift:338-378 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"Sources/Kaset/Services/AI/FoundationModelsPromptLibrary.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6c92c1574abd03aec664a0f73ebf4d70eacc8627860777a8cbeb67b8c9f9fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/Kaset/Views/SharedViews/SongContextMenus.swift:233-265 | Sources/Kaset/Views/Sidebar.swift:171-201 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/SongContextMenus.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7c1f15b9f5f66e81c454b95ea4d9a1c77a5682965e470231258fc772f63b19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BPlaylist.swift:18-44 | Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift:132-159 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BPlaylist.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a68842e2ffc8b948b2524fce1e0034d4eb072ee1fc96cdb5294b99495d87a14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/Kaset/Views/MiniPlayerWebView.swift:1939-1964 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:638-669 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ad22e56d096c23bad19f1938ace9a1090d5ad84a17c8928c1ec6c92092578f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:70-93 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:96-124 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a8cf2a93e71b1feb88b7ff54a03402ae1345a543bb6db828aef2a4a276626a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:193-214 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:217-233 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfd7c252111f4cadaf73c041e2810715f7ab8af6f7ede9388224bc8436f3342"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/APIExplorer/main.swift:201-229 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:146-174 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38d114f777faed03b4f0245c387b8b38a0e7293ae5dc586d1862b2c17a8b74c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/Kaset/ViewModels/YouTube/YouTubeWatchViewModel.swift:311-331 | Sources/Kaset/ViewModels/YouTube/YouTubeWatchViewModel.swift:334-354 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeWatchViewModel.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"48be44ac19c9bf687d6fc8a80ea5c3cc15f9af25a878961159fb0ad53a8aad62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/APIExplorer/main.swift:150-181 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:92-122 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e895ceabf9096d93cbedfcfc9923a4dff4a615ccf71b3760895f15e7b4734d94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:199-217 | Sources/Kaset/Services/API/YTMusicClient.swift:354-374 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee3a3555d7ac3cbfd6d15ef8177c2c1ca1e0dcc8d6c78fc271d3a3f1a937c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/Kaset/Views/PlayerBar.swift:847-872 | Sources/Kaset/Views/PlayerBar.swift:874-900 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"882c0941cdc0f92a1537483d11283b3504c8d32b0333903cf2904f8a1c97f527"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Kaset/Services/Player/QueueSongMetadata.swift:82-103 | Sources/Kaset/Views/PlaylistDetailView.swift:384-403 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/QueueSongMetadata.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a028c380b79abf09df9cf16ec27268fde8754e109a7bd4b54e2b34cab543aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Kaset/Views/FullScreenPlayerView.swift:123-139 | Sources/Kaset/Views/MiniPlayerViews.swift:541-557 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/FullScreenPlayerView.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"453f4d50d44f195ef563950bbcafa7f46072bec2500670764f8f7ec0b5720eaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Kaset/Views/SharedViews/FavoritesContextMenu.swift:69-85 | Sources/Kaset/Views/SharedViews/ShareContextMenu.swift:129-145 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/FavoritesContextMenu.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"377f41ad2fdcfe56ca794c41509c618a6d5db74a78af3c4d4a9c4bb1282a07d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Sources/Kaset/Services/API/MockUITestYTMusicClient.swift:495-509 | Sources/Kaset/Services/API/MockUITestYTMusicClient.swift:511-526 | Sources/Kaset/Services/API/MockUITestYTMusicClient.swift:528-543 \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":"Sources/Kaset/Services/API/MockUITestYTMusicClient.swift"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"382e67ce76ee84bd4922b4df8020b8e40ad2c09a7d4db8e1ab40d7136a850d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Kaset/Services/Player/AlbumPlaybackActions.swift:7-26 | Sources/Kaset/Services/Player/AlbumPlaybackActions.swift:29-48 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/AlbumPlaybackActions.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59109398a3f3f9bf694d6cc313aa90729a7200dfdab71a090e8f954f5ee0d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BNowPlaying.swift:10-41 | Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BNowPlaying.swift:45-69 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BNowPlaying.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8d2aef14b979b6874b6cbd777a47de9e2f15935d5cb1dd92de414f0fb5a817"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:2195-2220 | Sources/Kaset/Services/API/YouTubeClient.swift:1218-1245 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":2195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cef6f924eaf315aedfcc87b3881c7857b3f272b7a459663768960da7910fd85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:1819-1861 | Sources/Kaset/Services/API/YouTubeClient.swift:608-643 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1819}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae1a1c4d332cb836186af4963defbb48de01bae3acae7d3b10bfaaa198aaaff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/YouTubeAskCore/YouTubeAskParser.swift:268-295 | Sources/YouTubeAskCore/YouTubeAskParser.swift:418-456 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/YouTubeAskCore/YouTubeAskParser.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"5212290c2f6e6941e13d31c55b6e9bdcde981b0f0cffab8b9565f66e02146821"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Kaset/Services/Player/PlayerService\u002BQueueHistory.swift:58-75 | Sources/Kaset/Services/Player/PlayerService\u002BQueueHistory.swift:83-100 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BQueueHistory.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ac958d40555142ed237cc64865c7d1d458020cb7577552a2de49d5304e7708"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/Kaset/Services/API/Parsers/YouTube/GuideParser.swift:48-69 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeCommentsParser.swift:176-192 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeFeedParser.swift:271-288 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/GuideParser.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c059c8f06f336141b0be2de35f2c759c1457e0167bce64e642a2f126f4883d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/Kaset/Utilities/ColorExtractor.swift:150-175 | Sources/Kaset/Utilities/ColorExtractor.swift:177-202 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Sources/Kaset/Utilities/ColorExtractor.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8a9385a5fbaa411ce17a4a072203115d8217af3ddd24b977c6041a5a4111de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:1525-1540 | Sources/Kaset/Services/API/YTMusicClient.swift:1665-1680 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"afabae4e39cf74a3d06ecec29fb1a0a0cefc0c8036d0cc0fc24ff978071c4e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/Kaset/Services/Library/LibraryMutationActions.swift:518-541 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:584-607 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa160cce16d98f021ae89efaf066ca0200151fc910b21ececca58b13e7ac198"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:171-185 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:231-243 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf22b6b81ddbd1ac204104300642335e549e2e16bf6ea790615d0abeacca5b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/Kaset/Services/Player/PlaylistPlaybackActions.swift:213-237 | Sources/Kaset/Services/Player/QueueSongMetadata.swift:132-157 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlaylistPlaybackActions.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e6bf2a1978dd8e7f0af3fa01770928fbb2b2ffdefaecfdb6794e83780ab041"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Kaset/Views/FullScreenPlayerView.swift:346-365 | Sources/Kaset/Views/MiniPlayerViews.swift:700-718 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/FullScreenPlayerView.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"c703977bd715196fe3e3a549314aec03185b95c992520f47cacd441184eb904f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:568-580 | Sources/Kaset/Services/API/YTMusicClient.swift:583-595 | Sources/Kaset/Services/API/YTMusicClient.swift:598-610 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d25017e34bdacb72e383756d6c327b6353b6eb664d488ced839038a34e48a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/APIExplorer/main.swift:294-317 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:239-261 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ffdb4b76324ab1f53962a9225b6b080233fa2a888d08f78b261dfd77f8f068"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:310-332 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1247-1270 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05a2b64e19aadd03beccf67ab5163b29a7e4200ac5dc225b49be7412cc375ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift:23-41 | Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift:69-86 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"60711e1d79010a17817950496ca8c6bb2c3a94ebc6af8a22b88e12bd106a15ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:500-507 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:509-517 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:519-526 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:528-536 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a63b94bf6324baf70b463b1b6ee7ac68d792844d842e5f4d116faa85b01cc8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Sources/APIExplorer/main.swift:255-282 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:200-227 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"717128d0688df67d43f74c4f742c3feacc905393fb1e1cbb04f42adaaf3414bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:1340-1356 | Sources/Kaset/Services/API/YTMusicClient.swift:1364-1383 | Sources/Kaset/Services/API/YTMusicClient.swift:1408-1423 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1564689b137f56afb8d10f28b3f6f5dc0f37f0a575dbdab750d38ba959827d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Kaset/Views/AccountRowView.swift:114-128 | Sources/Kaset/Views/AccountSwitcherPopover.swift:157-171 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/AccountRowView.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"689141c0121afff5e75b53a19fc2c8003959278aae43e1d329e9be98d8aba471"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/Kaset/Views/MiniPlayerWebView.swift:1688-1709 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:435-457 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"866e4414992abca89746eb2fa7690bb2e390a79230f341cdec9a5e5364a227dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Sources/Kaset/Models/YouTube/YouTubeFeed.swift:265-291 | Sources/Kaset/Models/YouTube/YouTubeVideo.swift:32-56 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/YouTube/YouTubeFeed.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"776f69d4860097eceaa11c7395e3fc55fea76c310b3f4fe561ed7c6158bf2927"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Views/LibraryView.swift:181-200 | Sources/Kaset/Views/SearchView.swift:206-221 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LibraryView.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fb1af904ce5fd5ff940e72df7b80e18c7ca3c0d2a91a88e80985763b66856a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/Kaset/Views/MoodCategoryDetailView.swift:212-219 | Sources/Kaset/Views/SharedViews/FavoritesSection.swift:230-243 | Sources/Kaset/Views/SharedViews/HomeSectionItemCard.swift:266-279 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 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":"Sources/Kaset/Views/MoodCategoryDetailView.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5b10ee1d443559a7fef5829ce35c4678309c895af443b64dbb91a0399c584b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 19\u002B corresponding lines): Sources/APIExplorer/main.swift:962-982 | Sources/APIExplorer/main.swift:1271-1291 | Sources/Kaset/Services/API/Parsers/LyricsParser.swift:71-91 | Sources/Kaset/Services/API/Parsers/ResponseTreeSearch.swift:5-25 | Sources/Kaset/Services/API/Parsers/YouTube/GuideParser.swift:28-46 | Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift:321-341 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a2bb0f1aacd615a82d944680538c004f3bdaee843bddd371385d3407860faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Services/Audio/ProcessTapHelper.swift:344-359 | Sources/Kaset/Services/Audio/ProcessTapHelper.swift:586-601 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Audio/ProcessTapHelper.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ad8ca3b7080029758f788790c6e3f70f525005dff8445ef83fc031edc3376f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:471-483 | Sources/Kaset/Services/API/YTMusicClient.swift:628-640 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f3daa5a664ce2fc3ad073f61d0d01678bef029afb05d85b7df932d92e0e249"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:580-596 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:636-659 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fa307f47f22fc8a3d337e2dbe193e6d0df9bcac5a45baf65b5249430f58a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Views/SearchView.swift:254-269 | Sources/Kaset/Views/SearchView.swift:271-286 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SearchView.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"762adb5a0f792321f62fd294db4b8910c36154d27214432a4b90e3fd35222584"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Kaset/ViewModels/HistoryViewModel.swift:144-161 | Sources/Kaset/ViewModels/PodcastsViewModel.swift:135-152 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/HistoryViewModel.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8d5f391b20a4ab50dcff3fb39a0d6211d523684d7588709b124f131f5610b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 19\u002B corresponding lines): Sources/APIExplorer/main.swift:1465-1483 | Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift:110-130 | Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift:161-181 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeCommentsParser.swift:240-258 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubePlaylistPageParser.swift:55-75 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 19 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86cbd444169c90ebcd6fc04171f86ad7502ac769b6898303b37cef105fec084"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:87-98 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:644-655 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:737-749 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e955003ce24119858365291571cc1c9c8b8a669afd483a228b7bcd45f22b2017"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Services/Scrobbling/ScrobbleQueue.swift:114-129 | Sources/Kaset/Services/SidebarPinnedItemsManager.swift:50-65 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobbleQueue.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44f5890b23b10821f669d32f8b1cb9fe6d4c65940b4aeaa7c082c4613bced6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): Sources/APIExplorer/main.swift:1570-1585 | Sources/APIExplorer/main.swift:1685-1698 | Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift:195-215 | Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift:217-245 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7e7d7ca48aaecf1800036fea687d9fe9f5e8c2a903a5659b1d72dc848b761b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:77-100 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:158-175 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"12be8d5f6d1f73476d572ed42ea82110ef7d48f68fde44c70d6be1ff5287ff33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Kaset/Services/Library/LibraryMutationActions.swift:159-173 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:268-282 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ef0a0fdcd9987d0259fdc46a16cb7110fa0fdd5f2c98cad5618d9a235b9378"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/APIExplorer/SearchAudit.swift:169-178 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:552-561 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7f802b9c9196281f92939e8af16e349cd2133fddd26b13cb36a6951d0244ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Sources/APIExplorer/main.swift:231-253 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:176-198 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccbf6b8fde6c01372af8ea8c6e0ae30203462215ec4ce479354e659a08d4df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Sources/APIExplorer/AskVideoAudit.swift:944-960 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1338-1352 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:249-268 \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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b7e796aefdd355a9723557dbc97ff048baf6c41fb4c1502e0d714b76fd72ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/APIExplorer/main.swift:183-199 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:124-144 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"9413be6c47a161b2d4ba4de97d83b459bb4732b8695abac50ce0a69c72a15b9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Kaset/Services/FavoritesManager.swift:163-179 | Sources/Kaset/Services/FavoritesManager.swift:181-192 \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":"Sources/Kaset/Services/FavoritesManager.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bbc0ca79fe0713f13193efe486f77823b489dd1da0281bbd383202e0e9e3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:201-223 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:253-270 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"285fc21db89be2cf8482891ac167dbe3e1ec40f8fd217fcc18b67cb2c5041174"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Models/SearchResponse.swift:191-206 | Sources/Kaset/Models/SearchResponse.swift:234-249 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/SearchResponse.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"180b9d7b6869174646d448506c116d64fe5739235788208c33aac4ea5fcbb60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:689-705 | Sources/Kaset/Services/API/YTMusicClient.swift:1024-1045 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fdc6bb57964300201519da2d2617cecb32fa739aaf8d069051a1c2fcc98a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Kaset/Services/API/Parsers/ResponseTreeSearch.swift:44-63 | Sources/Kaset/Services/API/Parsers/ResponseTreeSearch.swift:91-111 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ResponseTreeSearch.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af5ae1c79be25ad545c9c6549afdab0c24bfdac5028cee93c2ec759e82c42b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Kaset/Services/AppIntents/PlayContentIntents.swift:22-30 | Sources/Kaset/Services/AppIntents/PlaybackControlIntents.swift:79-89 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AppIntents/PlayContentIntents.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"639732cec64dcef5425fd81036d7564af635eb2ee149bd713beb2277ee49a96c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Kaset/Services/Scrobbling/LastFMService.swift:208-219 | Sources/Kaset/Services/Scrobbling/LastFMService.swift:221-236 \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":"Sources/Kaset/Services/Scrobbling/LastFMService.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce41594865fd9c66e4ebefd4ad247cd72fb4401027f59facacf093ac882509f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:270-289 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:328-346 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7856afa1bfc5ca1439a161bbc7970ff32684a911a5a1ceb15d496142af6ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/Kaset/Views/ArtistDetailView.swift:708-724 | Sources/Kaset/Views/ArtistDetailView.swift:770-786 | Sources/Kaset/Views/ArtistDetailView.swift:816-832 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"4329831bf245ad54006751f97e49aca6736bf5a8d0f1a9b5a52ce2be0c4754f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:185-193 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:134-142 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2133f35ae7bffd8c9bab3025b89439910143cb49bbe328a2e46368ba63fd87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:73-92 | Sources/Kaset/Services/API/YouTubeClient.swift:80-103 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3532946138f0b5b9eec82810b9e6d387b9121d171e9563cf5a5d8edb1fa10c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Kaset/Models/Song.swift:255-265 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:608-626 \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":"Sources/Kaset/Models/Song.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df72751a7994b5fe1622ced515d3c42e2d58446f43ab70222a0ed81b6d9ec9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Kaset/Views/SharedViews/FavoritesContextMenu.swift:54-66 | Sources/Kaset/Views/SharedViews/ShareContextMenu.swift:114-126 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/FavoritesContextMenu.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e7d7ecff5f1f21b7c0b1772bebf1d9a19289cff6ad590c5cc44a12779cfa159"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): Sources/APIExplorer/main.swift:598-610 | Sources/APIExplorer/main.swift:612-624 | Sources/APIExplorer/main.swift:626-638 | Sources/Kaset/Services/API/YTMusicClient.swift:2315-2327 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"6906adc083706cb90d3f5ba5483806885eac5b178fa3dbb83c273fe91cfafb2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Kaset/Services/AI/ContentSourceResolver.swift:551-563 | Sources/Kaset/Services/AI/MusicDiscoveryTaxonomy.swift:269-276 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d66e4948a98aea3f6cddc8b731d453aa2137afedaf54d4127f407d4824906a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:1801-1817 | Sources/Kaset/Services/API/YouTubeClient.swift:587-606 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13f824f91830d10e7ceb835be9d85dfdcba9e280ddb9505ca7afe91e28a10ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): Sources/Kaset/ViewModels/LibraryViewModel.swift:93-108 | Sources/Kaset/ViewModels/LibraryViewModel.swift:147-162 | Sources/Kaset/ViewModels/LibraryViewModel.swift:171-190 | Sources/Kaset/ViewModels/LibraryViewModel.swift:199-216 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/LibraryViewModel.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee0281fcef5457d23e21012f34f63e9463decd46795450c975b2b3b2afa99b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Kaset/Services/Library/LibraryMutationActions.swift:147-157 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:256-266 \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":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edf90b70f2ba0e058286547b42dc7f29c86f7438a16ee6291e0bf1047a27f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Kaset/Views/MiniPlayerSeekSection.swift:133-144 | Sources/Kaset/Views/YouTube/YouTubePlayerBarTimelineLane.swift:85-98 \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":"Sources/Kaset/Views/MiniPlayerSeekSection.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d157af17499bd4b659824222971a0cceb620d2b062e2060d0fcc73c075260b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Kaset/ViewModels/SearchViewModel.swift:257-279 | Sources/Kaset/ViewModels/SearchViewModel.swift:282-299 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/SearchViewModel.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8e8d4b0bbf83a8082183cffb4c21a4c2c69d25d76389c0b0c0fd029e87fb8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): Sources/Kaset/Views/ArtistDetailView.swift:413-433 | Sources/Kaset/Views/ArtistDetailView.swift:435-451 | Sources/Kaset/Views/ArtistDetailView.swift:453-469 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81e5f4a3692986b0924e85673949155997023cf54c7360732279fcd42c2a56c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Kaset/Models/HomeSection.swift:31-42 | Sources/Kaset/Views/LibraryView.swift:583-596 \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":"Sources/Kaset/Models/HomeSection.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd19b2bf4085ef6b70d7515a6f8cdd143a9561f06785f61b3b4c5ecdbc74616e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:1544-1558 | Sources/Kaset/Services/API/YTMusicClient.swift:1716-1730 | Sources/Kaset/Services/API/YTMusicClient.swift:1736-1751 | Sources/Kaset/Services/API/YTMusicClient.swift:1756-1768 | Sources/Kaset/Services/API/YTMusicClient.swift:1773-1785 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d900a119f195041a9cffbec0df69380e51dfb7e438d3293c02ba06f0883f9b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Kaset/Services/Player/YouTubePlayerService.swift:941-956 | Sources/Kaset/Services/Player/YouTubePlayerService.swift:1081-1092 \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":"Sources/Kaset/Services/Player/YouTubePlayerService.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f16bd757f5f04de94db39288a971e54030bf3a5d0126d62537562571d20e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Views/ExtensionsSettingsView.swift:317-335 | Sources/Kaset/Views/YouTube/YouTubeAskPanelView.swift:232-247 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ExtensionsSettingsView.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"9951a9804b37603519a80af3e1ab92e67e7649ba10330f9917538783937514d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Views/SharedViews/SongActionsHelper.swift:461-476 | Sources/Kaset/Views/SharedViews/SongActionsHelper.swift:482-497 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/SongActionsHelper.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbdfe416987acf5086882c55004d4952b60c305eee7fbceaa96f8883eed9834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/APIExplorer/SearchAudit.swift:146-155 | Sources/APIExplorer/SearchAudit.swift:180-188 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cad658afc085528f3231323141331609fffc50b8917411eea48e7ad1340377"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Kaset/Services/AI/AIErrorHandler.swift:209-224 | Sources/Kaset/Services/AI/AIErrorHandler.swift:226-238 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/AIErrorHandler.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b880c268d08e2994f742fdcb66f9fa7164767b99ed402b8044b80344f30cdd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Kaset/Views/WhatsNewView.swift:312-323 | Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.swift:199-207 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/WhatsNewView.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac6621db4d36ff31d66751f0297c5c891d03ccfbf4a001c3ba2239960dcc4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:560-568 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:570-578 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd2134e1caa4ed8a6f3dc6d6f66c2a34f66686049b897b64fa96de21fb1b55a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Kaset/Services/AppIntents/MusicEntities.swift:153-158 | Sources/Kaset/Services/AppIntents/MusicEntities.swift:227-235 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AppIntents/MusicEntities.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"702e551c11d301e9da6c50946ed92f9b7dcbe8635ab998d2a1fb56be0f925f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Kaset/Views/MiniPlayerWebView.swift:2025-2035 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:738-754 \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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":2025}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13820d81be04a7d849aec2f4fce7105614b764eaa9cb6faa137241bf7a6d572"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:459-465 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:467-474 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"0875656ad6be783a4b3e586bf0861f2455f34a09318885d704655e801e922f1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Kaset/Views/LoginSheet.swift:295-317 | Sources/Kaset/Views/LoginSheet.swift:606-625 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"44af6586143bad4153efbda1b56c76fc2a2e41abfed5b54caf6829d685070f5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Kaset/Services/AI/ContentSourceResolver.swift:821-832 | Sources/Kaset/Services/AI/ContentSourceResolver.swift:834-842 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/ContentSourceResolver.swift"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d7d8ecce9c5f10bd1b240549464f0004b7d14b3af2ec7f86f7e8a4cb68bf8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:459-468 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1197-1206 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"b532d34af3c75b645857d6c88e308d58e9cc2559e00f91479666b35ea4367fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:133-145 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:208-221 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:252-263 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c25ceb6098e80ccb39bcc93db4d252026b53d256e87fc77bbfa9ce3ed9c35c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Kaset/Services/AppIntents/MusicEntities.swift:142-150 | Sources/Kaset/Services/AppIntents/MusicEntities.swift:216-224 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AppIntents/MusicEntities.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64e20c184229c36ce17e55e529e237e64b50f5b29a95845d222629c7344c067"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Kaset/Views/SearchView.swift:288-304 | Sources/Kaset/Views/TopSongsView.swift:54-71 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SearchView.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"373b8881d7d357b5a2675c263fb5d863f09bbc2d2decb0e89ea634113468032a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Kaset/Services/API/YouTubeClient.swift:230-241 | Sources/Kaset/Services/API/YouTubeClient.swift:243-253 \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":"Sources/Kaset/Services/API/YouTubeClient.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"45971b9d075f74731be568f7cb2b5aaece449cd733693d4e5b8fffac2821d630"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Kaset/Views/MiniPlayerViews.swift:631-637 | Sources/Kaset/Views/MiniPlayerViews.swift:639-645 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerViews.swift"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"f309f937c7aeda96581b6ff1a49e10932dccb3ebd9fce5f75f3825253e0a7c04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Kaset/Views/SharedViews/SongActionsHelper.swift:283-295 | Sources/Kaset/Views/SharedViews/SongActionsHelper.swift:369-381 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/SongActionsHelper.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ccee642a6aa6dcef17aeb656d4b1c1a59391e16db4f2defa7b5776a0d7b7bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Views/AccountRowView.swift:73-89 | Sources/Kaset/Views/SidebarProfileView.swift:215-230 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/AccountRowView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bd96a210a50aac17a232e5d5111c5e880e12a87f472b77ef1cec8f0fba5d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Kaset/Views/PlayerBarTimeline.swift:38-51 | Sources/Kaset/Views/PlayerBarTimeline.swift:53-60 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarTimeline.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a947c9f1c7f555cb58dc5bfd85b15382c73ef2d7f588ab8282c0f70fb75a2c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Kaset/Views/SharedViews/HomeItemCell.swift:364-371 | Sources/Kaset/Views/SharedViews/HomeItemShelfArrows.swift:382-389 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/HomeItemCell.swift"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f3b6f8c68695f99f9de59de23772b129f2a8dafd546c4b97962651bf67d1ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Views/YouTube/YouTubeExploreView.swift:60-75 | Sources/Kaset/Views/YouTube/YouTubePlaylistsView.swift:47-62 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeExploreView.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cc43e5c8806c32b32a9cbc2d9897a16b2684c47bcb0572777e2ad04b183751"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Kaset/Services/Audio/ProcessTapHelper.swift:362-372 | Sources/Kaset/Services/Audio/ProcessTapHelper.swift:468-478 \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":"Sources/Kaset/Services/Audio/ProcessTapHelper.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df26a6d398cc6c11e75c12855a91f1634f20f3710519d8e871dafdc421f6ef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Kaset/Views/CommandBarView.swift:142-155 | Sources/Kaset/Views/CommandBarView.swift:157-172 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/CommandBarView.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c84859e904b70c08d34ca5c46de1cd6e911ad6c679ede6faf694bdb6e94242a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Sources/Kaset/Models/Artist.swift:136-149 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:374-383 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:458-466 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:469-477 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/Artist.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2b9e6ffca588cbf5f5c2241c73dfe010604d3320cdf5e9e65e8d5438ad4b53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:609-621 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:755-768 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d001488ab8b2f23a5fadcbf7b3f5739e5ebfa3d6c2393b9c957e730942b21d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Kaset/Services/Library/LibraryContentIdentity.swift:65-75 | Sources/Kaset/Services/Library/LibraryContentIdentity.swift:77-88 \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":"Sources/Kaset/Services/Library/LibraryContentIdentity.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3413ce81085be645292a5ec30aeadf5ec337031e1bf8d183714edf373ab931b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Kaset/Services/Scrobbling/ScrobbleQueue.swift:59-67 | Sources/Kaset/Services/Scrobbling/ScrobbleQueue.swift:71-82 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobbleQueue.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c83dc18fd4cd6df926fc14b63c123fa5fbf60971ed6df67ed4281d84af8de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Kaset/Services/Auth/AuthService.swift:155-168 | Sources/Kaset/Services/Auth/AuthService.swift:179-190 \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":"Sources/Kaset/Services/Auth/AuthService.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"175fa17df355c217adb219f57a6c1ea18cb10185f777e416145cf307edee26b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Kaset/Services/Player/WebPlaybackDocumentGeneration.swift:327-333 | Sources/Kaset/Views/MiniPlayerWebView.swift:1255-1262 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/WebPlaybackDocumentGeneration.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6889e6c5a2cb437a04213fde41e2abbda7d7d895a8db13e8af4d36d8808bd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): Sources/APIExplorer/main.swift:1257-1269 | Sources/Kaset/Models/Podcast.swift:39-51 | Sources/Kaset/Utilities/Extensions.swift:17-28 | Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift:746-756 | Sources/Kaset/Views/YouTube/YouTubeWatchView.swift:886-896 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"83916f1bcd9b7b524074192eabfba05a535102ddf896d1f0919332ecbeb90f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): Sources/Kaset/Services/Scripting/ScriptCommands.swift:148-160 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:168-180 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:188-200 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:208-220 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:299-311 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scripting/ScriptCommands.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc92aa28b9d21127a9de64b8c790afa79a55e87cf600499fa2336682d06dcf8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Kaset/Views/MoodCategoryDetailView.swift:68-81 | Sources/Kaset/Views/PodcastsView.swift:88-100 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MoodCategoryDetailView.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a242ed9cd34e2f9ae97cde38c1c667eab005d057309e01f1ee98c05c4cec63c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Kaset/Views/YouTube/YouTubeAskPanelView.swift:87-96 | Sources/Kaset/Views/YouTube/YouTubePlayerBarPlacement.swift:298-307 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeAskPanelView.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0306a8e0025c2ae6a79318fa5531e1b9f9baa82a8425abcf47388860401a221"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/APIExplorer/AskVideoAudit.swift:826-840 | Sources/APIExplorer/AskVideoAudit.swift:2312-2323 \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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2b8c2e8e49a5428c926263db21b9b1bdcfc19f00d2f501eeb8e3118347b7de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Kaset/Views/SharedViews/SongActionsHelper.swift:108-122 | Sources/Kaset/Views/SharedViews/SongActionsHelper.swift:125-139 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/SongActionsHelper.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"e506c5b3e1e9f311b7bd06cdfc9f89e7735621c8ce7cc061b979f394613c3482"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Kaset/Views/SingletonPlayerWebView\u002BNavigationState.swift:28-38 | Sources/Kaset/Views/SingletonPlayerWebView\u002BNavigationState.swift:59-74 \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":"Sources/Kaset/Views/SingletonPlayerWebView\u002BNavigationState.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33cdb8bf84eaf0d34844435e1e766fc3e17516cb0fb61f3a71caa72b067d012"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Kaset/Models/Album.swift:15-31 | Sources/Kaset/Services/Scrobbling/ScrobbleServiceProtocol.swift:74-90 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/Album.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e447a54d96e39ad0bafdf883c522869ea59273b48c292797c2256fb94fc5dbd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): Sources/Kaset/Services/Scripting/ScriptCommands.swift:258-270 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:279-291 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:392-404 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:413-425 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scripting/ScriptCommands.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5a3ed803cc2c571493bda95c400d941020d6444286db9c906a1e2efb00903e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): Sources/Kaset/Models/ArtistEpisode.swift:25-40 | Sources/Kaset/Models/YouTube/YouTubeChannel.swift:20-34 | Sources/Kaset/Models/YouTube/YouTubePlaylist.swift:20-34 \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":"Sources/Kaset/Models/ArtistEpisode.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1606795efd6d70b7e1705b747d5480a37e8ed154c8c345e46136ecf9761c68bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Sources/Kaset/Services/API/MockUITestYTMusicClient.swift:331-342 | Sources/Kaset/Views/LibraryView.swift:428-440 | Sources/Kaset/Views/PlayerBar.swift:326-336 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 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":"Sources/Kaset/Services/API/MockUITestYTMusicClient.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"57aa4494f237ffca0e1914881fbd9b670f901652b4ec9355c7ad49910eac5fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:674-680 | Sources/Kaset/Services/API/Parsers/SearchResponseParser\u002BSupport.swift:13-21 | Sources/Kaset/Services/API/Parsers/SearchSuggestionsParser.swift:52-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a68223ddc6fc3c8d69cf8aa0606ed52589bc9800eeace5b32c9444c4944bf73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Kaset/Services/API/Parsers/YouTube/GuideParser.swift:14-24 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeFeedParser.swift:263-269 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/GuideParser.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b48472cf7920626edb12ea3099c6de798896b2c4995be3ce0ee02e0224608b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Kaset/Services/SidebarPinnedItemsManager.swift:160-167 | Sources/Kaset/Services/SidebarPinnedItemsManager.swift:169-176 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/SidebarPinnedItemsManager.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e61c49fb89b580d6a8453eb4f80914e2b13beb2584da35ca5f28f48f3008e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/Kaset/Services/API/YouTubeClient.swift:380-388 | Sources/Kaset/Services/API/YouTubeClient.swift:534-540 | Sources/Kaset/Services/API/YouTubeClient.swift:563-572 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"Sources/Kaset/Services/API/YouTubeClient.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcba05f28382b5b3b8b0f3085d611aa0b58adc5b65762b7bbca71e358232602"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Kaset/Views/MiniPlayerWebView.swift:68-83 | Sources/Kaset/Views/MiniPlayerWebView.swift:137-152 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bb203ed09eb00084c77e413358fb8e0845ae3d4e1070e432fa929573e0ab15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackPreferences.swift:50-91 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BScripts.swift:933-982 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackPreferences.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b24522acad9656150b3182eb4d11511cf8a757398135cf1f78929595c1ddcde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Kaset/Views/YouTube/YouTubeAskPanelView.swift:119-132 | Sources/Kaset/Views/YouTube/YouTubePlayerBarPlacement.swift:330-343 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeAskPanelView.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2121db42b57d22b3e315853bee791cded0fb4996eaca7371d3f065576fe47742"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/Kaset/MiniPlayerWindowController.swift:92-101 | Sources/Kaset/VideoWindowController.swift:106-124 | Sources/Kaset/Views/YouTube/YouTubeVideoWindowController.swift:324-333 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/MiniPlayerWindowController.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e888ad36b08c72442230d8d08c1f143a372b0730ad4a143b052350e9707244"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Kaset/Views/SidebarProfileView.swift:94-106 | Sources/Kaset/Views/SidebarProfileView.swift:181-190 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SidebarProfileView.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a552cc92bf46f32607a1765d13ada52b174ca67d447dfa8f581e1d0bcc04fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackControls.swift:199-208 | Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackControls.swift:212-241 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackControls.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a9ac5d5d8bbd4a31ffa1c3704d3bae574600e2ed3c9a8474851c6c5f89f04a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Kaset/Services/AI/MusicDiscoveryTaxonomy.swift:158-164 | Sources/Kaset/Services/AI/MusicDiscoveryTaxonomy.swift:166-172 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/MusicDiscoveryTaxonomy.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"205b8bfea60369895e97cae01b4e946f0675d9ecbe07ab11919f1acb4c750627"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Kaset/Services/API/MockUITestYouTubeClient.swift:135-149 | Sources/Kaset/Services/API/MockUITestYouTubeClient.swift:151-166 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/MockUITestYouTubeClient.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5b1eeb9652a912116493fa88210b66c858f80db50350fecdd0fc6dd68231db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Kaset/Services/Lyrics/Romanization/ScriptDetector.swift:79-96 | Sources/Kaset/Services/Lyrics/Romanization/ScriptDetector.swift:128-151 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Lyrics/Romanization/ScriptDetector.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5be532e3d46e42b117d8a7224b8e8aa23eeb0e14fa652f84822465f4632fdd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Kaset/ViewModels/HistoryViewModel.swift:295-309 | Sources/Kaset/ViewModels/PodcastsViewModel.swift:211-222 \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":"Sources/Kaset/ViewModels/HistoryViewModel.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecc44e93ad9a21f82a3c2f861e2a0a9b4fa0cdd790bf1c1ffc9fb3b6f02b1cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.swift:215-223 | Sources/Kaset/Views/WhatsNewView.swift:176-183 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8686ff5c7b5d697a8fdfe3916c7e8c221ad5cba76f48ef9596d1d921b5752ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Kaset/MiniPlayerWindowController.swift:150-160 | Sources/Kaset/VideoWindowController.swift:127-145 \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":"Sources/Kaset/MiniPlayerWindowController.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5581aaa2b1eaee08b92e52c76a6d1930c61a114fe551a67a72834d5b13299e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BPlaylist.swift:7-16 | Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift:183-193 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BPlaylist.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c0594c81328447378038c0219671c9d4f6e5ae52f4ab9fdff7a6d132c9b5c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Kaset/Services/AppIntents/AppIntentsBridge.swift:291-295 | Sources/Kaset/Services/AppIntents/AppIntentsBridge.swift:303-307 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AppIntents/AppIntentsBridge.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ead92c1a7a982e9951c8d01b1ca51237384e625978ce0512b60e208047b31b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): Sources/APIExplorer/main.swift:1293-1301 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1447-1455 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:236-241 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeFeedParser.swift:154-161 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d337714314fb10853f033317ae02f2a0b9696324ff2313d6cc3ed49505187b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/Kaset/Services/FavoritesManager.swift:852-858 | Sources/Kaset/Services/FavoritesManager.swift:860-866 | Sources/Kaset/Services/SidebarPinnedItemsManager.swift:178-183 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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":"Sources/Kaset/Services/FavoritesManager.swift"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9dd28eadd55620a7ffc8015cefd9d35cfd2382a1b428f7027a9320c9e2342aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Kaset/Views/CommandBarView.swift:266-276 | Sources/Kaset/Views/PlaylistDetailView\u002BRefineSheet.swift:247-259 \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":"Sources/Kaset/Views/CommandBarView.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"1774705b00ba8472f28ff52f343f73c2728a051501db3a31543736b26c4e3f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Kaset/Models/FavoriteItem.swift:97-110 | Sources/Kaset/Models/HomeSection.swift:134-145 \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":"Sources/Kaset/Models/FavoriteItem.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0eac5e4b312da3a9364641c2a2b7ad8c3979fc3c1e569a1c1019f16a0b9c353"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Kaset/Views/MoodCategoryDetailView.swift:192-201 | Sources/Kaset/Views/SharedViews/HomeSectionItemCard.swift:222-232 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MoodCategoryDetailView.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cee1ecbb3c09bd48e38e884045c5e9fd1cb1c361ccfdea1a200d4a60555db62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Sources/APIExplorer/AskVideoAudit.swift:3192-3201 | Sources/APIExplorer/main.swift:115-124 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:263-275 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":3192}}}],"partialFingerprints":{"codehealthFindingId/v1":"363305dbfe465ac3ae81dd849d166ca0f7fe87a2de155f35f786a3a6e9f4c1e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/APIExplorer/SearchAudit.swift:135-144 | Sources/APIExplorer/main.swift:951-960 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d2d1094e9c3a954d2306ba1bd87abc3217f9e9f1546544477f56fe95ce0aef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Kaset/Models/FavoriteItem.swift:65-78 | Sources/Kaset/Models/HomeSection.swift:44-55 \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":"Sources/Kaset/Models/FavoriteItem.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"691e8320d71feec0d73e6ced55ef7450c37cc97ee5df7ebb23c42ff5fe34549f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Kaset/Models/FavoriteItem.swift:81-94 | Sources/Kaset/Models/HomeSection.swift:57-68 \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":"Sources/Kaset/Models/FavoriteItem.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34d58bc800b8ab622a33605e69690dcdf61f815040f59f0029c8ccfa3248e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Sources/Kaset/Services/API/YouTubeClient.swift:426-435 | Sources/Kaset/Services/API/YouTubeClient.swift:491-500 | Sources/Kaset/Services/API/YouTubeClient.swift:509-519 | Sources/Kaset/Services/API/YouTubeClient.swift:521-530 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YouTubeClient.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ccd89f3d6ae9486cdcc1b5087cbef30f52182fe4d66c4c4334c77978611d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/Kaset/Views/PlayerBar.swift:210-216 | Sources/Kaset/Views/SharedViews/HomeSectionItemCard.swift:212-218 | Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift:738-744 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f629fd1ae760fc3afafac5118e89370d8df3be48dcfb419b291c226013ffc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Kaset/Views/PlayerBarIconButton.swift:46-55 | Sources/Kaset/Views/PlayerBarIconMenu.swift:58-67 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarIconButton.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"94346cc66e86be15475d21b6e882e82b0292768eb555d17d74f5e13f36b222df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Kaset/Services/API/Parsers/YouTube/ChannelPageParser.swift:54-57 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubePlaylistPageParser.swift:50-53 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/ChannelPageParser.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"680313c5d5a1e796e7d478453382aa0db2b4c28c7c44998ad201533c6e6b56bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/APIExplorer/main.swift:143-148 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:85-90 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5566eea3bedba095dd663e040c55c0d9b3ac94cecc5d91c4856d0009794b972"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Kaset/Models/FavoriteItem.swift:114-127 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:511-518 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/FavoriteItem.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05b33eccc477a5cafd8dd928b3ce9deab8812d8a6c28f7d07d41a2a11acae03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Sources/Kaset/Views/SingletonPlayerWebView\u002BObserverScript.swift:78-124 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BScripts.swift:876-931 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"Sources/Kaset/Views/SingletonPlayerWebView\u002BObserverScript.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afd69b8bb5b570f1daabf3df009bf704b7c14eb4343f5e4659b96f51d146ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Kaset/Views/WhatsNewView.swift:332-338 | Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.swift:283-289 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/WhatsNewView.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c411de93ad634991aeb666ecd0d5691d3f5a08b754c6ef48e125d15134a4a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/Kaset/Services/Player/WebPlaybackDocumentGeneration.swift:441-447 | Sources/Kaset/Views/MiniPlayerWebView.swift:977-984 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BScripts.swift:844-851 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"Sources/Kaset/Services/Player/WebPlaybackDocumentGeneration.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b8d53ba612e6b82085ea57500d793b1c444c58c900e2d8b050a5cf44c453f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Kaset/Utilities/ImageCache.swift:159-162 | Sources/Kaset/Utilities/ColorExtractor.swift:281-283 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Utilities/ImageCache.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a03abf49af1ede04fef30d1dc8575b4c5de280ba9fa7e26fbac291132af2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1213-1216 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:545-550 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f114d134336a8a55d460f2520fac721d084b5c2cd63a97cce3607fcf6111c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Kaset/Views/AccentBackground.swift:53-69 | Sources/Kaset/Views/YouTube/AmbientVideoBackdrop.swift:263-272 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/AccentBackground.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f90c6cdef28e38bb5ef530f6098164103e4b1d575dc36116c9dbde56cfd8c3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Kaset/Services/API/YTMusicClient.swift:2162-2174 | Sources/Kaset/Services/API/YouTubeClient.swift:1196-1204 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":2162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36d08dbe0e664c01ffe33a9939d38503f37a20d9178fa0026ce8ea82d563a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Kaset/Views/SharedViews/HomeItemCell.swift:797-804 | Sources/Kaset/Views/SharedViews/HomeSectionItemCard.swift:235-242 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/HomeItemCell.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeac6cdeeb12045ba5aefaa8e940ea54d81090ed588bb1e0d9671d0e864f1bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/APIExplorer/SearchAudit.swift:448-451 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:538-543 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"1885969152f3e485a1fb4f95ae2bb218508b2605a75429e235fdacbb98fd6bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1161-1168 | Sources/Kaset/Services/Auth/AccountService.swift:479-486 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":1161}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d4e853b04240d4d1e0fcc6a71f5f3a426a721aecb444e1f0781c35a30c7257"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift:83-90 | Sources/Kaset/ViewModels/YouTube/YouTubeSubscriptionsViewModel.swift:95-103 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e06abe9044543010088ece29c3d6be5b06d4e1aa931d181fff510eb9c9353c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Kaset/Views/FullScreenPlayerControls.swift:215-221 | Sources/Kaset/Views/MiniPlayerViews.swift:792-801 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/FullScreenPlayerControls.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e78f0ae6e8a658ce3996b8f8bdd535b7fd5d1d4fab85ca76455197342fa4ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Sources/Kaset/Views/HomeView.swift:212-219 | Sources/Kaset/Views/LibraryView.swift:599-605 | Sources/Kaset/Views/PodcastsView.swift:685-690 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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":"Sources/Kaset/Views/HomeView.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bb441ed6c29d7413f5f61d82acd4c96fd157098a23c49f6596a645f9cce3f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/APIExplorer/AskVideoAudit.swift:2449-2453 | Sources/YouTubeAskCore/YouTubeAskWireDecoder.swift:335-342 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2449}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8abacc1538d532aca71f5b5815bc53b5483667f2978d6858d8895a83996c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/Kaset/Models/FavoriteItem.swift:130-143 | Sources/Kaset/Views/MoodCategoryDetailView.swift:203-210 | Sources/Kaset/Views/SharedViews/FavoritesSection.swift:220-228 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 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":"Sources/Kaset/Models/FavoriteItem.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bc131fd6bcfe9475d7ab8a9f5b2b35c31082795263382e4fa940dba07c4938"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Kaset/Services/FavoritesManager.swift:846-850 | Sources/Kaset/Services/SidebarPinnedItemsManager.swift:155-158 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/FavoritesManager.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f75318706a7c98f204c51941440f8950f02bbcdc419c3f35e9ed6c0dc6707f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Kaset/Models/Podcast.swift:86-93 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:544-549 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/Podcast.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5761141b0e56f75045422be5a5240a97ed3d5410027ff74da02ebc9540c8488"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Kaset/Services/WebKit/WebKitManager.swift:850-852 | Sources/Kaset/Views/MiniPlayerWebView.swift:316-318 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebKitManager.swift"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec86ccd646657290cc042faecada99e8e721a0d2ce0c8b2c9afc71f2e7b9be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/Kaset/Views/SingletonPlayerWebView\u002BObserverScript.swift:24-50 | Sources/Kaset/Views/SingletonPlayerWebView\u002BVideoMode.swift:565-593 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SingletonPlayerWebView\u002BObserverScript.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e490ac965308db8380da4a12e655c26a9a4782f81d109757ff4e4a136303c8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1796-1839 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:521-564 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/MiniPlayerWebView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:1796\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:1793\u0060 calls \u0060commitDocumentNavigation\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:520\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a821342e8ed035547342842a84c9acc621f5c3e99bf0bce611c2a5c0cd3e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ChineseRomanizer.swift:5-44 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/HindiRomanizer.swift:5-44 \u2014 before extracting anything, compare \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ChineseRomanizer.swift\u0060 and \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/HindiRomanizer.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ChineseRomanizer.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09422ceeec707db823b7873cad761b37608970cbb8d61d565e78a0446cd5871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1584-1617 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BCoordinator.swift:342-376 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:1584\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c03d8a93b1706a8fc4a1700740089dd375e0677cd5f953ce5d1d5c00c2168c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:2057-2089 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:761-793 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/MiniPlayerWebView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:2057\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:2056\u0060 calls \u0060finishDocumentNavigation\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:760\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"49edf4c1aadcbb8935e16dabe8c8c31367e531c42d5d12539313d8f134625331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Sources/Kaset/Services/API/YouTubeClient.swift:928-959 | Sources/Kaset/Services/API/YouTubeClient.swift:990-1021 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YouTubeClient.swift:928\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Services/API/YouTubeClient.swift:960\u0060 calls \u0060jsonObject\u0060, \u0060parseError\u0060 and \u0060Sources/Kaset/Services/API/YouTubeClient.swift:1022\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YouTubeClient.swift"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"421c2503d1f6e9cb8ba871f72331814267cd36e6f8935f2f8749175531cf3ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Sources/Kaset/Views/ArtistDetailView.swift:325-356 | Sources/Kaset/Views/TopSongsView.swift:79-110 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:325\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"999000b0047dc45964b2b9dfc6dbadc5f0b82e03556a783610d461f76d6282d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): Sources/Kaset/Views/LegacyFallbackViews.swift:405-433 | Sources/Kaset/Views/LyricsView.swift:432-461 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/LegacyFallbackViews.swift\u0060 and \u0060Sources/Kaset/Views/LyricsView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LegacyFallbackViews.swift:405\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"bada2a6a76a8b04098d6588daa62cbb88a700d23a8edf387b1dfd0fb1c4ce0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1906-1935 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:598-627 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/MiniPlayerWebView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:1906\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1906}}}],"partialFingerprints":{"codehealthFindingId/v1":"408326df07123e6926cfcfdfdad3b34182e05367b1a68eb522186cf45fb3626a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201327 lines \u00D7 5): Sources/Kaset/Views/ChartsView.swift:129-150 | Sources/Kaset/Views/ExploreView.swift:130-152 | Sources/Kaset/Views/HomeView.swift:183-209 | Sources/Kaset/Views/MoodsAndGenresView.swift:142-163 | Sources/Kaset/Views/NewReleasesView.swift:129-150 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9fc415c170fe95370b9c921b2b7b00f75e553971fa80da975182d36472da31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Sources/Kaset/Views/LegacyFallbackViews.swift:47-73 | Sources/Kaset/Views/PlaylistDetailView.swift:83-109 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LegacyFallbackViews.swift:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6440d3a9c3810fdefb3f68938c43f243ed079b40d63c3e955fab92adbb9b2e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 4): Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift:9-34 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ChineseRomanizer.swift:8-33 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/HindiRomanizer.swift:8-33 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ThaiRomanizer.swift:9-34 \u2014 before extracting anything, compare \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift\u0060 and \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ThaiRomanizer.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift:9\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a4e6bc2f95edf92e28f208b09c089df9167b9380390750776f351cdf5aab79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerViews.swift:212-237 | Sources/Kaset/Views/MiniPlayerViews.swift:279-304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Views/MiniPlayerViews.swift:278\u0060 calls \u0060VStack\u0060 and \u0060Sources/Kaset/Views/MiniPlayerViews.swift:211\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerViews.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"940344cbd74e23916f8f1760c743697f29eade17011b9806390b45028b209415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1618-1643 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BCoordinator.swift:392-417 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:1618\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:1615\u0060 calls \u0060generation\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BCoordinator.swift:391\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"47330d6acf062c30b59de6ef7bae7c36ffa6bae74e78ec8f138215569e438896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeListRows.swift:125-150 | Sources/Kaset/Views/YouTube/YouTubeListRows.swift:190-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeListRows.swift:125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060alignment\u0060 to \u0060.top\u0060 in one and \u0060.leading\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Views/YouTube/YouTubeListRows.swift:124\u0060 calls \u0060frame\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeListRows.swift:189\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeListRows.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6521b3cf09ac51b3c64671b87c42e4ada4b080857b6049159ec94901e925b119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 5): Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:151-175 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:180-204 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:216-240 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:245-269 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:281-301 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:151\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7deac9b2444404d10e2745892b89e345369708d833860ddca2c5b74089e93036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:146-170 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:95-119 \u2014 before extracting anything, compare \u0060Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift\u0060 and \u0060Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efc4219822c6043cf2bf70fcd502b4ff22686472f764c79a6dffb4229962c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): Sources/APIExplorer/main.swift:2123-2145 | Sources/APIExplorer/main.swift:2215-2237 | Sources/APIExplorer/main.swift:2942-2964 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:2123\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":2123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d161c80d236fef46979698f67e9efde1f495a9609b9d5f1a749c94a3712655b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/APIExplorer/main.swift:150-172 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:92-114 \u2014 before extracting anything, compare \u0060Sources/APIExplorer/main.swift\u0060 and \u0060Sources/Kaset/Services/API/YouTubeAskTransport.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6807a6a3200baebb478f6b81162086ed858902b1094a8fe6ea3b2955cb0645a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:105-127 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:132-154 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/PodcastParser.swift:105\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50674dc06466e2bc1ff27302176cded274ec08d8c9b53af03ead3b4c4127d1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift:134-156 | Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift:185-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift:134\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be71513a1aeab5aa7f6da122e94b67a11433860b02f5ba8cba4843ac5383946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): Sources/Kaset/Views/ChartsView.swift:59-80 | Sources/Kaset/Views/ExploreView.swift:59-80 | Sources/Kaset/Views/MoodsAndGenresView.swift:80-101 | Sources/Kaset/Views/NewReleasesView.swift:59-80 | Sources/Kaset/Views/PodcastsView.swift:64-85 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/ExploreView.swift:81\u0060 calls \u0060accessibilityIdentifier\u0060 and \u0060Sources/Kaset/Views/ChartsView.swift:81\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1635c715fc6c282e663d0bc629a1463a5bc86b772f58b76364e62ed48385c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Sources/APIExplorer/main.swift:2463-2484 | Sources/APIExplorer/main.swift:2605-2625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:2463\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"e031cc59524f691906c9032f197180d2051cf7bbbb9e8742b5cfee543ed42f31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): Sources/Kaset/Services/AI/CommandExecutor\u002BDiscovery.swift:165-185 | Sources/Kaset/Services/AI/CommandExecutor\u002BDiscovery.swift:194-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/AI/CommandExecutor\u002BDiscovery.swift:194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/CommandExecutor\u002BDiscovery.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba3756ba541cca99917ca5b0c5cc0dbfe791b726bb86a696d6c78245198fc65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201322 lines \u00D7 2): Sources/Kaset/Services/API/YTMusicClient.swift:2119-2140 | Sources/Kaset/Services/API/YouTubeClient.swift:956-972 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:2119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"375c310774ac745fee52adef583d66fc1531589869ff81bc54c5af119ce4215b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): Sources/Kaset/Services/API/YTMusicClient.swift:2195-2216 | Sources/Kaset/Services/API/YouTubeClient.swift:1218-1237 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:2195\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":2195}}}],"partialFingerprints":{"codehealthFindingId/v1":"e635ef7526649426a584c655e5783f7d845aa57d4873498e6a648492e93ebf35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift:98-119 | Sources/Kaset/ViewModels/YouTube/YouTubeSubscriptionsViewModel.swift:111-132 \u2014 before extracting anything, compare \u0060Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift\u0060 and \u0060Sources/Kaset/ViewModels/YouTube/YouTubeSubscriptionsViewModel.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"86002d1bf8121dacad271c3b77d2ee750c5f0103c945aa31a87902efc5099df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/Kaset/Views/ArtistDetailView.swift:558-579 | Sources/Kaset/Views/ArtistDetailView.swift:835-856 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:558\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a9bc7ef1342a8b041888bf0c73884e9612591a1c2a0d9c7d1ab4bc5adf51dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/Kaset/Views/SharedViews/NavigationDestinationsModifier.swift:31-52 | Sources/Kaset/Views/SharedViews/NavigationDestinationsModifier.swift:53-74 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/SharedViews/NavigationDestinationsModifier.swift:31\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/NavigationDestinationsModifier.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7a1afd0bc466dd29a897a5cccbd1b7011f17a063e9af28a1b5de874e3d4ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 4): Sources/Kaset/Views/LibraryView.swift:322-342 | Sources/Kaset/Views/LibraryView.swift:389-408 | Sources/Kaset/Views/LibraryView.swift:448-467 | Sources/Kaset/Views/LibraryView.swift:493-513 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LibraryView.swift:322\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LibraryView.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"7673415ebb8300b04fe0cf90492aaf8616ca4802cb7a5480b77938e1d89c6fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Sources/APIExplorer/main.swift:2487-2507 | Sources/APIExplorer/main.swift:2627-2646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:2487\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":2487}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e99016435271957dd54834d8a90c8bb177727e23fa037216f953a1ac68117fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:49-69 | Sources/Kaset/Views/YouTube/YouTubePlaylistDetailView.swift:61-81 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/YouTube/YouTubeChannelView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubePlaylistDetailView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:49\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006020\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeChannelView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"60887d2aa5c14c20bd9a66b50eeeca0602f5bd8f53ce302da2c2ea0e959bcff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 6): Sources/Kaset/Views/ChartsView.swift:14-33 | Sources/Kaset/Views/ExploreView.swift:14-33 | Sources/Kaset/Views/LibraryView.swift:67-86 | Sources/Kaset/Views/MoodsAndGenresView.swift:14-33 | Sources/Kaset/Views/NewReleasesView.swift:14-33 | Sources/Kaset/Views/PodcastsView.swift:16-35 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:14\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc4ca4d3bf69baa7fc3b01ec7ceb0c45fa7932e93bb3bf2dcb4c052284a249a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/Kaset/Services/Library/LibraryMutationActions.swift:519-538 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:585-604 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Library/LibraryMutationActions.swift:519\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"368f860fc3466f8b715e47b73e0a144fdf54dd5effe3820ca5600824e05243b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:18-37 | Sources/Kaset/Views/YouTube/YouTubePlaylistDetailView.swift:18-37 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/YouTube/YouTubeChannelView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubePlaylistDetailView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeChannelView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8b4d83d1a6d259705ae3819fed571dffe4f973470f9fd12719b6ecb9a1069f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Sources/Kaset/Views/ChartsView.swift:91-109 | Sources/Kaset/Views/ExploreView.swift:92-110 | Sources/Kaset/Views/NewReleasesView.swift:91-109 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"64942243edf8f50711f14fbef44c24b7f6e4748bd4b8ecffef4b148b033863f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/APIExplorer/main.swift:3236-3254 | Sources/APIExplorer/main.swift:3350-3368 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:3236\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3236}}}],"partialFingerprints":{"codehealthFindingId/v1":"134626bd27fdd60b36d40997a37cdf2fbfd92cf7de6b594744ba1b3d5e939037"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BNowPlaying.swift:23-41 | Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BNowPlaying.swift:53-69 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BNowPlaying.swift:23\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BNowPlaying.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d3439b1cbeb6ff689983b2ce2a4982ee329b566c4d41c2cac39599d16632d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1688-1706 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:435-452 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/MiniPlayerWebView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:1688\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c211160159fd6b1ae1a0fbb105dfe1de27fb5db0c5f8c639072fb3fdef39a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): Sources/Kaset/ViewModels/ChartsViewModel.swift:64-81 | Sources/Kaset/ViewModels/ExploreViewModel.swift:65-82 | Sources/Kaset/ViewModels/HomeViewModel.swift:96-113 | Sources/Kaset/ViewModels/MoodsAndGenresViewModel.swift:63-80 | Sources/Kaset/ViewModels/NewReleasesViewModel.swift:63-80 \u2014 before extracting anything, compare \u0060Sources/Kaset/ViewModels/ChartsViewModel.swift\u0060 and \u0060Sources/Kaset/ViewModels/ExploreViewModel.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/ViewModels/ChartsViewModel.swift:64\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/ChartsViewModel.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6ba252316e0b3ef842bd8045416d1a8383efaf0e8b22f9b96536f70c812772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Sources/Kaset/Views/ChartsView.swift:83-100 | Sources/Kaset/Views/ExploreView.swift:84-101 | Sources/Kaset/Views/HomeView.swift:113-130 | Sources/Kaset/Views/NewReleasesView.swift:83-100 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Views/ExploreView.swift:81\u0060 calls \u0060accessibilityIdentifier\u0060 and \u0060Sources/Kaset/Views/ChartsView.swift:80\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"78715d7c33f6cfa19e2cefe2654de2c914065de10ae8bfb44fff3b4d85069bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift:5-22 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/JapaneseRomanizer.swift:6-23 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ThaiRomanizer.swift:5-22 \u2014 before extracting anything, compare \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift\u0060 and \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/JapaneseRomanizer.swift\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift:5\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3318f2f75795328a9f856014bc12995c8d0cdeec1547d3623253ac7841dadac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Sources/APIExplorer/SearchAudit.swift:345-360 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:227-244 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/SearchAudit.swift:345\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"173fadfea80c1b7befcdcb5df039be8c1ed1f45252a7395f49f7d9490f592fde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/APIExplorer/main.swift:231-248 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:176-193 \u2014 before extracting anything, compare \u0060Sources/APIExplorer/main.swift\u0060 and \u0060Sources/Kaset/Services/API/YouTubeAskTransport.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:231\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcfcf3c7b2bcedc8712e1bf2245ec0e3e86fe42e23685eba8224dd3bdf2b321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/YouTube/ChannelPageParser.swift:66-83 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubePlaylistPageParser.swift:83-100 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/YouTube/ChannelPageParser.swift:66\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/ChannelPageParser.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84eafac4aaefd4e4d2f135143fa956d8bb57cc8ab4993f00e6eb730bd0b1923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/Kaset/Services/Player/AlbumPlaybackActions.swift:57-74 | Sources/Kaset/Services/Player/PlaylistPlaybackActions.swift:22-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Player/AlbumPlaybackActions.swift:57\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/AlbumPlaybackActions.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc1081ef243ff9581bae0c6c13ed434132ee88c5bb67158825c6919f405e9f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Sources/Kaset/Views/ArtistDetailView.swift:130-145 | Sources/Kaset/Views/PlaylistDetailView.swift:171-188 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Views/PlaylistDetailView.swift:167\u0060 calls \u0060frame\u0060 and \u0060Sources/Kaset/Views/ArtistDetailView.swift:126\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da97aec2db161ff708f1ec1880a6aeb0086d86d7cfeaa69fbc22271907ee812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1555-1572 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BCoordinator.swift:327-344 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:1555\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"999a36f4a1b8f9a11c92c976d40c21a3a9ac5e0f32c25274b162a624cafe68a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift:8-24 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ChineseRomanizer.swift:7-23 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/HindiRomanizer.swift:7-23 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/JapaneseRomanizer.swift:9-25 | Sources/Kaset/Services/Lyrics/Romanization/Romanizers/ThaiRomanizer.swift:8-24 \u2014 before extracting anything, compare \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift\u0060 and \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/JapaneseRomanizer.swift\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift:8\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Lyrics/Romanization/Romanizers/BengaliRomanizer.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff416b8ab70996f78154ae5a42a924cdb8c63affe33d5feedfda8fa64bb8c525"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 5): Sources/Kaset/Views/ArtistDetailView.swift:490-506 | Sources/Kaset/Views/ArtistDetailView.swift:525-540 | Sources/Kaset/Views/ArtistDetailView.swift:743-758 | Sources/Kaset/Views/ArtistDetailView.swift:795-810 | Sources/Kaset/Views/ArtistDiscographyView.swift:77-92 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ArtistDetailView.swift\u0060 and \u0060Sources/Kaset/Views/ArtistDiscographyView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:490\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"98354f1d7f872910dbf84cce57be14dbd81857dcc9d1f95f7bc45cb1a40ccfd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 3): Sources/Kaset/Services/API/YTMusicClient.swift:2131-2147 | Sources/Kaset/Services/API/YouTubeClient.swift:963-976 | Sources/Kaset/Services/API/YouTubeClient.swift:1022-1035 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Services/API/YTMusicClient.swift:2149\u0060 calls \u0060CancellationError\u0060 and \u0060Sources/Kaset/Services/API/YouTubeClient.swift:977\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"974e837ee1010308ebdfcd629bc45b94d21c24a1f53830e2e31d6be12ced7434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/APIExplorer/SearchAudit.swift:637-653 | Sources/APIExplorer/SearchAudit.swift:748-764 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"32195651e8cf47696bab57c1d45f730e54b24a6c1a0003212849649edad8a1e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/APIExplorer/main.swift:213-229 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:158-174 \u2014 before extracting anything, compare \u0060Sources/APIExplorer/main.swift\u0060 and \u0060Sources/Kaset/Services/API/YouTubeAskTransport.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:213\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadba60135ef18c7c660cc87bf41cbb8d6824bd79d8cb422ef2ba3b176d1b3fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/Kaset/Views/MoodCategoryDetailView.swift:221-237 | Sources/Kaset/Views/SharedViews/FavoritesSection.swift:245-261 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MoodCategoryDetailView.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0f74b371b4049119acb8978d3ad28de033f66ea436d2d87a0d1acefe44f952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): Sources/Kaset/Views/ChartsView.swift:25-40 | Sources/Kaset/Views/ExploreView.swift:25-40 | Sources/Kaset/Views/HomeView.swift:27-42 | Sources/Kaset/Views/MoodsAndGenresView.swift:25-40 | Sources/Kaset/Views/NewReleasesView.swift:25-40 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:25\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c632b4a471858bf2aa7788778d493857f90bfe832bfc7ea14bcf6cd4678d8a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): Sources/Kaset/Views/LegacyFallbackViews.swift:350-365 | Sources/Kaset/Views/LegacyFallbackViews.swift:369-384 | Sources/Kaset/Views/QueueSidePanelView.swift:70-85 | Sources/Kaset/Views/QueueView.swift:84-99 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/QueueView.swift:100\u0060 calls \u0060accessibilityIdentifier\u0060 and \u0060Sources/Kaset/Views/LegacyFallbackViews.swift:366\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"587dbae46ac7efcd8b6a29619df3fda03394dec2c8ac503ef7f60d0624b62961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:433-448 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:515-530 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/PodcastParser.swift:433\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb00ad617a2fc6138fa822f5547292e59c35e35c6422792702038c6b2a137312"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:36-51 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:61-76 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:36\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:35\u0060 calls \u0060debug\u0060 and \u0060Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:60\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64cdf2b0ebece3b8afae8e2ffa00bb96658232e5d5394708e5d5cf9c6ec52dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/YouTube/YouTubeSearchParser.swift:16-30 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeSearchParser.swift:45-60 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubeSearchParser.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1039061f130155c4e0575359916b47d6d49181ea251b0360f828dab028956447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): Sources/Kaset/Services/WebKit/WebKitManager\u002BCookies.swift:287-302 | Sources/Kaset/Services/WebKit/WebKitManager\u002BCookies.swift:625-637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/WebKit/WebKitManager\u002BCookies.swift:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookies.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd4b7aa1b818a55474d257ee5bcc8eeb000d6c66eb8b27700077aa9ce3680bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/Kaset/Views/LegacyFallbackViews.swift:333-347 | Sources/Kaset/Views/LyricsView.swift:247-262 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/LegacyFallbackViews.swift\u0060 and \u0060Sources/Kaset/Views/LyricsView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LegacyFallbackViews.swift:333\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d5033b1996190362cae275364f5b93d245b4a0f57027ffd86d7517a3582b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Kaset/Views/PlaylistDetailView\u002BRefineSheet.swift:98-113 | Sources/Kaset/Views/PlaylistDetailView\u002BRefineSheet.swift:197-212 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/PlaylistDetailView\u002BRefineSheet.swift:98\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlaylistDetailView\u002BRefineSheet.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c12de14801532cebcc088bafcc20c302f43cc5f6b5637007a800ac4ae235de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackControls.swift:262-277 | Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackControls.swift:281-296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackControls.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcc2cf847c0c844082f51d75932361d6994698cf907d9a959e6d234e39f0703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:75-90 | Sources/Kaset/Views/YouTube/YouTubeWatchView.swift:738-753 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:75\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeChannelView.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93d51ed7f7a60dbfa889544962b8ed152efade77450bae656aa5548dba5df61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeExploreView.swift:31-46 | Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift:11-25 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeExploreView.swift:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift:25\u0060 calls \u0060Label\u0060, \u0060String\u0060, \u0060Text\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeExploreView.swift:46\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeExploreView.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6a2ff7487ff7d760bff5038a4d0714cbe8fac72d0b6257f199af966901c48f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift:49-64 | Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift:57-72 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18efb54aff11a26722fa6be2eadf29866b714aea5209b6c74460267e2576937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): Sources/Kaset/Views/ChartsView.swift:35-49 | Sources/Kaset/Views/ExploreView.swift:35-49 | Sources/Kaset/Views/HomeView.swift:37-51 | Sources/Kaset/Views/MoodsAndGenresView.swift:35-49 | Sources/Kaset/Views/NewReleasesView.swift:35-49 | Sources/Kaset/Views/PodcastsView.swift:40-54 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:35\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/ChartsView.swift:51\u0060 calls \u0060refresh\u0060 and \u0060Sources/Kaset/Views/HomeView.swift:52\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0918e97c47d9e124a1b17dfb3d1438040aba20dac8c6fc9a9a01cd51be55ab4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): Sources/Kaset/Views/ChartsView.swift:113-127 | Sources/Kaset/Views/ExploreView.swift:114-128 | Sources/Kaset/Views/HomeView.swift:138-152 | Sources/Kaset/Views/MoodsAndGenresView.swift:126-140 | Sources/Kaset/Views/NewReleasesView.swift:113-127 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a460b585373dd52994a11385202a804814472532838b106cb7f345d2aff9f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): Sources/Kaset/Views/YouTube/YouTubeExploreView.swift:28-42 | Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift:8-22 | Sources/Kaset/Views/YouTube/YouTubePlaylistsView.swift:8-22 | Sources/Kaset/Views/YouTube/YouTubeShortsView.swift:18-32 | Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift:15-29 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeExploreView.swift:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeExploreView.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b6ed3008e10ecd4d9fa00161ef9063625a0e27686a0321fc11180710880534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): Sources/Kaset/Views/ArtistDiscographyView.swift:71-84 | Sources/Kaset/Views/LibraryView.swift:319-333 | Sources/Kaset/Views/LibraryView.swift:387-400 | Sources/Kaset/Views/LibraryView.swift:446-459 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDiscographyView.swift:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDiscographyView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"519a66593c9de84779f5fab9c3afdced2916297cd8a138e97fb3fa1b2011b1ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): Sources/APIExplorer/main.swift:384-398 | Sources/Kaset/Services/WebKit/WebKitManager\u002BCookies.swift:445-458 | Sources/Kaset/Services/WebKit/WebKitManager\u002BCookies.swift:698-711 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"50322dc513f3795d76849ecc4797dad84b4408988413bd7fea04f5916a563c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/APIExplorer/main.swift:3202-3216 | Sources/APIExplorer/main.swift:3290-3304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1825edf4203f0bcb44869d05d355e5e4ca27958893b4d394ac9fdbfad306727"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:71-85 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:97-111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab61fa073ea7aeef012cf4177a959c7b67088262a2a8583ecb47b8aea995888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1341-1352 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:254-268 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1341\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d311da125f3bc8174109287f0b7a5df4aac664935e1beea381823d4eca7c610f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Kaset/Services/API/YTMusicClient.swift:1917-1931 | Sources/Kaset/Services/API/YouTubeClient.swift:670-684 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:1917\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"f931ae295757d9d03905ca8cb153cabb6dd69ac50eadedd41b8a5f916c8783c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Sources/Kaset/Services/API/YTMusicClient.swift:2001-2015 | Sources/Kaset/Services/API/YouTubeClient.swift:743-755 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:2001\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd1d0404cdffb75f4ffc77ee1de406db5b4b829caabebfd64fa21fbc4dea6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift:574-588 | Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift:608-620 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift:608\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BWebQueueSync.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7897c8fce257723c5d6ccfe6198d2ab0e9926c8fd1a6be3e8e5be6d4dce83e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): Sources/Kaset/VideoWindowController.swift:163-177 | Sources/Kaset/Views/YouTube/YouTubeVideoWindowController.swift:398-409 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/VideoWindowController.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22a950c8adb130eee660bcd7baaba6b8c3496c7dac1c8ccea7091967c36d787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): Sources/Kaset/Views/ArtistDetailView.swift:24-35 | Sources/Kaset/Views/PlaylistDetailView.swift:63-77 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:24\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060viewModel\u0060 to \u0060ArtistDetailViewModel\u0060 in one and \u0060PlaylistDetailViewModel\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddaf34b4dd3f0e437b97f806e6e7b069b95782887cce09d866737518f879282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Kaset/Views/ArtistDetailView.swift:365-379 | Sources/Kaset/Views/TopSongsView.swift:119-133 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:365\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"e298385f5991f0ae05c97038cefd5f597b188dad044dbab6fb510492634cfb0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Kaset/Views/ArtistDiscographyView.swift:18-32 | Sources/Kaset/Views/ArtistEpisodesListView.swift:26-40 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ArtistDiscographyView.swift\u0060 and \u0060Sources/Kaset/Views/ArtistEpisodesListView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDiscographyView.swift:18\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDiscographyView.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8745a912b83e071117ad78dacc50c9a2e9cc31d050fd4aa8e49e70127a22fef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Kaset/Views/PlayerBar.swift:101-115 | Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift:106-120 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c75b6e5e42b810b1248d35cc136c23fdcfa7255004d30fe0b792d0bc34222c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeListRows.swift:54-68 | Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift:98-112 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeListRows.swift:54\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeListRows.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b531aabf5a8be6393fcbd710f1f1b644f2d1dd7b799d8fc293e7f5b156e200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): Sources/Kaset/ViewModels/YouTube/YouTubeExploreViewModel.swift:40-53 | Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift:40-53 | Sources/Kaset/ViewModels/YouTube/YouTubePlaylistsViewModel.swift:30-43 | Sources/Kaset/ViewModels/YouTube/YouTubeShortsViewModel.swift:33-46 | Sources/Kaset/ViewModels/YouTube/YouTubeSubscriptionsViewModel.swift:44-57 \u2014 before extracting anything, compare \u0060Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift\u0060 and \u0060Sources/Kaset/ViewModels/YouTube/YouTubeSubscriptionsViewModel.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeExploreViewModel.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f559fa91cd2340e90cb98019d1fb0123cb5f9375d75586d473eccfafdf55ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 3): Sources/Kaset/Views/ArtistDetailView.swift:25-35 | Sources/Kaset/Views/LegacyFallbackViews.swift:32-45 | Sources/Kaset/Views/PlaylistDetailView.swift:64-77 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:25\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060viewModel\u0060 to \u0060ArtistDetailViewModel\u0060 in one and \u0060PlaylistDetailViewModel\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f529bb589262b9a7476935ed31091523babb3ac2429d02442d1e65b7ecdfa901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): Sources/APIExplorer/AskVideoAudit.swift:1950-1960 | Sources/APIExplorer/AskVideoAudit.swift:1987-2000 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/AskVideoAudit.swift:1950\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":1950}}}],"partialFingerprints":{"codehealthFindingId/v1":"4029ae944cc9d9abe946590da892d0faba7b951d1531bea53d7697322f0c3c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/APIExplorer/main.swift:294-307 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:239-252 \u2014 before extracting anything, compare \u0060Sources/APIExplorer/main.swift\u0060 and \u0060Sources/Kaset/Services/API/YouTubeAskTransport.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:294\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fac2afd7e8bdb23fcaa83ec3b3adc6cd86ff25b6d440ab06c232992ab2020e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Kaset/Services/API/YTMusicClient.swift:222-235 | Sources/Kaset/Services/API/YTMusicClient.swift:322-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b5c5c0adbdc5c5e6992cd93db3aaecf534db7c8a3f5e5f32c6735a7118d559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201328 lines \u00D7 2): Sources/Kaset/Services/Audio/BiquadFilter.swift:165-192 | Sources/Kaset/Services/Audio/BiquadFilter.swift:211-231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Audio/BiquadFilter.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7e63672700a73c3c27a524c46bc5dda3617e0b9c335cfa31959927f4e68d8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Kaset/Services/Library/LibraryMutationActions.swift:398-411 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:439-452 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Library/LibraryMutationActions.swift:398\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"d810ce15d428a3ff305b0f62b80f999bac579fd41e05d33e3fdd71bf20458428"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Kaset/Services/Player/PlayerService\u002BPlaybackBoundaries.swift:55-68 | Sources/Kaset/Services/Player/PlayerService\u002BPlaybackBoundaries.swift:114-127 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackBoundaries.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a31ef0ca9520e3de1d9abdbb5c3223022fcd3c32380e7204f480318fea6ee80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Kaset/Services/Scripting/ScriptCommands.swift:119-132 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:633-646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Scripting/ScriptCommands.swift:119\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scripting/ScriptCommands.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ea47709c051d864eb543a68b4470891255c351ee95e9dbe56f6ea4b87b6b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Kaset/ViewModels/SearchViewModel.swift:258-271 | Sources/Kaset/ViewModels/SearchViewModel.swift:283-296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/ViewModels/SearchViewModel.swift:258\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/ViewModels/SearchViewModel.swift:273\u0060 calls \u0060sleep\u0060, \u0060milliseconds\u0060 and \u0060Sources/Kaset/ViewModels/SearchViewModel.swift:297\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/SearchViewModel.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"a879ab2cba4ceeb75c788a57dda980e05cdcd3c1326d2e0b3fa8aff6de2e91fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift:113-126 | Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift:164-177 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift:113\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeAskViewModel.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"092b3dc02158f0343ff208e1991dad954c609ac14df3f9d238f0964fa20b85f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Kaset/Views/ArtistDetailView.swift:242-255 | Sources/Kaset/Views/ArtistDetailView.swift:260-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5a94c7e3175ede7e3411972f5b14cdd4f46b80f2e053db5275fde0ae39c788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Kaset/Views/LoginSheet.swift:124-137 | Sources/Kaset/Views/LoginSheet.swift:300-313 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LoginSheet.swift:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef44200c7453e0934985931c31548060727247a341f47f421f0a9919646afcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1661-1672 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:403-416 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/MiniPlayerWebView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:1661\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae9b734510185d7b519f1117fdff767861f21de22a0fa4426fcc68b2d6de496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Kaset/Views/YouTube/VideoCard.swift:76-89 | Sources/Kaset/Views/YouTube/YouTubeListRows.swift:176-189 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/VideoCard.swift:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/YouTube/YouTubeListRows.swift:190\u0060 calls \u0060clipShape\u0060, \u0060rect\u0060 and \u0060Sources/Kaset/Views/YouTube/VideoCard.swift:90\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/VideoCard.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd407871b6bd6f1537709a8f7372e89594a61c0212afb62ec56f486c5e51d51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): Sources/Kaset/Views/ArtistDetailView.swift:486-498 | Sources/Kaset/Views/ArtistDetailView.swift:521-533 | Sources/Kaset/Views/ArtistDetailView.swift:560-572 | Sources/Kaset/Views/ArtistDetailView.swift:659-671 | Sources/Kaset/Views/ArtistDetailView.swift:739-751 | Sources/Kaset/Views/ArtistDetailView.swift:791-803 | Sources/Kaset/Views/ArtistDetailView.swift:837-849 | Sources/Kaset/Views/ArtistDiscographyView.swift:73-85 | Sources/Kaset/Views/ArtistEpisodesListView.swift:68-80 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ArtistDetailView.swift\u0060 and \u0060Sources/Kaset/Views/ArtistDiscographyView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:486\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/ArtistEpisodesListView.swift:83\u0060 calls \u0060VStack\u0060, \u0060HStack\u0060 and \u0060Sources/Kaset/Views/ArtistDetailView.swift:674\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdd685669a2720c1e02cb4bbc0d41c4c22d1e3e8320c1810b1f8dee2b781967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): Sources/Kaset/Views/ChartsView.swift:10-22 | Sources/Kaset/Views/ExploreView.swift:10-22 | Sources/Kaset/Views/HomeView.swift:12-24 | Sources/Kaset/Views/LibraryView.swift:63-75 | Sources/Kaset/Views/MoodsAndGenresView.swift:10-22 | Sources/Kaset/Views/NewReleasesView.swift:10-22 | Sources/Kaset/Views/PodcastsView.swift:12-24 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:10\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"78591420ba11758a770d382639d40a4a8fac0d865bdc60b05fd6f00813ddd123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): Sources/Kaset/ViewModels/YouTube/YouTubeChannelViewModel.swift:35-47 | Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift:69-81 | Sources/Kaset/ViewModels/YouTube/YouTubePlaylistViewModel.swift:35-47 | Sources/Kaset/ViewModels/YouTube/YouTubePlaylistsViewModel.swift:57-69 | Sources/Kaset/ViewModels/YouTube/YouTubeShortsViewModel.swift:60-72 | Sources/Kaset/ViewModels/YouTube/YouTubeSubscriptionsViewModel.swift:81-93 \u2014 before extracting anything, compare \u0060Sources/Kaset/ViewModels/YouTube/YouTubeHistoryViewModel.swift\u0060 and \u0060Sources/Kaset/ViewModels/YouTube/YouTubeSubscriptionsViewModel.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/ViewModels/YouTube/YouTubeChannelViewModel.swift:35\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/YouTube/YouTubeChannelViewModel.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf45b9eee5d92d6ba5519f9b933c82a8212e43a225e48fd282460fc93382dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:547-556 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:624-633 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:729-741 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:547\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:546\u0060 calls \u0060extractHeaderAuthor\u0060, \u0060applyMetadata\u0060 and \u0060Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:729\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1ea0b7971ad164e9950edf3d33639771f9f830d5e531ce09d61a87a0f64558"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/Kaset/Views/ArtistDiscographyView.swift:25-37 | Sources/Kaset/Views/ArtistEpisodesListView.swift:33-45 | Sources/Kaset/Views/TopSongsView.swift:38-50 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ArtistDiscographyView.swift\u0060 and \u0060Sources/Kaset/Views/ArtistEpisodesListView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDiscographyView.swift:25\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDiscographyView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7b51c2e6761e6944e261d3a89a2434afd01eb79e30bd387c62eeffe54edef5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/Kaset/Views/YouTube/VideoCard.swift:14-26 | Sources/Kaset/Views/YouTube/YouTubeListRows.swift:14-26 | Sources/Kaset/Views/YouTube/YouTubeWatchView.swift:910-922 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/VideoCard.swift:14\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/VideoCard.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb3978b45d862ebe1f923f56b0dc20877fb0591ec4a8830dbbb43b628f1f8c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/APIExplorer/AskVideoAudit.swift:1043-1055 | Sources/YouTubeAskCore/YouTubeAskVisibleTextSanitizer.swift:175-187 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/AskVideoAudit.swift:1043\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b318b986663b33b2e4cedbda0dc32b25b59eb6d9718b66db4b320a04f466fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/APIExplorer/main.swift:1243-1255 | Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift:344-356 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe886013187d27955d1185080ec0615a413a518264821e815b71c9beabc6bf70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sources/APIExplorer/main.swift:1856-1868 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1434-1444 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1856}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3188583783ffef86b191d64a3222f06e11ac26eab69590bda6c2adf94fb8ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Kaset/Services/AI/FoundationModelsService.swift:189-201 | Sources/Kaset/Services/AI/FoundationModelsService.swift:220-232 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/AI/FoundationModelsService.swift:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/FoundationModelsService.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97ef29d896ee14a8b3952a2fde6680ca037993f440c592ab4dbdd56b598e89d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:494-506 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:592-604 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:494\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fed06a7e0d74ceaf16b82c1dd78ca28c6491c1ff1e1da1e58cc71d40a69aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:327-339 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:346-358 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:327\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ee1bbd60da8ea1ac5cbd3f80d6088d0293183860afe1f627d095bff67633f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:422-434 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:443-453 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:422\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1640f2562738e585d824c5d4bbc6505f8fc74d12d88706024f5f9e55e23e60c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/Kaset/Services/API/YTMusicClient.swift:1119-1130 | Sources/Kaset/ViewModels/ArtistDetailViewModel.swift:203-215 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:1119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9b0f657202417f5290f04f5a9262a9f45157df42420c67ac34d72d3443bf5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Kaset/Services/Audio/ProcessTapHelper.swift:347-359 | Sources/Kaset/Services/Audio/ProcessTapHelper.swift:589-601 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Audio/ProcessTapHelper.swift:347\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Audio/ProcessTapHelper.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c6da7fcc7b54e10ce5da5190b91b9c25c088b43cde2ab5a8370ae896881426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Kaset/Services/Library/LibraryMutationActions.swift:569-581 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:630-642 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Library/LibraryMutationActions.swift:569\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ace2af7826204091ec32416207981342e516da649ac180b70f184cc1fc8b39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sources/Kaset/Views/ArtistDetailView.swift:674-686 | Sources/Kaset/Views/ArtistEpisodesListView.swift:85-95 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ArtistDetailView.swift\u0060 and \u0060Sources/Kaset/Views/ArtistEpisodesListView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:674\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"884d03f4757bce0eb5edc1b7aaf20462a46331212596889efb9e1e519768f158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Kaset/Views/LegacyFallbackViews.swift:271-283 | Sources/Kaset/Views/LyricsView.swift:86-98 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/LegacyFallbackViews.swift\u0060 and \u0060Sources/Kaset/Views/LyricsView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LegacyFallbackViews.swift:271\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"e757511a30a21c8703dc42cc8e9cb95471e50c2d3a35d6e99d5aa6374dec8682"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1711-1723 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:460-471 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/MiniPlayerWebView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/MiniPlayerWebView.swift:1711\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1711}}}],"partialFingerprints":{"codehealthFindingId/v1":"1119c693c15a49a63a13edaa84e11324c4eb2868ef8b689544536290b518ee01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Kaset/Views/PlayerBar.swift:562-574 | Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift:534-546 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/PlayerBar.swift:562\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"e719b50e317c1bd0bf14c199fc5103c17e602d5963a1f9b2e7d3718c98cbfbe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sources/Kaset/Views/WhatsNewView.swift:251-261 | Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.swift:42-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.swift:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/WhatsNewView.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb930e6ee0d9a14887c603ec9f7240a2be21b6d29d65f4e03894ecaf23d4d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): Sources/Kaset/Views/ChartsView.swift:65-76 | Sources/Kaset/Views/ExploreView.swift:65-76 | Sources/Kaset/Views/MoodsAndGenresView.swift:67-78 | Sources/Kaset/Views/MoodsAndGenresView.swift:86-97 | Sources/Kaset/Views/NewReleasesView.swift:65-76 | Sources/Kaset/Views/PodcastsView.swift:70-81 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:65\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/ExploreView.swift:81\u0060 calls \u0060accessibilityIdentifier\u0060 and \u0060Sources/Kaset/Views/ChartsView.swift:81\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9867f3c97311551b0ac709a30d6963c89caf9ed6354e50112c18f2bb5e16a86f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:17-28 | Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift:7-18 | Sources/Kaset/Views/YouTube/YouTubePlaylistDetailView.swift:17-28 | Sources/Kaset/Views/YouTube/YouTubePlaylistsView.swift:7-18 | Sources/Kaset/Views/YouTube/YouTubeShortsView.swift:17-28 | Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift:14-25 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/YouTube/YouTubeChannelView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubePlaylistDetailView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:17\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Views/YouTube/YouTubeShortsView.swift:11\u0060 calls \u0060Environment\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift:5\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeChannelView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"1251f548a6223716e69eb15d149310bdef3d41223969c2a688a930994a982b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): Sources/Kaset/Views/ChartsView.swift:88-98 | Sources/Kaset/Views/ExploreView.swift:89-99 | Sources/Kaset/Views/HomeView.swift:118-128 | Sources/Kaset/Views/MoodsAndGenresView.swift:109-120 | Sources/Kaset/Views/NewReleasesView.swift:88-98 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:88\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba28531b03999928aa249b590b8236a7a77cc5c9cd163b9f970cd0fcafbcb1cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): Sources/Kaset/Models/Artist.swift:138-146 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:873-881 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:389-400 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Models/Artist.swift:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/Artist.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"980354562992ec1778d385a27750f79cf3d987a2f6e855d248d27b71c1e6a2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:561-569 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:591-599 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:605-616 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff695153433faedba48f90a7a3766a7624908bf5c9029c6ad63fe81b8f964798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201312 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:149-152 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:155-166 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:171-182 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:167\u0060 calls \u0060LibraryAlbumsPage\u0060 and \u0060Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:152\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fc211ad753940c991daf42d3560c4abda4fe23498d977cab71ae45d4693a3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:561-572 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:688-699 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd99c1defa0efe0f539965a4a738c6a66117e0307d76f03c109dd035c5db376"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Kaset/Services/Library/LibraryMutationActions.swift:375-386 | Sources/Kaset/Services/Library/LibraryMutationActions.swift:415-426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Library/LibraryMutationActions.swift:375\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7eeaf12ae1737c848e5772e13ad8dfafc1f4ec384dbbc90e8aa658e731ab51f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Kaset/Services/Player/MusicPlaybackIntent.swift:381-392 | Sources/Kaset/Services/Player/MusicPlaybackIntent.swift:400-411 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Player/MusicPlaybackIntent.swift:381\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/MusicPlaybackIntent.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee08630f0c7295deca2a372cfe483ad650b2f72d9d9da0b89e2ea1653433d41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift:708-719 | Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift:753-763 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift:708\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e4604972290ae72729cbb098427ec24782a8958741b3e07e99a564bd9fe987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/Kaset/Services/Scripting/ScriptCommands.swift:366-377 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:460-470 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Scripting/ScriptCommands.swift:366\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scripting/ScriptCommands.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c7ad18dc3c409c9089019dde68a74a409fa95d100364078cb7645eaf11e2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Kaset/Utilities/ColorExtractor.swift:152-163 | Sources/Kaset/Utilities/ColorExtractor.swift:178-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Utilities/ColorExtractor.swift:152\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Utilities/ColorExtractor.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad82250eab6ffa052f943d9ee8ddc7247b53843576526d433274c68cade869a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift:397-408 | Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift:611-622 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift:397\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/PlaylistDetailViewModel.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"579b305dd335ffc40908a58be4a1f3503851544e1002ed6793ec753dec2aa7c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/Kaset/Views/QueueSidePanelFooterActions.swift:128-139 | Sources/Kaset/Views/SharedViews/SongActionsHelper.swift:252-262 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/QueueSidePanelFooterActions.swift:128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/QueueSidePanelFooterActions.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"994df6d1c4ce89ae380cd5f215f2fb2187a6d0382c7af909d56e4f551412c5cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Kaset/Views/SharedViews/SongContextMenus.swift:243-254 | Sources/Kaset/Views/Sidebar.swift:180-191 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/SharedViews/SongContextMenus.swift:243\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/SongContextMenus.swift"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88fc388c96ed5410dc4187ed055001d3539f548f1e3224c69f98da97bcd6b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:73-84 | Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift:96-107 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:85\u0060 calls \u0060font\u0060, \u0060system\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift:108\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeChannelView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"99251b76bf0d7ce74b9123f9424e25f06ce918d0152ebf20fbb11a3d75fdad86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeListRows.swift:108-119 | Sources/Kaset/Views/YouTube/YouTubeListRows.swift:173-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeListRows.swift:108\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/YouTube/YouTubeListRows.swift:185\u0060 calls \u0060font\u0060, \u0060system\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeListRows.swift:120\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeListRows.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48be0a04505b005616e7636ffe06743b9edde1a3aa91485fd650d4ff890a887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): Sources/Kaset/Views/ChartsView.swift:24-34 | Sources/Kaset/Views/ExploreView.swift:24-34 | Sources/Kaset/Views/HomeView.swift:26-36 | Sources/Kaset/Views/LibraryView.swift:77-87 | Sources/Kaset/Views/MoodsAndGenresView.swift:24-34 | Sources/Kaset/Views/NewReleasesView.swift:24-34 | Sources/Kaset/Views/PodcastsView.swift:26-36 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:24\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/PodcastsView.swift:37\u0060 calls \u0060navigationDestination\u0060, \u0060PodcastShowView\u0060 and \u0060Sources/Kaset/Views/ChartsView.swift:35\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e890279e2a7ae79d3f88dd11dd6de91e70ad4d394d3c2496b6d7d1f6501e15f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 6): Sources/Kaset/ViewModels/ChartsViewModel.swift:51-61 | Sources/Kaset/ViewModels/ExploreViewModel.swift:52-62 | Sources/Kaset/ViewModels/HistoryViewModel.swift:87-96 | Sources/Kaset/ViewModels/HomeViewModel.swift:82-92 | Sources/Kaset/ViewModels/MoodsAndGenresViewModel.swift:50-60 | Sources/Kaset/ViewModels/NewReleasesViewModel.swift:50-60 \u2014 before extracting anything, compare \u0060Sources/Kaset/ViewModels/ChartsViewModel.swift\u0060 and \u0060Sources/Kaset/ViewModels/ExploreViewModel.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/ViewModels/ChartsViewModel.swift:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/ChartsViewModel.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0196c52e1b81f7cf39a5f28b87e176ecfc2dd3a13d9eb3ec670452061522d035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Sources/Kaset/Services/API/YTMusicClient.swift:1209-1219 | Sources/Kaset/Services/API/YTMusicClient.swift:1228-1237 | Sources/Kaset/Services/API/YTMusicClient.swift:1248-1257 \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":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfeda3e3390ecc986b5a356edbb51cdf1fe53bcb97e80f6e998601f4339c8687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift:49-59 | Sources/Kaset/Views/YouTube/YouTubeHomeView.swift:147-157 | Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift:57-67 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeSubscriptionsView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift:49\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeHistoryView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19a1d59ce944386138a1a7595f96f54b2ba8840749ccd3a3d046cc089289c8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/APIExplorer/AskVideoAudit.swift:2437-2447 | Sources/YouTubeAskCore/YouTubeAskWireDecoder.swift:345-354 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2437}}}],"partialFingerprints":{"codehealthFindingId/v1":"38af19b8e5b1794e5a22072e9ce115c2eba8c72441dee13f037974df9efe8dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/APIExplorer/main.swift:201-211 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:146-156 \u2014 before extracting anything, compare \u0060Sources/APIExplorer/main.swift\u0060 and \u0060Sources/Kaset/Services/API/YouTubeAskTransport.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c8139d7f73b3399f60959145ef2c75402e36904f4df1f9d0bf844e0c2fc6c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/APIExplorer/main.swift:600-610 | Sources/Kaset/Services/API/YTMusicClient.swift:2317-2327 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:600\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c7be46315f05f18962f086275b9e5b1432bc3aa25500e969324a30e6a4153f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/APIExplorer/main.swift:3627-3636 | Sources/APIExplorer/main.swift:3637-3647 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3627}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5804c6f9c2a4dc1ef9e71a07e6ab7e7967422897cc60d6fb03927a16ca8d438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:184-194 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:218-228 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bbe7c0f24cb9ad6a042f92de3093b66d52a752b4a662eb39fe58cda287943e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:172-182 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:232-240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"73793687c7c4859a776c82fafb5d26b928b5602011297d68c5e4ef097a1ba7ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:161-171 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:221-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"22abf2b3ba70b17948307c2a59e1eee6d2e7e9952093b93ddcac32cfeb6cc998"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Kaset/Services/API/YTMusicClient.swift:1526-1536 | Sources/Kaset/Services/API/YTMusicClient.swift:1666-1676 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded1b6e8923236440c2d316b54a4b689b7538ff8ec95c14a567eebbcb0fccce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Kaset/Services/Player/AlbumPlaybackActions.swift:9-19 | Sources/Kaset/Services/Player/AlbumPlaybackActions.swift:31-41 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Player/AlbumPlaybackActions.swift:9\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/AlbumPlaybackActions.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b05cde38070ba3db61ec02359eb4c6b967f6eab9ea459adaaca4ccc1142749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Kaset/Views/LegacyFallbackViews.swift:312-322 | Sources/Kaset/Views/PlaylistDetailView\u002BRefineSheet.swift:56-66 \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":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92ca1d78b1a0b241e72301065bf314f1fd768c1b20437fdf7e5c547093393e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Kaset/Views/LegacyFallbackViews.swift:387-397 | Sources/Kaset/Views/LyricsView.swift:101-111 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/LegacyFallbackViews.swift\u0060 and \u0060Sources/Kaset/Views/LyricsView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4d3c39dd180a45ad4a44e97b4cb18cec48385637e6b08a54d3ffd237d20bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1265-1275 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BDocumentGeneration.swift:237-247 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"976012c00bf0246bc464be61b82581fe24f2f6750600fba1ebf2cd6e70cb11e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Kaset/Views/PlayerBar.swift:535-545 | Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift:507-517 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/PlayerBar.swift:535\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb92303bc431209fafdbaa56c516abbf7d97ccba30a75a7af21ea0fddcef92d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Kaset/Views/PlaylistDetailView\u002BHeaderActions.swift:83-93 | Sources/Kaset/Views/PlaylistDetailView\u002BHeaderActions.swift:97-107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/PlaylistDetailView\u002BHeaderActions.swift:83\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlaylistDetailView\u002BHeaderActions.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef48d6a85184ee51587e4f7e5b0970174b8303a151689be4c384640f5e822c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Kaset/Views/PodcastsView.swift:429-439 | Sources/Kaset/Views/PodcastsView.swift:612-622 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PodcastsView.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c4f83b7311eb24d6800248e941b218190cecd7eeff5c6d5a2fd378a36023dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Kaset/Views/SidebarProfileView.swift:271-281 | Sources/Kaset/Views/SidebarProfileView.swift:283-293 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/SidebarProfileView.swift:271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SidebarProfileView.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b369f7fcae100b474f82333339ecab3cf9f4f5fe554ca45acdf804887256ce1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): Sources/Kaset/Views/ChartsView.swift:34-43 | Sources/Kaset/Views/ExploreView.swift:34-43 | Sources/Kaset/Views/HomeView.swift:36-45 | Sources/Kaset/Views/MoodsAndGenresView.swift:34-43 | Sources/Kaset/Views/NewReleasesView.swift:34-43 | Sources/Kaset/Views/SearchView.swift:39-48 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:34\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fc1f18dff0bd10fb6f3962852cf2e1b64d56ebf84a92bc4b4c1214b508b43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/Kaset/Services/API/YTMusicClient.swift:1531-1540 | Sources/Kaset/Services/API/YTMusicClient.swift:1671-1680 | Sources/Kaset/Services/API/YTMusicClient.swift:1721-1730 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:1531\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f104e064cbfa467779e684a0c796b2b115a02d1fc27176ef1e42b24122a630a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Sources/Kaset/Views/ArtistDetailView.swift:130-139 | Sources/Kaset/Views/ArtistEpisodesListView.swift:66-74 | Sources/Kaset/Views/PlaylistDetailView.swift:171-180 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ArtistDetailView.swift\u0060 and \u0060Sources/Kaset/Views/ArtistEpisodesListView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006020\u0060 in one and \u006012\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Views/PlaylistDetailView.swift:167\u0060 calls \u0060frame\u0060 and \u0060Sources/Kaset/Views/ArtistDetailView.swift:126\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5efdde0760e54c7fc904b04030d50a71aa084f43a57b2f489d4387f45ab7bae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/APIExplorer/AskVideoAudit.swift:2820-2828 | Sources/YouTubeAskCore/YouTubeAskWireDecoder.swift:141-150 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/AskVideoAudit.swift:2820\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2820}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd2a445651836a99bc86482f79c0a746c9922783f2d7b48b26675885675061f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/APIExplorer/main.swift:183-192 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:124-133 \u2014 before extracting anything, compare \u0060Sources/APIExplorer/main.swift\u0060 and \u0060Sources/Kaset/Services/API/YouTubeAskTransport.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:183\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b9788c1f490d61cbd3badb8684db8710600ce7325c52e42668b57214b79999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/APIExplorer/main.swift:613-622 | Sources/APIExplorer/main.swift:627-636 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"079b7408ab9540c36c9ff968b661ef9378de76bf4fee12d1dcd3748a56413280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/APIExplorer/main.swift:2111-2120 | Sources/APIExplorer/main.swift:2199-2210 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:2111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":2111}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a3b366d1ee86b247421a4b46607e4db279187d6a36657fc9460b638950b3bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Services/AI/CommandExecutor.swift:548-557 | Sources/Kaset/Services/AI/CommandExecutor.swift:573-582 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/AI/CommandExecutor.swift:548\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"c129875a664a67693f9ee673da2968cc0bdbefdadd85eb6a720a19bf88d49762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:170-179 | Sources/Kaset/Services/API/YTMusicClient.swift:1115-1124 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfaa707e30d7708157662b2f693086ff9d3c03061c9b0e67bf93b6d235236fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:263-272 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:772-781 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:263\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"823cc4e6bfd79ca9ba726f7a0b6f2feba1d63290fee07ab9d317f75ee0323dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Services/API/YTMusicClient.swift:1982-1991 | Sources/Kaset/Services/API/YouTubeClient.swift:724-733 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:1982\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1982}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c581e4250e45e4e70453a63102db9ce15e566b3835452f3c7cccdfbcf2c73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Services/API/YouTubeClient\u002BAsk.swift:52-61 | Sources/Kaset/Services/API/YouTubeClient\u002BAsk.swift:101-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YouTubeClient\u002BAsk.swift:52\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YouTubeClient\u002BAsk.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"994c18cd70715f487740352d6d0f7148c543c3701c5a33a74909eb4620d4aafb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Views/ArtistDetailView.swift:471-480 | Sources/Kaset/Views/ArtistDiscographyView.swift:59-68 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ArtistDetailView.swift\u0060 and \u0060Sources/Kaset/Views/ArtistDiscographyView.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fd74b24a1b40e3dffcb60ea4ea09f812a8e04ba462d3b7d2b213fc7f405622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/Kaset/Views/LegacyFallbackViews.swift:92-101 | Sources/Kaset/Views/LegacyFallbackViews.swift:147-155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LegacyFallbackViews.swift:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"19340303672f16ebb92b626cc49505bacd0fc15f54ba1f51fd12630d268492f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Views/LegacyFallbackViews.swift:435-444 | Sources/Kaset/Views/LyricsView.swift:463-472 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/LegacyFallbackViews.swift\u0060 and \u0060Sources/Kaset/Views/LyricsView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LegacyFallbackViews.swift:435\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c081d0a177cf6d42ae43c7e808189613c893d85cc3d6f430b2c862effb81aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Views/LyricsView.swift:280-289 | Sources/Kaset/Views/LyricsView.swift:326-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LyricsView.swift:280\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LyricsView.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee54681dafdf68c9a0f47f5b78bfe5c10d20c214726027592fb8bdf51cd46a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Views/PlayerBar.swift:61-70 | Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift:79-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/PlayerBar.swift:61\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5162e1d3da6daffa84e3b8a42704f06ae6c6d0d626e8370ad20ea08ef84020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Views/SharedViews/CarouselShelf.swift:222-231 | Sources/Kaset/Views/SharedViews/CarouselShelf.swift:277-286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/SharedViews/CarouselShelf.swift:222\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/CarouselShelf.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fef52f005c8e8cd39b106ce139ec3d8eb5441367cde7b331bed06bb095fc2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeListRows.swift:175-184 | Sources/Kaset/Views/YouTube/YouTubeWatchView.swift:870-879 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/YouTube/YouTubeListRows.swift:175\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeListRows.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"073f427db74beb3d1df974f6044ef584c08d543606a3e304612e747c992015cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): Sources/Kaset/Views/ArtistDetailView.swift:132-140 | Sources/Kaset/Views/ArtistDetailView.swift:485-493 | Sources/Kaset/Views/ArtistDetailView.swift:520-528 | Sources/Kaset/Views/ArtistDetailView.swift:559-567 | Sources/Kaset/Views/ArtistDetailView.swift:658-666 | Sources/Kaset/Views/ArtistDetailView.swift:738-746 | Sources/Kaset/Views/ArtistDetailView.swift:790-798 | Sources/Kaset/Views/ArtistDetailView.swift:836-844 | Sources/Kaset/Views/ArtistEpisodesListView.swift:67-75 | Sources/Kaset/Views/PlaylistDetailView.swift:173-181 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ArtistDetailView.swift\u0060 and \u0060Sources/Kaset/Views/ArtistEpisodesListView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb456bd5b1dfcb1cb004329486ab2322188834c677604bc574adaf438681378"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): Sources/Kaset/Views/ChartsView.swift:137-145 | Sources/Kaset/Views/ExploreView.swift:139-147 | Sources/Kaset/Views/HomeView.swift:193-203 | Sources/Kaset/Views/MoodCategoryDetailView.swift:117-125 | Sources/Kaset/Views/MoodsAndGenresView.swift:150-158 | Sources/Kaset/Views/NewReleasesView.swift:137-145 | Sources/Kaset/Views/SharedViews/FavoritesSection.swift:71-79 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Views/ChartsView.swift:135\u0060 calls \u0060playlist\u0060 and \u0060Sources/Kaset/Views/SharedViews/FavoritesSection.swift:70\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc5b3094837594eaf5658a0c2af9fa6f6241be2c30f34775c6181c6dbb645e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): Sources/Kaset/Views/ChartsView.swift:138-146 | Sources/Kaset/Views/ExploreView.swift:140-148 | Sources/Kaset/Views/HomeView.swift:196-204 | Sources/Kaset/Views/MoodsAndGenresView.swift:151-159 | Sources/Kaset/Views/NewReleasesView.swift:138-146 | Sources/Kaset/Views/SearchView.swift:455-463 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d14cc6b6eb504c374dd1e923fd4731c6f72695c14f6d14aafb38c4db8ec203e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): Sources/Kaset/Views/LegacyFallbackViews.swift:349-357 | Sources/Kaset/Views/LegacyFallbackViews.swift:368-376 | Sources/Kaset/Views/LyricsView.swift:384-392 | Sources/Kaset/Views/LyricsView.swift:403-411 | Sources/Kaset/Views/QueueSidePanelView.swift:69-77 | Sources/Kaset/Views/QueueView.swift:83-91 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/LegacyFallbackViews.swift\u0060 and \u0060Sources/Kaset/Views/LyricsView.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LegacyFallbackViews.swift:349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00600\u0060 in one and \u006012\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"0daae8f291106a74da024cc1ccf4036576d8bcad0bf01049e90b7b4276d6b993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Kaset/Models/Podcast.swift:41-49 | Sources/Kaset/Utilities/Extensions.swift:19-28 | Sources/Kaset/Views/PlayerBarTimeline.swift:141-150 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Models/Podcast.swift:41\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/Podcast.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ca49eb0431e8c2f72f07a0e3e45b65e88844d58a86f059b1cd6c86ebb251b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:149-163 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:165-179 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:181-195 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:165\u0060 calls \u0060firstDictionary\u0060 and \u0060Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:197\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec285fd2c858bb1f6f8054ae82595533c68537436f93de6dea881a6d8867f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:433-441 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:469-477 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:515-523 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/PodcastParser.swift:433\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"db60c4923fd621c3cbbc4596e3d5890ffe528f09d075d87ebdaf644b92fc299b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Kaset/Services/API/YTMusicClient.swift:2086-2094 | Sources/Kaset/Services/API/YouTubeClient.swift:934-942 | Sources/Kaset/Services/API/YouTubeClient.swift:996-1004 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:2086\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Services/API/YTMusicClient.swift:2085\u0060 calls \u0060URLQueryItem\u0060 and \u0060Sources/Kaset/Services/API/YouTubeClient.swift:933\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":2086}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdc62d66862de6052837f958b25e08b5e84def1bd2cab3ffa428145c27af87e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Kaset/Views/ArtistDetailView.swift:133-141 | Sources/Kaset/Views/PlaylistDetailView.swift:174-182 | Sources/Kaset/Views/YouTube/YouTubeListRows.swift:175-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:133\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a960e4ff61d82430e1e242c8e34c057c9743d248efd1fdc6a7eb0e10f929426b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/APIExplorer/DiscoveryAudit.swift:510-518 | Sources/APIExplorer/DiscoveryAudit.swift:606-614 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/DiscoveryAudit.swift:510\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/DiscoveryAudit.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5af2b0a35936ac56e8661636fd26efc84b49f6ed9896295737d06483ff1c9e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 3): Sources/APIExplorer/main.swift:1021-1029 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:713-716 | Sources/Kaset/Services/API/Parsers/SearchResponseParser\u002BSupport.swift:259-267 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/SearchResponseParser\u002BSupport.swift:259\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed724a0ca501fc7d8434ee1611690da8dcf62afa24a7f824375553b6a550dd61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Services/AI/CommandExecutor.swift:494-502 | Sources/Kaset/Services/AI/CommandExecutor.swift:551-559 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/AI/CommandExecutor.swift:494\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"512bdbdb9532faaf6dd71f8b2299f49aa6bc8adf58eca0a4e3faebcfffab021d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/Kaset/Services/API/MockUITestYTMusicClient.swift:624-632 | Sources/Kaset/Services/API/MockUITestYTMusicClient.swift:649-656 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/MockUITestYTMusicClient.swift:624\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/MockUITestYTMusicClient.swift"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da990511c20d5257e7749ce2cd5388815b6b86576de8808f311ff72601b5c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:775-783 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1045-1053 \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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"205392efc808a4e05209431680c3f9e3042b08ae8a2767e8b9939a5fa978ff7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:897-905 | Sources/Kaset/Services/API/Parsers/SearchResponseParser\u002BSupport.swift:14-21 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"4233881a1d78f5e66a2facfab191bd00aa92355d279e9e58cfcc1d43e68e7b48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:76-84 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:461-468 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:76\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e9a9319c2c19cb294d6a076849229ebd1b5dd18da32cb0f676300624081f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BMetadata.swift:74-83 | Sources/Kaset/Services/API/Parsers/SearchResponseParser\u002BSupport.swift:24-32 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BMetadata.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf026e5bead1eebb570fa1b2866eff37365c3a6d3d3749372bf8c06335b4fe52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:112-118 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:127-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e1ffb517e7a90676386724833790d3fe2abde9f60364a693f0c2deebaa2a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:445-453 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:481-489 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/PodcastParser.swift:445\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f94bd7644ed3d05dd6411b8f415f246fdcbdf9a262e18723a4acd3434e45d21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:85-94 | Sources/Kaset/Services/API/YTMusicClient.swift:1181-1190 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a39bca1623532b2a23ca60c5b4452067b2a936e25847c83664bc648512b298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:134-142 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:83-91 \u2014 before extracting anything, compare \u0060Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift\u0060 and \u0060Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bf295d47fd7f852ab6a2f95e6be5ae671fc4b305a7a09c3a001db6ae235ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Services/Auth/AccountService.swift:140-148 | Sources/Kaset/Services/Auth/AuthService.swift:283-291 \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":"Sources/Kaset/Services/Auth/AccountService.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb707a9685793f5adf72f7a2a0ca68da217f0f9585f028e48190ec5888e8ef73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift:279-287 | Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift:923-931 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd05d23e833f0f3f51a1ba9cac8c112aa4ee0eba9b8204534f8d0aefb13c182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Services/Player/PlayerService\u002BQueueHistory.swift:67-75 | Sources/Kaset/Services/Player/PlayerService\u002BQueueHistory.swift:92-100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Player/PlayerService\u002BQueueHistory.swift:67\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BQueueHistory.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e643cd9a5b4aba7b7ed6f48f0fdcc9ff7c9dcec1b8629e23ad657edc878510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/VideoWindowController.swift:48-57 | Sources/Kaset/Views/YouTube/YouTubeVideoWindowController.swift:122-130 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/VideoWindowController.swift:48\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/VideoWindowController.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d88198b9a3f1ec66b1c933beb14b19a49609edb5b0c266b761329750da26eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Views/WhatsNewView.swift:87-95 | Sources/Kaset/Views/WhatsNewView.swift:410-418 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/WhatsNewView.swift:87\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/WhatsNewView.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5db9ec6f7b1e4a3e1a1e29de0425dba9be5e92706cba8b764e3ef04a462f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 10): Sources/Kaset/Views/ArtistDetailView.swift:132-139 | Sources/Kaset/Views/ArtistDetailView.swift:485-492 | Sources/Kaset/Views/ArtistDetailView.swift:520-527 | Sources/Kaset/Views/ArtistDetailView.swift:559-566 | Sources/Kaset/Views/ArtistDetailView.swift:738-745 | Sources/Kaset/Views/ArtistDetailView.swift:790-797 | Sources/Kaset/Views/ArtistDetailView.swift:836-843 | Sources/Kaset/Views/ArtistEpisodesListView.swift:67-74 | Sources/Kaset/Views/PlaylistDetailView.swift:173-180 | Sources/Kaset/Views/SearchView.swift:344-351 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ArtistDetailView.swift\u0060 and \u0060Sources/Kaset/Views/ArtistEpisodesListView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ArtistDetailView.swift:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"936f3de584bf3c7b201521cc2032b4b7cb016803107306b919e6ea6e30cedb65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): Sources/Kaset/Views/ChartsView.swift:20-27 | Sources/Kaset/Views/ExploreView.swift:20-27 | Sources/Kaset/Views/HistoryView.swift:22-29 | Sources/Kaset/Views/LibraryView.swift:73-80 | Sources/Kaset/Views/MoodsAndGenresView.swift:20-27 | Sources/Kaset/Views/NewReleasesView.swift:20-27 | Sources/Kaset/Views/PodcastsView.swift:22-29 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:20\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"568f0b59beab7ae91df871749ceb87dca3e0942f9f94fd314be703bbe93c32e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/Kaset/Services/API/YTMusicClient.swift:1209-1217 | Sources/Kaset/Services/API/YTMusicClient.swift:1228-1235 | Sources/Kaset/Services/API/YTMusicClient.swift:1248-1255 | Sources/Kaset/Services/API/YTMusicClient.swift:1434-1442 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a389455996e9b710331f3bf68cfcdc9e9bfef2624908e606338b6a370082f55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/Kaset/ViewModels/ArtistDetailViewModel.swift:58-66 | Sources/Kaset/ViewModels/ArtistDiscographyViewModel.swift:35-42 | Sources/Kaset/ViewModels/ArtistEpisodesListViewModel.swift:40-47 | Sources/Kaset/ViewModels/MoodCategoryViewModel.swift:43-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/ViewModels/ArtistDetailViewModel.swift:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/ArtistDetailViewModel.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ba23bf190e1540d8da6403a9dc5af760b2540e20b76ae7a5966fe25d1310a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/APIExplorer/SearchAudit.swift:645-652 | Sources/APIExplorer/SearchAudit.swift:756-763 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:122-129 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/SearchAudit.swift:645\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0d9b7c4d417812096dfb38b242dbe456c947f2a6989e8dfa460bb6c8ff46f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/APIExplorer/main.swift:3155-3162 | Sources/APIExplorer/main.swift:3169-3176 | Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:96-103 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:3155\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa69661a8ec046e0ece7b7def094d97150c6394caaefab623f3a2951ab487ebb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/Kaset/Services/API/YTMusicClient.swift:1269-1277 | Sources/Kaset/Services/API/YTMusicClient.swift:1300-1307 | Sources/Kaset/Services/API/YTMusicClient.swift:1409-1417 \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":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d07e3e4b003176a853af505373172b8f38735135099b0d4303d88c8346777ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Models/Album.swift:77-84 | Sources/Kaset/Models/Song.swift:241-248 \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":"Sources/Kaset/Models/Album.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ce4fb78e8bb8e16223be7f419d5783ffd1159646eacbf1ea36523712b4cb51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:269-276 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:304-311 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/ArtistParser.swift:269\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"31dfb2b098695d1d027db1b05110ab5ac38dd85a123a1833df158c1aa28c4c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:346-353 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:705-712 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeb2dd138b02330bd6dd739f86ab3b64f0216a3813eb0d156e604aa631ab118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:480-487 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:838-840 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1068-1075 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90aa559027630c8b4a1d2676a292afcb7ff48cf2cfaa67ac8e4e6e542650e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:698-705 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:718-725 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"047f82e4bbe4bf2778072621ec83df2c92679aa24b8ffad79fd59a8512e0a275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:578-585 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:618-625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"2557ab42702114828753df13a09371460dedff78f681c11c983947d8f986640c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:561-568 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:571-578 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"c827cd4f3970d1f5449085e3a9133362417bcc1942cb7c1a483c5fe8793a9ec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Services/API/YTMusicClient.swift:472-479 | Sources/Kaset/Services/API/YTMusicClient.swift:629-636 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"db003b6d85214c4012d9e490a16f7c62bdf1235627b0384bd4de2766b9695851"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Services/API/YTMusicClient.swift:1619-1626 | Sources/Kaset/Services/API/YTMusicClient.swift:1644-1651 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:1619\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a39ee8f128d29694b8de0c290089e931d03dd3be03c50770a794641f83cba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Services/Scripting/ScriptCommands.swift:552-559 | Sources/Kaset/Services/Scripting/ScriptCommands.swift:597-607 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Scripting/ScriptCommands.swift:597\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Scripting/ScriptCommands.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31d02ff45869a519ba17af00a8bb6c0fd146a675870037110265aadb1c04c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Views/AccountRowView.swift:49-56 | Sources/Kaset/Views/AccountSwitcherPopover.swift:135-142 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/AccountRowView.swift:49\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/AccountRowView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d139cbe33fe8574ce872607e0486644e65ceeb77a99b562153838fb374c539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Views/LibraryView.swift:347-354 | Sources/Kaset/Views/LibraryView.swift:476-483 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/LibraryView.swift:347\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/LibraryView.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"6501d73f224117a2820ae69740e504fa32088d39cf5cdf8e8760de14ba1c276d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Views/PlayerBar.swift:468-475 | Sources/Kaset/Views/PlayerBar.swift:493-500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/PlayerBar.swift:468\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060accessibilityLabel\u0060 to \u0060String(localized: \u0022Previous track\u0022)\u0060 in one and \u0060String(localized: \u0022Next track\u0022)\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d48f2302152961728f3a17d553e48927de725b442c395c8d68bda61f9e38257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Views/PlayerBarTimeline.swift:139-146 | Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift:747-754 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/PlayerBarTimeline.swift:139\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarTimeline.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fb403e3aa778f68af5df41d9db310ab57b451f4639621998986f0167f98bb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Views/SharedViews/ShareContextMenu.swift:117-124 | Sources/Kaset/Views/SharedViews/ShareContextMenu.swift:151-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/SharedViews/ShareContextMenu.swift:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Views/SharedViews/ShareContextMenu.swift:159\u0060 calls \u0060podcastShow\u0060, \u0060menuItem\u0060 and \u0060Sources/Kaset/Views/SharedViews/ShareContextMenu.swift:125\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/ShareContextMenu.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7516c162f97e3de237b2968b33c16f135e235ce353c0b6dbd077c277df076f63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Sources/APIExplorer/SearchAudit.swift:644-650 | Sources/APIExplorer/SearchAudit.swift:755-761 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:121-127 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeFeedParser.swift:171-177 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:413-419 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/SearchAudit.swift:644\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:420\u0060 calls \u0060percentValue\u0060 and \u0060Sources/Kaset/Services/API/Parsers/YouTube/YouTubeFeedParser.swift:178\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a39a9522ed2617b2f28a56c76586229133732e7c31ae3e8b409ffa3b093735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:445-451 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:481-487 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:527-533 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/PodcastParser.swift:445\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9fcfe5eee7662aaefc95c595cd83040c8c2ddcf08cc40e359384794b422f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/APIExplorer/AskVideoAudit.swift:949-955 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:1341-1347 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/AskVideoAudit.swift:949\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82ad35b32a4b8ed0fed3a887bdef69dcb0203a9786c94dcb781011a479c768c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 6): Sources/APIExplorer/SearchAudit.swift:172-178 | Sources/APIExplorer/main.swift:1846-1853 | Sources/APIExplorer/main.swift:1900-1903 | Sources/APIExplorer/main.swift:3150-3154 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:218-223 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:554-559 \u2014 there are 6 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/SearchAudit.swift:172\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa78575908ce515c49796f521a7675bb4fe8b64d5000530902979dd1f53f214a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Services/AI/CommandExecutor.swift:486-492 | Sources/Kaset/Services/AI/CommandExecutor.swift:541-547 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/AI/CommandExecutor.swift:486\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/CommandExecutor.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94f43bf4d76983b522077f80f68841bc8410b6b8c041fca5f73b883df90e804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:110-117 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:349-356 \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":"Sources/Kaset/Services/API/Parsers/AccountsListParser.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7af03a4eca70070ff529dd1ef306802d3770c80e43422850636a05df018280c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:538-544 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:535-541 \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":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"1772f2824f4094f59d2a3b0d6329d41f55b08cae1e4260d1a7b8c4a62bf76d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:743-749 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:980-986 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060fallbackThumbnailURL\u0060 to \u0060URL? = nil\u0060 in one and \u0060URL?\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"a144244448333bf9516dd24ac70586d3dfe7d1ec8c80d8ce8d9bde1b3231e3e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:520-527 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:551-558 \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":"Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c3e8e894756cb852bf72e5d959f2f8e18ad7127df3872b8f3ecdf44573eaec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/LyricsParser.swift:18-25 | Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BTrackCredits.swift:20-26 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/LyricsParser.swift:18\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Services/API/Parsers/LyricsParser.swift:17\u0060 calls \u0060debug\u0060 and \u0060Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BTrackCredits.swift:19\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LyricsParser.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2475fff9e36fcde1215c9c0304646a2294fcb260cc9d78314375a0652501fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:858-865 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:869-875 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cad84c44b26eeacfe9c9fb9678bf4f4e51ff2c31459cf3f6c4c1da60e85445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:174-182 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:123-131 \u2014 before extracting anything, compare \u0060Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift\u0060 and \u0060Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ef5cf456645354ea8951316a152401a18e8c894175a7392987259abc530ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 4): Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:69-75 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:326-331 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:187-193 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:136-142 \u2014 before extracting anything, compare \u0060Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift\u0060 and \u0060Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:326\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/AccountsListParser.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"5916dd48e2559905cb121f4e8ef8bdb0230a12d82b8241937ffeda61539fa88a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Services/Audio/EqualizerAudioEngine.swift:295-302 | Sources/Kaset/Services/Audio/EqualizerAudioEngine.swift:325-331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Audio/EqualizerAudioEngine.swift:295\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Services/Audio/EqualizerAudioEngine.swift:294\u0060 calls \u0060bindMemory\u0060 and \u0060Sources/Kaset/Services/Audio/EqualizerAudioEngine.swift:325\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Audio/EqualizerAudioEngine.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ce9f45a87c645a07806d49613e423a5a8ec7212615eb759dfe1bc647fb68e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Services/Audio/ProcessTapHelper.swift:328-339 | Sources/Kaset/Services/Audio/ProcessTapHelper.swift:494-500 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Audio/ProcessTapHelper.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9de1ea717dc9a185eea9496c09173abb4b39c4b13a6fb5d42004128fe38a5ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Views/PodcastsView.swift:148-154 | Sources/Kaset/Views/PodcastsView.swift:329-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PodcastsView.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc635dcc851819d3c2688282c91eb8dc8f11aec26605777c5736173e3796f0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift:23-29 | Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift:69-75 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ec2f771193cbe4cb14f5678ad53914ce8349a50b506091d0ba571a084ae9a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): Sources/APIExplorer/main.swift:3161-3166 | Sources/APIExplorer/main.swift:3175-3180 | Sources/APIExplorer/main.swift:3604-3610 | Sources/APIExplorer/main.swift:3627-3632 | Sources/APIExplorer/main.swift:3637-3642 | Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:102-107 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3161}}}],"partialFingerprints":{"codehealthFindingId/v1":"5170a7d04b69f26cec5d548dfa89fbfc48507baf07b17186abe0474694bd8dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/Kaset/Services/API/Parsers/PodcastParser.swift:445-450 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:480-486 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:527-532 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:42-47 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:67-72 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PodcastParser.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c50d8e22ca852ed4c17a3f40432f411d39ded8f43a8bba7ee63365c85aff2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:183-188 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:199-204 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:207-212 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:217-222 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"254477cc7f5677d9950e748ed6dcf6fa5ab46f98ab835d32c3b29db2809d66a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 9): Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:21-24 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:261-266 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:296-301 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:17-20 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:297-302 | Sources/Kaset/Services/API/Parsers/LyricsParser.swift:13-16 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:387-390 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:20-23 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:31-34 \u2014 there are 9 copies across 8 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:21\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Services/API/Parsers/LyricsParser.swift:17\u0060 calls \u0060debug\u0060 and \u0060Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:391\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/AccountsListParser.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedf50e1e9326a0f762e48720afaeb06ba09b6c82e49fd08b1928a242437a1b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:741-747 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:135-140 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:84-89 \u2014 before extracting anything, compare \u0060Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift\u0060 and \u0060Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"4997eba756180572d1460b47eb3c167d5520e222e01083ec743499ba6daef1c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Kaset/Services/API/YTMusicClient.swift:1526-1531 | Sources/Kaset/Services/API/YTMusicClient.swift:1545-1550 | Sources/Kaset/Services/API/YTMusicClient.swift:1666-1671 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:1526\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4851ea223a5d6fe3605b851d30097d065a657391519ee209200df9b1f9488a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/APIExplorer/main.swift:963-968 | Sources/Kaset/Services/API/Parsers/ResponseTreeSearch.swift:6-11 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:963\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a585608903bac88eee62cfc01c014fb1a65c6d4ed099904322c67aca36b3fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/APIExplorer/main.swift:1272-1277 | Sources/Kaset/Services/API/Parsers/YouTube/WatchNextParser.swift:322-327 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:1272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa38e6940b5bb418d813b6e25529d724e58c3de6ba6a0ea8df984ccce80e26a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): Sources/Kaset/Services/API/MockUITestYTMusicClient\u002BDefaultData.swift:114-116 | Sources/Kaset/Services/API/MockUITestYTMusicClient.swift:529-534 | Sources/Kaset/Services/API/MockUITestYTMusicClient.swift:546-551 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/MockUITestYTMusicClient\u002BDefaultData.swift:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/MockUITestYTMusicClient\u002BDefaultData.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"533b48195402de05249d918cf63ec99f06bd0e9b8a57aeb3e61e903d955f726a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:319-325 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:472-478 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dc00be8799ea755b622f909487d77c88d9a2585fbb581464ffd7df238aa83a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:653-658 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:646-648 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:762-767 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"282cd2e198bde00879362207c8f3ac13b8de69afc0861a14c809adaee3e80ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:126-131 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:136-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2cd82854bada30fa614ae8e1d5e355f79132cee4638e2ddeaa343270f4c332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 17): Sources/APIExplorer/SearchAudit.swift:210-212 | Sources/APIExplorer/SearchAudit.swift:251-253 | Sources/APIExplorer/main.swift:1839-1840 | Sources/APIExplorer/main.swift:1898-1899 | Sources/APIExplorer/main.swift:3149-3150 | Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:68-69 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:218-220 | Sources/Kaset/Services/API/Parsers/LyricsParser.swift:12-13 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:399-405 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:423-428 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:525-526 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:581-583 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:23-24 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:29-30 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:50-51 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:56-57 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:148-149 \u2014 there are 17 copies across 8 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 17 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:399\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:421\u0060 calls \u0060extractMusicVideoType\u0060 and \u0060Sources/APIExplorer/main.swift:1898\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b26cf5de505408f5ba16d89fc95c0710e30ea898c82d659edf76104913f74f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Kaset/Services/Audio/BiquadFilter.swift:153-158 | Sources/Kaset/Services/Audio/BiquadFilter.swift:199-204 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/Audio/BiquadFilter.swift:153\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Audio/BiquadFilter.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7e792f67416b9aa06df2dbb49cd8900e02c79c905eeb06cdf51cb6aee84918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): Sources/APIExplorer/main.swift:3647-3653 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:36-41 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:623-627 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:695-699 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:715-719 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:428-432 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:464-468 \u2014 there are 7 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:3647\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3647}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9d662706a044af42e8c810e8c484ee6b5d3c19d6768e5d05c018a5363b0ae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Sources/APIExplorer/main.swift:3646-3652 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:622-626 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:42-46 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:427-431 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:513-517 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:3646\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":3646}}}],"partialFingerprints":{"codehealthFindingId/v1":"924c1f3cf3b413003bcd1194710d4dad308a34367b5a23c074f34ee443e8b8f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Sources/Kaset/Services/API/Parsers/ArtistParser.swift:35-39 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:694-698 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:714-718 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:397-401 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:463-467 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/ArtistParser.swift:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ArtistParser.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33dd7568e7da08c86d7b85a9749bc5ed67c7047abe2aaf44472458b3e9eede3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:103-108 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:118-123 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:125-130 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:135-140 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:112\u0060 calls \u0060normalizedThumbnailURLs\u0060 and \u0060Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:131\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45e8a71b2908ef91c78a1a1a0aadb4ad97a74f2a55846b1820c864312da8e07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/APIExplorer/SearchAudit.swift:641-645 | Sources/APIExplorer/SearchAudit.swift:752-756 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:337-341 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/SearchAudit.swift:641\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe82f82c36ccf1ee4a6dbc910370d50b6de776ebea754d02e14829bfebc7b1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 20): Sources/APIExplorer/main.swift:1840-1843 | Sources/APIExplorer/main.swift:3573-3576 | Sources/APIExplorer/main.swift:3604-3608 | Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:68-71 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:31-33 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:257-259 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:292-294 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:690-692 | Sources/Kaset/Services/API/Parsers/ArtistParser.swift:709-712 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:13-15 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:70-72 | Sources/Kaset/Services/API/Parsers/HomeResponseParser.swift:89-91 | Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift:293-295 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:549-553 | Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift:741-745 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:16-18 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:458-461 | Sources/Kaset/Services/API/Parsers/RadioQueueParser.swift:24-27 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:51-54 | Sources/Kaset/Services/API/Parsers/SongMetadataParser.swift:58-61 \u2014 there are 20 copies across 9 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 20 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/APIExplorer/main.swift:3604\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"85853dee6b1d7f7d6f0ce909f7aa5e6ad0c0567ca224d13afa84033a72cd5839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:45-49 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:431-435 | Sources/Kaset/Services/API/Parsers/PodcastParser.swift:467-471 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/AccountsListParser.swift:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/AccountsListParser.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3746dd1288402f7acc29ade73a4b674dadc52be5df64a46b2e29f74f1d89c9a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:658-663 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:667-671 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:676-681 \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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fc0db584ea5448cc4fe5469e1911d5a480ddbc7f3095a44c4af1f66e61acd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:858-862 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:869-873 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:880-884 \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":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c59f9e576713d9cc5b61faf2bab489c66269f9642b4569358df2015ff418732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20135 lines \u00D7 5): Sources/Kaset/Services/API/Parsers/YouTube/YouTubeCommentsParser.swift:224-228 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeFeedParser.swift:34-38 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:51-51 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:52-52 | Sources/Kaset/Services/API/Parsers/YouTube/YouTubeItemParser.swift:364-368 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/YouTube/YouTubeCommentsParser.swift:224\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubeCommentsParser.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"45056a69ac93ac18ede11771a21b061e1f6a85e9249cc3ead1ed825e959982ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/Kaset/Services/API/YTMusicClient.swift:574-580 | Sources/Kaset/Services/API/YTMusicClient.swift:589-595 | Sources/Kaset/Services/API/YTMusicClient.swift:604-610 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/YTMusicClient.swift:574\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b28f5a0c808c3ec39ec56cda658a288e7971df98fbcaae0fd1589fb8189400"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:909-913 | Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:932-937 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/API/Parsers/PlaylistParser.swift:909\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ecb007bc39d062642db4ad84f8573837cecaa386d55d0fce1f0ac9b8c77327"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Kaset/Views/WhatsNewView.swift:284-289 | Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.swift:163-168 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/WhatsNewView.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"2842f6e63f60cb723f24b8ab5769db97628d7ea6e31a183961f9484b18ad2f7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/APIExplorer/main.swift:284-292 | Sources/Kaset/Services/API/YouTubeAskTransport.swift:229-237 \u2014 before extracting anything, compare \u0060Sources/APIExplorer/main.swift\u0060 and \u0060Sources/Kaset/Services/API/YouTubeAskTransport.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 102 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":"Sources/APIExplorer/main.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb9a6932b0fb4c51eb2aa64c019906c39addd3ce586d7f577f7a9991db772f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Kaset/Services/ExtensionsManager.swift:70-78 | Sources/Kaset/Services/WebKit/WebKitManager\u002BCookies.swift:256-266 | Sources/Kaset/Services/WebKit/WebKitManager\u002BCookies.swift:657-667 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/ExtensionsManager.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"12eefd2406b9be11aab4902e6c6d7bf14dc78c74964ede03ca147724742fb820"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/Kaset/ViewModels/ChartsViewModel.swift:100-106 | Sources/Kaset/ViewModels/ExploreViewModel.swift:102-108 | Sources/Kaset/ViewModels/MoodsAndGenresViewModel.swift:99-105 | Sources/Kaset/ViewModels/NewReleasesViewModel.swift:99-105 \u2014 before extracting anything, compare \u0060Sources/Kaset/ViewModels/ChartsViewModel.swift\u0060 and \u0060Sources/Kaset/ViewModels/ExploreViewModel.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/ChartsViewModel.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"092d604a5627490831c3d4a8c995278a0234044d2c5a8552ae42ff85d5bbc017"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/Kaset/ViewModels/ChartsViewModel.swift:108-113 | Sources/Kaset/ViewModels/ExploreViewModel.swift:110-115 | Sources/Kaset/ViewModels/HomeViewModel.swift:179-184 | Sources/Kaset/ViewModels/MoodsAndGenresViewModel.swift:107-112 | Sources/Kaset/ViewModels/NewReleasesViewModel.swift:107-112 \u2014 before extracting anything, compare \u0060Sources/Kaset/ViewModels/ChartsViewModel.swift\u0060 and \u0060Sources/Kaset/ViewModels/ExploreViewModel.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/ChartsViewModel.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"150fb512fc3b33b46c49464a6e51496c6b6739062d6fca50de7c90721ecfc69d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Sources/Kaset/ViewModels/ChartsViewModel.swift:115-121 | Sources/Kaset/ViewModels/ExploreViewModel.swift:117-123 | Sources/Kaset/ViewModels/HomeViewModel.swift:194-200 | Sources/Kaset/ViewModels/MoodsAndGenresViewModel.swift:114-120 | Sources/Kaset/ViewModels/NewReleasesViewModel.swift:114-120 \u2014 before extracting anything, compare \u0060Sources/Kaset/ViewModels/ChartsViewModel.swift\u0060 and \u0060Sources/Kaset/ViewModels/ExploreViewModel.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/ChartsViewModel.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc68685611e2c63b0e02facfe4beed25a3498b0397b512581a30f2950dbcca52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Kaset/ViewModels/HistoryViewModel.swift:311-315 | Sources/Kaset/ViewModels/PodcastsViewModel.swift:224-228 \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":"Sources/Kaset/ViewModels/HistoryViewModel.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7524d5462ef3b198256bbf23ef4773996a7912cc629da74351f31172952d0150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1403-1414 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BDocumentGeneration.swift:255-266 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa68e7207034ed9b6d3ed5364430e092fadeab24a4ee7dc2cf9c73981214758d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1434-1440 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BDocumentGeneration.swift:268-274 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1434}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd497221b7edf6804a8645a611adf97e8a88284d8bb53282a2cf57da82f75271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1546-1553 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:351-358 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/MiniPlayerWebView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"144e0bfcf59f9ebad97538bad9694024e41207a2846a9376e2710203149016be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Kaset/Views/MiniPlayerWebView.swift:1857-1864 | Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift:589-596 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/MiniPlayerWebView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubeWatchWebView.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 169 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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e21366e654c00cbfbd78dbd0f01388a93f2bb650da04bbe38d7b80b99e1da4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Kaset/Views/PlayerBar.swift:1086-1094 | Sources/Kaset/Views/YouTube/YouTubePlayerBar.swift:666-674 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fa8a497534aa129298f7062815002d90198d454793074e3da15d33e573510c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Views/PlayerBarVolumeOverlayHost.swift:294-303 | Sources/Kaset/Views/VideoPlayerWindow.swift:65-74 \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":"Sources/Kaset/Views/PlayerBarVolumeOverlayHost.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2fea9be047ae89f88fdf83856dc6c7702d06db24bcb17ead197a53015b6299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Kaset/Services/AI/CommandExecutor\u002BDiscovery.swift:352-357 | Sources/Kaset/Services/AI/CommandIntentParser.swift:165-174 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Services/AI/CommandExecutor\u002BDiscovery.swift:352\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AI/CommandExecutor\u002BDiscovery.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"998b9feb06edb00db138912d75b335c4d46e9928c204bea664412ed430388946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/Kaset/Views/ChartsView.swift:153-159 | Sources/Kaset/Views/ExploreView.swift:155-161 | Sources/Kaset/Views/MoodsAndGenresView.swift:166-172 | Sources/Kaset/Views/NewReleasesView.swift:153-159 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/ChartsView.swift\u0060 and \u0060Sources/Kaset/Views/ExploreView.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Kaset/Views/ChartsView.swift:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ae5fccac7ece51ec04020a787e66fa38140eeb9c335279031fe686ff1b5257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): Sources/Kaset/Views/PlayerBarIconButton.swift:81-88 | Sources/Kaset/Views/PlayerBarIconButton.swift:90-97 | Sources/Kaset/Views/PlayerBarIconButton.swift:99-106 | Sources/Kaset/Views/PlayerBarIconMenu.swift:73-80 | Sources/Kaset/Views/PlayerBarIconMenu.swift:82-89 | Sources/Kaset/Views/PlayerBarMetadataLink.swift:68-75 | Sources/Kaset/Views/PlayerBarVerticalSlider.swift:133-140 \u2014 there are 7 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarIconButton.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5545fd597989cc3b5c93eaf8449411d5c55692a975decace1c7ee1e2e326db11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Kaset/Views/PlayerBarMarqueeText.swift:251-260 | Sources/Kaset/Views/SharedViews/EqualizerView.swift:176-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarMarqueeText.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cb9161456eff5076eeb57296059706e5040da8be082040a1d9f70d896a33bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Kaset/Views/PlayerBarTimeline.swift:118-124 | Sources/Kaset/Views/YouTube/YouTubePlayerBarTimelineLane.swift:101-107 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarTimeline.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2db1aa52b1466f6625cc7e10aac6f186563f88fbe3d05126338684bd622acf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeAskPanelView.swift:103-107 | Sources/Kaset/Views/YouTube/YouTubePlayerBarPlacement.swift:314-318 \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":"Sources/Kaset/Views/YouTube/YouTubeAskPanelView.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c648780bc2e599e737b726dce4541440dfc9ec7950e0aa431a3b4cef806482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Kaset/Views/YouTube/YouTubeChannelView.swift:11-15 | Sources/Kaset/Views/YouTube/YouTubePlaylistDetailView.swift:11-15 \u2014 before extracting anything, compare \u0060Sources/Kaset/Views/YouTube/YouTubeChannelView.swift\u0060 and \u0060Sources/Kaset/Views/YouTube/YouTubePlaylistDetailView.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeChannelView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"85731ca4f91d1074778e91759c4cd7ec4de216fe09e9d601b6999489bb2e3e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:501-505 | Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:510-514 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:515\u0060 calls \u0060appendEndpoint\u0060, \u0060playEndpoint\u0060 and \u0060Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift:506\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/SearchResponseParser.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aca3a96febc5fb7c115ef00a439ea2eb00e48b2b7d75d7a637ad8913e8a3ac9"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: YouTubeAskCore: YouTubeAskCore: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"05335203f3cfd112d59c137038171f44e20c0493b88427b599c22b326a79a999"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MockUITestYTMusicClient (LCOM4 50): MockUITestYTMusicClient\u0027s methods fall into 50 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 50 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":"Sources/Kaset/Services/API/MockUITestYTMusicClient.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0c6b223b43c5243a37f9a6d4ed7302393ad18d0c80b2337e25e7a54529eba2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MockUITestYouTubeClient (LCOM4 20): MockUITestYouTubeClient\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":"Sources/Kaset/Services/API/MockUITestYouTubeClient.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1d3fbefb864382c0693fc1f25b49604925c921edfab33ba3155e17ce0a8cc2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppDelegate (LCOM4 10): AppDelegate\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/AppDelegate.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"871e20af5c666cb914a5d931278de9941a77e7730f824d9a1e0c0de367717fe8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SingletonPlayerWebView (LCOM4 7): SingletonPlayerWebView\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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"48245dea66b8ac29aef8066b311a1bab5e8ce39dc89546caec7bbc3336523721"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlayerService (LCOM4 7): PlayerService\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":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"661de117e2d0527dcceb10aba69bbefc2d1adb9a44d595701212dd9f2e20b6e6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Coordinator (LCOM4 5): Coordinator\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/QueueSidePanelView.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"e950c723e99379d01da5b02c8466acd9fec34ce8b1b202ef5c5f5f0747a25315"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppIntentsBridge (LCOM4 5): AppIntentsBridge\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/AppIntents/AppIntentsBridge.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"becf5fd854f241108cef2c682cc97786dabc19359dc547ea7ad78ab966a3e697"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WebKitManager (LCOM4 5): WebKitManager\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebKitManager.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98d833ee5162cd052c622cb6bc8cfe411fe366af69d18cecd6b5e62e4300f0b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HomeItemShelfDocumentView (LCOM4 5): HomeItemShelfDocumentView\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"543c3635614c3bf5b96bc6d68ba86111380ab1b6e082d65f7f417d1258c01e18"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlayerBarMarqueeView (LCOM4 4): PlayerBarMarqueeView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarMarqueeText.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7a8b6849f568f2d6231e0632cec3bf7c1b174ce34c3d77e311de728d07f3f9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: KasetWebExtensionWindow (LCOM4 4): KasetWebExtensionWindow\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/WebKit/WebExtensionHost.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59d86f02397c38f3a762a278e25d5f242a326543bb02a4dd40c744a427cf879"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HomeItemCell (LCOM4 4): HomeItemCell\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/HomeItemCell.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdd3173578a7fb99429cbfeaa67a04f253f0cc5ffb8968c8548b365a47bcd4a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: handleCancellationError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/AIErrorHandlerTests.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c286f8254a2a4e7fd44f319a36a0a2ac518ee8e233a4b6c2a8bcf9b1f2f71e9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: globalLegacyClaimIsDestinationBound: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/FavoritesManagerLegacyMigrationClaimTests.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcb53fe64405b28e4d158d82ea9a7e553ab32aec982f32560c851ceb214c2ab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: accountLegacyClaimIsDestinationBound: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/FavoritesManagerLegacyMigrationClaimTests.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a44b011681caccb4e19a6f0944ffc27fe7fd4db3ea71163ef02ef326cb40cb2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: isWarmedUpInitiallyFalse: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/FoundationModelsServiceTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17b4f1bc004c16a35ed17b2b745b84954a966dea48eaddb2d4e4cce49b35d85"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: refreshAvailabilityDoesNotThrow: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/FoundationModelsServiceTests.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ce123acd98dd1685327fb8ba98dc4f807e64a11bfbee4d9a55ecc015b04fb7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: loadErrorSetsErrorState: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/MoodCategoryViewModelTests.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f739ac5331468a2606061e1d71428b0e0b111b9788cbe64cc39f65c31795aa4b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: loadErrorSetsErrorState: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/MoodsAndGenresViewModelTests.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25e97f5f16e5466f4cb82c02ffd25b0981839c5c0f7934bb2cbd24405fdd8ba"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: interfaceTypeIsSendable: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/NetworkMonitorTests.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3f4115aa72cc9c9c3d4c0e7435401468486af4b84f0993b1bd3c1406c4a681"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: expensiveConnectionFlag: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/NetworkMonitorTests.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9d2a402efbbf78a396165dc45eb19bde82715b304e09f83121e8a575e3a0e1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: constrainedConnectionFlag: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/NetworkMonitorTests.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eac716167d698eaff5ac4a272cc5538e2c7d6e4b953c293fbaeee39d935bd78"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: loadErrorSetsErrorState: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/NewReleasesViewModelTests.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4035a8b9fbf894f7a42a1e8a8a28a58ea1120cc99e0127621b5af5dc461cb80d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: loadErrorSetsErrorState: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/PodcastsViewModelTests.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3594490e248b5dc3c1375e0b8006d15c81373a126d2d194d6742023fda323c35"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: cookieHeaderForDomain: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/WebKitManagerTests.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c45e8061f6ecb82401dbf499c28a0021679d9edfe5d2a530f16056db7d4430"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: subscribeToPodcastSucceedsForValidId: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/YTMusicClientTests.swift"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5554f966afab993743610443cb5acbc08f9404544822fe43a20406eaf1b56a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: unsubscribeFromPodcastSucceedsForValidId: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/YTMusicClientTests.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"069e117b5f204dbde22b645f594a3535517e2086e738c396d7c624d952682b57"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: missingAPIKeyMapsToParseError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/YTMusicClientTests.swift"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f4aa2f5e09ccdaee95dccbfbb9c93021ea1dded2eb209104cef5782382ba24"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: feedFailureSurfacesError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/YouTubeLibraryViewModelTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3082e149fa835b323f8d0702c616a7386a9622c7a843febe80ef1d953ad888e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: searchFailure: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/YouTubeSearchViewModelTests.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d76fbe0b794d48e3f13f3fff81b5d889ca001fe43c2e4eb46e402dfef870d6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsAmbiguousChipLabel: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskParserTests.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f61bc5ca241e6468faab56727e8ea26d7108ab63808ccca3ca18fd1a44252f5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: malformedChipsFailClosed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskParserTests.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f747d55efe98fd898ff222b06815f5455d9ead7983dbee062b918dfded9f3e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: malformedSupportedResponseContainersFailClosed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskParserTests.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"a832895654af4c977fc6d561eab3163995d7382e7e21da6edafd1b4f70e0a131"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: enforcesVisibleTextRules: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskParserTests.swift"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"1521a970292a14a4aa8c00060392ee24d8ddd8582506dd731ef82f7730a7229e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: boundsParserTraversal: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskParserTests.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1dcc8e3bb942e1f2e48169ae373b1a51cd4ab9f4a7bc765b9401dfad9d6787"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsInconsistentMirroredBootstrapPanel: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskParserMirroredPanelTests.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4e7f1a37946931da0f44fe40a16ded1af60655e9904a3ba43761e273eea3a9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: finalRequestBodyLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskRequestBuilderTests.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9d832500642072a19bca7a4a85198cb5f99ee19c1547ea614aec0a356eb20d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: totalResponseLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskWireDecoderTests.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"236f1fa4672c84a06f5b9e874214917e7573d3f6c879234769c3e6e0b4be21a3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: malformedLaterFrameFailsClosed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskWireDecoderTests.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"74949e01603ba77250c669e4a4f2acc1fa2a6e2ade55e236d8872dfed98935f4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: rejectsUnsupportedStates: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskWireDecoderTests.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bbbc700fc234e78fd08dcdabb448745383f7853192685428d1eb05d993efa1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: boundsJSONStructure: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskWireDecoderTests.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7a90e1ff7fbe5ae72d654500828b821a0d41073ed36a84234176b52d0ac95a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: duplicateKeyValidationBoundsStructure: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskWireDecoderTests.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3b55cf051bc3a45f5746dd386c8fa66b88c2b6c45ea867e1d362287021888a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: duplicateKeyValidationRejectsTruncatedValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/YouTubeAskCoreTests/YouTubeAskWireDecoderTests.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0fd883fb504565db20e20ef28e306363561c983693378cceaaaf52feecdc97"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCachedPaletteRepeatAccessPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/PerformanceTests/ColorExtractorPerformanceTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0878c97b86a312a80053baced2e43d62539f37b6e4066cf2f724591316ecd1b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHomeParsingPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/PerformanceTests/ParserPerformanceTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1355b853827c934b934fd95cb1f2dc021ff6c6b936802e1ce010cec2273fd34b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHomeSectionParsingPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/PerformanceTests/ParserPerformanceTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c07331002d631aa8db1d35fd20173b9cb6688760bbda1afbfbf10be16f527e2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSearchParsingPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/PerformanceTests/ParserPerformanceTests.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2815f8f774cb07f058305ae2216ad51b99d2c8e7bb718d3f0117d5c60d794aee"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSearchSongsOnlyPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/PerformanceTests/ParserPerformanceTests.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"64cdd2bd985229efd3cff2078b96413d4fdb645c7b4d9999e616aa4689d0169a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPlaylistDetailParsingPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/PerformanceTests/ParserPerformanceTests.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"deca94ac1ea5b458d097781db674fd83fde55c44fa410b061113b175c05df582"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLibraryPlaylistsParsingPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/PerformanceTests/ParserPerformanceTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5201bc193a4ddf80bc414366e7591c25233a39fb21473a51cdae9135cb6cc4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testArtistDetailParsingPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KasetTests/PerformanceTests/ParserPerformanceTests.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd4f7e9098ba0f7fbbdf2c898942b5ff9fc891ce5aa4ce880fc96abc18ef33a"}},{"ruleId":"D12","level":"warning","message":{"text":"No Package.resolved committed (Package.swift): Package.swift declares 1 dependency and no \u0060.library\u0060 product, so it is an APPLICATION \u2014 but no \u0060Package.resolved\u0060 is committed beside it. Nothing records the versions a working build resolved to, so \u0060swift build\u0060 re-resolves against whatever each dependency\u0027s git host serves today and two builds of this commit are not guaranteed to be the same build. Build once and commit the resulting \u0060Package.resolved\u0060. (A published LIBRARY correctly omits its resolution \u2014 SwiftPM ignores a library\u0027s \u0060Package.resolved\u0060 when the package is consumed \u2014 which is why this is asked only of a package that ships no \u0060.library\u0060 product.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a84f096296100dd901610952680496dd998866c2b4a404b9e4db30a810fa8bb9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/APIExplorer/main.swift: Sources/APIExplorer/main.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 145 in main.swift.runMain at line 4072. 2 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/APIExplorer/main.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":"Sources/APIExplorer/main.swift"},"region":{"startLine":4072}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2cf997d0fd76dba5d4ec16aed86e392bb9980ccd99ae6ca2b24abc72cc1c6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Views/MiniPlayerWebView\u002BCoordinator.swift: Sources/Kaset/Views/MiniPlayerWebView\u002BCoordinator.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in Coordinator.processStateUpdate at line 883. 4 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Views/MiniPlayerWebView\u002BCoordinator.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":"Sources/Kaset/Views/MiniPlayerWebView\u002BCoordinator.swift"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"750a5cf4d7c81a27ec71d00526778c618f6abbb6117f2ff17eb3fb7660456bee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/KasetApp.swift: Sources/Kaset/KasetApp.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in KasetApp.body at line 224. 2 of those changes were fix/bug commits, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/KasetApp.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":"Sources/Kaset/KasetApp.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f0723ca8eb525938aa18281924b82f75486c0fb97b1b52fd1df835a3eb686b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Views/MainWindow.swift: Sources/Kaset/Views/MainWindow.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MainWindow.handleAuthStateChange at line 853. 5 of those changes were fix/bug commits, and the other 5 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Views/MainWindow.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":"Sources/Kaset/Views/MainWindow.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa395dcac00824b28012c55c95cf667340017903b257e6332b0bbdaaa58e51a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift: Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in PlayerService.play at line 193. 4 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.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":"Sources/Kaset/Services/Player/PlayerService\u002BPlaybackControls.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39950c79cd522975a0df3d363f0e8d1a4ffa264bee0d1e50087790f04f49d91"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Services/Player/MusicPlaybackIntent.swift: Sources/Kaset/Services/Player/MusicPlaybackIntent.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in PlayerService.applyRemoteMusicRelativeSeek at line 354. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Services/Player/MusicPlaybackIntent.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":"Sources/Kaset/Services/Player/MusicPlaybackIntent.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdfa4a2634223b6fbbc5ab04efead1dfe2a3a8cbd9335c3e73bb76e29496e2d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Services/Player/PlayerService\u002BLibrary.swift: Sources/Kaset/Services/Player/PlayerService\u002BLibrary.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in PlayerService.fetchSongMetadata at line 487. 2 of those changes were fix/bug commits, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Services/Player/PlayerService\u002BLibrary.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":"Sources/Kaset/Services/Player/PlayerService\u002BLibrary.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0f4a398462a209c83e3efe186e49c955fb3877725c1499622095089abcd16c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Views/LoginSheet.swift: Sources/Kaset/Views/LoginSheet.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in LoginSheet.prepareLoginAttempt at line 222. 4 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Views/LoginSheet.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":"Sources/Kaset/Views/LoginSheet.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcee6c70db683e91c05ad10560877d19e3cc6fdafb2dbbb5e84767cdaf33e7c2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Views/MiniPlayerWebView.swift: Sources/Kaset/Views/MiniPlayerWebView.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in SingletonPlayerWebView.loadVideo at line 837. 3 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Views/MiniPlayerWebView.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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"d813b404f79127d6f6b3c3d0b5efb035cad30400b0766eb4de257c46ad0d9637"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift: Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in WebKitManager.beginLoginCookieBackup at line 271. 3 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.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":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieBackup.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"895814c7b74200d598d4801e2a5c288e0aa61e08f60c769f357846a7eb4d5f24"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Services/SettingsManager.swift: Sources/Kaset/Services/SettingsManager.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SettingsManager.init at line 529. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Services/SettingsManager.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":"Sources/Kaset/Services/SettingsManager.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd45857856a8010039f4f601f5f8c7f3c1da3de13189b03a6785c9a0356f5d9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift: Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in PlayerService.saveQueueForPersistence at line 1094. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Services/Player/PlayerService\u002BQueue.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":"Sources/Kaset/Services/Player/PlayerService\u002BQueue.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9a1ce96b6f86a47392e7b3bc384af0cd2828314d0418c23e26553cfd7b6cfe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieRestore.swift: Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieRestore.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in WebKitManager.restoreAuthCookiesFromBackup at line 59. 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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieRestore.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":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieRestore.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e253d4ec1a4325c1c80a71badd13abbdd674639caaa1f25d3b6141b5a7cfe81"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Kaset/Services/WebKit/WebKitManager.swift: Sources/Kaset/Services/WebKit/WebKitManager.swift 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 9 (its worst body is WebKitManager.switchSessionIdentity at line 697), 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(extensions): require permission consent (#589)\u201D; \u201Cfix(auth): stop recoverable cookie gaps from signing users out (#542)\u201D; \u201Cfix(auth): preserve live WebKit login when archive is unavailable (#476)\u201D; \u201Cfix(playback): bound WebKit memory growth (#459)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Services/WebKit/WebKitManager.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":"Sources/Kaset/Services/WebKit/WebKitManager.swift"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b77c26a8a175780e16e876aa04c05475fbee63b02570f59dcc628938001467"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Kaset/Views/MiniPlayerViews.swift: Sources/Kaset/Views/MiniPlayerViews.swift changed 6 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 7 (its worst body is MiniPlayerWindow.hoverCommandPill at line 341), 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(airplay): preserve routes and anchor device pickers (#474)\u201D; \u201Cfix(playback): detect and label YouTube and YouTube Music ads (#470)\u201D; \u201Cfix(player): expand mini player drag area (#471)\u201D; \u201Cfix(player): make mini player window draggable (#464)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Views/MiniPlayerViews.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":"Sources/Kaset/Views/MiniPlayerViews.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"15923c43be036e1a5374c8b5d75201e0eb0a880e61a87d1fffeb7614858850a8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Kaset/Services/API/YTMusicClient.swift: Sources/Kaset/Services/API/YTMusicClient.swift 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 15 (its worst body is YTMusicClient.fetchSongDurations at line 1167), 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): inherit player bar navigation from the navigation stack (#439)\u201D; \u201Cfix(home): restore infinite scroll and stop the startup reload (#487)\u201D; \u201Cfix(api): send YouTube\u0027s utcOffsetMinutes sign, fixing YTMusicClient (#423)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Services/API/YTMusicClient.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":"Sources/Kaset/Services/API/YTMusicClient.swift"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6480a5ca3ca96629ac979ceeb4ffc6be3e0d8547491e73bc471a5d2fa64ef6a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackControls.swift: Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackControls.swift 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 6 (its worst body is SingletonPlayerWebView.showAirPlayPicker at line 422), 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(playback): report state with the redesigned YouTube Music player bar (#537)\u201D; \u201Cfix(airplay): preserve routes and anchor device pickers (#474)\u201D; \u201Cfix(playback): detect and label YouTube and YouTube Music ads (#470)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackControls.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":"Sources/Kaset/Views/SingletonPlayerWebView\u002BPlaybackControls.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6db37ad324e23f7f28612174cc73b5be76ef2463402abb9d4903e37d2eedaf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieArchiveStorage.swift: Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieArchiveStorage.swift 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 10 (its worst body is CookieArchiveWriteQueue.rollbackLoginTransaction at line 637), 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(auth): stop recoverable cookie gaps from signing users out (#542)\u201D; \u201Cfix(auth): keep debug sign-out tombstone separate from release (#516)\u201D; \u201Cfix(tests): eliminate the two cross-suite unit test flakes (#448)\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-16..2026-11-14, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-16 16:39:44 -08:00\u0027 --until=\u00272026-11-14 16:39:44 -08:00\u0027 --full-history --no-merges -- Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieArchiveStorage.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":"Sources/Kaset/Services/WebKit/WebKitManager\u002BCookieArchiveStorage.swift"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4751e9b215fd0540cb5e9c99d5ed9e50b6ed775069ba001449a64b7bdac194"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 15 significant file(s) lose their only recent owner: Sources/Kaset/Services/Player/YouTubePlayerService.swift, Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BScripts.swift, Sources/APIExplorer/DiscoveryAudit.swift, Sources/Kaset/Services/AI/ContentSourceResolver.swift, Sources/Kaset/Services/API/Parsers/LibraryContentParser.swift, Sources/Kaset/Views/YouTube/YouTubeVideoWindowController.swift, Sources/Kaset/Services/Library/LibraryContentReconciler.swift, Sources/Kaset/Services/AI/CommandExecutor.swift (\u002B7 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8788da6bd1d1ed5c648ed9f3fa93da5366437982e07beed6f5698f42a6fd3c5b"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 3 significant file(s) lose their only recent owner: Sources/Kaset/Views/SharedViews/HomeItemCell.swift, Sources/Kaset/Views/SharedViews/HomeItemCollectionShelf.swift, Sources/Kaset/Views/SharedViews/HomeItemShelfArrows.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0e9ac9f82ccc5f3efb0981245d4df608388a28c1f04f4658aea5952a93920a2e"}},{"ruleId":"D28","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":"e934a534278b5a6dc1eaa78613fb1135f9cf7cae3ee8b8ec8192a1f53b2b6628"},"properties":{"commitSha":"4a83d967204dd5ad4180f6aa03c3e0923dd7131b"}},{"ruleId":"D28","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":"239d481241173e1ef64a1d047c58f661a4b56f7366881971601920b8c851780d"},"properties":{"commitSha":"3006efb4accbe4f7a3a63d1887f97419a956e498"}},{"ruleId":"D28","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":"2d301f9d6c0b4958acf92f5ceec18ac961bbdde6b80f5320c1f6c95e6f0e0376"},"properties":{"commitSha":"cae67cb120380c50ad95777faf00dd88440f31a4"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef86632de4073fc944588f44060899b02e302cf93cf4feef709b244c85b99efb"},"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":"87f682f13b1870d49ee1b03d9ddb6e16f60c8b396d4a3d6ee20c36d7a93b1c80"},"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":"573c880f4fff531bc4f1f56e40c81aee1dcb51c42c72bc6cef35a9eaf3d57f3e"},"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":"4025d3d9299aab03e55113aa2a4a4725d5a25f66a5b3463925498a2b04fc7aee"},"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":"2b2832be264186b92f0ca371caefe4ea980409f6bab212f1077bd2f2aeffe292"},"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":"12e24fcaab5a69b638524b5335cfe918eb9ad698b2ea177e1eab5591a47c21cc"},"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":"075c650451b46f801363e22586650aaf3afe81c2ec044ac523a78942a4e5407d"},"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":"8c0938b58e0e028572eed02b517ddd2241265dcbb1b30356ee240bdb25c2f27b"},"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":"01dd46d256692ff21fa1e0887ae88cddf5fbeebfa578628447fcf7c2688ef6d6"},"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":"b23394961c129923e173dfeb9b0e68d8e2a412d3a8d3715bfdaf5cce31471881"},"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":"c5eec38897689932d84185c8794f22ee27947de0530de2e4539c237e9e0fd6ab"},"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":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Audio/ProcessTapHelper.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66e9762a36117a5e3031a027d70ba9a93ad0a3260233f1a0b0850d06954247f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Audio/EqualizerAudioEngine.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00d3369e3b6bf12e048943c271812b3bb6a20090ab2026c7f973dcfd06a5438"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 39 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: Sources/Kaset/Services/Audio/BiquadFilter.swift, Sources/Kaset/Views/PlaylistDetailView\u002BRefineSheet.swift, Sources/Kaset/Services/FavoritesManager\u002BConvenience.swift, Sources/Kaset/Services/Lyrics/SyncedLyricsService.swift, Sources/Kaset/ViewModels/ArtistDetailViewModel.swift, Sources/Kaset/Views/SharedViews/PullToRefresh.swift, Sources/Kaset/Views/SharedViews/SkeletonView.swift, Sources/Kaset/Views/SharedViews/AnimationModifiers.swift (and 31 more) (41 orphaned of 324 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 324 of the 416 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubeCommentsParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8805ce0772f85141323896a3481488c4d5bdc40040ce2ab1ddabf2e76188a36"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Audio/BiquadFilter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"682d49b8e75eb077f368bdef6815a5b049d48ec8f9a744d4d8e90ac59e77fb2b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlaylistDetailView\u002BRefineSheet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"391a9adec43799fe0e047bf88c9e764fa07721803937099e5f32f3dd025aaa8a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/FavoritesManager\u002BConvenience.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b576d1ff740cc63913be7802fffbad0752cdaeac44c2a9140cfcb14e73762a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Lyrics/SyncedLyricsService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a14cf8b4b48812cf0e4ecbbef956e57af4ff83cc239b0919d22a78cab6bc5c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/ViewModels/ArtistDetailViewModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a8c5bb21b94ed3d43aeb884ab7ce0a39493ca9daadb224e156ee9b00d93590"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/PullToRefresh.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d463924c4abc6ed0e112c30b55ff4ecf945861ae7e1a325f01e7c82da78c1fbc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/SkeletonView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e593cbda520ad90d08ee259ae3dfb44b632411f9f8b6c5567681d4e3d195c6c4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/AnimationModifiers.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88222b7540be20a34a7bba82a25c358a0d01f795789cf55474af75da1ba2b2b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/YouTubeSearchView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edba825878a6098e1757e8feee6aef56f6582a46e4e0059ca64b860fa8176d50"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/YTMusicError.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a58b63d066d2779b54df31c187cce98f6a061556d87214aa5c5499cadc07b4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Lyrics/Romanization/ScriptDetector.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe29ab819d2059581f67d2f4209e06e60cb43b50344c3e2d6f286392c46543d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LyricsParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e601f7c41016c3e6d773aba6ed783da2cf8761c8b335db5c166d8b78456fca"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/ArtistDetail.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dda1a699d15eef4af6218740761641ba02f108eac98b44cd3adc903513a3dc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Utilities/AppLocalization.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1a4ebecedcfd753f1a1661c9ad1666cb4c3db19b83800b05f2a492a224e051"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/LRCParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13163b74e7a2db4de099bc8df70903d05289fa08bc664c9b3d7121389756b35"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/ParsingHelpers\u002BMetadata.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad66487835303c3ee588f3f341d2ea1a0a80a26098f5090297fb557bf485f47d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/EQPreset.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23357a30f52cb54ea1034c65dcd98e917416a25771f7e8b11c199e01cb7643cf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ExtensionOptionsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f91b9d1d843bfa23977713a26c91053ff4e7f370040013ad415affe1425f7a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SyncedLyricsDisplayView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e988fdeb328fcc9ca8ea594245350a9fc6e99c0086a07d19432489c76478de8f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubeSearchParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed0cdc9ddcbae523faf0d00e08902342d709582893c8ad348ad8f6a617409d9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/AccentBackground.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff2ce2cd19577d40d4c4d3988a9e32b20dddf3e641b31dbbdf5771f71fab5cc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/YouTubePlaylistPageParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac56f690bf67e571f5ed620deb55c1b5478dd37ea3aedaaf0008dba74bf755aa"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/YouTube/SourceToggleView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"267d4cafd089a24513a8959b0aa854d65987f40b94272187a20e71c1574af124"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarIconButton.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"692ee917963e04529564289749ae11954194a02799783aba7f9223596596731d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SharedViews/LoadingView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1e4a49d2ee060feb41f9fe6bee52d9600c99a91ffea6825ab40e3f323cd281"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Utilities/Extensions.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f3829b783e0800e4e5012b5c722da118fe19fb24c92220d4b896a6976fe687"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/GuideParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"625da469b78ed0dad729fac81e175cd5d511472a1b39cfe5db5898f95272a347"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/HapticService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdfcdf9f1cd1d9ba0d96f6377843c6734191b337a1ffb04d6ce637f3b2da9f4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/YouTube/ChannelPageParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed031da5d4d950481b95a399be4ac3ae1f420243af7e108770bd9da43a81c2a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/EQSettings.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7962b01fb25dbe6d42a70566f1091c844389dca187eb611d5d9ccdca45d9a6ea"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/Album.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecc9b4596f020fc536857a7d7ae52a9516de80d800c9b206b351179a58605cc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/SidebarPinnedItem.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"671c153c7724be009de08d7c9e89dbb05524233e32f89004c23f7c151340ee4a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/UpdaterService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"112dd303840d30d19dd1e1f7e91abcb4d049cdc342677cd20a16516d4ef6137f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Lyrics/Providers/LRCLibProvider.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf8e179164a6de5df0397d3e4d7a1d02a8b7886da9de04615065b37cb01ef0f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Models/EQBand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a67c1ee84dd72fdc881e71e1d16d9cbfb1db876b08ea8cc1ba8f522b2a3e9f3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBarArtworkView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d313c9b4cdf695e4e77910c9cbc7f69584d3300570ddaf5d90f04205f4c35b8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlaybackArbiter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"679f1ff431bead0d40cf52eb0732847529a5ce07ab1d423c6488043b6ed2bd61"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService\u002BEpisodes.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e4d7f17ed7ce8abf0b289d3a54085b7854403288a9a6ee44da39d480d79e0e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MockUITestYTMusicClient.swift \u2194 YTMusicClient.swift: \u0060Sources/Kaset/Services/API/MockUITestYTMusicClient.swift\u0060 and \u0060Sources/Kaset/Services/API/YTMusicClient.swift\u0060 change together 83% of the time (10 of the 12 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). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060e0bb0150\u0060 fix: scope favorites per account (#383); \u00606f33a1e6\u0060 feat: Remove from Playlist context-menu action (#364); \u0060951ec25b\u0060 Add playlist creation and management flows (#219) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/MockUITestYTMusicClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76c09fba7f1fb5589d4a7374e0affdf2bb9437473bf26010b2ca6ce3f1693c3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: HomeView.swift \u2192 ArtistDetailView.swift, ExploreView.swift, LibraryView.swift, PlaylistDetailView.swift, SearchView.swift, TopSongsView.swift: \u0060Sources/Kaset/Views/HomeView.swift\u0060 changes together with 6 other files \u2014 \u0060Sources/Kaset/Views/ArtistDetailView.swift\u0060, \u0060Sources/Kaset/Views/ExploreView.swift\u0060, \u0060Sources/Kaset/Views/LibraryView.swift\u0060, \u0060Sources/Kaset/Views/PlaylistDetailView.swift\u0060, \u0060Sources/Kaset/Views/SearchView.swift\u0060, \u0060Sources/Kaset/Views/TopSongsView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 6 separate couplings, not 6 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 6."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/HomeView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4065be8a42864cd93ce8caad356166f13927a4196d00f5f50fb88323a4e2af81"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PlaylistDetailView.swift \u2194 TopSongsView.swift: \u0060Sources/Kaset/Views/PlaylistDetailView.swift\u0060 and \u0060Sources/Kaset/Views/TopSongsView.swift\u0060 change together 82% of the time (9 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). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060ab7f5923\u0060 fix(ui): inset detail scroll content with padding, not contentMargins\u2026; \u006037b8ef83\u0060 Liquid Glass sidebar slide-under (#304); \u0060d8af25ad\u0060 Add top fade to detail pages (#221) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlaylistDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1469bfe37b14e8467671327913734597b4de5e5947e2f45d913e9503f4367cc8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: SearchView.swift \u2192 ArtistDetailView.swift, LibraryView.swift, PlaylistDetailView.swift, QueueView.swift, TopSongsView.swift: \u0060Sources/Kaset/Views/SearchView.swift\u0060 changes together with 5 other files \u2014 \u0060Sources/Kaset/Views/ArtistDetailView.swift\u0060, \u0060Sources/Kaset/Views/LibraryView.swift\u0060, \u0060Sources/Kaset/Views/PlaylistDetailView.swift\u0060, \u0060Sources/Kaset/Views/QueueView.swift\u0060, \u0060Sources/Kaset/Views/TopSongsView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/SearchView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d40e05ad82a6730b5b625f888a47d51f857a09c305de6ffaf24bfb586912371"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: ArtistDetailView.swift \u2192 PlaylistDetailView.swift, QueueView.swift, TopSongsView.swift: \u0060Sources/Kaset/Views/ArtistDetailView.swift\u0060 changes together with 3 other files \u2014 \u0060Sources/Kaset/Views/PlaylistDetailView.swift\u0060, \u0060Sources/Kaset/Views/QueueView.swift\u0060, \u0060Sources/Kaset/Views/TopSongsView.swift\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/ArtistDetailView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27aa4ac11f63986e9638cd4280ffd8c03d6c4a59a23da3688d90d9bca5cf97f7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MockUITestYTMusicClient.swift \u2194 MainWindow.swift: \u0060Sources/Kaset/Services/API/MockUITestYTMusicClient.swift\u0060 and \u0060Sources/Kaset/Views/MainWindow.swift\u0060 change together 75% of the time (9 of the 12 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). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060e0bb0150\u0060 fix: scope favorites per account (#383); \u0060879a7fbd\u0060 fix: pop nested navigation on sidebar re-select (#380); \u0060ca5f6f22\u0060 fix(podcasts): hide tab in regions where YT Music returns 404 (#249) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/MockUITestYTMusicClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c26fc1e73188f01f52fff58103d0b6ffcff6e8b5996b5f48b84502707095b55"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PlayerService.swift \u2194 AccessibilityIdentifiers.swift: \u0060Sources/Kaset/Services/Player/PlayerService.swift\u0060 and \u0060Sources/Kaset/Utilities/AccessibilityIdentifiers.swift\u0060 change together 67% of the time (8 of the 12 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). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00606a20e60c\u0060 feat(player): add a full screen Now Playing view (#565); \u00602bc73a7b\u0060 chore: remove obsolete code and restore test coverage (#482); \u00602a0769ea\u0060 Redesign player bar layout and controls (#327) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/Player/PlayerService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc663b0038ddab56d1407fb498d5bee0eb89bfa44b4118383e541dc7bca4d238"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PlaylistParser.swift \u2194 PlaylistDetailView.swift: \u0060Sources/Kaset/Services/API/Parsers/PlaylistParser.swift\u0060 and \u0060Sources/Kaset/Views/PlaylistDetailView.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006026714e99\u0060 feat(parser): resolve the audio recording behind music-video album ro\u2026; \u0060b2649f1f\u0060 feat(ui): make artist names clickable in track list rows (#442); \u00606f33a1e6\u0060 feat: Remove from Playlist context-menu action (#364) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Services/API/Parsers/PlaylistParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a0e17e88b2f3a3d3e3cc3b769c43047450dd7e06ea9d1033d211f12192a9a1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PlayerBar.swift \u2194 QueueView.swift: \u0060Sources/Kaset/Views/PlayerBar.swift\u0060 and \u0060Sources/Kaset/Views/QueueView.swift\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006027e96c5b\u0060 fix: add SongThumbnailView with YouTube thumbnail fallback (#170); \u00608dc66e3f\u0060 side panel liquid glass and search improvements (at that commit the files were still \u0060Views/macOS/PlayerBar.swift\u0060 and \u0060Views/macOS/QueueView.swift\u0060); \u0060a5888ef7\u0060 liquid glass improvements (at that commit the files were still \u0060Views/macOS/PlayerBar.swift\u0060 and \u0060Views/macOS/QueueView.swift\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d989e2baa604c9dd29a293bc4d15494a5a8b6cdee1a3312a5b1df534563cbc8"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ac8d476a85ccca4cdf409da61f605bd3db9f84f7c41f928f99fd9d6a1d299d5f"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cac8653e2fdf27404d42705ab7ee924026b7df733b1ed9bb18af66af27b27959"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e98dd739bc1bd197648941340c5407e70135edcd93c702ed9e8da54b5c0e1157"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4fc50f47bc5977d6571e15b6fb5974ce0c6d79e24149d8f6bb254276a6fd8d9e"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 7 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/api-explorer.yml"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060top-level code\u0060 is async and calls .wait() \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c851216fe8a3e2883cc4d52f57a85e0872b64a0a838fba2beec84bdd0fab11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!forceUnauthenticatedRequests \u0026\u0026 hasUsableAuthMaterial()\u0060 appears character-identically in 2 files \u2014 Sources/APIExplorer/AskVideoAudit.swift, Sources/APIExplorer/main.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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":2106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f70a96ff494889fd42bb5e4d03261fbec863962dca85725d7415ef127bf605"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.id == entryID \u0026\u0026 $0.song.videoId == videoId\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Services/Player/PlayerService\u002BLibrary.swift, Sources/Kaset/Services/Player/PlayerService\u002BQueueEnrichment.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":"Sources/Kaset/Services/Player/PlayerService\u002BLibrary.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"76baad4ee75f231c2dc7a0bb166227481a77e05029491a7b9860b4e70ae5e4b0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.name.isEmpty || $0.name == \u0022Unknown Artist\u0022\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Services/Player/PlayerService\u002BQueueEnrichment.swift, Sources/Kaset/ViewModels/PlaylistDetailViewModel.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":"Sources/Kaset/Services/Player/PlayerService\u002BQueueEnrichment.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"319cd1620666608cc76a95f5f857d79b7187b2c3c6a22af944b9c14c5b4552d4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(oldValue \u003E 0 \u0026\u0026 newValue == 0) || (oldValue \u003C 1 \u0026\u0026 newValue == 1)\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Views/PlayerBar.swift, Sources/Kaset/Views/YouTube/YouTubePlayerBar.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":"Sources/Kaset/Views/PlayerBar.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf93e4695becd25d37f44f249b5da0195a2d447e334fd8070afdeed7d22add2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060UITestConfig.isUITestMode || UITestConfig.isRunningUnitTests\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Services/AppIntents/AppIntentsBridge.swift, Sources/Kaset/Services/Auth/AccountService.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":"Sources/Kaset/Services/AppIntents/AppIntentsBridge.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa90b23ec93d69e16c2d8d1d905c105ccfffc66b70421c4e30563bebc99b3e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060browseId.hasPrefix(\u0022MPRE\u0022) || browseId.hasPrefix(\u0022OLAK\u0022)\u0060 appears character-identically in 7 files \u2014 Sources/APIExplorer/SearchAudit.swift, Sources/APIExplorer/main.swift, Sources/Kaset/Services/API/Parsers/ArtistParser.swift, Sources/Kaset/Services/API/Parsers/HomeResponseParser.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":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2d8ada3b793e0662176f8ea596e2b869730de36172093bc4eb7c0472283303"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060browseId.hasPrefix(\u0022VL\u0022) || browseId.hasPrefix(\u0022PL\u0022)\u0060 appears character-identically in 3 files \u2014 Sources/APIExplorer/SearchAudit.swift, Sources/APIExplorer/main.swift, Sources/Kaset/Services/API/Parsers/PlaylistParser.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":"Sources/APIExplorer/SearchAudit.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17915386aacf14a703cc60b126e5ebb51e6e6b714f024f1784b0c7baa5bd70a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060components.count == 2 || components.count == 3\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift, Sources/Kaset/Services/Scrobbling/MixTracklistParser.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":"Sources/Kaset/Services/API/Parsers/ParsingHelpers.swift"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d7e08fc31cd42ecd9fb859885847d4204c6834b7910b18ad2ad486f1653163"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060error == nil || WebPlaybackDocumentGeneration.generation(from: webView.url) == generation\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Views/MiniPlayerWebView.swift, Sources/Kaset/Views/YouTube/YouTubeWatchWebView.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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6ef5b31f720ca544e004250e4f3ed41daaf6948ac16485182bb6ba0f0278c6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060first == \u0022-\u0022 || first == \u0022*\u0022 || first == \u0022_\u0022\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Views/WhatsNewView.swift, Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.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":"Sources/Kaset/Views/WhatsNewView.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"0deda6434f696faaceaf4eee547ccd6169adce6a69d371ea54c4e8c76be81514"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasSameGenerationSuccessor || self.continuationGenerationsAwaitingStart.contains(trackedNavigation.generation)\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Views/MiniPlayerWebView.swift, Sources/Kaset/Views/YouTube/YouTubeWatchWebView.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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"6909d0d3d6b4cb79f66b0e6335169b82a02cbe2578c23e61c3efa2bd86749c5e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host == \u0022music.youtube.com\u0022 || host == \u0022www.music.youtube.com\u0022\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Services/URLHandler.swift, Sources/Kaset/Views/MiniPlayerWebView.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":"Sources/Kaset/Services/URLHandler.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a65d2eee4a7a5232a58454724018e95643c27df3fc2fd5035214dae2e7facd9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060httpResponse.statusCode == 401 || httpResponse.statusCode == 403\u0060 appears character-identically in 3 files \u2014 Sources/APIExplorer/main.swift, Sources/Kaset/Services/API/YTMusicClient.swift, Sources/Kaset/Services/API/YouTubeClient.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":"Sources/APIExplorer/main.swift"},"region":{"startLine":3124}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cdcfa7532d9b35cf9f422f2da5b6951b0095ace86c297bc923f4bf71bbf8bc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key !== navigation \u0026\u0026 candidate.generation == trackedNavigation.generation\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Views/MiniPlayerWebView.swift, Sources/Kaset/Views/YouTube/YouTubeWatchWebView.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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":2075}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f85c748b55c9addbc1998323719fd29ea82c1804f8ce157cbe47482d02e4cf3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.hasSuffix(\u0022Renderer\u0022) || key.hasSuffix(\u0022ViewModel\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/APIExplorer/AskVideoAudit.swift, Sources/APIExplorer/main.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":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":3002}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b816f570c6cedf9e22827b9e5a82a5fcadf95d0a0cac1884ead2f052261d8c4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060line.hasPrefix(\u0022- \u0022) || line.hasPrefix(\u0022* \u0022) || line.hasPrefix(\u0022\u002B \u0022)\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Views/WhatsNewView.swift, Sources/Kaset/Views/YouTube/YouTubeAskMarkdownView.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":"Sources/Kaset/Views/WhatsNewView.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"4651e635b7903ae4b8519186cc7788368c0b8c8af8f50e8d6135f76d883f58cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.expectedContentLength \u003E 0 \u0026\u0026 response.expectedContentLength \u003E Int64(self.maximumBytes)\u0060 appears character-identically in 2 files \u2014 Sources/APIExplorer/main.swift, Sources/Kaset/Services/API/YouTubeAskTransport.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":"Sources/APIExplorer/main.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"6398e9f7bfd818e013ee2baa4858cf3d756176585e3a18868057cf9361fe4a99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.continuation != nil \u0026\u0026 !self.isFinished\u0060 appears character-identically in 2 files \u2014 Sources/APIExplorer/main.swift, Sources/Kaset/Services/API/YouTubeAskTransport.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":"Sources/APIExplorer/main.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64d78b61732a53711eb1a9e2460e05dad8c81dcb610730c812c29eea341301a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.documentGeneration.pendingGeneration != nil || self.documentGeneration.inFlightGeneration != nil\u0060 appears character-identically in 3 files \u2014 Sources/Kaset/Views/MiniPlayerWebView.swift, Sources/Kaset/Views/YouTube/YouTubeWatchWebView\u002BRecoverySeek.swift, Sources/Kaset/Views/YouTube/YouTubeWatchWebView.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":"Sources/Kaset/Views/MiniPlayerWebView.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dea80872ef0ff40f0fd14a5f4d801f8f0e8bdd28dd6f8f05c7f6b37a443b91"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.isRestoringPlaybackSession || self.isPendingRestoredLoadDeferred\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Services/Player/MusicPlaybackIntent.swift, Sources/Kaset/Services/Player/PlayerService\u002BPlaybackRestoration.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":"Sources/Kaset/Services/Player/MusicPlaybackIntent.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0413132b2a3677998ae6c882e03a83196161f4b76bb16fbf0adca3c5d6d55a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.syncedLyricsService.isLoading || self.isLoadingFallback\u0060 appears character-identically in 2 files \u2014 Sources/Kaset/Views/LegacyFallbackViews.swift, Sources/Kaset/Views/LyricsView.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":"Sources/Kaset/Views/LegacyFallbackViews.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dafe81851925f6f316934c1d992281818daaa819dc1536e3d1587421359d5b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.viewModel.hasMoreSections || self.viewModel.loadingState == .loadingMore\u0060 appears character-identically in 7 files \u2014 Sources/Kaset/Views/ChartsView.swift, Sources/Kaset/Views/ExploreView.swift, Sources/Kaset/Views/HistoryView.swift, Sources/Kaset/Views/HomeView.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":"Sources/Kaset/Views/ChartsView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e1bc493277cadf836e8ffaac3647af6448752cc46eeea5a9616cc478cf7585"}},{"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":"Sources/YouTubeAskCore/YouTubeAskWireDecoder.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4f54abcfb6d4af9fa068e97b863bc8399e3e78ae85064592e86ae38605a7d0"}},{"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":"Sources/Kaset/Views/MainWindow.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17652bd0c88a6be2682a50e90670e0d32eb4c9bae27aedd8b0f90f1fb5f5745"}},{"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":"Sources/Kaset/Views/MainWindow.swift"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb32def71dd8307ef79d4e70ef77273783b2e337a8a674b1ce8a4ef8de19473"}},{"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":"Sources/Kaset/ViewModels/HistoryViewModel.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c02542900abd4708370c4197f52a6e13f9dfb070105ead5f4c37c92bbc37b4"}},{"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":"Sources/Kaset/ViewModels/HistoryViewModel.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"9413ba1e2ef994e2aa618c3179c157f2a2c30d5cbb0fe7955615e13d98a4015d"}},{"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":"Sources/Kaset/ViewModels/YouTube/YouTubeHomeViewModel.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb9bbbcc5c4e30548cd43ab17813fee63cd53196774dcc86d5ae055741d1493"}},{"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":"Sources/Kaset/Utilities/ImageCache.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f82c1b46cde6937af66a7a124a8d6ba3a6b130750a444df9cb61085dce33b6"}},{"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":"Sources/Kaset/Utilities/ImageCache.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd60823ff084029086c93aa9fce23685d0a25e55ebc7b1e84950932d1d7ac2f"}},{"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":"Sources/Kaset/Utilities/ImageCache.swift"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70529e71b2893795211a5fb5081c5590c679e8f68da40f460dcd5472009ddef"}},{"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":"Sources/Kaset/Services/Scrobbling/LastFMService.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f24f3c5883eb83643febce291ee0a363acb7e4695a4b6781b457714f0ce5ae"}},{"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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BDeferredFinalization.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cd78b4c2255350198dfc8fb3fb58adb1c35a978a8a430b149f55b01bd600cf"}},{"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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator\u002BDetectionScheduling.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3106c39c3b34026cf910fd82c8fe07d70dcea0a96aa6a706e5a35310b9d1620"}},{"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":"Sources/Kaset/Services/Scrobbling/ScrobblingCoordinator.swift"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ce6016b2d7b3066b1db1065c3fd9f362ec30f5ff58a811b40d269c8170f0d5"}},{"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":"Sources/Kaset/Services/Player/NowPlayingTracklistProvider.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b92007a33260338be9d8137686e1915c498c00654170683a80a0cfb1445ef5"}},{"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":"Sources/Kaset/Services/Player/PlayerService\u002BQueueNavigationRecovery.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd67cbf7ee5d82c3686bd02d7a553622e4d56ccc6fde2cea5e31d99fe368835"}},{"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":"Sources/Kaset/Services/Player/YouTubePlayerService.swift"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88c2e3af44b19d3973577b48f2964acd644188a5f07514e01228ae7b54ddd77"}},{"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":"Sources/Kaset/Services/Notification/NotificationService.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"986877fbb40cde54a3f49685f38dcfb400526d6c6cee45dfcda0a6d3e74e9c0b"}},{"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":"Sources/Kaset/Services/Lyrics/Providers/LRCLibProvider.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ec31476aeb90d2ef2380957c0271d55bde4357a00ffa4e5c5d50bcef53d401"}},{"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":"Sources/Kaset/Services/Lyrics/Providers/YTMusicSyncedProvider.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f43bd1d9fe4ec4377b73ffeee8c23e5b33f284c598e84a4426bcacdad37ab0e"}},{"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":"Sources/Kaset/Services/Library/LibraryMutationActions.swift"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"92addaebcc85357f32613458cfdf4ad94843153bcdf934a6e648687656d115b7"}},{"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":"Sources/APIExplorer/main.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b8eab0ec9798fa59cf3ed9800e2c7578b18157ad5eef0d5a5799e8ee1e2170"}},{"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":"Sources/APIExplorer/main.swift"},"region":{"startLine":3089}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e45b7387d73193b61796c68ca7709c621ffee74ee13b822a6125e75b08d5dc"}},{"ruleId":"X5","level":"note","message":{"text":"Ruby\u0027s type checker does not check nil everywhere: This repository commits no Sorbet configuration (\u0060sorbet/config\u0060) and no \u0060Steepfile\u0060, so nothing type-checks its 1 Ruby product file(s): a nilable value reaches a method call silently and raises \u0060NoMethodError: undefined method \u2026 for nil\u0060 the first time it is nil. A \u0060# typed:\u0060 sigil does nothing without a \u0060sorbet/config\u0060 beside the code; a Steep run configured only on a command line is not something this check can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"32b27113b1bc22f400935e8620d19eae7fd3ef145cc36018609c445ea8cd4af1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060attributes\u0060 turns every thrown error into \u0060[:]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/AskVideoAudit.swift"},"region":{"startLine":3159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1a6acc96e7e623c3946528c6bab09ca1278f7c08e4e99ce3d00e96bda883d1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060queueRatingAuditSummary\u0060 turns every thrown error into \u0060\u0022\\n\uD83D\uDC4D Queue rating audit (redacted): unavailable (non-JSON response)\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/APIExplorer/main.swift"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"595ce021f5a77caac4515069064dfafa91a9b5d69dcad1682686efa73fae4fba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fileSize\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Kaset/Utilities/ImageCache.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08dddc6c12012d13014323bf52fc8c72ed09f402b60ea8d49799e9907210968"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"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-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-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":23,"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."]}]}