{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"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":"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","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-1059"],"owasp":"A02:2025"}},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"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":"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":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"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":"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":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"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":"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":"NowPlayingManager.userContentController (cyclomatic 123): NowPlayingManager.userContentController has cyclomatic complexity 123 (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/Mooziac/Core/NowPlayingManager/ObserverBridge.swift"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6e7d6fa707c10aa76a3396d83499cddc7e2a4642f9e9d58603de22c2d27960"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyboardShortcutHandler.handleKeyDown (cyclomatic 63): KeyboardShortcutHandler.handleKeyDown has cyclomatic complexity 63 (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/Mooziac/YouTube/Input/KeyboardShortcutHandler.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d67f10e4dd29cab6d002fecc02483a746f6fb7cfdf45b5f64166c96f3c1dca"}},{"ruleId":"D1","level":"warning","message":{"text":"YTMClient.parseTopTrack (cyclomatic 49): YTMClient.parseTopTrack has cyclomatic complexity 49 (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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac1e8995c2e3cdfaa4a8f2ad989f3805198a33a17b82fa9fb30d3aad20ed94e"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicIslandPlayerView.updateState (cyclomatic 49): DynamicIslandPlayerView.updateState has cyclomatic complexity 49 (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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"727dcf29e19a871684b5b11457163e475afda1b3838f9db370eca369bb9a2b9d"}},{"ruleId":"D1","level":"warning","message":{"text":"LyricsManager.fetchLyrics (cyclomatic 43): LyricsManager.fetchLyrics 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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"001ce5163917f98f3f4114b689f71925456621e558b1f5a7e5adf6be76be9e57"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistManager.reorderItems (cyclomatic 43): PlaylistManager.reorderItems 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc727697992074d97b49803c23b1ffaf304c71b9c7d8760e9d32e74dc427cc7"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistLibraryView.menu (cyclomatic 43): PlaylistLibraryView.menu 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b350d80af9c6c11881687294a42e55138a7438b68b8cfd8681a4f917475a356"}},{"ruleId":"D1","level":"warning","message":{"text":"EdgeVolumeEngine.handleTouches (cyclomatic 42): EdgeVolumeEngine.handleTouches has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Audio/EdgeVolumeEngine.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"c075e9ed0433fc3c305d3f7a4ecafff306fc5bd0bafd1ac74b3d26c567d770a6"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistManager.appendCurrentPlayingTrack (cyclomatic 37): PlaylistManager.appendCurrentPlayingTrack has cyclomatic complexity 37 (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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b999fc9d1f2d54a044cfaaaf761aec11388d79d6bd9ad5f73405f1be10d2318"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicIslandPlayerView.handleLibraryRowReorderPan (cyclomatic 36): DynamicIslandPlayerView.handleLibraryRowReorderPan has cyclomatic complexity 36 (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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00df65a318a35389116970072747bc744b6f57c16b50d3d54a5a191ed2f467f"}},{"ruleId":"D1","level":"warning","message":{"text":"YTMClient.parseTracks (cyclomatic 35): YTMClient.parseTracks has cyclomatic complexity 35 (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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc5cc92f3b68c1a2408569e17da2b137e0f23bb480d46730ddfee557c74b2a1"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscordRPCManager.updatePresenceInternal (cyclomatic 33): DiscordRPCManager.updatePresenceInternal 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/Mooziac/Managers/DiscordRPCManager.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0acd0ab7dd745ef78d069ad78dd0f1fb267c25372902606610b49156c796c01"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadManager.executeYtDlpDownloadTask (cyclomatic 33): DownloadManager.executeYtDlpDownloadTask 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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca77972bc5fa5913de37fb3740008a71e89f0ff847dce3aa4d50a9dff7ac94a"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistItemRowCellView.configure (cyclomatic 33): PlaylistItemRowCellView.configure 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"9310607f7e8e75478f8c7be3c9b6d99cdf3c6bf9116be338fb8fd64e4b7a325e"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicIslandPlayerView.refreshPlaylistsSection (cyclomatic 33): DynamicIslandPlayerView.refreshPlaylistsSection 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"414a57c09bf693f7c5d0552f55f3a8f96a0f961b8ade6eab429bb7f9b0cb8b01"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryRowCellView.configure (cyclomatic 30): HistoryRowCellView.configure 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9db73685dd5c8b84670097c0784d0f58e1f98ffe6864ce0b7abd222353d1d2c"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicIslandPlayerView.setupUI (cyclomatic 28): DynamicIslandPlayerView.setupUI 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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ef128f31393c1750b14afbbb967788fe5d0613b94165a44e714f38f4c0cbb2"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistManager.removeCurrentPlayingTrackFromPlaylist (cyclomatic 27): PlaylistManager.removeCurrentPlayingTrackFromPlaylist has cyclomatic complexity 27 (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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"b144d47a2c42185392cf35fb38e09b5cec91663227abb5a84b94472e8cae4d59"}},{"ruleId":"D1","level":"warning","message":{"text":"LikedSongRowCellView.configure (cyclomatic 27): LikedSongRowCellView.configure 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"786bb4efb3d5d45c25518686bfc90273bac5ed23ef376563838354955d8e90a5"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicIslandPlayerView.makePlaylistRow (cyclomatic 27): DynamicIslandPlayerView.makePlaylistRow 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d0f27003e34d9ed95a04965603c0af1ebdfce9cba1f48917c2e3fd5f77b2f7"}},{"ruleId":"D1","level":"warning","message":{"text":"LyricsManager.fetchRawSyncedLRCFromLRCLib (cyclomatic 26): LyricsManager.fetchRawSyncedLRCFromLRCLib 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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aff8d53e995566bbbf7cb2d23f5e814c74f9dda512605139d46cd23cb6a9acb"}},{"ruleId":"D1","level":"warning","message":{"text":"GestureMappingManager.executeAction (cyclomatic 25): GestureMappingManager.executeAction has cyclomatic complexity 25 (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/Mooziac/Input/GestureMappingManager.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"96316ea9a8c16c42f0c3fafd0f2c2fe5dff26e7f14cacce7e0d1b6fc0c1239cd"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistLibraryView.tableView (cyclomatic 25): PlaylistLibraryView.tableView 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"8087b665ea9de274f4c44f0af488ff10edff748ab8a58623c1cb5d5bd8d4aa8d"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryRowView.setupUI (cyclomatic 25): HistoryRowView.setupUI has cyclomatic complexity 25 (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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"396b3e3ca5379c2d803a2fb9180c940741225fe5f0c8e8e071e8a6f82ce07a17"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistManager.isCurrentTrackInPlaylist (cyclomatic 24): PlaylistManager.isCurrentTrackInPlaylist 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7c7a162f4eee759cb0d0106503716a064fffa87d1b55bc3e9d6fd3cdfa2e95"}},{"ruleId":"D1","level":"warning","message":{"text":"YTMClient.fetchDirectStreamURL (cyclomatic 23): YTMClient.fetchDirectStreamURL has cyclomatic complexity 23 (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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"843f25bfe945b740c1ff4ae6d7c973886c9818383ba7b1084335d35d8c8704cd"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistLibraryView.tableView (cyclomatic 23): PlaylistLibraryView.tableView 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"711f57a4fddb287c325cb34236c445b9e45a1982316751be2f9da2611c826548"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicIslandPlayerView.updateSettingsThemeHighlight (cyclomatic 23): DynamicIslandPlayerView.updateSettingsThemeHighlight has cyclomatic complexity 23 (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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e48fc5e33baaadddd738f079028a3c609ee199e980e5413a954fd5ca7f8fab"}},{"ruleId":"D1","level":"warning","message":{"text":"URLFilter.containsLink (cyclomatic 22): URLFilter.containsLink 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/Mooziac/Web/URLFilter.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"14161762e0dfb52415662bcb885560a02f1c27f6172b075f7c8e17e94d6d80c8"}},{"ruleId":"D1","level":"warning","message":{"text":"CircularProgressDownloadButton.updateVisuals (cyclomatic 22): CircularProgressDownloadButton.updateVisuals 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/Mooziac/Views/Components/CircularProgressDownloadButton.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bb6d90816dde6efa7c05f5be2051b368bcc991ea0f91a0722ea78e3b3ef693"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTubeDownloadService.download (cyclomatic 22): YouTubeDownloadService.download 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/Mooziac/YouTube/Services/YouTubeDownloadService.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"59898108817e94e3b6cab28d0bc734cac7523d16784f0bf45a7f29b75fc2931e"}},{"ruleId":"D1","level":"warning","message":{"text":"GestureMappingManager.executeYouTubeAction (cyclomatic 21): GestureMappingManager.executeYouTubeAction has cyclomatic complexity 21 (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/Mooziac/Input/GestureMappingManager.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4393de0fc7f45fc6c0d71285df3855d10437ea2a10e9a7f05bc21e3c70dba251"}},{"ruleId":"D1","level":"warning","message":{"text":"StatusItemManager.startEventMonitors (cyclomatic 21): StatusItemManager.startEventMonitors has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b7a6f11d685e2f13f22630779897d1913b9d186d3b8a5f65e6f6b1d9a66629"}},{"ruleId":"D1","level":"warning","message":{"text":"CenteredMenuBarLyricsWindowController.updateLyricsFrame (cyclomatic 21): CenteredMenuBarLyricsWindowController.updateLyricsFrame 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/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c453c0c8f9c9a19ec227055dba4c48377792cd7b54e25a1e54dff2e563e517"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsPanel\u002BRows.swift.isTrackPlaying (cyclomatic 21): SettingsPanel\u002BRows.swift.isTrackPlaying 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cd737b5e2e1d84c4f6eebed4b3abc626f991b6f4966f8afdab727235a75d8c"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadManager.finalizeSuccessfulJob (cyclomatic 20): DownloadManager.finalizeSuccessfulJob 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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"330792c77576e7c420853844b92cb28c4291f84ad075eed989e6c4a11825af7d"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistManager.startLikedSongsPlayback (cyclomatic 20): PlaylistManager.startLikedSongsPlayback 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1a20d1781be186bf0c17ad8784077b0d435e06df71cb9006574e74d2b105f7"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistManager.importPlaylist (cyclomatic 20): PlaylistManager.importPlaylist 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"f886333cc87f23e46dee40ec9c12d7b54c3ea3e595e4f808f2225d416ca63f2b"}},{"ruleId":"D1","level":"warning","message":{"text":"StatusItemManager.panelDidMove (cyclomatic 20): StatusItemManager.panelDidMove 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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"984e2266c018146d267dbfc33e0010fc7713b4b18c774d1b6190db455cea97cc"}},{"ruleId":"D1","level":"warning","message":{"text":"YouTubePlayerBridge.userContentController (cyclomatic 20): YouTubePlayerBridge.userContentController 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/Mooziac/YouTube/Web/YouTubePlayerBridge.swift"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd73b59c82521acb9fab19ee68729b019767d3d6d2f84de5bafff795cf719dc1"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicIslandPlayerView.updateDownloadButtonState (cyclomatic 20): DynamicIslandPlayerView.updateDownloadButtonState has cyclomatic complexity 20 (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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"78dd645c8afe4688459f7a535986172d1afd26360b01e829e0a8ed718d5dc4c6"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyboardCommandHandler.handle (cyclomatic 19): KeyboardCommandHandler.handle has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Input/KeyboardCommandHandler.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"7936ae47f5c7a1be9ca8933c88ab7a0ad043471d49c2700d0937f87c7f247488"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncedLyricsParser.activeLineAndWord (cyclomatic 19): SyncedLyricsParser.activeLineAndWord 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/Mooziac/Managers/SyncedLyricsParser.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e5c4d0258165113c96a1e123d3306d88db4ec8add380a0891a6efdd8b3e814"}},{"ruleId":"D1","level":"warning","message":{"text":"YTMClient.parsePlaylistTitle (cyclomatic 19): YTMClient.parsePlaylistTitle 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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ba4473a7392ea99cf991a80801845b69bdd13b17ffbb364cf333430cd3d43f"}},{"ruleId":"D1","level":"warning","message":{"text":"MainVideoWindowController.headerBarDidTapPlaylists (cyclomatic 19): MainVideoWindowController.headerBarDidTapPlaylists 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/Mooziac/YouTube/Core/MainVideoWindowController.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbc94782d043fdbdf72a3835dc2e52188f02cace45f4f8bfa73265b0d3a97b9"}},{"ruleId":"D1","level":"warning","message":{"text":"AppArtworkHelper.extractAndDownsample (cyclomatic 18): AppArtworkHelper.extractAndDownsample 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/Mooziac/Managers/AppArtworkHelper.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aeee16462be1c75ee1d5c9c4535d26ee696b126243c87ed0c1b6a88e07176ff"}},{"ruleId":"D1","level":"warning","message":{"text":"LyricsManager.matchScore (cyclomatic 18): LyricsManager.matchScore 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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62eb435195dd35637590ecc42e96ce1961893ddcfbae06a1cb1a16a8978df92"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistManager.playNextTrackInPlaylist (cyclomatic 18): PlaylistManager.playNextTrackInPlaylist 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f538db0fa8dd7a994374660178f4aed6c59bfd87c2ec188ca903e6ed2f1f3c55"}},{"ruleId":"D1","level":"warning","message":{"text":"YTMClient.extractVideoId (cyclomatic 18): YTMClient.extractVideoId 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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0c20706e80e453c8c5e9af2c08e6a1d417fee4d771d0d4c482d5395329db05"}},{"ruleId":"D1","level":"warning","message":{"text":"OfflineTrackCellView.configure (cyclomatic 18): OfflineTrackCellView.configure 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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ae16bed0153b81c39fab075571cb020ab79c51d150f0d3afa3e5b94c483f67"}},{"ruleId":"D1","level":"warning","message":{"text":"CenteredMenuBarLyricsWindowController.handleStateUpdate (cyclomatic 18): CenteredMenuBarLyricsWindowController.handleStateUpdate 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/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7d7fd0b9006173aa008ef2deb2f3f6595161d36e4ef983c16e059d5852afc6"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistManager.resolve (cyclomatic 17): PlaylistManager.resolve 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"524800224829ee138ee57da4b6f112a924cb6737855bcde33fa6a0c93a7ed1a4"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncedLyricsParser.parse (cyclomatic 17): SyncedLyricsParser.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/Mooziac/Managers/SyncedLyricsParser.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35b29d53c8369cfdd99b47547297fdccb12ebbf8b094428692e81731cec9119"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistLibraryView.applyFilter (cyclomatic 17): PlaylistLibraryView.applyFilter 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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"665e554fa8fda8466391123417dc99d20d366d52eb915ccf434f38a9a0121654"}},{"ruleId":"D1","level":"warning","message":{"text":"SwipeToDeleteContainerView.scrollWheel (cyclomatic 17): SwipeToDeleteContainerView.scrollWheel 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/Mooziac/Views/Libraries/SwipeToDeleteContainerView.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a792fd2d042342d4cdde76ab075b5a61ea463e1e55a13223832e442514d8a1"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicIslandPlayerView.applyTheme (cyclomatic 17): DynamicIslandPlayerView.applyTheme 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/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"731b8c9b71ac4a8b7cff854a17fd19933ce1a3e9e00e56ace941d66b9fbd61db"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicIslandPlayerView.updateDownloadProgressInVisibleRows (cyclomatic 17): DynamicIslandPlayerView.updateDownloadProgressInVisibleRows 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdcc21fc2fbbc5700bbab9c1db4cba6dece98dca1609152a57fe168c465d152"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailItemRowView.setupUI (cyclomatic 17): DetailItemRowView.setupUI 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"459503adb498b3b40e6ed59c6dbf23e9ca44050841802982389ce12608b2af4a"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalHotKeyManager.registerCarbonHotKeys (cyclomatic 16): GlobalHotKeyManager.registerCarbonHotKeys 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/Mooziac/Input/GlobalHotKeyManager.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7704291b10341ba8d923f6b96fbb4ed69af72497f32b7e0cf488d513959b436"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalLibraryManager.enumerateFilesystemTracks (cyclomatic 16): LocalLibraryManager.enumerateFilesystemTracks 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/Mooziac/Managers/LocalLibraryManager.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2e20c71a431eb23554fa7a2ca348c46ec6773ee8156ccbff0a208b9434f8df"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalLibraryManager.extractMetadata (cyclomatic 16): LocalLibraryManager.extractMetadata 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/Mooziac/Managers/LocalLibraryManager.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"3552a0407092b0211928bc89114b08709cb3558fc3243717294f929e10e0cc4e"}},{"ruleId":"D1","level":"warning","message":{"text":"LyricsManager.searchLRCLibFallback (cyclomatic 16): LyricsManager.searchLRCLibFallback 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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"490811ac73ff9553c904d0c61bf1723a944568e0f7d473a40b350373a01b53be"}},{"ruleId":"D1","level":"warning","message":{"text":"LyricsManager.searchLRCLibTitleOnly (cyclomatic 16): LyricsManager.searchLRCLibTitleOnly 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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"7014835b0f8fab7e4dfcab988173b71d7794071145b59608e84c8be84c5b7553"}},{"ruleId":"D1","level":"warning","message":{"text":"StatusItemManager.positionCustomWindow (cyclomatic 16): StatusItemManager.positionCustomWindow 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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"227cd430a3b5d19b2afc9af4a149b41f65012509b03d545b578f50f60c71e260"}},{"ruleId":"D1","level":"warning","message":{"text":"InteractiveWaveformProgressView.draw (cyclomatic 16): InteractiveWaveformProgressView.draw 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/Mooziac/Views/Components/WaveformProgressView.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd908b25857f50b78a5bb304d189bfa50825bde65f98120d55c4bf75e90a464c"}},{"ruleId":"D1","level":"warning","message":{"text":"PlaylistLibraryView.showLikedSongTrackMenu (cyclomatic 16): PlaylistLibraryView.showLikedSongTrackMenu 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d66fd995f5ca9b6493a4732c57951a71130bddc1d0048a821500f8080c63cc"}},{"ruleId":"D2","level":"warning","message":{"text":"NowPlayingManager.userContentController (cognitive 166): NowPlayingManager.userContentController has cognitive complexity 166 (threshold 15). Drivers by points: if/else 48 (86 pts), boolean chains 72, ternaries 5 (7 pts), match/switch 1 (nesting depth added 40). 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/Mooziac/Core/NowPlayingManager/ObserverBridge.swift"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdb2be9e4b8964fe5e9291a533b8aded08d2afbe28718df6f23a51735a95fe6"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMClient.parseTopTrack (cognitive 136): YTMClient.parseTopTrack has cognitive complexity 136 (threshold 15). Drivers by points: if/else 22 (86 pts), loops 8 (27 pts), boolean chains 17, ternaries 1 (6 pts) (nesting depth added 88). 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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc02b635da126d1b11ec01a7560035b7c75ff2bdf9b245c61229611ac830f7f6"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.updateState (cognitive 93): DynamicIslandPlayerView.updateState has cognitive complexity 93 (threshold 15). Drivers by points: if/else 37 (72 pts), boolean chains 11, ternaries 5 (10 pts) (nesting depth added 40). 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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"41021748287232dd1cce4c047cc97dee7ed6caa47dd259c64a12d440632a6ca8"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.reorderItems (cognitive 79): PlaylistManager.reorderItems has cognitive complexity 79 (threshold 15). Drivers by points: if/else 21 (40 pts), boolean chains 17, ternaries 4 (16 pts), loops 3 (6 pts) (nesting depth added 34). 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"394065ccbf2c9f9cb1b181c70057dd72a9245ed1002a5d58bad995c6b6807e01"}},{"ruleId":"D2","level":"warning","message":{"text":"LyricsManager.fetchLyrics (cognitive 78): LyricsManager.fetchLyrics has cognitive complexity 78 (threshold 15). Drivers by points: if/else 24 (50 pts), boolean chains 11, error handling 3 (10 pts), loops 2 (3 pts), match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 36). 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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"4615b43fcd9a395ead0553d2fffbd38d94f94b86f1693cd81aa12fda7654a978"}},{"ruleId":"D2","level":"warning","message":{"text":"EdgeVolumeEngine.handleTouches (cognitive 76): EdgeVolumeEngine.handleTouches has cognitive complexity 76 (threshold 15). Drivers by points: if/else 25 (59 pts), boolean chains 16, loops 1 (nesting depth added 34). 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/Mooziac/Audio/EdgeVolumeEngine.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"c954b5f4e259c64b6342b8adc110214d45457b6331313aa53dfa4efac981fd05"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.handleLibraryRowReorderPan (cognitive 76): DynamicIslandPlayerView.handleLibraryRowReorderPan has cognitive complexity 76 (threshold 15). Drivers by points: if/else 21 (56 pts), boolean chains 8, loops 3 (8 pts), ternaries 1 (3 pts), match/switch 1 (nesting depth added 42). 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"51154f980fee1338e905a811405d29dbf1ea7a1b7261d60bec0532c0e2ad9dfd"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardShortcutHandler.handleKeyDown (cognitive 64): KeyboardShortcutHandler.handleKeyDown has cognitive complexity 64 (threshold 15). Drivers by points: if/else 23 (36 pts), boolean chains 12, match/switch 5 (10 pts), ternaries 2 (6 pts) (nesting depth added 22). 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/Mooziac/YouTube/Input/KeyboardShortcutHandler.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0da5ad0af55d8931ed2eacf044c5b640e5f58234e854866a3d075e22d49bfcd"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistLibraryView.menu (cognitive 61): PlaylistLibraryView.menu has cognitive complexity 61 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 14, loops 5 (10 pts), ternaries 2 (5 pts), match/switch 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c769a72701c48dbf80cbeb55f9276c36227bf46cb6c618e9ca1bbb3fc3c0006"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMClient.parseTracks (cognitive 57): YTMClient.parseTracks has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (39 pts), boolean chains 17, loops 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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21dd50dc4c42b743f4cb26ea1cb3fdf8a5820c2c657a7b98ac726799037958a"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.refreshPlaylistsSection (cognitive 53): DynamicIslandPlayerView.refreshPlaylistsSection has cognitive complexity 53 (threshold 15). Drivers by points: if/else 17 (28 pts), ternaries 8 (20 pts), boolean chains 3, match/switch 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1beb4b1fee7fa60c6b21e9276a8ef53f5982af1b2d5075c704df5de249cd12d"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistItemRowCellView.configure (cognitive 52): PlaylistItemRowCellView.configure has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (32 pts), ternaries 6 (10 pts), boolean chains 8, match/switch 2 (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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abd321d65088fc1c8071c36a59e14fb6ec57009629721aa93df323964d4ad24"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.executeYtDlpDownloadTask (cognitive 49): DownloadManager.executeYtDlpDownloadTask has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (32 pts), boolean chains 11, loops 2 (5 pts), error handling 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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7861066e94584d884d0153050e339665f12cdf821b368bfe36266c8196880d"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRowCellView.configure (cognitive 49): HistoryRowCellView.configure has cognitive complexity 49 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 10, ternaries 6 (10 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f88c06d4a27e62a0b52bc618d50b6093270390a7033242a27c371d2ca1e2075"}},{"ruleId":"D2","level":"warning","message":{"text":"MainVideoWindowController.headerBarDidTapPlaylists (cognitive 45): MainVideoWindowController.headerBarDidTapPlaylists has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 4 (10 pts), ternaries 1 (5 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/YouTube/Core/MainVideoWindowController.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"c908faf39bdbd5440e54acafe0ccde7a9f318a3fc9ff8684242b260e5ad232cb"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscordRPCManager.updatePresenceInternal (cognitive 42): DiscordRPCManager.updatePresenceInternal has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 14, ternaries 2 (4 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/Mooziac/Managers/DiscordRPCManager.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38050e0505b8e68380c2e4232e3a876d75fc29202f43547d05e4598e295f0a8"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.appendCurrentPlayingTrack (cognitive 42): PlaylistManager.appendCurrentPlayingTrack has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 22, if/else 7 (11 pts), ternaries 7 (9 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a509a1f6488fb5105e9cd1549abe234114efa41e335a70278e409c6abfd54b"}},{"ruleId":"D2","level":"warning","message":{"text":"LikedSongRowCellView.configure (cognitive 41): LikedSongRowCellView.configure has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 10, ternaries 4 (7 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3cb505c31a0240190b536c465c36492091f49fde4c4827bf29f8cfc5eb08d7"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncedLyricsParser.parse (cognitive 39): SyncedLyricsParser.parse has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (30 pts), loops 3 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 22). 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/Mooziac/Managers/SyncedLyricsParser.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed230431a4c7fcb1d0788f98c06dc793b94c27010231b8cff50ddeb728c8f06"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.importPlaylist (cognitive 38): PlaylistManager.importPlaylist has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (26 pts), match/switch 2 (4 pts), loops 1 (3 pts), ternaries 1 (3 pts), boolean chains 2 (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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fd8b4d8cdd1e3a15ed78bef5458c5de737b62a126565dae4527248e86afdca"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.setupUI (cognitive 38): DynamicIslandPlayerView.setupUI has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 10, ternaries 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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a45edbe760c17670a47a31009c57bdac18380e0f6ab2be62a470adfec9928cf"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.makePlaylistRow (cognitive 38): DynamicIslandPlayerView.makePlaylistRow has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (25 pts), ternaries 7, boolean chains 6 (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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e675e2f0334baee6ae72552fc1d6da030875cee9aa622b9d6d597c4534eb2d"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistLibraryView.tableView (cognitive 35): PlaylistLibraryView.tableView has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (34 pts), match/switch 1 (nesting depth added 17). 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f761f0c7ed982017566cc7dbf5975ef7303544171c33b59d1f1b1332310124"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualMatrixSnapshotGenerator.run (cognitive 34): VisualMatrixSnapshotGenerator.run has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (24 pts), loops 3 (6 pts), error handling 2 (4 pts) (nesting depth added 22). 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/Mooziac/Support/VisualMatrixSnapshotGenerator.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1943e567c0c3e8dd277199ec50094b3cf3ec34cfbbb015154be01166350e720a"}},{"ruleId":"D2","level":"warning","message":{"text":"LyricsManager.fetchRawSyncedLRCFromLRCLib (cognitive 33): LyricsManager.fetchRawSyncedLRCFromLRCLib has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 14 (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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd7ef3a1fb1cd5745db24aa33c38d3ebb56983d3d529f1a20c149eb1e8a24d9"}},{"ruleId":"D2","level":"warning","message":{"text":"SwipeToDeleteContainerView.scrollWheel (cognitive 33): SwipeToDeleteContainerView.scrollWheel has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 4, ternaries 1 (3 pts), match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/SwipeToDeleteContainerView.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2597cc076a35c59a37fdcedbd62498631c201e18d55156324c72a1cad38f86"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.finalizeSuccessfulJob (cognitive 32): DownloadManager.finalizeSuccessfulJob has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (20 pts), error handling 4 (8 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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54d0a6773b21109824187f2306e569e226347b07cae6be6d5e3ff3bf7d6dbbf"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMClient.fetchTrackDetails (cognitive 31): YTMClient.fetchTrackDetails has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (23 pts), ternaries 1 (4 pts), error handling 1 (2 pts), boolean chains 1, match/switch 1 (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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5a2630f4457320ead607b7de69ea24a08df27c0ab6a17fb8f8e5f4e9867435"}},{"ruleId":"D2","level":"warning","message":{"text":"WebExtensionManager.loadSingleExtension (cognitive 31): WebExtensionManager.loadSingleExtension has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (12 pts), boolean chains 1, error handling 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/YouTube/Extensions/WebExtensionManager.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2a75a0cac9437964f53c1720adf2b789d4cd5830d85a0d2c1143e00ceab2d6"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardCommandHandler.handle (cognitive 30): KeyboardCommandHandler.handle has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 6 (15 pts), if/else 10 (13 pts), boolean chains 1, match/switch 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/Mooziac/Input/KeyboardCommandHandler.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a4fbf8861f1010df7333fd742e392f24b728f30b627d96224bd83faac12098"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.updateDownloadProgressInVisibleRows (cognitive 30): DynamicIslandPlayerView.updateDownloadProgressInVisibleRows has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (18 pts), boolean chains 7, loops 2 (4 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61b97c1073eb0f24853d03c016b400b7dadbeba2baa9f7979fbcad705711db9"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsPanel\u002BRows.swift.isTrackPlaying (cognitive 30): SettingsPanel\u002BRows.swift.isTrackPlaying has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 13 (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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f033af0fa6107a55ca64a32f80168866014ecdfc7e4defb0f99c7f60d7f502"}},{"ruleId":"D2","level":"warning","message":{"text":"AppArtworkHelper.extractAndDownsample (cognitive 29): AppArtworkHelper.extractAndDownsample has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 7, loops 3 (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/Mooziac/Managers/AppArtworkHelper.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"faeb1e73e5434abbdde3e4afaa8285209853ba8e2643cf0073bd6ba286b24b82"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.removeCurrentPlayingTrackFromPlaylist (cognitive 29): PlaylistManager.removeCurrentPlayingTrackFromPlaylist has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 18, if/else 6 (7 pts), ternaries 2 (4 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31ed82f059a81bf2108be830bdd46b8af91f1760299598c361e9a0403cafc28"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubeDownloadService.download (cognitive 29): YouTubeDownloadService.download has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (23 pts), ternaries 2 (3 pts), boolean chains 1, error handling 1, loops 1 (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/Mooziac/YouTube/Services/YouTubeDownloadService.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89869da53ae7d47d8a1281c2324cae1b559a3d529b907b4be7ab3abb172881e"}},{"ruleId":"D2","level":"warning","message":{"text":"LyricsManager.fetchFromLRCLib (cognitive 28): LyricsManager.fetchFromLRCLib has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (24 pts), boolean chains 4 (nesting depth added 15). 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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"31128b0cf4a3185c41d7b5a5fadbc7c7e5bcbd35507d0fdbfd5a8fb52edf6898"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncedLyricsParser.activeLineAndWord (cognitive 28): SyncedLyricsParser.activeLineAndWord has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (23 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/Mooziac/Managers/SyncedLyricsParser.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7f58459efd120c8dab1aa1fdac74c61544de569808b1ce4e7ab26035da62cb"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMClient.parseTimedLyrics::searchTimed (cognitive 28): YTMClient.parseTimedLyrics::searchTimed has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 3 (7 pts), boolean chains 4 (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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"679b7043c3e4a8a58f664b29f4fcd7483be5fb5f16be902e589573df4cd28b9c"}},{"ruleId":"D2","level":"warning","message":{"text":"OfflineTrackCellView.configure (cognitive 28): OfflineTrackCellView.configure has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 6 (11 pts), boolean chains 4 (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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc7c11ddcfc73b8855a1e6d3de9eac5ff742748f26735e8c97eadd01bf18a4a"}},{"ruleId":"D2","level":"warning","message":{"text":"CenteredMenuBarLyricsWindowController.updateLyricsFrame (cognitive 28): CenteredMenuBarLyricsWindowController.updateLyricsFrame has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 9, ternaries 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fae48c742665c235ce3605ef3a5cc6ed7134da44fd805b2ea2d552410c99bd"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalLibraryManager.enumerateFilesystemTracks (cognitive 27): LocalLibraryManager.enumerateFilesystemTracks has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4, loops 3 (4 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/Mooziac/Managers/LocalLibraryManager.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c670a0e64b217e37ecead37601caca90ade1c92e40973f14aeb782c85fdafa"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMClient.parsePlaylistTitle (cognitive 27): YTMClient.parsePlaylistTitle has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 9 (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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"472d174bf62a30522e63d83e81303a1e33f84d8a5b3e424e6a6f92f43e2b2c8d"}},{"ruleId":"D2","level":"warning","message":{"text":"URLFilter.containsLink (cognitive 27): URLFilter.containsLink has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 14, if/else 6 (11 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Web/URLFilter.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c40b495bc15d1d3f8f321541486513244775c1a4f01bac617338213e004a2a"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistLibraryView.tableView (cognitive 27): PlaylistLibraryView.tableView has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 12, error handling 1, 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0c3d438d15eed34cd8501cae8cb98f45e17f13fc287ca84ae0bc67f42266b4"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.resetPlaylistSectionChrome (cognitive 27): DynamicIslandPlayerView.resetPlaylistSectionChrome has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 1 (2 pts), match/switch 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bf2749874c169a3b63ab780cfe069addc0c08ddea5b9624ddef7bd90938958"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRowView.setupUI (cognitive 27): HistoryRowView.setupUI has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (9 pts), ternaries 5, match/switch 1 (3 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae915070f000a6051000f1fe4c375a26fd24a508edcfc2b24a1a7ddf80199ae"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalLibraryManager.extractMetadata (cognitive 26): LocalLibraryManager.extractMetadata has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 1, ternaries 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/Mooziac/Managers/LocalLibraryManager.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce9c477c761d4b692d33da197587fae1096a035203d40eefd889ff2c17655b7"}},{"ruleId":"D2","level":"warning","message":{"text":"CircularProgressDownloadButton.updateVisuals (cognitive 26): CircularProgressDownloadButton.updateVisuals has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, ternaries 3 (4 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Components/CircularProgressDownloadButton.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d8836d8206349945e9199f6b828db82fb71c54a90d5ab56c4136e1aded4ef6"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.applyTheme (cognitive 26): DynamicIslandPlayerView.applyTheme has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 9 (18 pts), if/else 5 (7 pts), match/switch 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/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6e23a40a320dfb4945c6776ca4c3177059285d80caec72b9e2e904971e5894"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateManager.showUpdateAvailableAlert (cognitive 25): UpdateManager.showUpdateAvailableAlert has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (22 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 11). Of this number, 13 points are the body\u0027s own statements and 12 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/Mooziac/Managers/UpdateManager.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"049cabc4c44796a5fc60833748eee4ecd8f105b5e5c61acb7164ade1511c005d"}},{"ruleId":"D2","level":"warning","message":{"text":"MainViewController.findBestLocalTrack (cognitive 24): MainViewController.findBestLocalTrack has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Core/MainViewController.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60d087de1ca7784840dbd2570d926ed94089dc5651db2c5a61aeb9e67769ab5"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscordRPCManager.drainSocket (cognitive 24): DiscordRPCManager.drainSocket has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 4, 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/Mooziac/Managers/DiscordRPCManager.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da5d93a09682bc4488452fef3f6547f71cf9c0266a13efbc256d05ba1c56ba8"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistFileCodec.decodeM3U (cognitive 24): PlaylistFileCodec.decodeM3U has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 1 (2 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/Mooziac/Managers/PlaylistFileCodec.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5bfce33dea5eb81ee65c641436433b189d0a562738af2f02803c9d9eb49eae"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.resolve (cognitive 24): PlaylistManager.resolve has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (19 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb40ebfbaee3c1087dcf6fa76c63a21eb2e277b6a6ff6a00654c17c2c406642"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeCapsuleToggleView.updateVisuals (cognitive 24): NativeCapsuleToggleView.updateVisuals has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 7 (9 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/Mooziac/Views/Components/NativeCapsuleToggleView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1d86c0461a7557dfcaed840e099637d7409d34918792746dd897d29e79463e"}},{"ruleId":"D2","level":"warning","message":{"text":"InteractiveWaveformProgressView.draw (cognitive 24): InteractiveWaveformProgressView.draw has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 3 (7 pts), loops 2 (4 pts), boolean chains 1, match/switch 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/Mooziac/Views/Components/WaveformProgressView.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f32805bd55961891414e255d1b17e77345a5d7e450e16a37025c8ae7fc725e5"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.isCurrentTrackInPlaylist (cognitive 23): PlaylistManager.isCurrentTrackInPlaylist has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 17, if/else 4, ternaries 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dc39701709c3967481988a775eb6012832aeff0b1d67fe38ec1162dd8b1806"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMClient.fetchDirectStreamURL (cognitive 23): YTMClient.fetchDirectStreamURL has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 10, error handling 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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7437c3b1a577cb8fc7b31fcf27e8833e90886206c92790747ea614ed5989d7"}},{"ruleId":"D2","level":"warning","message":{"text":"CenteredMenuBarLyricsWindowController.handleStateUpdate (cognitive 23): CenteredMenuBarLyricsWindowController.handleStateUpdate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 8, ternaries 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"182864fec78fb18f629523b1aee8ae9c9619ddb7aa0abc2a0604655ff4d65b71"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.extractErrorMessage (cognitive 22): DownloadManager.extractErrorMessage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 5, ternaries 1 (3 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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c820f32d57db13963f77f212848d700dd1eb5b9abdf53f02d3af830fa5f8a0d"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.playNextTrackInPlaylist (cognitive 22): PlaylistManager.playNextTrackInPlaylist has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 9, if/else 8 (9 pts), ternaries 2 (4 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, 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"065d4ccfdb068780ce310b0e202583243b4bd2ca610f6fcbd08ad08b32379732"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateManager.processReleasePayload (cognitive 22): UpdateManager.processReleasePayload has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/UpdateManager.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7364263938153ae4d499a25a429333a3f2e87e0169b4dcfe953a64660755961"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMClient.findFirstString (cognitive 22): YTMClient.findFirstString has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 7, 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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"4019254d5b798b1ff957d633e2a2a16a5b293c879b014e2237e4388fd2c58864"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusItemManager.panelDidMove (cognitive 22): StatusItemManager.panelDidMove has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 8 (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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0f55d2044452d53389fde4f43693163e92d79d22f4e51a1350af0ed00e9175"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistLibraryView.applyFilter (cognitive 22): PlaylistLibraryView.applyFilter has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6, 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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"41144115aefc1d8bfcc843c47980f2978c71ba89e2408cd5cc4a4afe89d2dd50"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.updateSettingsThemeHighlight (cognitive 22): DynamicIslandPlayerView.updateSettingsThemeHighlight has cognitive complexity 22 (threshold 15). Drivers by points: loops 7, if/else 5 (6 pts), ternaries 5, boolean chains 3, 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c6f504bee8a6af0d4f73cc3eb56c7e497445870d33a1ec1b85459242359c54"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeAudioPlayer.handleTrackDeleted (cognitive 21): NativeAudioPlayer.handleTrackDeleted has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 2 (4 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/Mooziac/Audio/NativeAudioPlayer.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"eace7c74d86acf2f77a018eb38944376317ed83b1621e6f9d6e8afd37b263eca"}},{"ruleId":"D2","level":"warning","message":{"text":"LyricsManager.matchScore (cognitive 21): LyricsManager.matchScore has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 6 (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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4455a06909b1f5fee9880197616b92c3bead6def6a82a5dabde6f09a5ff0b6"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.startLikedSongsPlayback (cognitive 21): PlaylistManager.startLikedSongsPlayback has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, if/else 5 (6 pts), ternaries 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cd23c7679626dd6c6659e84228de364dda8a0f245d07ecde6b73786f53d8e8"}},{"ruleId":"D2","level":"warning","message":{"text":"VisualMatrixVideoGenerator.run (cognitive 21): VisualMatrixVideoGenerator.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 2 (3 pts), loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Support/VisualMatrixVideoGenerator.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3c44302ab325bc6ddc800073756a6a8206cc35f3fe52fa124dc600175059c5"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusItemManager.startEventMonitors (cognitive 21): StatusItemManager.startEventMonitors has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 6 (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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f10fb5cf60549cc1277c14907faaf5d6a63a15ac966113b9fd22e474dfbc6b"}},{"ruleId":"D2","level":"warning","message":{"text":"GlassSearchField.performKeyEquivalent (cognitive 21): GlassSearchField.performKeyEquivalent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 1 (2 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Components/GlassSearchField.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bc66fc7e5188747623a50edf015dea874c28aaff6ed3c4e1380a32bf6ce849"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadRowCellView.configure (cognitive 21): DownloadRowCellView.configure has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 7, boolean chains 4 (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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6f4383e80a4ee1c189627ad8e777cdeb5012f762bec58bbb53a53c60dac83b"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistLibraryView.reloadVisiblePlayingStates (cognitive 21): PlaylistLibraryView.reloadVisiblePlayingStates has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 4, match/switch 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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de6d6471d3b4b6bdc682577ef9ed052575563d7a595927d3bf6aa01b652ce60"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryManager.fetchHistory (cognitive 20): HistoryManager.fetchHistory has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (13 pts), boolean chains 4, if/else 2 (3 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/Mooziac/Managers/HistoryManager.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6957dd50f2d2800670be4cdae7363dd4fb2b92e39da96197638ec53260999e"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalDatabaseManager.recordHistoryItem (cognitive 20): LocalDatabaseManager.recordHistoryItem has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb2b4b3e669a537e2607d9d03847e0926d5ed883620947b4ea281ac6e396490"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusItemManager.statusItemClicked (cognitive 20): StatusItemManager.statusItemClicked has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4 (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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be3e668afa3a6794703dd3eff240ecb4e8cd3ea674e8e43faf0597616b23e58"}},{"ruleId":"D2","level":"warning","message":{"text":"YouTubePlayerBridge.userContentController (cognitive 20): YouTubePlayerBridge.userContentController has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 3 (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/Mooziac/YouTube/Web/YouTubePlayerBridge.swift"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8841fb0a049b626ae0ba7e18600f09c3b1933cc0f03499b675df90c082d989"}},{"ruleId":"D2","level":"warning","message":{"text":"AppArtworkHelper.getCompressedDefaultArtwork (cognitive 19): AppArtworkHelper.getCompressedDefaultArtwork has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, 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/Mooziac/Managers/AppArtworkHelper.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d355d11d29b4b0c9f9add2097b148f2612e22110ef07270eb75de817d07014"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalDatabaseManager.deleteTracks (cognitive 19): LocalDatabaseManager.deleteTracks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7cf698b5e53e3a3fa774ddac5899c898b8f96e59cd601838de6e9554c797b2"}},{"ruleId":"D2","level":"warning","message":{"text":"LyricsManager.searchLRCLibFallback (cognitive 19): LyricsManager.searchLRCLibFallback has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd400c0d352f5967423c3df4364979b702642e757b73bfd656a55292f7a1aba"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.extractVideoID (cognitive 19): PlaylistManager.extractVideoID has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4 (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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce583e6434b7726940347269c02fdc9c2bd7fe8168ae500e129265f6cae13d97"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMClient.extractLyricsBrowseId::search (cognitive 19): YTMClient.extractLyricsBrowseId::search has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ad8c039f3c42d856a82831cabf335cca56ace7c26f87e5d1d16bb60dd64aa4"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMClient.parsePlainLyrics::searchPlain (cognitive 19): YTMClient.parsePlainLyrics::searchPlain has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9187e4f88a818b6e10e3b8319e28722b253e5606b8d8b42f75850e55dbcd150"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusItemManager.positionCustomWindow (cognitive 19): StatusItemManager.positionCustomWindow has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 6, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b168d25327e11c66bccc463b23d74c1a412d6746cd89bb770cdc6ddea72dd5"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusItemManager.handleScrollEvent (cognitive 19): StatusItemManager.handleScrollEvent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"137b798a24aa534c6b66bc9f4b506a76304f81aa16d7fa2cdd01f70f95d30759"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.executeDownloadTask (cognitive 18): DownloadManager.executeDownloadTask has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (4 pts), boolean chains 3, 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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d80dc4a216ac07403ca2cbe1038d2b67dbc40afbcd940555c17d3b3bb3c91d4"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalDatabaseManager.replacePlaylistItems (cognitive 18): LocalDatabaseManager.replacePlaylistItems has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 1 (3 pts), loops 1 (2 pts), boolean chains 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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"c741d5d7b5ea1ea484c4b6e56f455bf1786baac2bac9d30cf7774b168a0a09e8"}},{"ruleId":"D2","level":"warning","message":{"text":"LyricsManager.searchLRCLibTitleOnly (cognitive 18): LyricsManager.searchLRCLibTitleOnly has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 8 (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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"8008538fc0661fcf8aa01bf1a8e1d84e97a379fa5ddfd5da357e49490438a52f"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistLibraryView.handleExportPlaylist (cognitive 18): PlaylistLibraryView.handleExportPlaylist has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 2 (6 pts), boolean chains 5, if/else 3 (4 pts), error handling 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df499552e3f8e0c64794c46e754823677bc323add76c862cd1d924e41c22e1d"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.updateDownloadButtonState (cognitive 18): DynamicIslandPlayerView.updateDownloadButtonState has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 6, match/switch 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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac316e836ee78376c6a4851416bd9a16db148be0285d2e4716214911b9c8db3"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailItemRowView.setupUI (cognitive 18): DetailItemRowView.setupUI has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 3 (4 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e74166f5549a5d7a12a9c0a8b43a9381142ce050e8404df8b16c79ea8a96ee"}},{"ruleId":"D2","level":"warning","message":{"text":"GestureMappingManager.executeAction (cognitive 17): GestureMappingManager.executeAction has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 5 (7 pts), match/switch 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/Mooziac/Input/GestureMappingManager.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01e9b217a89d98e43c72a73e29209bd69f208f6b0b48ab86927135b2326f18b"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.planDownloads (cognitive 17): PlaylistManager.planDownloads has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 1 (3 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ec80b16d163fd972d3562761c71d9f88a8c994b5ac898d2b57f3aae2889e52"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistManager.summaryForPlaylist (cognitive 17): PlaylistManager.summaryForPlaylist has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 pts), 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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"95495e3288ae710f66ef0bf4de6d44055528a7147d07d626e3101787882ef729"}},{"ruleId":"D2","level":"warning","message":{"text":"YTMClient.extractVideoId (cognitive 17): YTMClient.extractVideoId has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 13, 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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba22afe8037dad48a478cf4e3d96728fc523c708d806ba791edcf6b9a46e1e0"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaylistLibraryView.reload (cognitive 17): PlaylistLibraryView.reload has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (6 pts), boolean chains 2, match/switch 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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e9c3261751264f6e3064bc63d644b3f9e08d8709fc5a43f420afd9391007e0"}},{"ruleId":"D2","level":"warning","message":{"text":"CenteredMenuBarLyricsWindowController.scheduleNextLyricsFrame (cognitive 17): CenteredMenuBarLyricsWindowController.scheduleNextLyricsFrame has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, loops 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/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7946596cd78e68b0853a9892f1828f202972ac131198d458cdc34b29f6ef4d"}},{"ruleId":"D2","level":"warning","message":{"text":"MooziacHeaderBarView.updatePlaybackState (cognitive 17): MooziacHeaderBarView.updatePlaybackState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 4, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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/Mooziac/YouTube/Views/MooziacHeaderBarView.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4113a200b3c43a228712f51e09f471b2cfdb034490657fb8e800fd9f952e44b"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.applyMountedRowState (cognitive 17): DynamicIslandPlayerView.applyMountedRowState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3c6f2cefa1eecc3be1d64cc73ac4235ca16e32ca6e736d15dc57435680ce3b"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicIslandPlayerView.renderPlaylistDetail (cognitive 17): DynamicIslandPlayerView.renderPlaylistDetail has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5237f6afaf5818eafe6267406d3049c20a6b3ee49ee9b4a4bd310c8dacd0eed"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalHotKeyManager.registerCarbonHotKeys (cognitive 16): GlobalHotKeyManager.registerCarbonHotKeys has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 3). 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/Mooziac/Input/GlobalHotKeyManager.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"524d89770280177bb51ad71de07ebabcfb3c6c96475465941aaaeddc24bfe461"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.queueTracks (cognitive 16): DownloadManager.queueTracks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 2, loops 2, ternaries 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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"785b77abb1252fe1712796401a66a9ca14025804423ccf3a5cd7b0eeea54340c"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadManager.urlSession (cognitive 16): DownloadManager.urlSession has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3 (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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"65979ba07acc7e965ea15ddada68b0efa99213498eaa3361c37abc139e1180ac"}},{"ruleId":"D2","level":"warning","message":{"text":"LyricsManager.bestPassingResult (cognitive 16): LyricsManager.bestPassingResult has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7831756d4e14c2868422b9433c7cf8b46dfc4ef2a0bb70014067356ff3f38a4"}},{"ruleId":"D2","level":"warning","message":{"text":"NowPlayingManager.setupRemoteCommands (cognitive 16): NowPlayingManager.setupRemoteCommands has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Core/NowPlayingManager/NowPlayingManager.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba3700979f848a9cc8036278ea1ab0e7bc532295dd25b2b7d70d0b3634898aa"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRowView.updatePlayingAppearance (cognitive 16): HistoryRowView.updatePlayingAppearance has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf0538b3f1e1f029adfb371838ba0a62d98041938015b49f72cb5489132efdf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DynamicIslandPlayerView: TooManyMethods \u2014 200 methods, declared across 7 files: DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift (68), DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift (60), DynamicIslandPlayerView/Core.swift (45), DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift (9), \u002B3 more file(s). The bar is 30 methods; this is 170 over it, 6.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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"43476c9b4bea74b67e0496861155b6c6ea01677eb9140dfbe29564ff6bd121f1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DynamicIslandPlayerView.setupSettingsContainerView: MethodTooLong \u2014 setupSettingsContainerView runs 569 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 469 over it, 5.69\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b1260bd2bbb51e28f15f80ee4005d3ca0a551276b0e4a7ac68c6794e6c1ccc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NowPlayingManager.setupInWebView: MethodTooLong \u2014 setupInWebView runs 563 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 463 over it, 5.63\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/Mooziac/Core/NowPlayingManager/ObserverBridge.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90083dc93d54fa7006d4cbdccfa8bacd8c6edb1d96c39be6493d1c872f865b1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlaylistLibraryView: TooManyMethods \u2014 100 methods, declared across 3 files: Libraries/PlaylistLibraryView.swift (46), Libraries/PlaylistLibraryView\u002BContextMenu.swift (39), Libraries/PlaylistLibraryView\u002BTableView.swift (15). The bar is 30 methods; this is 70 over it, 3.33\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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15b9021b391a54d6cd946ec4991d1753f3aae3b88a1c07a8a09080f12828c3c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainVideoWindowController: TooManyMethods \u2014 96 methods. The bar is 30 methods; this is 66 over it, 3.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/Mooziac/YouTube/Core/MainVideoWindowController.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"1027bf2ddab5ec27a0885b7bf2281b5fe59c6918af4c5dc43253745108c9ec8e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DynamicIslandPlayerView.setupUI: MethodTooLong \u2014 setupUI runs 284 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 184 over it, 2.84\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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c72b7dd50f4158de98ff1485c04f12fbcfc09ed3e35bf2c8220e04104a9b718"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PlaylistLibraryView: ClassTooLong \u2014 1007 significant lines (blank, comment-only and punctuation-only lines excluded), 100 methods. The bar is 400 significant lines; this is 607 over it, 2.52\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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"0779fcdb8a962d1d1cec1c8ae0463176c83b726b029c9d904bb6b673503a284c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DynamicIslandPlayerView: ClassTooLong \u2014 1005 significant lines (blank, comment-only and punctuation-only lines excluded), 200 methods. The bar is 400 significant lines; this is 605 over it, 2.51\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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96c38d4001f528770b7b18cc14d32eceeb6b4c3b9e6a9767e8c2b1dc7edb747"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlaylistLibraryView.menu: MethodTooLong \u2014 menu runs 250 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 150 over it, 2.50\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4952e8bad3f188949565b94bc383e18a8a38b3ac196e55e9f062cace270f880a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PlaylistManager: ClassTooLong \u2014 996 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 596 over it, 2.49\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a2b140770a4f8de6862f78d3e6850b78421dded905b31db50764459b43dffc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MainVideoWindowController: ClassTooLong \u2014 965 significant lines (blank, comment-only and punctuation-only lines excluded), 96 methods. The bar is 400 significant lines; this is 565 over it, 2.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/Mooziac/YouTube/Core/MainVideoWindowController.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"811d25a7dfee7e8dea46e3fac7e2b4ce00341f21eec001847fd676419d06e359"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LocalDatabaseManager: ClassTooLong \u2014 961 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 561 over it, 2.40\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5fc170f9cae6d7f9a563bd7d8dff52372b12d4ed8a4303a2437453db5116eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift: FileTooLong \u2014 1172 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 672 over it, 2.34\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e986917edeb59ae36d11b5d96b9d665790d5e8fb8fbdca63b487c22bbe1d0aa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: YTMWebViewContainer.init: MethodTooLong \u2014 init runs 232 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 132 over it, 2.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Web/YTMWebView.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda40c23b71ad70784b260b5357691a709f4fba3541918c1bdba073228c495c4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/LocalDatabaseManager.swift: FileTooLong \u2014 1124 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: LocalDatabaseManager (190-1463). The bar is 500 significant lines; this is 624 over it, 2.25\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"178919abb0cfc4cff88ac53ec90aaecfa92029610a39f093abc9a46920b452ad"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DownloadManager: ClassTooLong \u2014 873 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 473 over it, 2.18\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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee45cb63cf21967fffbdc344ddf49af89d90f3236322960d00136155b288250"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NowPlayingManager.userContentController: MethodTooLong \u2014 userContentController runs 210 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 110 over it, 2.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/Mooziac/Core/NowPlayingManager/ObserverBridge.swift"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"6134bb21ce77f3b7d6180cca23d730225430ff3fcb1dbdffdd0df8d76e43509f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DynamicIslandPlayerView.makePlaylistRow: MethodTooLong \u2014 makePlaylistRow runs 210 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 110 over it, 2.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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf29e716005802cf9ca5bde91071baa8fa06cd2fbcb411a38c1a33f58ab6e8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DynamicIslandPlayerView/Core.swift: FileTooLong \u2014 1030 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DynamicIslandPlayerView (20-1385). The bar is 500 significant lines; this is 530 over it, 2.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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"357868e81252d202e9e393e2d1ef16e862e123a43c346381e38a6251cb936134"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatusItemManager: TooManyMethods \u2014 61 methods, declared across 2 files: StatusItemManager/StatusItemManager.swift (35), StatusItemManager/ContextMenu.swift (26). The bar is 30 methods; this is 31 over it, 2.03\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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcd7c3fbae833cb648827feba61d74509b78a7f05dd931d5f9f3a989abb4b96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/PlaylistManager.swift: FileTooLong \u2014 1014 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: PlaylistManager (26-1442). The bar is 500 significant lines; this is 514 over it, 2.03\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3569351cb1585c86662e300cab9cca5f0c25732c2f6f50a14cd461074b0abc99"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Libraries/PlaylistLibraryView.swift: FileTooLong \u2014 1013 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PlaylistLibraryView (10-1333). The bar is 500 significant lines; this is 513 over it, 2.03\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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd09ebbdd7e99a0f9959055912205e670f913248873662408329da42965bf7b1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: YTMClient: ClassTooLong \u2014 780 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 380 over it, 1.95\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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ecf9cee52fa74999a475984edceff82393383467706d164dd38d37798bd013"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/MainVideoWindowController.swift: FileTooLong \u2014 968 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: MainVideoWindowController (6-1436). The bar is 500 significant lines; this is 468 over it, 1.94\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/Mooziac/YouTube/Core/MainVideoWindowController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e82840d24c2c1cb4a904bf2ad2ade02c9b15f63368fa6ba9a638a589e098a7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/DownloadManager.swift: FileTooLong \u2014 967 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: DownloadManager (24-1278). The bar is 500 significant lines; this is 467 over it, 1.93\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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acb5730479330f3fa5694a71b3a6495d24ca8bd81362d8c226187ddc3ebcde6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlaylistLibraryView.setupUI: MethodTooLong \u2014 setupUI runs 189 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"411db785949e5276c7e097aea8ad8efa10ef246c692981610322c0b692a7602d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Libraries/PlaylistLibraryView\u002BCells.swift: FileTooLong \u2014 926 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 426 over it, 1.85\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4c02045a3eaac29ba74d9d56a4339798d9061dc0d87dd92e8e2c1fe64df866"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlaylistManager: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fbc4d8729ed44f48cccfd0901238d36da8693168a46ad22875069f2898ba0d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: YTMWebViewContainer: ClassTooLong \u2014 719 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 319 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/Mooziac/Web/YTMWebView.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c94b19f281474e9a4a137f2f3318714e6c210d905c6957a32ce26a3acae6fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift: FileTooLong \u2014 873 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 373 over it, 1.75\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6761e4d360fb230f945346e168efbf791e3dad1349680e1164f24c3de3b696fa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NowPlayingManager: TooManyMethods \u2014 49 methods, declared across 4 files: NowPlayingManager/NowPlayingManager.swift (20), NowPlayingManager/PlayerControls.swift (18), NowPlayingManager/Queue.swift (8), NowPlayingManager/ObserverBridge.swift (3). The bar is 30 methods; this is 19 over it, 1.63\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/Mooziac/Core/NowPlayingManager/NowPlayingManager.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"5313fd133584dc97bb855b014a00f75de27d4218606b4e16edf08ace51cdeaff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalDatabaseManager: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcecd0e0d42a6d093fd8a0c8e239e7c07907e164999f39b717edc9ae2a7487e9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DynamicIslandPlayerView.applyTheme: MethodTooLong \u2014 applyTheme runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\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/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffc62702f92e119da835bba53b6a2b95a52f4508ea8664e7cccc75c6fb7fb91"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Web/YTMWebView.swift: FileTooLong \u2014 810 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: YTMWebViewContainer (131-1184). The bar is 500 significant lines; this is 310 over it, 1.62\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/Mooziac/Web/YTMWebView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2718a56789cca2cbb8d9457b9e07f2fe001b82365e592a970d470e6a8189a5e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: NowPlayingManager/ObserverBridge.swift: FileTooLong \u2014 804 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 304 over it, 1.61\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/Mooziac/Core/NowPlayingManager/ObserverBridge.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"299d8ebdb32a3e04791bdefd02a21256e52ab6bfddef951f582589f2994ed5cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: NowPlayingManager/PlayerControls.swift: FileTooLong \u2014 791 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 291 over it, 1.58\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/Mooziac/Core/NowPlayingManager/PlayerControls.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"586f572cbf7cc9bc5c7682ed85ea330490ee85340516387b4fd56b6fdd38873e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Managers/YTMClient.swift: FileTooLong \u2014 783 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: YTMClient (14-1174). The bar is 500 significant lines; this is 283 over it, 1.57\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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fd6d7af8d694a22a89f593b966a5549b727ab87cda251091f8073a1f102eaa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KeyboardShortcutHandler.handleKeyDown: MethodTooLong \u2014 handleKeyDown runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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/Mooziac/YouTube/Input/KeyboardShortcutHandler.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"651f1fe50c36ecf0017c7a7382350291a2dda9f315e0b083dd4f38a55c207d84"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlaylistLibraryView.reload: MethodTooLong \u2014 reload runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a25bc96646882c8b66148e2aa6ef09c963fc92d91b5f7cbad5859fb5f837c47"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VisualMatrixVideoGenerator.run: MethodTooLong \u2014 run runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\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/Mooziac/Support/VisualMatrixVideoGenerator.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"331e7c0523b9c490d24c006c14648e2319e001c0ba09fffca85a9ebfd587f09f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Libraries/OfflineLibraryView.swift: FileTooLong \u2014 754 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: OfflineLibraryView (10-642). The bar is 500 significant lines; this is 254 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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9d2f51c095830e4b9bfec9090fb88aecc23eb1c3402755c5076c6c454dfeb3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OfflineLibraryView.setupUI: MethodTooLong \u2014 setupUI runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c997909a34381ae53fc061ffeddb4bbd8fc371edfc0214bfc88fe9e6773663"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StatusItemManager: ClassTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded), 61 methods. The bar is 400 significant lines; this is 157 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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"877c42146111146ed8404b2dc43b4d897e0e4d660458159be50b565e697c2d37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DynamicIslandPlayerView/SettingsPanel\u002BRows.swift: FileTooLong \u2014 696 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 196 over it, 1.39\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b936a51027202edbd332e505b0691d7c5dcdeba3ddafe6ff766f968ce721e6b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DynamicIslandPlayerView/SettingsPanel.swift: FileTooLong \u2014 671 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 171 over it, 1.34\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7c10515a96b4238d61537212990619d32b31d91d41a4e1eb7cca7eb0b875c0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StatusItemManager.showContextMenu: MethodTooLong \u2014 showContextMenu runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0259045ab7d13ae4441ddac3ffe9747ea7434f306a295c534c48299831baf31"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RatingPromptWindowController.setupUI: MethodTooLong \u2014 setupUI runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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/Mooziac/Views/Windows/RatingPromptWindowController.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8526003565145187c89ec4c032404405b75564eea3df913a4de5508b439da1d7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VisualMatrixSnapshotGenerator.generateInteractiveHTMLGallery: MethodTooLong \u2014 generateInteractiveHTMLGallery runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Support/VisualMatrixSnapshotGenerator.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"b677af60aef54bfb9ec3c50a398c566db78f66ada810f81181818191096fb513"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Libraries/PlaylistLibraryView\u002BContextMenu.swift: FileTooLong \u2014 648 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 148 over it, 1.30\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b84082bb3e234b113fea31deaa1442b56b2b76391bf8ae1ad7b9169f4db347"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CircularProgressDownloadButton.updateVisuals: MethodTooLong \u2014 updateVisuals runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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/Mooziac/Views/Components/CircularProgressDownloadButton.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e71f2cc2fba7cf91f92fc846e730d04772acdcf32f8309445f086342d2b029e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: YouTubeDownloadSheetController.setupUI: MethodTooLong \u2014 setupUI runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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/Mooziac/YouTube/Views/YouTubeDownloadSheetController.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a11aa0ea9895b3efee003a0774bc443414e7c7bf6a9a06a192c926dbf834051"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VisualMatrixSnapshotGenerator.run: MethodTooLong \u2014 run runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Support/VisualMatrixSnapshotGenerator.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"94605d53dc1ceb4bbf54597d0bcb171e99ef3d2cc9a2d90e9a3c6f358463fb72"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DownloadManager: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2462dbc12f88d8e5724c05aff87d94fe7de804e0fad09e335a723e7e9a38bc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LyricsManager: ClassTooLong \u2014 492 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 92 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d414a36941e16bc616909d40d375902777c3d1d96947f9c1b8f71928b01542"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LyricsManager.fetchLyrics: MethodTooLong \u2014 fetchLyrics runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"f895a7fa595e7590840b0fb60cc9bcbf72bb8a7e0e283c3067c1c8d50040f0b3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DynamicIslandPlayerView.resetPlaylistSectionChrome: MethodTooLong \u2014 resetPlaylistSectionChrome runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d624edfcca77182af92c21c9e0d29be17aac3bbd1e29fc579ba468edb4c006ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/YouTubeDownloadSheetController.swift: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: YouTubeDownloadSheetController (8-616). The bar is 500 significant lines; this is 97 over it, 1.19\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/Mooziac/YouTube/Views/YouTubeDownloadSheetController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11385c3c982176006af51933b02b6b9991b0fc7dae5711ddb70e9cdfcff04ba3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UpdateManager.showUpdateAvailableAlert: MethodTooLong \u2014 showUpdateAvailableAlert 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/Mooziac/Managers/UpdateManager.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d5521d89539cc45c7334734a46f24d4b180fd04141f5f431df847edfd42d50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainViewController: 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/Mooziac/Core/MainViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3d947f7344cccc7f8d4b5c24ee7b2db4aedfdd80647d81b9685592ad25c807"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NowPlayingManager.togglePlayPause: MethodTooLong \u2014 togglePlayPause runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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/Mooziac/Core/NowPlayingManager/PlayerControls.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5a32fb23162683d03bf3073d84a7cfed28a89761676f269b3964dbd1df9d59"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MooziacHeaderBarView: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/YouTube/Views/MooziacHeaderBarView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dbbb5681641dee56ff4d0b283268b8418fdc973707c82c6e83e8a65853cd57"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: YouTubeDownloadSheetController: ClassTooLong \u2014 452 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 52 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/YouTube/Views/YouTubeDownloadSheetController.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"196477ba1a106b148bd2431cace9d3472a0956ebbcc33c2f3d130743cf8944a4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OfflineLibraryView: ClassTooLong \u2014 451 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 51 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9494810821e1384e957d321920913056dc43c5dd431b0484baf3128ac734d67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: StatusItemManager/StatusItemManager.swift: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: StatusItemManager (10-874). The bar is 500 significant lines; this is 63 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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"341f5d78e838f370f8297843272b322008d2b6a5aefcdcd3292f3520303765bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlaylistLibraryView.applyTheme: MethodTooLong \u2014 applyTheme 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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"292c973b8d87682ade45c1a048734fcab346596475e9d85e8f291c73e9f7846e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DownloadManager.executeYtDlpDownloadTask: MethodTooLong \u2014 executeYtDlpDownloadTask runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"403b710ce88a1eab9145a7796e4116a6bee4879526199eb55a79f1ba93808dce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlaylistLibraryView.tableView: MethodTooLong \u2014 tableView runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb83f494cb2ddef70215d9d3d1222ae6d29ba72b6ffd981d0ca6eda92892796a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UpdateManager: ClassTooLong \u2014 427 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 27 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/Mooziac/Managers/UpdateManager.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e919ddbbffde051cb35002488403801678dc7d14bff0afc2f973c97bb12b8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NowPlayingManager.nextTrack: MethodTooLong \u2014 nextTrack 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/Mooziac/Core/NowPlayingManager/PlayerControls.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfee13312bc1af08e887d56fea955e2aac55476ba0839cbcb29b1eb1ad3df9a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MainVideoWindowController.headerBarDidTapPlaylists: MethodTooLong \u2014 headerBarDidTapPlaylists 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/Mooziac/YouTube/Core/MainVideoWindowController.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"84edd48eaefebddaffc3909f0d838a31b2d4354143bc1ae483bffe23bac4903a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YTMClient: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7074bf2c1542b839c836455edff81c7e4051a0482ea52628b77abf843ec8b82a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlaylistItemRowCellView.setupUI: MethodTooLong \u2014 setupUI runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3f141f41b940fe70c7703ce515523e11219db1816503e96e7aa6778325c41b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: YouTubeDownloadService.download: MethodTooLong \u2014 download 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/Mooziac/YouTube/Services/YouTubeDownloadService.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1e4ed3e361e0ac867ccb10e22d14d23e69b5c38315489f38a8563c9878de77"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 30 shared lines): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:911-986 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:7-77 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:79-160 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:162-226 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:228-293 \u2014 These 5 members are variants of one another: a block of 30 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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"125ad29c9011b017d07168e91add2c16544a2b8d283b833be6b183cd7579be85"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 29 shared lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:13-106 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:128-203 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:216-280 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:282-354 \u2014 These 4 members are variants of one another: a block of 29 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 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c68981b3117dc42d37a32f04138556fa27ecb93eeb69b1446716cc856f1d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 27 shared lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:120-152 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:427-459 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:621-653 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:806-838 \u2014 These 4 members are variants of one another: a block of 27 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 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3edf65d7183b595046b85d9196c5f6ff700b9e2fceecf4a4c9e31f91b39096"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 25 shared lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:389-503 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:658-711 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:867-959 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1114-1194 \u2014 These 4 members are variants of one another: a block of 25 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 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"1378d813dda084389f99e661b3e6bbf0f66301fcb5719cb9fafdea944d0b824d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (84 shared lines): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:53-249 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:113-360 \u2014 These two members are variants of one another: 84 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"385ee714f241755e28428305528264d8719f2be66c0302d3b0e924a7e80947f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): Sources/Mooziac/Managers/LocalDatabaseManager.swift:778-788 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:806-816 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:985-997 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:999-1009 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1153-1164 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1238-1248 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1250-1261 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1263-1273 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1289-1356 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1436-1453 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0072953646177f8d762ff51a54c15955db2a4a5c94a4cd2387fad5ba45cd8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:7-327 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:317-386 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:388-473 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:502-555 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:7-77 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:79-160 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:162-226 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:228-293 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"695f90368fd79449849e7650b6a80902227ba83eaf1dfe568d24be6febc2b55b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/Mooziac/Managers/LocalDatabaseManager.swift:502-550 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:818-849 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:851-882 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:935-963 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:392-420 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:449-481 \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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d769381db97ecd874b08a2e8d7e77821f9203d3b0d10da6b94ed2a86dc40eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:679-774 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:54-145 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:261-387 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:539-656 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:749-865 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:997-1112 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"7661a68370593f185859c05eb2128fd1ef518ba848fa33a11573832d181ca63a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:502-538 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:1020-1038 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:862-893 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:966-997 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:999-1032 \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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51a1df437cf9469c62dd05c01bd3647de37176047198adb7f564273d8cb80ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:569-585 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:587-603 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:605-625 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:461-477 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:479-495 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"451fef861dab39e3f4022766b44548e763c6d0b1e46a6df37ec717a8420c28e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:787-798 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:800-811 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:162-173 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:175-186 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"24643e2f6e1d0ae5c25a503ce5104177ae46fb72a7b48aadd31756eafd1d2f6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:652-672 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:475-500 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:553-572 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:574-596 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4139e750a695f51f7ac098041443119dfa2c4afaa270a9f40928c7ed5c7055b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:679-695 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:697-713 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:372-388 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:390-406 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a9c8bdc9155a26ff7d1175487426883fdcab81094f87baff9826950b40e413"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1167-1191 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1263-1287 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1289-1313 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1321-1345 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa5652d3a82a519d79c8fe6422200201a3742c15b285a17358b7340f239664a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:154-233 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:461-570 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:655-769 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:840-905 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19acab9bace7d1ebc0b7957befa5572249a5408fcbd3339023b3eda29a1b761"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Sources/Mooziac/Managers/LyricsManager.swift:501-540 | Sources/Mooziac/Managers/LyricsManager.swift:542-576 \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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeca400dc3efa50e49b09c0a0490f99df68e7b9302ca04f36a6080f13aead16a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Sources/Mooziac/Managers/PlaylistManager.swift:566-596 | Sources/Mooziac/Managers/PlaylistManager.swift:598-637 \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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"df802931b4a0289c362c1920daa0fe614dd769f5f9eb7f0b73e7f08544f616ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:232-281 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:508-571 \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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e375dae9ba5c5d9697c93af2f34ce4deeb754665d9304d2d4500278c8efeec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (55 corresponding lines): Sources/Mooziac/Managers/YTMClient.swift:974-1028 | Sources/Mooziac/Managers/YTMClient.swift:1107-1173 \u2014 These two members are one piece of code written twice and then edited apart: 55 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fc04b147e07b2cc9c33aa339b5f06e478f4ddfc2a1342a8142003285ff421e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Sources/Mooziac/Managers/PlaylistManager.swift:374-405 | Sources/Mooziac/Managers/PlaylistManager.swift:407-442 \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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d2f73906f83f4812c364853700886238d15d8b3e566f4f093c103a3f706f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:465-500 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:975-1015 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:1047-1086 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71a244b5fcaf0e5561888ab4de1a0a425c54d21172ff696f440e516c1771fe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:283-316 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:573-606 \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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2adb3bc4e929af55d68d32eb531efb069e509e46f8445a6a7c6f598bcb1a0c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift:73-105 | Sources/Mooziac/YouTube/Views/FloatingHUDWindowController.swift:35-71 \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/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3faa19bd8632f8c0d9773d33f23730b0cc71f5752177979a19e3756a81e2e0f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (122 corresponding lines): Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:45-201 | Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:303-424 \u2014 These two members are one piece of code written twice and then edited apart: 122 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/Mooziac/Core/NowPlayingManager/PlayerControls.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c11536c002aa865566f2d75f5c28bc61c7850602b4ab16fe485431e59e3cf77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (125 corresponding lines): Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:426-568 | Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:570-694 \u2014 These two members are one piece of code written twice and then edited apart: 125 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/Mooziac/Core/NowPlayingManager/PlayerControls.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f34ff27c73422b117ca618adabd081c955d45e470b5c48f6d1fa33edec4f8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1095-1112 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:815-833 \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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"b214a38772dceaebc77f3ef8f16dfd9b458100235ad689b1d52f3e3ef112a0b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/Mooziac/Support/VisualMatrixSnapshotGenerator.swift:288-308 | Sources/Mooziac/Support/VisualMatrixVideoGenerator.swift:356-370 \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/Mooziac/Support/VisualMatrixSnapshotGenerator.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"672c7f4d1b6b1ee455bd1b9d2db1b4e416a1cecd6fe188f45fbca7d9c9cb2623"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:453-471 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:473-491 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb7695c55435a37fe55e9121155b26535eea675bc1033a3c7bb5a3f8673ec60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:1253-1270 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:1272-1289 \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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a7740ec533a0eb3ae2f7ad23a1bba8ef1b647f8df96f8d394029996be07af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/Mooziac/Managers/YTMClient.swift:1030-1051 | Sources/Mooziac/Managers/YTMClient.swift:1085-1105 \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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e59143425517e2fbfc8ca45ff5400765335b6cf9b595d53e4e27005d598540e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1273-1296 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:613-633 \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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a438d7e39105c1604555ea3c3b5aab1a72cd70228af15d9854fdce9d1a29b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Mooziac/Managers/LocalDatabaseManager.swift:683-700 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:702-730 \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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c70a89c8d57750a28d9a69b2734a5eba4ad949af4e6edcc66db2feaa17c8729"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Sources/Mooziac/Views/Components/GlassSearchField.swift:239-260 | Sources/Mooziac/Views/Components/GlassSearchField.swift:296-317 \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/Mooziac/Views/Components/GlassSearchField.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"991fad86008deaa0b92ff42c0e42f085297b0821a418cd428c9f369722ebc54b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): Sources/Mooziac/Managers/DownloadManager.swift:1090-1127 | Sources/Mooziac/Managers/DownloadManager.swift:1129-1165 \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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eef67b72e2ab83f8890b64de2279f305e7eca180fa42d642523257bea5483d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:483-506 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:608-624 \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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"994781ddf7801ca46b33b5841423e12e78ddbeb5747d1130992a480616fc91da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Mooziac/Support/VisualMatrixSnapshotGenerator.swift:232-250 | Sources/Mooziac/Support/VisualMatrixSnapshotGenerator.swift:252-270 \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/Mooziac/Support/VisualMatrixSnapshotGenerator.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81f726bade91a3504ee4879d70cfe3189516c853b47f5156e469d13b3cc12ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1478-1496 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1498-1516 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca73639b4407800ef15984e18ecae59f940a5b9b7be7cee1c7bc4bf5b4423447"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:715-727 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:314-326 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:408-420 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:497-509 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"555d2bc236035467be2e86ffc4d5e13acb73aeb860f5a77b7ad6c93e248ac287"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Mooziac/Managers/YTMClient.swift:182-199 | Sources/Mooziac/Managers/YTMClient.swift:202-219 \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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf01f37bd7de864d5431d7dcbed33e93747ac04a4b647635651c8c2ddf361b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:226-235 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:237-246 \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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ba08274018939278760301b3ab7f1f260b522f2140a94dea70a00d306c5929"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:365-384 | Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:394-416 \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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"c562864d81403fd2ecdde90c3ae87db920e8a78a362a3e5ca8b2636bb4669df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Mooziac/Managers/PlaylistManager.swift:819-828 | Sources/Mooziac/Managers/PlaylistManager.swift:830-839 \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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"99593ced873406fb6af0a70d60cb78b0ba1fa735fc082309b91e5dab469f9a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:513-529 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:547-562 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a1bacedac1e6a12329721112c95a8bb12c1282326a5c8efb325cc87dbb31f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1298-1316 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1144-1165 \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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa709c2695b4be294fddb30fc75b34d6080e00dd6730a63038aea1723e812d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Mooziac/Audio/EdgeVolumeEngine.swift:337-353 | Sources/Mooziac/Audio/EdgeVolumeEngine.swift:355-371 \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/Mooziac/Audio/EdgeVolumeEngine.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df7c67d8fe6c5682afa44fb034e711a178cbcd9dfca3604bd6f1b28aaecbcf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Sources/Mooziac/Views/Components/HeaderView.swift:82-100 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:251-264 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:373-388 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Components/HeaderView.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fca23470bf5cf79212cb95e8c05d20716f9206fa40d6b082cbc48c424caad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Mooziac/Support/AppExtensions.swift:122-133 | Sources/Mooziac/Support/AppExtensions.swift:136-147 \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/Mooziac/Support/AppExtensions.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd08a60dbad9a73e9e985bbf0ccf113b449475b83c5e7cf5c236602711a48ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift:38-62 | Sources/Mooziac/YouTube/Views/FloatingHUDWindowController.swift:11-29 \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/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e001250d4ad8e854e6318b661ae9c236798ecd91532eeef711d40a2958bf096"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:4-17 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift:795-806 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5aa10373813a13cc321562f175bae273a60cda9938a17a181658c15b59e11c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 11\u002B corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:729-742 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:744-757 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:759-772 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:328-338 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:422-432 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:511-521 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d7f43f26ed9ca1a678064ce8f59ac30748e2f0e75121bfcaf198e6c2597a43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Mooziac/Audio/NativeAudioPlayer.swift:153-173 | Sources/Mooziac/Audio/NativeAudioPlayer.swift:175-193 \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/Mooziac/Audio/NativeAudioPlayer.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"36567e5f029e63c8a4b1b5149a77c5324712d388116e58ce1b40aa24fd6c8d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/Mooziac/Core/NowPlayingManager/NowPlayingManager.swift:348-363 | Sources/Mooziac/Core/NowPlayingManager/NowPlayingManager.swift:365-387 \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/Mooziac/Core/NowPlayingManager/NowPlayingManager.swift"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72df2c3ff43e65ade6081816141e7d1b360ca6ba3d8ef248acfdb96e322fb6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Sources/Mooziac/Managers/LocalDatabaseManager.swift:221-243 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:143-161 \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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0ccb5ecd1c4b561ab70d42f6ccbeb696deb80d71855ddca342e930696add4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Sources/Mooziac/Core/MainViewController.swift:159-184 | Sources/Mooziac/Core/MainViewController.swift:186-211 \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/Mooziac/Core/MainViewController.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54f05d7be70797d3f486e08cc2bc4b070615464ed6c5f3d16c30dea7d0b28ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Mooziac/Managers/YTMClient.swift:431-449 | Sources/Mooziac/Managers/YTMClient.swift:451-463 \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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"aace0f97a435ab6e298c28b4a55e16fc4f83f78bf063596c99d79757921e141e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Mooziac/Managers/LocalDatabaseManager.swift:169-187 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:35-44 \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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c8a922b21a62a9151a0402524d4a8bc613f17b1143c5c9e0bb4693fac1ea9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:800-847 | Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:871-916 \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/Mooziac/Core/NowPlayingManager/PlayerControls.swift"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"887933321ce772ab5d59204fea0876725508d3b2bcf0fc91ec5ef97da6fdc270"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Mooziac/Views/Components/GlassSearchField.swift:78-86 | Sources/Mooziac/Views/Components/GlassSearchField.swift:88-96 \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/Mooziac/Views/Components/GlassSearchField.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6504cb061baa465304a8c5b69983c90d3b7526a469aaf70c1c3fe863f07fbc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Sources/Mooziac/Managers/LocalDatabaseManager.swift:145-167 | Sources/Mooziac/Models/LikedSongRecord.swift:14-32 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:15-33 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c68896ea5678623bed2ed71790afa61a0ea6f5c74182b645595eeae93d9f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/Mooziac/Support/AppExtensions.swift:150-162 | Sources/Mooziac/Views/Components/CircularProgressDownloadButton.swift:95-106 \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/Mooziac/Support/AppExtensions.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3463ca14c4ef4dd91fb5dc7e681b1f529614f61647ae7e8d334c55690bee3087"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:807-819 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:821-833 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:835-847 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:849-861 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1ed047a01f6f8f4d7dd0d428258b104bdf3c0ac6ebd0a764bc864a7666f022"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:434-451 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:627-644 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:434-447 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08f13489ac1d333a10ebd632b1b6b3de4b11557c8de26e72cc3bc0d62c56f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): Sources/Mooziac/Managers/AppArtworkHelper.swift:89-100 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:197-208 | Sources/Mooziac/Managers/LocalLibraryManager.swift:82-93 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:124-131 \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/Mooziac/Managers/AppArtworkHelper.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f60b3bf1afad6e8b9c443f6b168a5c484e675b33169e6dc087658cd1926e48a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:295-306 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:877-886 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a15adae1cac43d3039baec25a63a137f115513572f26601a2f8ac06f18779e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:435-450 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:953-973 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1395-1414 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"9362b0fdcb8ce44f661422d3759397c16bf2b2e6351a1fbde8bf88c238824544"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Sources/Mooziac/Core/StatusItemManager/StatusItemPanel.swift:4-20 | Sources/Mooziac/Views/Windows/NativeGestureTutorialWindowController.swift:9-26 \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/Mooziac/Core/StatusItemManager/StatusItemPanel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"34778bcc2661af0345372e887754e722fc592a344b0e2bb8115255daced540f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:418-433 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1151-1165 | Sources/Mooziac/YouTube/Core/MainVideoWindowController.swift:902-914 \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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba1ec0fa9ddf34bd05372ce444a482137847c983e877b87dcd953f0d2a70027"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:187-205 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:221-238 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0b432041ad2cfed88f7cb9ffab808e65b8f4b0ddb707c980c5b7c1683a4896"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:73-91 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:102-109 \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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe416c5c42469cf681162e8564e375bf24dcbbca90994f880cd2c4ba4fb8354"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:386-395 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1066-1075 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c458cef4b727e027d1264438a31018160a111c8967d32bc57b33c0e4801bef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:844-854 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:948-958 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e677611540f16cb88e55097355b796e4d1fd6d3d65860aec1e8a32d0c654190"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Mooziac/YouTube/Core/MainVideoWindowController.swift:1324-1336 | Sources/Mooziac/YouTube/Core/MainVideoWindowController.swift:1338-1359 \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/Mooziac/YouTube/Core/MainVideoWindowController.swift"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce275b8f9ec0669476641baa82e253d667d6ed4c1da6c2b524f7cd05ded090bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/Mooziac/Managers/LocalDatabaseManager.swift:486-499 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:163-172 \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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e4816a74bde054b43325ba7e3d0de1b995b7e7f8a693a835f2a7ba89dc5b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Mooziac/Managers/LocalDatabaseManager.swift:884-896 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1414-1434 \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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9be335077ce8dd12c38b0cbb2e143b36de47f3cbb288cc077c14e326c99863"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Sources/Mooziac/Managers/PlaylistManager.swift:125-136 | Sources/Mooziac/Managers/PlaylistManager.swift:138-146 | Sources/Mooziac/Managers/PlaylistManager.swift:148-155 \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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb94fd97f38129c3caf30d42b87571bbce619f15958eab535538d490733ba5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:568-576 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:34-42 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"416c450a54d09ece180ec348928de90e18cccab2d3817989b6c90536d7c39445"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/Mooziac/Audio/AudioRouteMonitor.swift:98-115 | Sources/Mooziac/Audio/EdgeVolumeEngine.swift:25-43 \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/Mooziac/Audio/AudioRouteMonitor.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb97f050f82236f1dd40db413ecaa83659daaed01f18326a3c79701b73962d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:682-689 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:691-698 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18555c0ab9c06ca7974051e972452642af6c45a3c0383435f0dd0644fdbe046"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:648-654 | Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:656-662 \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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c3ab23d6718fd1b5ed99df5f3778bd037eacca6fdf42894e9ee0e9960211e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/Mooziac/Input/KeyboardCommandHandler.swift:85-91 | Sources/Mooziac/Views/Components/WaveformProgressView.swift:347-353 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:837-843 \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/Mooziac/Input/KeyboardCommandHandler.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"278268f7824891c1fb3bafe88fd99861243a46d86d867a4c5cf868085547e375"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/Mooziac/Views/Components/GlassSearchField.swift:45-54 | Sources/Mooziac/Views/Components/GlassSearchField.swift:98-106 \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/Mooziac/Views/Components/GlassSearchField.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a8ca51008024f771803fe4ede341df13e02f66cb45f118a4a9637faab2b8f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:415-420 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:493-499 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f46c1af02bcaed990bd17c33bcd5d27e4be213d0deba045b6aa6a222b9dfbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:799-805 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:340-349 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"134cf574550d7afcb2504389de1b622c9ff1d934df24332a247689c85e9b7902"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:172-185 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:207-219 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"9049719b65468f529be23640107ae6b923a23dc205dd4a7ff39e514e79ea3256"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:74-87 | Sources/Mooziac/Views/Components/WaveformProgressView.swift:135-148 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift:37-50 | Sources/Mooziac/YouTube/Views/MooziacHeaderBarView.swift:334-347 \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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f0b0a9dff871be3c9dbdd3c7d1f9bec272f39404fdb42d87185f457565b95e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 43\u002B corresponding lines): Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:1009-1065 | Sources/Mooziac/Core/NowPlayingManager/Queue.swift:437-479 | Sources/Mooziac/Core/NowPlayingManager/Queue.swift:481-532 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"5102496d9cc208a440804c2bedd37decb45fb8f2f8982e6a00852c1b9855fdcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1322-1326 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1328-1332 \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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ee9afb7fdfabf5fece04c8bbf4c7827f228ac9a27f6ee6eca45ecf6af8dfba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:1113-1117 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:330-334 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"31361d4860c9658cf09aadcd8b17376664de9c141a7aa5c583d11c0157812aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:422-426 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:541-545 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8efb8b20cf071e1b41f52e83b02d8f7423f9916133578796d51ae60c2ceb517"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:428-432 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:547-551 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b1ba0d5f1b75552831280efcf23165f5087c31aa612864728067f1c54a1e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:506-510 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:302-306 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"b517daf0099dcee184481cefb0348768bd9b8f3aab8910048c669bfcace559ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Sources/Mooziac/Views/Components/NativeCapsuleStepToggleView.swift:20-23 | Sources/Mooziac/Views/Components/NativeCapsuleToggleView.swift:22-25 \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/Mooziac/Views/Components/NativeCapsuleStepToggleView.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95aa2f576e29ad0780df914dce82bb067205988f27104a0b4796a130a71c156"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:505-511 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:538-545 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:351-358 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b2ef97200dacd8187e1b6496ce61aa69ef6175b4ca544694624dcb06765605"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Sources/Mooziac/Models/ProgressStyle.swift:19-25 | Sources/Mooziac/YouTube/Web/YouTubeQualityManager.swift:13-19 \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/Mooziac/Models/ProgressStyle.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5ca269bc9420214881bc31e9c8746c41d61a8c01db62cfe0a7978b7e093005"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Sources/Mooziac/Core/MainViewController.swift:27-29 | Sources/Mooziac/YouTube/Views/YouTubeDownloadSheetController.swift:70-73 \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/Mooziac/Core/MainViewController.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01723c4c7874db08b736fcdb96794e8495c0143afc06ac9431d9467e7ae1c30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:459-463 | Sources/Mooziac/Managers/UpdateManager.swift:394-398 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift:826-830 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"f366fae62046c66ceb09427986d827b5dd91244548a286a6c8bdac10e7ad16a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2): Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:65-128 | Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:314-377 \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/Mooziac/Core/NowPlayingManager/PlayerControls.swift:65\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 before the matched lines, \u0060Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:310\u0060 calls \u0060play\u0060 and \u0060Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:62\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/Mooziac/Core/NowPlayingManager/PlayerControls.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ec1e8cb18ca334c9c366a0a9798cd04516ea572270ef02ea2ed4925a99940d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 2): Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:440-496 | Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:584-640 \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/Mooziac/Core/NowPlayingManager/PlayerControls.swift:440\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/Mooziac/Core/NowPlayingManager/PlayerControls.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cde136b04da9882d7367f016e5387e0152c503200cd2d4c6bd963532050a1dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): Sources/Mooziac/Core/NowPlayingManager/Queue.swift:7-60 | Sources/Mooziac/Core/NowPlayingManager/Queue.swift:198-251 \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/Mooziac/Core/NowPlayingManager/Queue.swift:7\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/Mooziac/Core/NowPlayingManager/Queue.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc29386076ed86283eb298283001486a6617ffe5b2652d34d3c794f38d48729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): Sources/Mooziac/Core/NowPlayingManager/PlayerControls.swift:701-752 | Sources/Mooziac/YouTube/Core/MainVideoWindowController.swift:826-877 \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/Mooziac/Core/NowPlayingManager/PlayerControls.swift:701\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/Mooziac/Core/NowPlayingManager/PlayerControls.swift"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"0466cb77342311793e4d2819d7296b10ad8f102742ee73affa2924c0f9b10739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): Sources/Mooziac/Web/YTMWebView.swift:976-1022 | Sources/Mooziac/Web/YTMWebView.swift:1040-1086 \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/Mooziac/Web/YTMWebView.swift:1040\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/Mooziac/Web/YTMWebView.swift"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"8923661c4cb132310dc9e9350b707042328485b8728d4e8e8582b550c12708fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:261-284 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:539-562 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:749-772 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:997-1020 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:261\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5289839a3d6e4c4280f48f76766f741a53e3ab4de617f930ece23a8f8bfa7fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:172-195 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:280-303 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift:172\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a166e2c1df7dcc3a9a3ed3ea73aee3e8f7c2a8c8514631e137d4733c6a585a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:285-307 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:563-585 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:773-795 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1022-1044 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f25568717e68aeb4a802f851ed23b26bac0ddf1e895067628f759d109dc7901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:679-701 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:54-76 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift:679\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd020743124ae296b856dcff8e56b98142fd135e34eddb0853c8b7ce936b05ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/Mooziac/Managers/LocalDatabaseManager.swift:828-849 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:861-882 \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/Mooziac/Managers/LocalDatabaseManager.swift:828\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"084f2e4a9414783d657cc844206b8c46086eb2e39a421599dc4b6061d60f4c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1192-1213 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1217-1238 \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/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1192\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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"575374fcc56c5809b802aca1e570a03072c7c0a05ea6adec3d55e4279c1d44b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Sources/Mooziac/Managers/PlaylistManager.swift:479-502 | Sources/Mooziac/Managers/PlaylistManager.swift:538-561 \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/Mooziac/Managers/PlaylistManager.swift:538\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf064b8e702a5a9aab6f66f73435a227622c3e429a995528691f0fb747a7f7b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 3): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:481-499 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:941-958 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1176-1193 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:941\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 \u0060item\u0060 to \u0060PlaylistItemRecord\u0060 in one and \u0060HistoryRecord\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"d642146989b9b37edd0f13617e51cf0575a0555c59cd28160aa008d5408b47d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Sources/Mooziac/Views/Windows/RatingPromptWindowController.swift:96-115 | Sources/Mooziac/Views/Windows/RatingPromptWindowController.swift:130-149 | Sources/Mooziac/Views/Windows/RatingPromptWindowController.swift:164-183 \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/Mooziac/Views/Windows/RatingPromptWindowController.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbda8427d91086ea1b5eee1a3c8b99639d960e0126a720d3fdf4e09619a4c987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/Mooziac/Views/Components/NativeCapsuleStepToggleView.swift:30-48 | Sources/Mooziac/Views/Components/NativeCapsuleToggleView.swift:32-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 both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Components/NativeCapsuleStepToggleView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8487805250a00bd9386b7b9ec484758bd96ee27b6d449d777b6435693d09fe61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:14-32 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:129-147 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1ef2aaa5aefdf9278b608c92afe426e9be912d0a3ccf007f84c6b98c4d551c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:548-566 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:747-765 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e53d52d0519d1b13fa439198ee92c857f047849123b465bdd01fc0df551414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:710-727 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:301-318 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:579-596 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:789-806 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1038-1055 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"22387f55ee387ae16fbc9883e2464823abb7f34a860dd1245c9bc5d31fd8856d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:123-140 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:430-447 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:624-641 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:809-826 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:123\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9028c060a658e3fe994b4e0b916b120560e1b3b55e5debb4faf1e176569c955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:466-483 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:976-993 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:1048-1065 \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/Mooziac/Core/StatusItemManager/ContextMenu.swift:466\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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"605082a461d4fad534dee0d59b4e3071f54b73d7358c310b07513754f0db9d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:232-249 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:343-360 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift:232\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69e3be5ce292e8c0381461b05f0edffb6a0d5fa1c626a0c3773de659b562c0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:653-670 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:554-570 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"79177e8df4c13ef33a1b0a83c20be05fde7a73432a246761eb44e6e27889956d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:970-987 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:1004-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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:970\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc970cfd276979f1a87ddf6d0534dcc66baf9518ac4a7f8ad74728d0942a5a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): Sources/Mooziac/Managers/YTMClient.swift:896-912 | Sources/Mooziac/Managers/YTMClient.swift:1001-1017 | Sources/Mooziac/Managers/YTMClient.swift:1145-1161 \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/Mooziac/Managers/YTMClient.swift:896\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060completion\u0060 to \u0060@escaping (Result\u003CDirectStreamResult, Error\u003E) -\u003E Void\u0060 in one and \u0060@escaping (Result\u003C[LRCLine], Error\u003E) -\u003E Void\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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6aa394496f10e5472814c831702214ddcc92fffeef3f90e327deb058117167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1480-1496 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1500-1516 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1480\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"688841a5d3116d6b45ae916f79b5a3713e9b8f0426ffc0c6c0e2eda26c3edaa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:684-699 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:59-74 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:264-279 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:542-557 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:752-767 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1000-1015 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd919544a22b8a07ef8fbaa20399eefbe4ed42c70f80c7458cb6ae03a4463ad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Mooziac/Managers/PlaylistManager.swift:1031-1046 | Sources/Mooziac/Managers/PlaylistManager.swift:1081-1096 \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/Mooziac/Managers/PlaylistManager.swift:1031\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79712c7e879a5126462f6bd290b457af6b0e650619ed50cbd0909e3ea12fc57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/Mooziac/Managers/YTMClient.swift:867-881 | Sources/Mooziac/Managers/YTMClient.swift:1127-1142 \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/Mooziac/Managers/YTMClient.swift:867\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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d049feb0b07b309de6ab6cb4f056bad5cff901a36ee2eb3ea30b113aceab78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:59-74 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:122-137 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:119\u0060 calls \u0060registerForDraggedTypes\u0060 and \u0060Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:56\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"050479166bf1fc7edcdee4bd702236a9c4d8541200f6589f2060e0f439fcddd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:661-675 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:772-787 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:661\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:676\u0060 calls \u0060updateDownloadButtonState\u0060 and \u0060Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:788\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78514a3b3de6ddd464a334293df0d32f25b5ec9edbe19b66dfdcba0411ef55c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:496-510 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:692-706 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:874-888 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ad5bae24ee273859d7db307e6a8aff82dd0dc461df419f06b4df11be92dd7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/Mooziac/Managers/DiscordRPCManager.swift:463-477 | Sources/Mooziac/Managers/DiscordRPCManager.swift:493-506 \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/Mooziac/Managers/DiscordRPCManager.swift:463\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/Mooziac/Managers/DiscordRPCManager.swift"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ed1b69d2b9aedf9e45469eda1aedbdf9caa38b2882698fa7635fdb1f616ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/Mooziac/Managers/DownloadManager.swift:1112-1126 | Sources/Mooziac/Managers/DownloadManager.swift:1146-1159 \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/Mooziac/Managers/DownloadManager.swift:1146\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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f966068af4ab42786bd6eea1fba6cb69030a2398f1ae98ef14f5485d7f5a7a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:140-154 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:218-232 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:233\u0060 calls \u0060registerForDraggedTypes\u0060 and \u0060Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:156\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d64069b65572fbb72a6df139427fe4607be4bb4fbeac8d49fd2a7389433e187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:89-102 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:186-199 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:263-276 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:334-347 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a4810ecccd9f3c55ddb83790f66ec063fe90c572e6cb6adc9202e251f5870f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 2): Sources/Mooziac/Managers/LocalDatabaseManager.swift:945-953 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:454-467 \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/Mooziac/Managers/LocalDatabaseManager.swift:945\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82a0c072d8222655807c3ff3ddfa49e386ccdb66fd8b205c904da117bf50bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Mooziac/Managers/PlaylistManager.swift:1357-1370 | Sources/Mooziac/Managers/PlaylistSyncManager.swift:116-129 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Mooziac/Managers/PlaylistManager.swift:1357\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"1523110531f9ffdddecb35ab9eb7a8a89ce94f86b5379f0a85cd5c5f9e260956"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Mooziac/Views/Components/NativeCapsuleStepToggleView.swift:71-84 | Sources/Mooziac/Views/Components/NativeCapsuleToggleView.swift:97-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/Mooziac/Views/Components/NativeCapsuleStepToggleView.swift:71\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060animated\u0060 to \u0060Bool = true\u0060 in one and \u0060Bool\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/Mooziac/Views/Components/NativeCapsuleStepToggleView.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab18e4cf758c5b7bb85b2df5fa66e913efd98ed485eac704be66d8bb21435045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:478-491 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:577-590 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:478\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eaf15a5d05acfe5097ea2249d7ae6d203dd7176d09b9600a7260beb28b72def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:797-810 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:865-878 \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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"9faf11d9a2150427287c72fd989ffd67a2f3ef6e5d40ed283fb36b5e78b05a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:674-687 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:858-870 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7682deffc9614812d76a249cbb7c72bb2a80dcffb3e4362d5561839a01274ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:680-692 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:698-710 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:373-385 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:391-403 \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. 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"8adb0a437ec24d8c502ec5a73555cf038cab99131ef45453db56c0612377daad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:337-349 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:612-624 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:822-834 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:352\u0060 calls \u0060addSubview\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:628\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3f76b26b2e2b60cdc780c7a0bce5b14560fb207b973a39bf874e5869c642a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sources/Mooziac/Audio/NativeAudioPlayer.swift:156-166 | Sources/Mooziac/Audio/NativeAudioPlayer.swift:179-191 \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/Mooziac/Audio/NativeAudioPlayer.swift:179\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/Mooziac/Audio/NativeAudioPlayer.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b486b45f849de9a1367191189b8ff2136cde2198641d709a7c10baad42fe883d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:437-449 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"464f4f805c30d42ef2bfcaef0b1b3e088432951d66e1c441cd4aaedc40712edd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Sources/Mooziac/Managers/YTMClient.swift:130-140 | Sources/Mooziac/Managers/YTMClient.swift:890-901 | Sources/Mooziac/Managers/YTMClient.swift:995-1006 \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/Mooziac/Managers/YTMClient.swift:130\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060completion\u0060 to \u0060@escaping (Result\u003C[String: Any], Error\u003E) -\u003E Void\u0060 in one and \u0060@escaping (Result\u003CDirectStreamResult, Error\u003E) -\u003E Void\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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0a66fbacdf0f1ccf8fab38ff158b76952d723823da3e99a162d1b32a149803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:440-451 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:633-644 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:779-790 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:440\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"0314fec5af0b4defafaaccfb861910dc8e5bd83c4c78c5bd1b1a82bbdb84d3d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sources/Mooziac/Managers/LocalDatabaseManager.swift:232-243 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:294-303 \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/Mooziac/Managers/LocalDatabaseManager.swift:232\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4922b4645d296fc49adb5d8eabe7409087fd0b5966577ab0eb7e50808f5e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:366-377 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:616-627 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift:366\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/Mooziac/Views/Libraries/PlaylistLibraryView.swift:628\u0060 calls \u0060secondaryTextColor\u0060 and \u0060Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:378\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ddc01b108b4019ce86afc66c811e2cdf34bf403463333698a64dfd609c05b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:419-431 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:672-684 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:897-909 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1134-1146 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:419\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:434\u0060 calls \u0060NSColor\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1149\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff9fe04cad5727db8168f75550888a067adbd608b3c789ef34ceb0701ec310c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:659-669 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:482-492 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:559-569 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:581-591 \u2014 before extracting anything, compare \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:659\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"877c87e9c6c03b94db400b7c8d5d2f19fbc55e6dadd444e4f921d60a39ae1fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1176-1186 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1272-1282 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1298-1308 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1330-1340 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1176\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"db15a8eed2457e4bcc593b6ccc3c2d09ffb064623f51a52ae9efe2682fc465ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): Sources/Mooziac/Support/VisualMatrixSnapshotGenerator.swift:189-199 | Sources/Mooziac/Support/VisualMatrixSnapshotGenerator.swift:233-241 | Sources/Mooziac/Support/VisualMatrixSnapshotGenerator.swift:253-261 \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/Mooziac/Support/VisualMatrixSnapshotGenerator.swift:189\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060appearance\u0060 to \u0060appMode.appearance) let fileF = \u0022\\(themeItem.name)_Drawer_Offline_Downloads_\\(appMode.name).png\u0022 let pathF = themeDir.appendingPathComponent(fileF) if saveViewSnapshot(offlineView\u0060 in one and \u0060NSAppearance?) -\u003E (NSView\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/Mooziac/Support/VisualMatrixSnapshotGenerator.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a092e9ebccafcd124b8d0a65e74da5a8646897bf09fe25e8f41bbc69242f35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:41-51 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:156-166 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:243-253 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e157d84effa848e6e7735dfbcf8119d9a6cca864a9b8f2bac246fe6f1f1c768e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:870-880 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:976-986 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:1010-1020 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:870\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb289889e9b80491b54738b8c4f87b65671abda3095321256c6f1cecab48523c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:156-166 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:235-245 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:233\u0060 calls \u0060registerForDraggedTypes\u0060 and \u0060Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:154\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"49534e62c4966248846c3927edd9c8a8a82acedf4ada729cc80697cfedfebd0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Mooziac/Views/Libraries/SwipeToDeleteContainerView.swift:618-628 | Sources/Mooziac/Views/Libraries/SwipeToDeleteContainerView.swift:631-641 \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/Mooziac/Views/Libraries/SwipeToDeleteContainerView.swift"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b8611717784e508e855f575c1cf0294e742fdd5277a2828c75347158a27dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:217-227 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:294\u0060 calls \u0060NSColor\u0060 and \u0060Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:228\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9d77d0b2386f8b6f63750385014c70767afef19b4e90f6da68997f98550711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:803-816 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:837-850 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c7f54c9524732bf835579e7b9e6b8f96708a9a0259e1f3866b05763986eeff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:352-367 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:626-641 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:836-851 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1080-1095 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1096\u0060 calls \u0060constraint\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:369\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2bef3d72dc997d2860057ec0442509884d829ea77900cc36be08969046b92f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Managers/DownloadManager.swift:486-495 | Sources/Mooziac/Managers/DownloadManager.swift:510-519 \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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc02f0060cb39e314ca6c89f3021bf89863b2b8af806da037d2f9858aa1a8c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/Mooziac/Managers/LocalDatabaseManager.swift:602-611 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:647-655 \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/Mooziac/Managers/LocalDatabaseManager.swift:602\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"640a22bd27e5dffd328802280e3708856717f11b097d6ca45b23bf2fd452b31b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Managers/PlaylistManager.swift:384-393 | Sources/Mooziac/Managers/PlaylistManager.swift:421-430 \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/Mooziac/Managers/PlaylistManager.swift:384\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fb11b3bf7559988319d5202e21b81dd9ae87e634930a3200094140fb0bf40b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Managers/YTMClient.swift:625-634 | Sources/Mooziac/Managers/YTMClient.swift:829-838 \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/Mooziac/Managers/YTMClient.swift:625\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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f031553d0a12b451125e3fcc5a86cf2fb8072667e301ccb2b1aec73a3119dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Views/Components/HeaderView.swift:85-94 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:666-675 \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/Mooziac/Views/Components/HeaderView.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe32f061a3b27a83c91cf2a1023ee5e5ffa4010b6319f184a5a39fca03dab59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:277-286 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:294-303 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift:277\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb4f1ec1a56eb30d3b3ea3ff4d99d44dd25994834e98f744184e59d9f2ef8ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:436-445 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1396-1405 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift:436\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3506cd2bf139d28a261d095fe5bf135bd649a0f0e45cbcd4962e53c459c78dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:157-187 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:419-449 \u2014 before extracting anything, compare \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:157\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:450\u0060 calls \u0060firstIndex\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:188\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"504e4899e343e6966ddce1fab1862c73232ad28d72dc4ed985b16e2ae60ca692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1274-1283 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:614-623 \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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a7f9f0ed00323a19c7e41b9bc3712090ff2ec347730133aef7398f61c1800c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift:184-193 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift:214-223 \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/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b4d91289617228a7be15f33656c58125f967526f3003277143376eedfee86c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift:249-258 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift:335-344 \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/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift:248\u0060 calls \u0060controlButtonTint\u0060 and \u0060Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift:333\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/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b562822bdde35040d1d566e384a34e4b24cce3c7d98fa527830bd1f5c50d6e0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift:38-47 | Sources/Mooziac/YouTube/Views/FloatingHUDWindowController.swift:11-20 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift:38\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/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dc906e4a27bd398fca4fdb0a83b47fef3e2ecf62346742c3649405461e2f69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/YouTube/Core/MainVideoWindowController.swift:1326-1335 | Sources/Mooziac/YouTube/Core/MainVideoWindowController.swift:1342-1351 \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/Mooziac/YouTube/Core/MainVideoWindowController.swift"},"region":{"startLine":1326}}}],"partialFingerprints":{"codehealthFindingId/v1":"4665681030ef21cedface7c2d94694e2125ee9d1a5fddc624443477d6e089b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:709-717 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:83-91 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:300-308 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:578-586 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:788-796 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1037-1045 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a635337ee4d9f5c37afb77ba351a882b9bb95ec56f28c3883f13739af12f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/Mooziac/Managers/DownloadManager.swift:96-104 | Sources/Mooziac/Managers/LocalLibraryManager.swift:41-49 | Sources/Mooziac/Managers/LocalLibraryManager.swift:52-60 | Sources/Mooziac/Managers/LocalLibraryManager.swift:85-93 \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/Mooziac/Managers/DownloadManager.swift:96\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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d4bd7f8c0b6f5eef750b988892abf1f637dffafdde517b8edb033a78422ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:436-444 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:959-967 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1396-1404 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift:436\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30f597cd9df5fae19de36465443d4303b723a6192a58311857db2c3583e6655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:776-785 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:151-160 | Sources/Mooziac/Views/Libraries/SwipeToDeleteContainerView.swift:362-370 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"60860875e3dfad06cbdd9387f6c255668cfa7093d7d96b2ab6838525ae9f3653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Mooziac/Managers/LyricsManager.swift:428-436 | Sources/Mooziac/Managers/LyricsManager.swift:640-648 \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/Mooziac/Managers/LyricsManager.swift:428\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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f139952657b20672ebae0c488fc90fad096d9139c1644774cb521eeb9088317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20139 lines \u00D7 3): Sources/Mooziac/Managers/LyricsManager.swift:506-514 | Sources/Mooziac/Managers/LyricsManager.swift:546-554 | Sources/Mooziac/Managers/LyricsManager.swift:707-708 \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/Mooziac/Managers/LyricsManager.swift:506\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. 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/Mooziac/Managers/LyricsManager.swift:514\u0060 calls \u0060jsonObject\u0060 and \u0060Sources/Mooziac/Managers/LyricsManager.swift:708\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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fc0e9cad39be52998e7c7f1d398dcb89493529db1c2f90dcdb5fd3784637af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Mooziac/Managers/PlaylistManager.swift:331-339 | Sources/Mooziac/Managers/PlaylistManager.swift:360-368 \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/Mooziac/Managers/PlaylistManager.swift:331\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e62f854e5e3422dc977ac12b8057a455cfb68a6e8a0904ed89a25f272d3594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Mooziac/Managers/PlaylistManager.swift:1136-1144 | Sources/Mooziac/Managers/PlaylistManager.swift:1174-1182 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Mooziac/Managers/PlaylistManager.swift:1173\u0060 calls \u0060playPreviousTrackInPlaylist\u0060 and \u0060Sources/Mooziac/Managers/PlaylistManager.swift:1135\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09a7763478adb87d52f42198d655101b6d6185efe12dad02bfcf189bc699d96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Mooziac/Managers/YTMClient.swift:975-983 | Sources/Mooziac/Managers/YTMClient.swift:1108-1116 \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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9837ade534de21c4444e691aa1031ca7bfaae05cf47f4891a353ef4943afa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/Mooziac/Views/Components/GlassSearchField.swift:203-210 | Sources/Mooziac/Views/Components/GlassSearchField.swift:214-222 \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/Mooziac/Views/Components/GlassSearchField.swift:214\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/Mooziac/Views/Components/GlassSearchField.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ccb85072c640ad571a2bead7530d3d960a34b14ce530f271d82d72f084b228"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Mooziac/Views/Components/ReactiveIconButton.swift:106-114 | Sources/Mooziac/Views/Components/ReactiveIconButton.swift:216-224 \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/Mooziac/Views/Components/ReactiveIconButton.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58fdf001c35e90b31bdc3e57fa765060d73749399f04727fba5106dc8a2ffc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:252-260 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:374-382 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ef35417984641e7c40493279a674a5721ac05c9726df347b5ffcf74c2489de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:412-420 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:890-898 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:412\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 \u0060item\u0060 to \u0060PlaylistItemRecord\u0060 in one and \u0060HistoryRecord\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7efb8e2525ff100d9d6b1c37db9821df9db9ca8733ce20c26ebaabd423444b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift:292-299 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift:301-309 \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/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift:301\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/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b715765a89059f0f8af2c3c419e37dfd6ca3f3157d904489bf110c419fa793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:846-854 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:950-958 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:846\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9acfb8610ae6e2ef4710ce56d7d49a6cf885bb6e0b5a22eab3467da3bc1a302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 4): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:167-170 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:474-477 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:662-670 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:847-854 \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. 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:670\u0060 calls \u0060rowPlayIconColor\u0060 and \u0060Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:170\u0060 does not \u2014 after which the two agree again for 5 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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf793b7078241581b8b9ee8de6428eda71a480786adaac59bd34843b56855bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:979-986 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:70-77 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:153-160 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:219-226 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:286-293 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift:979\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c72a3ef26ab3026704208901972083ddc952b0a43826f8c274ad584af8f022f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:573-582 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:591-600 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:612-621 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:465-474 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:483-492 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:573\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"1525b64eb6a097fee11cd95470b9e3401819deb7a8462383ba8f0da4834cc518"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:788-798 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:801-811 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:163-173 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:176-186 \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. 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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bba346472c806caa9d4d291ec210442ffabb840be693a938a778979a706231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:472-479 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:703-710 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:932-939 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1167-1174 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:930\u0060 calls \u0060URL\u0060, \u0060LocalTrack\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:701\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb7fcfd385083d19058d7131c83e28ed74de3663d6a6688de8580030d6f9b7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:14-21 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:129-136 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:217-224 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:283-290 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b130468cb01ae3079a34bdfd00bee5e7dc648d0a9f624ed315eb3fcf5e0e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:215-222 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:552-559 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:751-758 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:890-897 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:215\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5f78628bb942ee86264eee063b310703ab3fdcb4c85fa7bcc49e18121d8eea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): Sources/Mooziac/Managers/LocalDatabaseManager.swift:504-517 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:820-831 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:853-864 \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/Mooziac/Managers/LocalDatabaseManager.swift:504\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08bcfad5e657679245ec7db25e9c8eba4b593d6a7db9a2459401f8da387cfee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:140-147 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:217-224 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:288-295 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:140\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d9becd0699bbcafe3de332a9a6c27b9641d5b347afcee38411a4e40fffecf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:161-168 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:423-430 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:122-129 \u2014 before extracting anything, compare \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:161\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:120\u0060 calls \u0060SymbolConfiguration\u0060, \u0060NSImage\u0060, \u0060withSymbolConfiguration\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:160\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc4c0b3f0998c9adb5fa808d6e158f1561f754c9c9ac6f6b053b0f843a9d185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:326-333 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:402-409 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:516-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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c7e1aa25b963d7d27d6f032216054d30e65b42095b77e280bca63298437c46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:27-34 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:99-106 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:182-189 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:27\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d0c079592dac06239d92e7be2ab8e9b83d03c7a8a607366316e2a65863a9ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:143-150 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:209-216 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:276-283 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:143\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f68391266ce52618f4c4f75dbd68b552d4c03c47951430792adfcd0f49a7303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:319-326 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:413-420 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:502-509 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:319\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f291907d4ad46e642e4fe173f88fd7714f5a3cb9fedff36c2d0eb0c2174d2d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 3): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1040-1053 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1059-1067 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1079-1087 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1040\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1090\u0060 calls \u0060constraint\u0060 and \u0060Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1056\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e06c5bd95238ecc2b7f82b54ce6c9e3b9e1fc993e59b71d16ad5e6b86206c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:420-427 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1154-1161 \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/Mooziac/Core/StatusItemManager/ContextMenu.swift:420\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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc6f8b9ee41fa674b85eec1786a4ccd688014674770906f14e72ab597cfa217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Managers/LocalDatabaseManager.swift:1124-1131 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1327-1334 \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/Mooziac/Managers/LocalDatabaseManager.swift:1124\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/Mooziac/Managers/LocalDatabaseManager.swift:1133\u0060 calls \u0060sqlite3_bind_int\u0060, \u0060Int32\u0060 and \u0060Sources/Mooziac/Managers/LocalDatabaseManager.swift:1336\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca81a841621bdc1b7b5517177a4ec7a6be08097fbcbc76390d47bdde927aaab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Mooziac/Managers/PlaylistManager.swift:1260-1270 | Sources/Mooziac/Managers/PlaylistManager.swift:1300-1310 \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/Mooziac/Managers/PlaylistManager.swift:1260\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e560ff2324a3d74ec627ba24bc867f72106bd87dd0d2086b8ddd1a435fb1fd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Managers/YTMClient.swift:208-215 | Sources/Mooziac/Managers/YTMClient.swift:236-243 \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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f14c1310d26883ba3b97a6f17fccd3e5274fb9ed68393b33ec8db4e0a0377b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:514-521 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:549-556 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff05608112c49f84b4b23adcc6d9a4de8a23d6c8b5cc902e550a63a9afd432a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:98-105 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:180-187 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:98\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"17401e1acb5c4fa11cf9e1ad740f6d3d71c3e35a1370913f6b2c3e0dce6b78ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:98-105 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:284-291 \u2014 before extracting anything, compare \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:98\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:292\u0060 calls \u0060firstIndex\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:106\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"923cd4d902ca1588b74b5f96e9a3383aa4343d164342e5d42eecf7c8d5d293b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:388-395 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.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 both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:388\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc881b8eef073c5f3c9e20a460feb91164d07ac07d5751454fed4624f65b2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:401-408 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:82-89 \u2014 before extracting anything, compare \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:401\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a388798b2d21adad7240f9f28bb449877232ab2ebfc9119647d2c4341cdea34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:990-997 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:1025-1032 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:990\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"122a7cfeb000aedc006e2f1a783fb3040424d1d1a88e390c5c49705e7e378ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:526-534 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:546-554 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:526\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f71266fabb81ce01b5f21cda3ef35f463bc64713981b895b709008f5dde59c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 3): Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:263-265 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:366-373 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:533-540 \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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:366\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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d30b7966c51f9dfb576e190aa29df524b64e5491f4b154ebf1f577b29a1333e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:375-382 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:434-441 \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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:375\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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:373\u0060 calls \u0060sqlite3_bind_text\u0060 and \u0060Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:433\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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67faecace098d64de53a7c3c303fbbdcfa0fb58e5a9f4ca65a8098e347c56b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 11): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:81-87 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:149-155 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:226-232 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:297-303 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:335-341 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:411-417 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:525-531 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:36-42 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:108-114 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:191-197 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:257-263 \u2014 before extracting anything, compare \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:81\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0793ff719e50b954708f553c7c034cd870b1aac9e9dc28b954e415a8bb48fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): Sources/Mooziac/Managers/LocalDatabaseManager.swift:781-787 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:809-815 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1002-1008 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1156-1162 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1241-1247 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1266-1272 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1296-1302 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1307-1313 \u2014 all 8 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Mooziac/Managers/LocalDatabaseManager.swift:790\u0060 calls \u0060isLikedSong\u0060 and \u0060Sources/Mooziac/Managers/LocalDatabaseManager.swift:1316\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"c664746fca6e02ed6ff4cf1433a42c32f532119cf11006ffc779d80fb5a04e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 5): Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift:503-509 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:1022-1027 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:863-869 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:968-974 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:1002-1008 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8445f6734a82bc3ffa101c1265cb9c57d0ea3928d42d007e8026cbba1cc000b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:949-955 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:44-50 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:116-122 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:199-205 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:265-271 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"333835fae2d9f41d6b19bb1d2084388a317f2305a8ecc0fd69fe31ede3a67ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 4): Sources/Mooziac/Managers/LocalDatabaseManager.swift:506-512 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:821-826 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:854-859 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:396-401 \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/Mooziac/Managers/LocalDatabaseManager.swift:506\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"03af7d45a1047f28e1c7d3e2287db98d3374095298f83d720475a5089945d0d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:337-343 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:612-618 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:822-828 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1068-1074 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"290b1ac4bd584ca1fdc182f5ef4be0d6b50f2822af5b1517a77b077147f8a008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:46-52 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:161-167 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:248-254 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift:316-322 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e61ba66855e6f68c7b5823848aa589a3a376bb45944273c2935f7702b1b7cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): Sources/Mooziac/Input/KeyboardCommandHandler.swift:86-91 | Sources/Mooziac/Views/Components/WaveformProgressView.swift:348-353 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:837-843 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Input/KeyboardCommandHandler.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6745eb3668e5c050f75ac817da5a3785f54f2ef5425a2d020ccc2383d420603e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:172-178 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:434-440 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:135-141 \u2014 before extracting anything, compare \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:172\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:133\u0060 calls \u0060SymbolConfiguration\u0060, \u0060NSImage\u0060, \u0060withSymbolConfiguration\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:171\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"869f9ca274a6927b18d1ed62f3c340f7c74193c727060d19e3100bf9ff77492a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:380-386 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:467-473 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:549-555 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:380\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8440dd6ccd4eaec788bf547c153e0ca0ea121ae872a7ef07f086039ff47339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/Mooziac/Core/NowPlayingManager/ObserverBridge.swift:931-941 | Sources/Mooziac/Core/NowPlayingManager/ObserverBridge.swift:957-968 \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/Mooziac/Core/NowPlayingManager/ObserverBridge.swift:957\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/Mooziac/Core/NowPlayingManager/ObserverBridge.swift"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c41282b431ab9eed1f229cec6988ff3fb6fcd36f0747b3d85024321a14b1016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Input/KeyboardCommandHandler.swift:59-65 | Sources/Mooziac/Input/KeyboardCommandHandler.swift:68-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. 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/Mooziac/Input/KeyboardCommandHandler.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6d1ace8bd5e48c8a7caf1b42491eadb06294bbe640244f4f7fd6c18ab59e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Mooziac/Managers/LocalDatabaseManager.swift:1094-1109 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1131-1146 \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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e711596b1283077c1c632d0b63720f2bd5a1e6fade581155415e40734a900ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Managers/LyricsManager.swift:677-683 | Sources/Mooziac/Managers/LyricsManager.swift:700-706 \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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cf0cddbf847d208156f8b6db2e22159f81d007b4df2be574426db3b27873ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Managers/SyncedLyricsParser.swift:134-140 | Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift:249-255 \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/Mooziac/Managers/SyncedLyricsParser.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0171d7572c787ca6ab68e0b2d3d6f0a089eb0115dff2553db269fa7fd3f7d4ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:970-976 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:61-67 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61648761ec90efc7349face3be380afd2dc178f6fc423363e76542aec35cb61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:351-357 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:625-631 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:351\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb7b8738f8a59e70a3dde0679784fc3336401fc465c8d9ce801665517455c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:378-384 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:647-653 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f3df8276d8c424fe88c8c374ffcf6b82a3d67bc3c0362c042590a965a924f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:234-253 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:343-362 \u2014 before extracting anything, compare \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:234\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:363\u0060 calls \u0060firstIndex\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:254\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b9141e950cdf86825360c6aa1944aa92cd836031041cfe3c764a09dd6ee22f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:305-311 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:533-539 \u2014 before extracting anything, compare \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:305\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1ed03a8c50c51485e957173dba368eea8bbfa018e88a6e6ddc727680aa4011"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:539-545 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:352-358 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb7450860c026d58273034d06b52df45d1f2ebd0049afe78c1df73645cfaa5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:775-782 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:435-441 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:775\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"781de559c392e764dedf13cc119ef6ea36a25e51d31cbd24cd9543d8f585f1ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:773-779 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:785-792 \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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:785\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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b70803682fe8cccd5358b744df2b012ff56af853bace57e3cbcb9a51a362a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift:73-79 | Sources/Mooziac/YouTube/Views/FloatingHUDWindowController.swift:35-41 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5f0ac43dc51f5ed0a93f8fa8e1e78350ca84887ce45e85b08b92f330517a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift:93-99 | Sources/Mooziac/YouTube/Views/FloatingHUDWindowController.swift:58-64 \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/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fc25ea666e9b5a9b725aa541d399a871d7778b88731b6619af3c23c825016b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:248-254 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:486-492 \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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:257\u0060 calls \u0060history\u0060, \u0060VALUES\u0060 and \u0060Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:495\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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"703506dcb368ec939319c1232e04452a848ab542c676f75110261c3db32119a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:328-333 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:404-409 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:518-523 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:29-34 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:101-106 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:184-189 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:328\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:27\u0060 calls \u0060SymbolConfiguration\u0060, \u0060NSImage\u0060, \u0060withSymbolConfiguration\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:327\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a696829462ac85acec6309ef14e0e4c8badb408a8e1ba6d458e1125fff0384e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:131-136 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:143-148 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:209-214 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:276-281 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:131\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d797c1746a4ec3da470ece04059e614c777bd5dce9ff65f1473725fcde3b868d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:144-152 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:451-459 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:645-653 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:830-838 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:144\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0cd12d2ac3fa3a00ab034fcb6829525b3c584040a0d2c68bae1f586d587890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Mooziac/Managers/LocalDatabaseManager.swift:711-716 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:792-797 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:970-975 \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/Mooziac/Managers/LocalDatabaseManager.swift:711\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"77dbdaa3bfc10a96ba91dca8be204a9c117f51bd0bf15753656a7864654756f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Mooziac/Support/AppExtensions.swift:128-133 | Sources/Mooziac/Support/AppExtensions.swift:142-147 | Sources/Mooziac/Views/Components/CircularProgressDownloadButton.swift:101-106 \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/Mooziac/Support/AppExtensions.swift:128\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/Mooziac/Support/AppExtensions.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae623b0bd16f16257aa776581c4547df0fff6f8aba071d49265c6e1a2889640"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:382-387 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:651-656 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1107-1112 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:382\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1104\u0060 calls \u0060constraint\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:379\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"839366929bed85c4b438e20d42143912bf3256e47ee09f7a748ddbe54bbd6732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:419-424 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:437-442 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:454-459 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:419\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c2ed0f59e47f76d802194a511e8f1f2162caccd16ccbfc1fcb281f92007173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Support/VisualMatrixSnapshotGenerator.swift:152-158 | Sources/Mooziac/Support/VisualMatrixSnapshotGenerator.swift:162-168 \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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060to\u0060 to \u0060pathE\u0060 in one and \u0060pathF\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/Mooziac/Support/VisualMatrixSnapshotGenerator.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23b54795894758dfa1e09e8e8b5bbc0e84048247013e94ef75267afd9b3b4e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineOverlayView.swift:96-103 | Sources/Mooziac/Views/Libraries/OfflineOverlayView.swift:109-116 \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/Mooziac/Views/Libraries/OfflineOverlayView.swift:96\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/Mooziac/Views/Libraries/OfflineOverlayView.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bce43f914ff2d1234fa9fa356b6ecf17f11619faa5ef681dec3538dfc559065"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:316-330 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:333-347 \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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:316\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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"184e85eacb765f8431c37ea2add37570ffbeb6694971e0af8da06a4639453736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1264-1269 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:1290-1295 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"7627b8056d384a096e1c25dfb2e38721214cb4f71f6b99750ad47c1ac743e198"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:9-14 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift:810-815 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:9\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift:808\u0060 calls \u0060showAddToPlaylistSubView\u0060 and \u0060Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:7\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad049c32b80d5391ed7d5e9d06b1ffd3d26a437dad25752c8eecddd809f7c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:123-129 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift:754-760 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:123\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift:761\u0060 calls \u0060addSubview\u0060, \u0060setupGestureMappingSubView\u0060 and \u0060Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:131\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b47a93f3048d43ac24aee4a6cf3c7878b3390bf1a542b9fa33aa59b3769170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:154-165 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:655-666 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10591b9d1936302de86528700f98f23068c59d12b20499202aed21d3c93de59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:461-466 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:840-845 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:461\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b2bb56101e27394dcac62188d01a599e030df0b7bb430c0244068053909a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): Sources/Mooziac/Views/Windows/RatingPromptWindowController.swift:80-89 | Sources/Mooziac/Views/Windows/RatingPromptWindowController.swift:118-123 | Sources/Mooziac/Views/Windows/RatingPromptWindowController.swift:156-159 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Mooziac/Views/Windows/RatingPromptWindowController.swift:92\u0060 calls \u0060NSColor\u0060 and \u0060Sources/Mooziac/Views/Windows/RatingPromptWindowController.swift:162\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/Mooziac/Views/Windows/RatingPromptWindowController.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cefd90a07aaeb1e48fdf7099e8324ae1b471e496de7cb2ca6be772d507495a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:332-337 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:575-580 \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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:332\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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ffc3a8f81ed52485e4df4a5bacc4b90cdec6b020e7a59268a045bfee6bd606"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 25): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:923-927 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:930-934 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:970-974 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:979-983 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:11-15 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:18-22 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:25-29 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:61-65 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:70-74 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:83-87 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:90-94 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:97-101 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:131-135 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:143-147 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:153-157 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:166-170 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:173-177 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:180-184 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:209-213 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:219-223 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:232-236 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:239-243 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:246-250 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:276-280 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:286-290 \u2014 there are 25 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 25 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/Mooziac/Views/Libraries/OfflineLibraryView.swift:976\u0060 calls \u0060addItem\u0060, \u0060separator\u0060 and \u0060Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:929\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"1524d533e2b67ca7b9bb695b606249727f00fe03c026dca8109e8947503a9996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): Sources/Mooziac/Managers/LocalDatabaseManager.swift:779-783 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:807-811 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:986-990 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1000-1004 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1154-1158 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1239-1243 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1251-1255 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1264-1268 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1440-1444 \u2014 all 9 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/Mooziac/Managers/LocalDatabaseManager.swift:779\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/Mooziac/Managers/LocalDatabaseManager.swift:992\u0060 calls \u0060sqlite3_bind_double\u0060, \u0060Date\u0060, \u0060sqlite3_bind_text\u0060 and \u0060Sources/Mooziac/Managers/LocalDatabaseManager.swift:785\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ce847271236df2f268ded1ce3e964bbea5ab2f6ac366d5495e16b8d93dfea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): Sources/Mooziac/Managers/LocalDatabaseManager.swift:507-512 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:822-826 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:855-859 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:946-950 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:397-401 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:460-464 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Mooziac/Managers/LocalDatabaseManager.swift:507\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/Mooziac/Managers/LocalDatabaseManager.swift:513\u0060 calls \u0060String\u0060, \u0060sqlite3_column_text\u0060 and \u0060Sources/Mooziac/Managers/LocalDatabaseManager.swift:951\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a908a736a2b181cd56aea3c846d9d6f2fea0fe30d1a83e840b1d8c56719131a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:570-576 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:588-594 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:462-468 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:480-486 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:570\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6dfb5feff69a20c4477eaaafd6ee7a0a08a02358743e55015711ba26222b1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): Sources/Mooziac/Managers/LocalDatabaseManager.swift:199-203 | Sources/Mooziac/Managers/LocalLibraryManager.swift:51-55 | Sources/Mooziac/Managers/LocalLibraryManager.swift:84-88 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:124-126 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Mooziac/Managers/LocalDatabaseManager.swift:199\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c2392a8451ed458975eaa18701774b81acaf016feec02c70fb60af55fe81a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Mooziac/Managers/YTMClient.swift:569-573 | Sources/Mooziac/Managers/YTMClient.swift:627-631 | Sources/Mooziac/Managers/YTMClient.swift:831-835 \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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b94fb5f544599b2f03c25121039f5f687d65a1c7fecd6b1faec09e1af22d64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Mooziac/Managers/YTMClient.swift:624-628 | Sources/Mooziac/Managers/YTMClient.swift:819-823 | Sources/Mooziac/Managers/YTMClient.swift:828-832 \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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc815e1dc540215b8a07fa41e8bdbd2ff5d45cc1cabc1e7e4a95ca6bab19b373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:953-957 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:972-976 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:63-67 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:951\u0060 calls \u0060addItem\u0060 and \u0060Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:970\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab9d0d6ee61a6349f0e354ed4957ff144c6fe181ec8a7a992c00c9c71c353a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:400-405 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:81-86 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1171-1176 \u2014 before extracting anything, compare \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b736a82a7a2a7b9f6b4b9fd9bd031da4992f2d442b834f3c578e5e6af20252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): Sources/Mooziac/Managers/LyricsManager.swift:479-483 | Sources/Mooziac/Managers/LyricsManager.swift:523-527 | Sources/Mooziac/Managers/LyricsManager.swift:562-565 \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/Mooziac/Managers/LyricsManager.swift:479\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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e735d67d98820f719f7ece8ac871b4bfdd6ce3dee90f352e921e3ddbf813d82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 3): Sources/Mooziac/Managers/LyricsManager.swift:518-522 | Sources/Mooziac/Managers/LyricsManager.swift:557-561 | Sources/Mooziac/Managers/LyricsManager.swift:708-709 \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/Mooziac/Managers/LyricsManager.swift:518\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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"32112b773b6fdb8c4a1c2bef09b1da3f09cc65b4cda5d0e6f7bd3e0056bf87d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Managers/PlaylistManager.swift:820-824 | Sources/Mooziac/Managers/PlaylistManager.swift:831-835 \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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a25876c9ec5cf9f7f4db48e8c7f0aa7c168cadc6a54657db8048433b3c55f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Managers/YTMClient.swift:552-556 | Sources/Mooziac/Managers/YTMClient.swift:559-563 \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/Mooziac/Managers/YTMClient.swift"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d9e4f7b618b372ab7fa6c17e7bb35e2673127f7cfe87bdad05c8eda478678a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Views/Components/NativeCapsuleToggleView.swift:60-66 | Sources/Mooziac/Views/Components/NativeCapsuleToggleView.swift:86-90 \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/Mooziac/Views/Components/NativeCapsuleToggleView.swift:60\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/Mooziac/Views/Components/NativeCapsuleToggleView.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4debe5bcb0d8ad6f228515b15915e5821b3392a162ac7623f3ef09341999cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Views/Components/WaveformProgressView.swift:260-264 | Sources/Mooziac/Views/Components/WaveformProgressView.swift:327-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Components/WaveformProgressView.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dc0b0b2c55d37e54251b78bcbb57dab03aada55d2813646bc5347be2eb31cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 6): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:433-437 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:439-441 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:686-690 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:692-694 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:912-915 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:1148-1151 \u2014 all 6 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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:433\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:910\u0060 calls \u0060NSColor\u0060 and \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:431\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2da3703e28afea71a00e86e0ded5f0300a45990bfdbb9dc801589927773282f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:515-520 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:828-833 \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/Mooziac/Views/Libraries/PlaylistLibraryView.swift:515\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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3747c659f3f46b7c64531fff46d283f6d6a5c68847753c72092df8da949180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1107-1112 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.swift:828-833 \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/Mooziac/Views/Libraries/PlaylistLibraryView.swift:1107\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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7064a551bcbb8375b143f76ccbceec11cb39b38b7d27491a50568d5b3ba1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 3): Sources/Mooziac/Managers/DownloadManager.swift:265-266 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:1172-1176 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:723-727 \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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift:1172\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 \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. 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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"e320c94dbdc03a427dd9ca75b2f2ad5125328ddc076ce898b5a4018637f1d905"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:6-10 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift:800-804 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:6\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea77ebfb27852d8e6d28c6f4522e62dd25852d4122e7a9bc6e8aea304af6285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:103-107 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:115-119 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift:103\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BGestures.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a61e06fcd4203601e86001e7d33f2374dad6e5693d5e8037b053f494b19155c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Web/YTMWebView.swift:1023-1027 | Sources/Mooziac/Web/YTMWebView.swift:1131-1135 \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/Mooziac/Web/YTMWebView.swift:1023\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/Mooziac/Web/YTMWebView.swift"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0e8b922f6867d7b2dceea34430a3a504e364e6b35596a6b7a386646b1235a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:429-433 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:517-523 \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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:429\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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e93f952211f44ca84aac41dbbdfead208004d6a7aeb2e70021b7b2128ccbd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:484-488 | Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:609-613 \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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:484\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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:615\u0060 calls \u0060sqlite3_bind_text\u0060 and \u0060Sources/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift:490\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/Mooziac/YouTube/Database/YouTubeDatabaseManager.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b70259942a51dbef13cae2d4b3afcad8b3aaa450f176576384ad322a341510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Mooziac/Audio/AppVolumeManager.swift:42-47 | Sources/Mooziac/Audio/EdgeVolumeEngine.swift:10-15 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Audio/AppVolumeManager.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfcc634a0300aeb32d581ce5cf093225df5b3924fea5ddc55e8f8ac8fb6e487"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Mooziac/Views/Components/ReactiveIconButton.swift:54-67 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.swift:321-329 \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/Mooziac/Views/Components/ReactiveIconButton.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd059650f0653876dbe66b2e2b96c9a76040d7c665b5a4029956ea518959d8e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:891-901 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:8-18 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"97620d909516a5a56e056a8f6ebd881039353fb95687c5e504669aebe965d8cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:37-43 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:97-103 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9697d4e83420269ed79a51b3a225fdcf35b13b8c1593f6302a5efc31def411a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:45-51 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:105-111 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16d9abe774c058155ea886450589e37e4211a3355831737dad52324152e22cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Mooziac/Core/NowPlayingManager/Queue.swift:184-189 | Sources/Mooziac/Core/NowPlayingManager/Queue.swift:407-412 \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/Mooziac/Core/NowPlayingManager/Queue.swift:184\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/Mooziac/Core/NowPlayingManager/Queue.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"400733933f5f8d9edad4be20907c8562b4675067fc7b6b3b465e6a5159145391"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Managers/LocalDatabaseManager.swift:920-924 | Sources/Mooziac/Managers/LocalDatabaseManager.swift:1034-1038 \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/Mooziac/Managers/LocalDatabaseManager.swift:920\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/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"0641576b938b7f41826914986e0f2c6b855156f44342c35b76d4336dc68e1d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Mooziac/Managers/PlaylistManager.swift:572-576 | Sources/Mooziac/Managers/PlaylistManager.swift:590-594 | Sources/Mooziac/Managers/PlaylistManager.swift:605-609 | Sources/Mooziac/Managers/PlaylistManager.swift:624-628 \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/Mooziac/Managers/PlaylistManager.swift:572\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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5177839f0767d8ce00adc6915a819d9fd5a2af447d63856a732c6302bbbb157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Mooziac/Support/AppExtensions.swift:123-127 | Sources/Mooziac/Support/AppExtensions.swift:137-141 | Sources/Mooziac/Support/AppExtensions.swift:154-158 \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/Mooziac/Support/AppExtensions.swift:123\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Support/AppExtensions.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e19b6135f09a8461a7526dfd050b4a7d23e5a3768adb4ccaeaef3f898d6483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:568-572 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift:34-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:568\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"313b83949e2c58d39dfea223cbe921714ac9d7eb96ebc784834d1ffc161200ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:850-854 | Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift:856-860 \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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56c6ee9781d962bb7d10555140db99ba2f01e6b42a52f3645f73c2987e0e8b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:444-448 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:697-701 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift:444\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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"783f101588a3874d4ce214c831a072b8fe3698c573dbfb59c4b4a924a098c3bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:454-461 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift:474-481 \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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ff388fde7fafb4075dd17e22f7c644437c51547b89962ab95c7ab74873d822"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:548-557 | Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift:576-585 \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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb5ef8dba1aeecbdfb034c6f43409dff33c50aa3f29c66ce1fd5721ad50a8cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:560-565 | Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift:605-610 \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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"efaeb358c80898f28c9ede50a6860652b2dcd3237597c72f34c5b2f2b2a73137"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainVideoWindowController (LCOM4 24): MainVideoWindowController\u0027s methods fall into 24 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 24 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/Mooziac/YouTube/Core/MainVideoWindowController.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b983db47f48b9562a8e3aaee46b547c526877720263d6c05787d297be983937"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LocalDatabaseManager (LCOM4 19): LocalDatabaseManager\u0027s methods fall into 19 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 19 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/LocalDatabaseManager.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0fb25dbb6d203b93901fbe3f47f10cfca6a74e4041bf371ec059dfc2222d4c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: StatusItemManager (LCOM4 17): StatusItemManager\u0027s methods fall into 17 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 17 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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8e64b0f1287560af9e41c1c359292408eef825fc262a6594fea1e30c0130fb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PlaylistLibraryView (LCOM4 17): PlaylistLibraryView\u0027s methods fall into 17 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 17 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/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"fead899481c37a9d0eb0e2fe2ad1a7fcbee3e4b6561945c1c25a366bd2a88dd0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DynamicIslandPlayerView (LCOM4 13): DynamicIslandPlayerView\u0027s methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"524262fb864894fd0e7c739c0b8967e52707c3282c02f151dc8fcee3f38ca44c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MainViewController (LCOM4 11): MainViewController\u0027s methods fall into 11 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 11 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/Mooziac/Core/MainViewController.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff56b8c835b0330c55d9e0afb4e9bfc2b5b92ca995344460f9a4491caf2b56a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ReactiveIconButton (LCOM4 10): ReactiveIconButton\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/Mooziac/Views/Components/ReactiveIconButton.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdfa42aa207910f4d552e7823af7dba867bf18d895e488c162848437de0c35e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DisplayManager (LCOM4 6): DisplayManager\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Core/DisplayManager.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f35d4ab302946c059ea71b26ec7ff0ff19c837ae4e4992cd6c43939dc903e9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HistoryManager (LCOM4 6): HistoryManager\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/HistoryManager.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1595066bd030ca134434d8a9120ffb814cd08f7f09e11326e4a9af3d423ac6a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OfflineTableView (LCOM4 5): OfflineTableView\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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cf0cecb3fe31175e3bc91077fcb490b1d36938e3d796119f97fbe4b5f50145"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GestureMappingManager (LCOM4 4): GestureMappingManager\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/Mooziac/Input/GestureMappingManager.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"4272d87a3e0b9bbd7499dd650dfff17aa083eb13cb4d9d7e364b5a65b53e218d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LikedSongsManager (LCOM4 4): LikedSongsManager\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/Mooziac/Managers/LikedSongsManager.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ef474332a9060f8d0da8c16374751024993b2028fba5fb05c0faacfd50cb26"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MenuCapsuleToggleRowView (LCOM4 4): MenuCapsuleToggleRowView\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/Mooziac/Core/StatusItemManager/ContextMenu.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"756616bdcc3c2ed94403a9a2dbc4cc9f7dca2eb576249740696111f982088288"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RatingPromptWindowController (LCOM4 4): RatingPromptWindowController\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/Mooziac/Views/Windows/RatingPromptWindowController.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e1546150bebbcaa6a988922239a4bcec9c8980a317266281fc2be513bd7cab"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VideoPlayerCoordinator (LCOM4 4): VideoPlayerCoordinator\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/Mooziac/YouTube/Core/VideoPlayerCoordinator.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a148b09523a93634f0eeaf56adab5979a89c9d5f53ab7bdedf5a7aecf9df6aac"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MooziacExtensionTab (LCOM4 4): MooziacExtensionTab\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/Mooziac/YouTube/Extensions/WebExtensionHost.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdb9a1cadc46a236579dadb02965e91c69eac6fb496f590d885eff8af325ba8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MooziacExtensionWindow (LCOM4 4): MooziacExtensionWindow\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/Mooziac/YouTube/Extensions/WebExtensionHost.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"447f23fbdddbeec4ba7ea245f1acf6a3ffd883702b14c2dba272854fd40d1aae"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WebExtensionManager (LCOM4 4): WebExtensionManager\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/Mooziac/YouTube/Extensions/WebExtensionManager.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2192b743883b29c07a4c21b16f171ff3ea75ec2de1f18d5499e7f09027c09624"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MooziacHeaderBarView (LCOM4 4): MooziacHeaderBarView\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/Mooziac/YouTube/Views/MooziacHeaderBarView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f987ba63415dfa787cbe8c1a2cdcd8557d7bd2619ae2760e630718c8fed539"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsLinkButton (LCOM4 4): SettingsLinkButton\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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"2946514452d05920999f5322d42100d1a9224b668f5565af4313f1216e412d80"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testYouTubeSettingsDefaultsAndNotifications: 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/MooziacTests/YouTubeVideoTests.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"33067131a9dacb9de4d5ee29614b1ff124caca208cf483b18dc8d42474979f06"}},{"ruleId":"D13","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":"e328a9637c0abb155875a1785c99834db05c4fa9e819a41f56c833eb42165303"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"7e68276deef6f878e531ee71363054c4da14df108c3f0aaef144c59c47908359"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Core/NowPlayingManager/ObserverBridge.swift: Sources/Mooziac/Core/NowPlayingManager/ObserverBridge.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 123 in NowPlayingManager.userContentController at line 821. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Core/NowPlayingManager/ObserverBridge.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/Mooziac/Core/NowPlayingManager/ObserverBridge.swift"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"9085663b0579ac50e89bed060d27e2bc688489f92dfca088032abd57eee10fe2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift: Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in DynamicIslandPlayerView.updateState at line 693. 5 of those changes were fix/bug commits, and the other 13 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.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/Mooziac/Views/Player/DynamicIslandPlayerView/Core.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf33664796620dd00078943094b632cb73b703368aa77cb52d2b0044d974e6a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Managers/PlaylistManager.swift: Sources/Mooziac/Managers/PlaylistManager.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in PlaylistManager.reorderItems at line 234. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Managers/PlaylistManager.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/Mooziac/Managers/PlaylistManager.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae776bc3ee2dfc1b8c29bf77d25e39c6bc92764146714b94fa2f56dd73824ed1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift: Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in DynamicIslandPlayerView.applyTheme at line 156. 3 of those changes were fix/bug commits, and the other 14 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.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/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5100629a2effecaef961ff2e1e1028f694f7c8e7a98a48e800ed8982c18b88"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Core/StatusItemManager/StatusItemManager.swift: Sources/Mooziac/Core/StatusItemManager/StatusItemManager.swift changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in StatusItemManager.startEventMonitors at line 599. 2 of those changes were fix/bug commits, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Core/StatusItemManager/StatusItemManager.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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"e044c00471eec255fa1655a8e1f546bf170ed88ba64c6d0c9f8b6dadbb100af9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Managers/LyricsManager.swift: Sources/Mooziac/Managers/LyricsManager.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in LyricsManager.fetchLyrics at line 281. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Managers/LyricsManager.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/Mooziac/Managers/LyricsManager.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"8202b95597027f90507acd20539d45138ced6ca9da828228f5710fc196a2cc8f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Managers/DownloadManager.swift: Sources/Mooziac/Managers/DownloadManager.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in DownloadManager.executeYtDlpDownloadTask at line 562. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Managers/DownloadManager.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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c953c200b9c94f78c6e90d7d93d82d9d53b12ddf3860c9f3916339eaec0cb3e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift: Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in OfflineTrackCellView.configure at line 813. 1 of those changes was a fix/bug commit, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Views/Libraries/OfflineLibraryView.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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"efae0720451a1e0627a265cbef90d9c0ce6cd6acdce6a7dccd620bc3f4dadc51"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/YouTube/Input/KeyboardShortcutHandler.swift: Sources/Mooziac/YouTube/Input/KeyboardShortcutHandler.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in KeyboardShortcutHandler.handleKeyDown at line 45. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/YouTube/Input/KeyboardShortcutHandler.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/Mooziac/YouTube/Input/KeyboardShortcutHandler.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"51767377410af4ad94c32a1e48505026face877b0e1e48827429eca3d7235bd7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift: Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in CenteredMenuBarLyricsWindowController.updateLyricsFrame at line 280. 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-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.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/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7592c1240227f4d0c81bd7159cbe406b56b824fa131294c6ba3517a6fde8f4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Managers/DiscordRPCManager.swift: Sources/Mooziac/Managers/DiscordRPCManager.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in DiscordRPCManager.updatePresenceInternal at line 376. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Managers/DiscordRPCManager.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/Mooziac/Managers/DiscordRPCManager.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d68b7442a66c97a61d6612cdfe28d95c882cf5e2c028b427ecfd59776615439"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift: Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in DynamicIslandPlayerView.updateSettingsThemeHighlight at line 368. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.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/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BAppearance.swift"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"df08169cda6b0c44867ef195fe31e4ebf89096e5e3f295826d4009f74afc159c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Views/Components/CircularProgressDownloadButton.swift: Sources/Mooziac/Views/Components/CircularProgressDownloadButton.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in CircularProgressDownloadButton.updateVisuals at line 118. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Views/Components/CircularProgressDownloadButton.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/Mooziac/Views/Components/CircularProgressDownloadButton.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db7f5b1d68d85cbd6d112ef2fb5846de8bef686ad18012d99f8a9306e24d79a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Input/GestureMappingManager.swift: Sources/Mooziac/Input/GestureMappingManager.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in GestureMappingManager.executeAction at line 77. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Input/GestureMappingManager.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/Mooziac/Input/GestureMappingManager.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2bed28fe7e63444699a7c1d57353e0a27843d787904efb57eb3892f08c1f7a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Mooziac/Input/GlobalHotKeyManager.swift: Sources/Mooziac/Input/GlobalHotKeyManager.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in GlobalHotKeyManager.registerCarbonHotKeys at line 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Input/GlobalHotKeyManager.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/Mooziac/Input/GlobalHotKeyManager.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f8579026ccbe5269f170d22f46a4f5dc39af3b9c9967630b14a57f2500ecee"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Mooziac/Views/Components/GlassSearchField.swift: Sources/Mooziac/Views/Components/GlassSearchField.swift changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is GlassSearchField.performKeyEquivalent at line 262), 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: \u201Cchore(release): v1.1.4 - Synced lyrics HUD, Web Audio keepalive, search bar polish \u0026 updater fixes\u201D; \u201Cfix(ui): remove grey background inside search bar for pure white theme\u201D; \u201Cfix(theme): dynamic high-contrast adaptivity for Watery theme in Light mode\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Views/Components/GlassSearchField.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/Mooziac/Views/Components/GlassSearchField.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"711b022ae9558e22dc8d1040fe16b28482ad0b605c89435b0a0e8ea0197b7d47"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Mooziac/Managers/LikedSongsManager.swift: Sources/Mooziac/Managers/LikedSongsManager.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 7 (its worst body is LikedSongsManager.syncNext at line 156), 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(likes): strictly use 1st-party session tokens and keep UI heart synced with local database\u201D; \u201Cfix(likes): prevent logged-out liked songs from being removed by DOM sync\u201D; \u201CRelease v1.0.9: Google Auth fix, legacy GPU translucency fix, auto-helper downloader\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 00:32:10 \u002B05:30\u0027 --until=\u00272026-11-16 00:32:10 \u002B05:30\u0027 --full-history --no-merges -- Sources/Mooziac/Managers/LikedSongsManager.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/Mooziac/Managers/LikedSongsManager.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"efda1333d528e3622aed391898eaa383c3199f8a2ce657d1b7795d8879bd6a2c"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060Package.swift\u0060 makes this repository a deployable product (line 10)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Package.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cb68a1ee6c4cb93e1c9ac7b48b28011c2bc672548de5c6ade44fdf2c34c979"}},{"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":"6e98f129993ace06c49518b55f84bd733b07a49d8d8c9ce572ef34c91f7ff1a0"},"properties":{"commitSha":"e53c61061d095fc3f4229a7f2c2ed06dbef6728d"}},{"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":"0dbb915274563a1a1c7710b67a8c19d2a107f22fcaf0daddfce999f66be50e9d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a716fc54d08bb7bc79455e84f9bc0eab447abd8a987dee1b94c83893471f2ab"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"036bb31621c0d18251f49b01c1f5831c11308cf33b3b3b3cb640a6fcb9d0fd75"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82fc058234d5ae18d5e2631e7062fa22668c164830e423214595547fc85c114d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"34f998d59eaff18b05f62f3ffd53eb1d86ddd758e021a3b06f3dd141181d69a1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PlaylistLibraryView.swift \u2194 ArtworkTheme.swift: \u0060Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift\u0060 and \u0060Sources/Mooziac/Views/Player/DynamicIslandPlayerView/ArtworkTheme.swift\u0060 change together 60% of the time (6 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 6 shared commits counted here, the most recent 3 are \u0060d8955380\u0060 fix(theme): dynamic high-contrast adaptivity for Watery theme in Ligh\u2026; \u0060d6113a21\u0060 Implement Apple Control Center 3D curved meniscus rim and horizontal \u2026; \u00600a4e166f\u0060 Remove Theme 4 (.native) completely; streamline to 4 distinct themes \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Views/Libraries/PlaylistLibraryView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f47693e213241877a8d0aed3335ce204af959625fec6ab14e519092e3268d6"}},{"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":"19d4cbb252a3e4997007fe629a8fde65a6a24e745494155b47ed43cbf523f1eb"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/js/i18n.js"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef457240d831c4e178eac64299f8c9f0c2cc1b31ce226ca9bb108cf4ece97e1"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9bc9f825cc1e598644a78b2633e8b6edeaef2570b5597e7df51dc7310cec8b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b70c9f04f57f264f0d757a9c5b4b3e25fb5664a6d7aad70e3d89f2bd207804"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2780622b43e4d8b07f49f0f7ccf125b66aec38f34a01c3889dc57f6ae45288c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0091893245bf5e1736d67d6c17da3ef39ba05276e03150bbf8077bdde23379"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e729e1639634c2764a5ae70efba622ff09b321f0cba60b485fd39db18e37605d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"987e8255adce7f8781289a289e838483e886883b763eab1a1045a3ad4cd8e847"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b5a677db9485da13fe02248431a5d3891527209c9fe255b6bdacaebde62c77"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"209154d362e122e0ce899f7d8b318a3f5ee37748aee1f99611db50fb1d72a943"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6356dc0a99428fb2bd5cb78f24c3076ad244ff393fd57deb44013ea1af861d92"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c40a9ff8827811ae70ea02de7ed23cd27d9078ac7262888fdd87df8be5209a0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd967042bcd2a5e7f9c7066149514e16e3e84d50cf0061c85c9725aa0bc49a09"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Coptgroup\u003E without a label: An \u003Coptgroup\u003E groups \u003Coption\u003Es but has no label, so assistive tech announces the group with no name. Add a label attribute."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"672de98a0ebd5a42b5fbf7edfaafd3f90d9da2c83cc7f708379248a1a84b36b9"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ac7e52fc375e6e2f2a06da39cc1164c15ac447fc6aa4fff22982907c398736"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67fc532268233c7f6eabe97d9c7971c5b06dbef82e1cd3bc883902ce90c2811"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c967d3893be01dcc1c7b4d075f243df34ca8662917c8f0e1f00b82baa52a25c4"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"077069c4316780885eae951ddb057dce4b91033498a2b38706166d3b758f04a4"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2add2191f67cae8c9f47fdc5321619c248a355b608e67abf76551c8de464e5"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4fd6a0727f9e50ac5a1ef4917491127a63e60ca8b697f251c3ada7252e9668"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"8701f1831caa2ab05efa50009a0934d91d618450be7718dc6e0007ae8f23cab0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/picker-ui.html"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f650c2dea7127382a7ebc947b73f8870551529fd3a3407e40c58de7797d3d11"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/picker-ui.html"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f2c568f75f1d58e7202af983cb9dd82613da45e548b849a18e1285bc2ef361"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/report.html"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"80de62ffc833e3bfc6e24c61c411859afc8b68038f21631d1a4ca910eac3c40a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/report.html"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c37a6f60bd4a2ad2f714e92c2101345dbb79a77b2047ecaff150e9a41ce8b3"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/report.html"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5a10197a4275cec6ae2a854ccbde946aa9bd1722b4c5e668ae993e61f225a4"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/report.html"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c3baac453e7ba46b46dd11bad8675b559b89e4a9c5f6f40a73cfb8335b7a19"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/strictblock.html"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1192e78ff7bdc369cbebf97b0bbf31887467a7f390b7d8eb655e462910680255"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e1ed47cc3bf28cdf6cbe01f473ba07425f2def6888d843f4d6438031d865d3"}},{"ruleId":"AC3","level":"error","message":{"text":"Document \u003Ctitle\u003E is empty: An empty \u003Ctitle\u003E gives no page name in the tab, history or screen-reader page list. Put descriptive text in the \u003Ctitle\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7a3aebf85690244e9f077515a9aa7a78e145f613e3a3c15aba3ca1ec03464c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5941e16accb27d21b250a19955a3f2fe8f2359bf2b11b9f1c67c6996af06492"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch3\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"634cc401b2e96a2b9abaf7937ec7dc5a8cf6b108887fb1e3e43278e5eb658e8d"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch3\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/dashboard.html"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce40e69844549b62e96dbdef1780ea3b1c0f602efd08a5f45bf64ebbf93c029"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/matched-rules.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e2fa2c80b13dc1d7f03aaef64985638468c9258048d7a3fa9f1714e7019eae"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. This document\u0027s body is only the mount point \u003Cdiv id=\u0022matchedEntries\u0022\u003E, so there is no content here to wrap \u2014 render the \u003Cmain\u003E from the component mounted into it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/matched-rules.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43d8e3039d13cc4f1fc18091d2e033f1daa4d71f3092c6682ff983ed56c4499"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/picker-ui.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4551b257c3c5dd6ce007e40d03b7e1c9980b84c93156a8ca07d279a9270b304a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/picker-ui.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd52c64aa38ecc807c83850d67fde09b7676334df2fab9a14c16bd80830aa275"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/popup.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0fb89e7ff31defa8c83c379c5837666d1d71ab0d29e759811085ba1d2d0878"}},{"ruleId":"AC3","level":"error","message":{"text":"Document \u003Ctitle\u003E is empty: An empty \u003Ctitle\u003E gives no page name in the tab, history or screen-reader page list. Put descriptive text in the \u003Ctitle\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/popup.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d81e42915d26af36897531f5e8ea429d8e2c5a7a8df5dd1da7dff57b5ed080"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/report.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5619bd9717a729a1709a086e4ac442e5ffcb9a0aa20290c10b24ba53701bc8c2"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/report.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8a8c55cbf6549ac21237ff61c9ee4ae4390cf9ea48d7238d56e1e937bb6a3e"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch2\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/report.html"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d72d8c2259350a97f507949e2ab5893eb48b0b94657de350ea931cbacfd033"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/strictblock.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"19db7f36b89bb979428c4db5ee808a74d62c84d4d11e6dd7faa1c7eef6f69786"}},{"ruleId":"AC3","level":"error","message":{"text":"Document \u003Ctitle\u003E is empty: An empty \u003Ctitle\u003E gives no page name in the tab, history or screen-reader page list. Put descriptive text in the \u003Ctitle\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/strictblock.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50bf098208eb17c49ac97147396ddb7b4be728ff2dd9ce98fc78f7312b8dc15"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/strictblock.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50c8a9493355d463a8480c822030e887872b202f537673302f5fffd7e4e2bc9"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/unpicker-ui.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c896854a7c5ed27ce247aae86abfe10d506d29333aca47ecd960cd97a9663da9"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/unpicker-ui.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c275656e4b8bd56023b5f1f7d5b89b209e706e4de5e0e8b11f5745c5a7474b93"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Ciframe\u003E without a title: An iframe with no title (or an empty one) is announced only as \u0022frame\u0022. Add a non-empty title describing its content, or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/web_accessible_resources/googlesyndication_adsbygoogle.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f243d6e91cc6813d0c0204807667ff1eb1cf605b9eb5cc3f2e2f9996d20135b9"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/zapper-ui.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f3fe8f7b3a77531852589f6156a44408aa368449089dc88bc96386e67d30f4"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/zapper-ui.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"579be81e5ee7ba1d78377661791de5e7191666382fb1672bcb3d8b2451d06d6e"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/trackpad.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2f4eb8e398b907aa7ff7c20ca2088b95028c511e6c01524573ec0ca722f24f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.pro-finger-pointer\u0060 moves (\u0060transition: left 0.45s cubic-bezier(0.16, 1, 0.3, 1), top 0.45s cubic-bezier(0.16, 1, 0.3, 1)\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/trackpad.html"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8926b076ba858e313ff8b451ac7f7d592646c862e42cc19e0a96a0646d039ba"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.apple-pro-hud\u0060 moves (\u0060transition: left 0.45s cubic-bezier(0.16, 1, 0.3, 1), top 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/trackpad.html"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df4c762502538e07cf256eb840f2877f4085ddf405f94b4e528f9705ecb19a8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.apple-ripple\u0060 moves (\u0060animation: apple-ripple-expand 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/trackpad.html"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f344b971a281b506d6c5c9aff03b24a34ba64fde0d3b27336d95f34fb034eb74"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060nav \u003E .tabButton:focus\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/css/dashboard.css"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ab7e45b9c39d7d354c2ef7db454564b7adad77d55af803be339882a840009b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060:focus\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/css/popup.css"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcda1528e171419f0a79aa00412bb37f2a334366a16f4e1af49ee715b6fdf8b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060:root :focus\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/css/tool-overlay-ui.css"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d025317c02fe861ad8a24a65439e77e088ea12d11633d24eb84e73020ee3ae6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060aside .fa-icon\u0060 moves (\u0060animation: spin 1s steps(8) infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/css/popup.css"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c615ac4ab9b3e0fbc37944580eef8f73bfd3f955dc3f3df482356aec69506f3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060body.committing #commit-spinner\u0060 moves (\u0060animation: spin 1s steps(8) infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/css/settings.css"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f29445f38ba5ad1d3c2c212fea74bc128e5a773727072ad03aad0391d42a4e4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060body.busy section[data-pane=\u0022busy\u0022] .fa-icon\u0060 moves (\u0060animation: spin 1s steps(8) infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/css/settings.css"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cbab56caaea5e4be7df493f23e76a8f8152b08a6d5a098adec920538344dc4"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: MooziacHeaderBarDelegate (18 requirements): \u0060MooziacHeaderBarDelegate\u0060 declares 18 requirements: \u0060headerBarDidTapClose\u0060, \u0060headerBarDidTapQuit\u0060, \u0060headerBarDidTapMinimize\u0060, \u0060headerBarDidTapBack\u0060, \u0060headerBarDidTapForward\u0060, \u0060headerBarDidTapReload\u0060, \u0060headerBarDidTapCaptions\u0060, \u0060headerBarDidTapLike\u0060, \u0060headerBarDidTapPlaylists\u0060, \u0060headerBarDidTapHistory\u0060, \u0060headerBarDidTapDownload\u0060, \u0060headerBarDidTapSpeedPicker\u0060, \u0060headerBarDidTapBestPart\u0060, \u0060headerBarDidTapQualityPicker\u0060, \u0060headerBarDidTapShield\u0060, \u0060headerBarDidTapPiP\u0060, \u0060headerBarDidTapTheater\u0060, \u0060headerBarDidTapFullscreen\u0060. Counted over its method requirements (members with no body), once per name; a default supplied by a protocol extension is not counted, because no conformer is forced to write it. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/YouTube/Views/MooziacHeaderBarView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"4796d180bf138f6ad80c6bbc2963ee42d2656549429a6c3d19baf1432ce22c21"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"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 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060sleep\u0060 is async and calls sleep \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/Mooziac/Views/Windows/LaunchAnimationController.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6996f4f66c234ba607ea6e9153f94a2c652c97e5ea4d5d03f60cc370f721c0a"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fetchFormats\u0060 is async and calls .waitUntilExit() \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/Mooziac/YouTube/Services/YouTubeDownloadService.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3db5d18d7683b067f062074c6205180fc54a744a10bb8ea29029fe6dfd589a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isDownloaded \u0026\u0026 !record.videoId.isEmpty\u0060 appears character-identically in 3 files \u2014 Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift, Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BTableView.swift, Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BContextMenu.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/Mooziac/Views/Libraries/PlaylistLibraryView\u002BContextMenu.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c551ec32a2babe05c77b2c57d85cbf09292d78d56ca59c569a14952ab9ac7a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!state.artist.isEmpty \u0026\u0026 state.artist != \u0022YouTube Music\u0022\u0060 appears character-identically in 2 files \u2014 Sources/Mooziac/Managers/HistoryManager.swift, Sources/Mooziac/Managers/PlaylistManager.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/Mooziac/Managers/HistoryManager.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d629cbffb113e5f56026e11a3748df15840a11ccd6f8952f51bc1e603c3f42e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!state.title.isEmpty \u0026\u0026 state.title != \u0022Not Playing\u0022\u0060 appears character-identically in 6 files \u2014 Sources/Mooziac/Managers/DiscordRPCManager.swift, Sources/Mooziac/Managers/HistoryManager.swift, Sources/Mooziac/Managers/PlaylistManager.swift, Sources/Mooziac/Views/Libraries/OfflineLibraryView.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/Mooziac/Managers/DiscordRPCManager.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce1910032506b2a2d067d410b17f752adb5e57fe9082db53e39af6738e528a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!title.isEmpty \u0026\u0026 title != \u0022Not Playing\u0022\u0060 appears character-identically in 3 files \u2014 Sources/Mooziac/Core/NowPlayingManager/ObserverBridge.swift, Sources/Mooziac/Managers/HistoryManager.swift, Sources/Mooziac/Managers/PlaylistManager.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/Mooziac/Core/NowPlayingManager/ObserverBridge.swift"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3207443d86cc7fe942096f0609b024f736fcca5f616464dd1e48d74052abf7e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.title.lowercased().contains(query) || $0.artist.lowercased().contains(query) || $0.album.lowercased().contains(query)\u0060 appears character-identically in 2 files \u2014 Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift, Sources/Mooziac/Views/Libraries/PlaylistLibraryView.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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"2240eedbfb40448b584eedc72fa1b81ed2073728ad196a444f3f7c272d48a5ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060PlayerDesign.current == .glassMode || (PlayerDesign.current == .liquidFluid \u0026\u0026 !SystemAppearanceHelper.isDarkSystemAppearance)\u0060 appears character-identically in 7 files \u2014 Sources/Mooziac/Views/Components/CircularProgressDownloadButton.swift, Sources/Mooziac/Views/Components/GlassSearchField.swift, Sources/Mooziac/Views/Components/NativeCapsuleToggleView.swift, Sources/Mooziac/Views/Libraries/OfflineLibraryView.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/Mooziac/Views/Components/CircularProgressDownloadButton.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3114aba87e92fd61c453ee80182ecb52b0cc5fb53295b5e89deb5cd7a8e95842"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060PlayerDesign.current == .liquidFluid \u0026\u0026 SystemAppearanceHelper.isDarkSystemAppearance\u0060 appears character-identically in 4 files \u2014 Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift, Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.swift, Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BDrawers.swift, Sources/Mooziac/Views/Player/DynamicIslandPlayerView/SettingsPanel\u002BRows.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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fe2a88f19d862b4c3882be3bc4f50bb5b215d12a9b0fd5d8f0029c54cda138"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cleanA.isEmpty || track.artist.lowercased() == cleanA.lowercased() || track.cleanArtist.lowercased() == cleanA.lowercased()\u0060 appears character-identically in 2 files \u2014 Sources/Mooziac/Managers/DownloadManager.swift, Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c3c0a3492fdfc4cbca1c2fe753cdeb8fc4dc113bd58d1007659fce9f60c5e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060design == .glassMode || (design == .liquidFluid \u0026\u0026 !SystemAppearanceHelper.isDarkSystemAppearance)\u0060 appears character-identically in 3 files \u2014 Sources/Mooziac/Views/Components/GlassSearchField.swift, Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift, Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.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/Mooziac/Views/Components/GlassSearchField.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab96fa60d2c0c67d4ac6c0554a09e47dc8ef487c16aa7d3c209b6923eca7828d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060design == .liquidFluid \u0026\u0026 SystemAppearanceHelper.isDarkSystemAppearance\u0060 appears character-identically in 2 files \u2014 Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift, Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e8ebc5915c7dc9c2ac67b1c2e96bd4a71b2d3ee2fa3221532c87e3c6f62ce8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.keyCode == 51 || event.keyCode == 117\u0060 appears character-identically in 2 files \u2014 Sources/Mooziac/Views/Libraries/OfflineLibraryView.swift, Sources/Mooziac/Views/Libraries/PlaylistLibraryView\u002BCells.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/Mooziac/Views/Libraries/OfflineLibraryView.swift"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca9fde68cc3469f35cc106d13c38da8d76151779fb26072f8ff27329562091d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060matchTitle \u0026\u0026 (cleanA.isEmpty || matchArtist)\u0060 appears character-identically in 2 files \u2014 Sources/Mooziac/Managers/DownloadManager.swift, Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95cd8647a83157afab4999060cd351d01099b034645846cac64601fb1456c6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060responder is NSText || responder is NSTextView || responder is NSTextField || responder is NSSearchField\u0060 appears character-identically in 2 files \u2014 Sources/Mooziac/Core/StatusItemManager/StatusItemManager.swift, Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.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/Mooziac/Core/StatusItemManager/StatusItemManager.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b91b27d306183387d4e9eeb9c3625041586aec0334bc1911855b9783bd15fd6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060screen.safeAreaInsets.top \u003E 0 || screen.auxiliaryTopLeftArea != nil\u0060 appears character-identically in 2 files \u2014 Sources/Mooziac/Core/DisplayManager.swift, Sources/Mooziac/Views/Windows/CenteredMenuBarLyricsWindowController.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/Mooziac/Core/DisplayManager.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef3add9c222e8f317436a580ec1cc619dc83a0b3be9c01edd55e82452b398ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060track.title.lowercased() == cleanT.lowercased() || track.cleanTitle.lowercased() == cleanT.lowercased()\u0060 appears character-identically in 2 files \u2014 Sources/Mooziac/Managers/DownloadManager.swift, Sources/Mooziac/Views/Player/DynamicIslandPlayerView/Core.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/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"1198085dfea14b80578d2c651dc4e33a02cc9c6b92d803364772894e6aae6070"}},{"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/Mooziac/Views/Windows/LaunchAnimationController.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"61050a437787e624dc48fa430f780d44cbe060c7a8e3441e4db58fde1e3eea36"}},{"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/Mooziac/Support/VisualMatrixSnapshotGenerator.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"040f250593ab3f7ce9f3c4c8fd1b9b1a8cbbb2e656ba5ba07153df9d628237d6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Mooziac/Managers/DownloadManager.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"120db0442f66defe1908bb9038221ed1656799edd962646f575ca4ed4980621c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeHostnameValue\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Resources/Extensions/uBlockOriginLite/js/static-filtering-parser.js"},"region":{"startLine":2927}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e0f8cd92739975cd8ba3c3307869c974f280bbd3cfe078cf9b15608a0d16aa"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.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-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"}]}],"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":11,"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."]}]}