{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"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":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"DM11","name":"Constructible invalid state","shortDescription":{"text":"Constructible invalid state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM11"},{"id":"DM12","name":"Ambient inputs in the domain","shortDescription":{"text":"Ambient inputs in the domain"},"helpUri":"https://codehealth.canine.dev/dimensions/DM12"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"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":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"GuangyaLoginDialogKt.GuangyaLoginDialog (cyclomatic 174): GuangyaLoginDialogKt.GuangyaLoginDialog has cyclomatic complexity 174 (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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb25af7871e7b67d5b4f8e12690c9e53b812083b9a48ac8803f07f659e14f93"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerScreenKt.PlayerScreen (cyclomatic 110): PlayerScreenKt.PlayerScreen has cyclomatic complexity 110 (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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47dfbe4be10c1d11d22376fd5a756c5ece1b646bbb61da1c632a030d66bcbb3"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveScreenKt.LiveScreen (cyclomatic 87): LiveScreenKt.LiveScreen has cyclomatic complexity 87 (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":"app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f76ec8dc94b5d1ba475fe01be75859c9c5b1ccb65face982fd2e051a44ce7c4"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeScreenKt.HomeScreen (cyclomatic 85): HomeScreenKt.HomeScreen has cyclomatic complexity 85 (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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c3eae9526874adf731d814e4ea34493f3603c0065ba5c14599dd6924184211"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerScreenKt.PlayerControls (cyclomatic 45): PlayerScreenKt.PlayerControls has cyclomatic complexity 45 (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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87f53445e1cd7087c88de95cd86ec1b01991e8c04b256d4c239ed119505a51e"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartMediaScraper.scrapeSeriesInfo (cyclomatic 40): SmartMediaScraper.scrapeSeriesInfo has cyclomatic complexity 40 (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":"app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ad781fd9c6108f6c0f0bd115a2291076a0b23a4265f5db5374e12ff983762f"}},{"ruleId":"D1","level":"warning","message":{"text":"WatchHistoryService.getRecentWatchHistory (cyclomatic 38): WatchHistoryService.getRecentWatchHistory has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/WatchHistoryService.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81b885f4bcd666df68e78329080b61c977d83ad1941a845dc3f8a6ceaf8ca4b"}},{"ruleId":"D1","level":"warning","message":{"text":"LiveSettingsComponentsKt.HistoryListDialog (cyclomatic 34): LiveSettingsComponentsKt.HistoryListDialog has cyclomatic complexity 34 (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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"01868a5ea350de0c5a98bad650dc2c13d93916bfc78e7e1db0003e521d0d0061"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsScreenKt.SettingsScreen (cyclomatic 30): SettingsScreenKt.SettingsScreen has cyclomatic complexity 30 (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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab310f95b3a64eb173881cba53250458fad2e7d12c2612b27b7a64c870ed3e4d"}},{"ruleId":"D1","level":"warning","message":{"text":"WebDavClient.parsePropFindResponse (cyclomatic 29): WebDavClient.parsePropFindResponse has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd39ee07581bb70255937b49b346b3578f4b577a99d92009e515f1722a0055f5"}},{"ruleId":"D1","level":"warning","message":{"text":"SkipConfigDialogKt.DurationSliderWithControls (cyclomatic 28): SkipConfigDialogKt.DurationSliderWithControls has cyclomatic complexity 28 (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":"app/src/main/java/com/lomen/tv/ui/player/SkipConfigDialog.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"2094a5a48d51a71136a01f9e0829685f93d312827000ab45454ad694654d3d7a"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceLibraryScreenKt.LibraryListItemV2 (cyclomatic 25): ResourceLibraryScreenKt.LibraryListItemV2 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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dfa4f0f733b1641ac5ca4328dfec00711cb9f02b488222278a51eaaa16eace"}},{"ruleId":"D1","level":"warning","message":{"text":"CategoryScreenKt.CategoryScreen (cyclomatic 24): CategoryScreenKt.CategoryScreen has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba416b0e1c673fcf281c1fdc8be73f1951139b659eecc90e26e55f75f291921b"}},{"ruleId":"D1","level":"warning","message":{"text":"WebDavConfigDialogKt.testAListConnection (cyclomatic 24): WebDavConfigDialogKt.testAListConnection has cyclomatic complexity 24 (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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddaa74ee80c0e4a12f7b5efb62016cce6bfaab9e537bcef7944f04db40e5ee25"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailViewModel.loadMediaDetail (cyclomatic 23): DetailViewModel.loadMediaDetail 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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fadd7aecd03d3d4a598baa68116689bd6e20070f4afb946d835158b3c7b9dc1"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeScreenKt.HomeHeader (cyclomatic 22): HomeScreenKt.HomeHeader 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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa4e6610f9952c6d4d36a1eb23ef08850c505182c3dbdc6125b89c0abd698bf"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceLibraryScreenKt.ResourceLibraryScreen (cyclomatic 21): ResourceLibraryScreenKt.ResourceLibraryScreen 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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9cfa7c01a3f65d8686a96214ed668d35816f5ccbf211eec96ccddd6f147464"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerScreenKt.EpisodeListPanel (cyclomatic 20): PlayerScreenKt.EpisodeListPanel 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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37fcb054c101e738db7100756a9eec69574ca181e0620d29928959617349229"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerViewModel.getNextEpisode (cyclomatic 20): PlayerViewModel.getNextEpisode 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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"a103275b891489b120efb8ec8b40804adc2ebdcaaadada41e6d186fec6c8bd29"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeScreenKt.WebDavMoviesRow (cyclomatic 20): HomeScreenKt.WebDavMoviesRow 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. This shape REPEATS in the file: one other method here (HomeScreenKt.WebDavTvShowsRow) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"211f089d4b2941621ee229df427dd90feb678707b2f8fd6dccf97bb332c71707"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeScreenKt.WebDavTvShowsRow (cyclomatic 20): HomeScreenKt.WebDavTvShowsRow 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. This shape REPEATS in the file: one other method here (HomeScreenKt.WebDavMoviesRow) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2027}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8816ce950a31bc9daf56227b3e93c3a13bc9461dabfe83cef8a34bbc14d9912"}},{"ruleId":"D1","level":"warning","message":{"text":"ResourceLibraryScreenKt.MainContent (cyclomatic 20): ResourceLibraryScreenKt.MainContent 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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"0433540b92f2b256a92e906653ee91541a16852aa1d0e81598d7763c573152e9"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerViewModel.prepareMedia (cyclomatic 19): PlayerViewModel.prepareMedia 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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8198f64e42d538a5ebb7d508cbd12e08a1bc3960eb48ba48933bcbe3ebd534"}},{"ruleId":"D1","level":"warning","message":{"text":"PlayerViewModel.getPreviousEpisode (cyclomatic 19): PlayerViewModel.getPreviousEpisode 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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb535944d09511473517b4f907127c438241b390020b3d3167af053c8d1a76ae"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsScreenKt.LiveSettingsSection (cyclomatic 19): SettingsScreenKt.LiveSettingsSection has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2872}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8200e36ecff1945ae2eca74fce5ac28032117313a5bb09622160a2ca930891"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailViewModel.getResumePlaybackInfo (cyclomatic 18): DetailViewModel.getResumePlaybackInfo 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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"2950b0c6434be53f0e49066c477e2d1485da05c27c47444a8e0f23189992caf9"}},{"ruleId":"D1","level":"warning","message":{"text":"WebDavConfigDialogKt.testWithGetMethod (cyclomatic 17): WebDavConfigDialogKt.testWithGetMethod has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf26d8a1d7c127f6df31b6bdea555292c59f1f800258b4de5daaff5d0e88259c"}},{"ruleId":"D1","level":"warning","message":{"text":"SkipConfigDialogKt.SkipConfigDialog (cyclomatic 16): SkipConfigDialogKt.SkipConfigDialog 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":"app/src/main/java/com/lomen/tv/ui/player/SkipConfigDialog.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"be410678ab954a3f5db8839f3538aa98d7e36f144bb3fc539f4dff53e6487f45"}},{"ruleId":"D2","level":"warning","message":{"text":"GuangyaLoginDialogKt.GuangyaLoginDialog (cognitive 493): GuangyaLoginDialogKt.GuangyaLoginDialog has cognitive complexity 493 (threshold 15). Drivers by points: if/else 208 (453 pts), boolean chains 28, match/switch 4 (8 pts), error handling 1 (3 pts), loops 1 (nesting depth added 251). 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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8bb1429cb5ed56eb9fd6e58868e54111b9bea1484eab81f057a678a9e4fc04c"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveScreenKt.LiveScreen (cognitive 147): LiveScreenKt.LiveScreen has cognitive complexity 147 (threshold 15). Drivers by points: if/else 80 (113 pts), match/switch 8 (14 pts), boolean chains 10, error handling 2 (6 pts), loops 2 (4 pts) (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"eadbaf683b51e962c860b098b1a7cbd6c5f721bf2567c8defa2c12e2faf5e1a1"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.HomeScreen (cognitive 133): HomeScreenKt.HomeScreen has cognitive complexity 133 (threshold 15). Drivers by points: if/else 71 (125 pts), boolean chains 4, match/switch 4 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"012a062806f2b50a5dc4449352413dc22f564a675b3a37132f69a74c3db116c9"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerScreenKt.PlayerScreen (cognitive 129): PlayerScreenKt.PlayerScreen has cognitive complexity 129 (threshold 15). Drivers by points: if/else 84 (102 pts), boolean chains 21, match/switch 3 (6 pts) (nesting depth added 21). 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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d1ce8aa32d7c38593e85455c340d2bec844bd79ddb801e19e0d1f06a243d1c"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchHistoryService.getRecentWatchHistory (cognitive 90): WatchHistoryService.getRecentWatchHistory has cognitive complexity 90 (threshold 15). Drivers by points: if/else 36 (68 pts), boolean chains 11, error handling 4 (10 pts), loops 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/WatchHistoryService.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8f83203bde451717715a015fc126a491cee4efbc05ebe5367c80de994ea9a5"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartMediaScraper.scrapeSeriesInfo (cognitive 75): SmartMediaScraper.scrapeSeriesInfo has cognitive complexity 75 (threshold 15). Drivers by points: if/else 36 (61 pts), boolean chains 12, match/switch 1 (2 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"710c3316d618c9001e8b402c53abaaed537d453871f298a29997cbb1e8094d57"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerViewModel.prepareMedia (cognitive 67): PlayerViewModel.prepareMedia has cognitive complexity 67 (threshold 15). Drivers by points: if/else 20 (59 pts), loops 2 (6 pts), boolean chains 1, error handling 1 (nesting depth added 43). 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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"db547fe65725ba393a0b74404cef3fcb0fcdaad45a6c51ac454c012cba18c588"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDavClient.parsePropFindResponse (cognitive 63): WebDavClient.parsePropFindResponse has cognitive complexity 63 (threshold 15). Drivers by points: if/else 12 (39 pts), error handling 3 (10 pts), match/switch 3 (9 pts), boolean chains 4, loops 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":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a13de27b0d6e5fc6d404567380a9482320747ace866ead8ee4d3a250cb959e6"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveSettingsComponentsKt.HistoryListDialog (cognitive 63): LiveSettingsComponentsKt.HistoryListDialog has cognitive complexity 63 (threshold 15). Drivers by points: if/else 32 (51 pts), boolean chains 12 (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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f9a672f41e6dfddde917c58c5b0fbe9effee6aa6699174ab448dfaee07c810"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerScreenKt.PlayerControls (cognitive 62): PlayerScreenKt.PlayerControls has cognitive complexity 62 (threshold 15). Drivers by points: if/else 56, boolean chains 5, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2466807f5338e907449dca1b464d90497a2c074a311c12a61bd3eae955926ec"}},{"ruleId":"D2","level":"warning","message":{"text":"SkipConfigDialogKt.DurationSliderWithControls (cognitive 48): SkipConfigDialogKt.DurationSliderWithControls has cognitive complexity 48 (threshold 15). Drivers by points: if/else 30 (36 pts), match/switch 4 (7 pts), boolean chains 5 (nesting depth added 9). 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":"app/src/main/java/com/lomen/tv/ui/player/SkipConfigDialog.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e9dacd5d7b667c67bd7e8b1e107323704715c4659d7a1f9adb85eef8a2fb9a"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailViewModel.loadMediaDetail (cognitive 47): DetailViewModel.loadMediaDetail has cognitive complexity 47 (threshold 15). Drivers by points: if/else 22 (36 pts), error handling 3 (7 pts), boolean chains 4 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"203f07a23ea1f035dd40a8caaac512a9b593d0318b5bdaeb374bb7dd57003413"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceLibraryScreenKt.LibraryListItemV2 (cognitive 44): ResourceLibraryScreenKt.LibraryListItemV2 has cognitive complexity 44 (threshold 15). Drivers by points: if/else 34 (40 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"514346534205a57865158c880afe1ece2b952eef4a88b7fdb4e8c21b295e7281"}},{"ruleId":"D2","level":"warning","message":{"text":"CategoryScreenKt.CategoryScreen (cognitive 42): CategoryScreenKt.CategoryScreen has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 4 (12 pts), match/switch 3 (6 pts) (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":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c640f96dfced42dfd5c5d2ac000a6513f0950f6fdac6ddaa664b62117d4704"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataService.searchByFileName (cognitive 39): MetadataService.searchByFileName has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (38 pts), error handling 1 (nesting depth added 20). 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":"app/src/main/java/com/lomen/tv/domain/service/MetadataService.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78a22a64434dd403ed39150cdad348767014cae5982056ff825f77abd8493d8"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailViewModel.getResumePlaybackInfo (cognitive 36): DetailViewModel.getResumePlaybackInfo has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 7, loops 2 (5 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bc09436d2ba5cc9fb1f12f2428a136857a7e4ce374b754aa838da11c556825"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsScreenKt.SettingsScreen (cognitive 36): SettingsScreenKt.SettingsScreen has cognitive complexity 36 (threshold 15). Drivers by points: if/else 25 (30 pts), boolean chains 5, match/switch 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"05eb7d1208556fb58b5ada532d79ed793c43d81361843fc38f00c7a1153930d3"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.WebDavMoviesRow (cognitive 35): HomeScreenKt.WebDavMoviesRow has cognitive complexity 35 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 4 (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. This shape REPEATS in the file: one other method here (HomeScreenKt.WebDavTvShowsRow) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"feba1313f2220c47fc844517d21eaacaae980e819969cc78cc0af6638f4f4051"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.WebDavTvShowsRow (cognitive 35): HomeScreenKt.WebDavTvShowsRow has cognitive complexity 35 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 4 (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. This shape REPEATS in the file: one other method here (HomeScreenKt.WebDavMoviesRow) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2027}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3168141d24846b17c73482d714462cd903f3d6e5f03198b10430bfb9f37022"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceLibraryScreenKt.ResourceLibraryScreen (cognitive 35): ResourceLibraryScreenKt.ResourceLibraryScreen has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22 (29 pts), boolean chains 2, error handling 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 9). 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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e107d5f6ebfa0b094407d8d519db36c8c45e3ce0031e673186c66814c1f4c22c"}},{"ruleId":"D2","level":"warning","message":{"text":"WatchHistoryService.getPlaybackInfo (cognitive 33): WatchHistoryService.getPlaybackInfo has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (30 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/WatchHistoryService.kt"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fe60d5378b4481b22b5b39f7f5aab4dfd088a801395421bef3425eff2eba6a"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerViewModel.getNextEpisode (cognitive 33): PlayerViewModel.getNextEpisode has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 4 (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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"040384a6902e4aa6fbcb62f8ef286ea1ac30604d2d3d6dd2cb57d88fdfdf8f56"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.HomeHeader (cognitive 33): HomeScreenKt.HomeHeader has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22 (26 pts), boolean chains 5, match/switch 2 (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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0e44925f982241683eac7d24173e97bb0095f3d900f0d7e42f24f3fb2ab502"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveStatusBarKt.LiveSourceDialog (cognitive 32): LiveStatusBarKt.LiveSourceDialog has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 2, match/switch 1 (2 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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"df06d11690a40eccdd0ac8eb3ab675e7fa343550ab76644e2cb4a741faace811"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerViewModel.getPreviousEpisode (cognitive 31): PlayerViewModel.getPreviousEpisode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 4 (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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1c47b1cc454aa3f7add7c3dcea126e9f64cfef576ca495f8733c5121bd875b"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceLibraryScreenKt.MainContent (cognitive 29): ResourceLibraryScreenKt.MainContent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (17 pts), match/switch 3 (7 pts), boolean chains 5 (nesting depth added 8). 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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"c898058eaa0a0e7e1a6ba44f6ee7f7fc00195f74c50299d26cbf0b80589c5d6a"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerService.updateAvailableTracks (cognitive 28): PlayerService.updateAvailableTracks has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/PlayerService.kt"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"711e981727fe742a8983d1b244d13e3af8152001b6713b8671603dbab69ef2fb"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsScreenKt.LiveSettingsSection (cognitive 28): SettingsScreenKt.LiveSettingsSection has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2872}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5164df2fc8da4bef78d39056f8ed6ae82db8c9ffdddf7c4ae007a0ebf03fe0"}},{"ruleId":"D2","level":"warning","message":{"text":"EpgParser.parseXmlContent (cognitive 27): EpgParser.parseXmlContent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 3 (13 pts), loops 2 (5 pts), match/switch 2 (5 pts), boolean chains 3, error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/remote/parser/EpgParser.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"90182820c75d460b07cf0f6c32e4310720b6de2a454acb53c2c12f859d115268"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDavClient.listAllVideoFiles (cognitive 27): WebDavClient.listAllVideoFiles has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (3 pts), boolean chains 1, error handling 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":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"419ae6717b5e569675427441dbeec079089e41bff4bb82036b18fd1ce17d0613"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveEpgDialogKt.LiveEpgDialog (cognitive 27): LiveEpgDialogKt.LiveEpgDialog has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 5 (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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveEpgDialog.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7490b63fc2e14e3b75e61d6897b408023db1998c69ec8bfbd509aaf7f918b8e"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerViewModel.getQualityOptions (cognitive 27): PlayerViewModel.getQualityOptions has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 3, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec66098ad8d8fd8dc3cf4a439b0d32e136fd71ec81d816cbe868b4fdb74452b"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailScreenKt.DetailContent (cognitive 26): DetailScreenKt.DetailContent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (23 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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d411f4eea672f3e751c64172384f6420c1d893c42056af950edc0d999e676f"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerViewModel.getEpisodeList (cognitive 25): PlayerViewModel.getEpisodeList has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 3 (7 pts), loops 2 (6 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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"451ea1f2e8fee9661f42e6f042564f06a368e7958fe299cd94abdeeb3c5ffee0"}},{"ruleId":"D2","level":"warning","message":{"text":"AListClient.listAllVideoFiles (cognitive 24): AListClient.listAllVideoFiles has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (3 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"19980998046826dba2e0e4a207fda8fb01ffa86aec4f2fdfc548191962812414"}},{"ruleId":"D2","level":"warning","message":{"text":"PlayerScreenKt.EpisodeListPanel (cognitive 24): PlayerScreenKt.EpisodeListPanel has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (20 pts), match/switch 2, boolean chains 1, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db1111e863a35f86a93c172f28b5794e654b0b5f70649e6b2d1118989bc92bf"}},{"ruleId":"D2","level":"warning","message":{"text":"HomeScreenKt.RecentWatchingRow (cognitive 24): HomeScreenKt.RecentWatchingRow has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"0130f61c427ff0daabeda28e7174e1be5cbc42becb18f60a72e68f4c1ac3df4d"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveChannelItemKt.LiveChannelItem (cognitive 23): LiveChannelItemKt.LiveChannelItem has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 2). 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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelItem.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"869f93c059a37abbbb423e22db37eaf151f233d54fe51a5521f153fc463ebf20"}},{"ruleId":"D2","level":"warning","message":{"text":"DoubanScraper.getCastAndCrew (cognitive 22): DoubanScraper.getCastAndCrew has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (6 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bbd32c1d5e68d1de0a075c385fc1b9e615914a107cae9fd24aeb982cfb25eb"}},{"ruleId":"D2","level":"warning","message":{"text":"VersionUpdateDialogKt.VersionUpdateDialog (cognitive 22): VersionUpdateDialogKt.VersionUpdateDialog has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, match/switch 3 (6 pts), boolean chains 4 (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":"app/src/main/java/com/lomen/tv/ui/components/VersionUpdateDialog.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b4861c5febf057417ef46a6ea4944fa87e11285b0898cbf0725a5ce71ecd88"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailScreenKt.ManualMetadataEditDialog (cognitive 22): DetailScreenKt.ManualMetadataEditDialog has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, boolean chains 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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcb43de95187782856a6972a805c42ab5059d331013ea6886d4ee2f9af13f84"}},{"ruleId":"D2","level":"warning","message":{"text":"SkipConfigDialogKt.SkipConfigDialog (cognitive 21): SkipConfigDialogKt.SkipConfigDialog has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/player/SkipConfigDialog.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae9858703530676de349d23b305af5bc7e26b05729eb7d004bb54ee65076b9d"}},{"ruleId":"D2","level":"warning","message":{"text":"LiveClassicPanelChannelListKt.LiveClassicPanelChannelItem (cognitive 19): LiveClassicPanelChannelListKt.LiveClassicPanelChannelItem has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (14 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 2). 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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveClassicPanelChannelList.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b0a275f8a7e7c80557bd3c206004adc814e5d1b24016f4185d4c840cf31f20"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsScreenKt.PlaybackSettingsSection (cognitive 19): SettingsScreenKt.PlaybackSettingsSection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 6. 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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61dc86eddd53cab67063b828dc55f88dd8e91bd4e375a98255c19ec3fb0a09c"}},{"ruleId":"D2","level":"warning","message":{"text":"GuangyaApiClient.listAllVideoFiles (cognitive 18): GuangyaApiClient.listAllVideoFiles has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 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":"app/src/main/java/com/lomen/tv/data/guangya/GuangyaApiClient.kt"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5dc4a522eee8e375c0ab4e75742143e3f1e772e02d2413fba01f8d260a1e66"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsScreenKt.HomeSettingsSection (cognitive 18): SettingsScreenKt.HomeSettingsSection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 2). 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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d03eb8004d7a5c4bcf97f46021d00922c6fc089640b1561df4e5492720e7f5"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDavClient.parseHtmlDirectoryListing (cognitive 17): WebDavClient.parseHtmlDirectoryListing has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48d177ada334f42ad583a4a559ae464d44d15072736ece307f203c4ad6d2d72"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataService.getCastAndCrew (cognitive 17): MetadataService.getCastAndCrew has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/MetadataService.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb97cb8d45eba2a49df63f7a0f11d32e6dad4dfe030dc9bb4544153b90f835b"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailScreenKt.HeroSection (cognitive 17): DetailScreenKt.HeroSection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (16 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, 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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"94397b17a495533b31d8b698bb522140524c8d9937aff8a5a6e171752bca0394"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsScreenKt.getWifiIpAddress (cognitive 17): SettingsScreenKt.getWifiIpAddress has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (3 pts), boolean chains 2, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":3696}}}],"partialFingerprints":{"codehealthFindingId/v1":"f447da23371e45aec80b90677bfec228c9b487c8b91c6efa5fd7b665435a0ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDavConfigDialogKt.testWithGetMethod (cognitive 17): WebDavConfigDialogKt.testWithGetMethod has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 5, boolean chains 3, match/switch 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ecf1f6fb83fbb4f262b03572b8af6220fccf4f1fc7316bd418fbf3f772a53a"}},{"ruleId":"D2","level":"warning","message":{"text":"GuangyaApiClient.listByParentId (cognitive 16): GuangyaApiClient.listByParentId has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/guangya/GuangyaApiClient.kt"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d9d69c327b05e54008353c4be6d350a296d12bd32ea03e7ce22666e3f59374"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDavClient.listFiles (cognitive 16): WebDavClient.listFiles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 1, 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":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"040157b6e8b872d14bf1e9223b6ed2273b39e8995ec3b7183a02088ce24a3298"}},{"ruleId":"D2","level":"warning","message":{"text":"WebDavConfigDialogKt.testAListConnection (cognitive 16): WebDavConfigDialogKt.testAListConnection has cognitive complexity 16 (threshold 15). Drivers by points: error handling 6, match/switch 3 (5 pts), if/else 3, boolean chains 2 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77c9c5ff2c48c5939a2b657ef51bbbc837202adaf69cce44296d3d239af794d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/SettingsScreen.kt: FileTooLong \u2014 2621 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2121 over it, 5.24\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15fedbad838347b750e18a456b58cc874592405d730fab8f68aa66ed2971d0a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: home/HomeScreen.kt: FileTooLong \u2014 1858 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1358 over it, 3.72\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1a2e89b8d90df254a17df781c8d9201ce5acc4ff7ba5de441a867d91ce8c04"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: player/PlayerScreen.kt: FileTooLong \u2014 1738 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1238 over it, 3.48\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d533537b495da59361f87ffa6e550d822b596bb7f2283a787067b43d4e502f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsScreenKt.LiveSettingsSection: MethodTooLong \u2014 LiveSettingsSection runs 301 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 201 over it, 3.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2872}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c3ddbbbb33a13dea70452a6ba5fc4ee29445307584d62aa5c3017894ace3fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsScreenKt.SettingsScreen: MethodTooLong \u2014 SettingsScreen runs 286 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 186 over it, 2.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b147dd37d64f625b7ad2a1dbc387b97189be5b9e9af6a6ac56dfab0e16686a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: home/ResourceLibraryScreen.kt: FileTooLong \u2014 1353 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 853 over it, 2.71\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c305007ac379215ddf831a041b0f4ea4b9e8c39d963e4853af99444046995dd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebDavConfigDialogKt.WebDavEditForm: MethodTooLong \u2014 WebDavEditForm runs 264 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 164 over it, 2.64\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"24389f9a1cec1f66b5ff999d3ad38560014cdde02b77b41790b189474bc9a49d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebDavConfigServer.serveMainPage: MethodTooLong \u2014 serveMainPage runs 252 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 152 over it, 2.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":"app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25dc3836ad0b9d7849f7a90a225c8b08fb950b41631e6145cfbe0e08bbb05dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/GuangyaLoginDialog.kt: FileTooLong \u2014 1195 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: GuangyaFieldCorner (127-1566). The bar is 500 significant lines; this is 695 over it, 2.39\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"711fcda32b4ab350c4c7c67554300290955bfafea9b9c80cd26b603aa09078cc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PlayerViewModel: ClassTooLong \u2014 952 significant lines (blank, comment-only and punctuation-only lines excluded), 63 methods. The bar is 400 significant lines; this is 552 over it, 2.38\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4aa68aa99ff003963259322e1f7716647f0cc665ad2ab227d453bfb4860ea0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/WebDavConfigDialog.kt: FileTooLong \u2014 1150 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 650 over it, 2.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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24471b783de4479b8140ae2d0d2bb23a85c9aae85f859e3f91136142d85d5746"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DetailScreenKt.HeroSection: MethodTooLong \u2014 HeroSection runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa0ee2375f427e5845c3c306562f0c611b4db9b70b0c7fe43b44bebc8e66097"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebDavConfigServer.serveLiveConfigPage: MethodTooLong \u2014 serveLiveConfigPage runs 226 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 126 over it, 2.26\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":"app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d8e0dd81e8118dc917907cd3c332b19d47c24a38ec14127d4041dc0039d0dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: detail/DetailScreen.kt: FileTooLong \u2014 1101 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 601 over it, 2.20\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5d235a85d1a6b4c072763c9cecdf9ccf40239eb09cec94b1321dd8b573681c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebDavConfigServer: ClassTooLong \u2014 851 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 451 over it, 2.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":"app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2827972c0879188f19878bb5dbb56ceba2e8a17e8f5650c479803b8599bf7c3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlayerViewModel: TooManyMethods \u2014 63 methods. The bar is 30 methods; this is 33 over it, 2.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ceaa2022af09303a48689fb745f18a284304688d2bd5636cdffd3f76ec770f0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DetailViewModel.loadMediaDetail: MethodTooLong \u2014 loadMediaDetail runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.04\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9c28c6a294c32c2e1612eae050e43d5d029c1ee82eaa17c6de4e5982d4164d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: player/PlayerViewModel.kt: FileTooLong \u2014 1007 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: PlayerViewModel (36-1573). The bar is 500 significant lines; this is 507 over it, 2.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee8ba79832988691bb2a3ee7a1dbe3ca2562295f7a4ccfe68960d57c5be2f6a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebDavConfigServer.serveTmdbConfigPage: MethodTooLong \u2014 serveTmdbConfigPage runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\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":"app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"9802115340c53c55b8e2d608351e3041ddea7c415d5f9525cb90b2ece413e887"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TmdbApiConfigServer.serveMainPage: MethodTooLong \u2014 serveMainPage runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\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":"app/src/main/java/com/lomen/tv/service/TmdbApiConfigServer.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fc61f8a07f8bd770ca29ceea8d7e9a39d999f154eaa6d483987f945ea2afed"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LomenTVNavigationKt.LomenTVNavigation: MethodTooLong \u2014 LomenTVNavigation runs 185 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 85 over it, 1.85\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":"app/src/main/java/com/lomen/tv/ui/navigation/LomenTVNavigation.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b0945821376f9a07b400799e267ae3397612cc8ff6f8a504f82ce7d8b721a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsScreenKt.MediaTypeSortDialog: MethodTooLong \u2014 MediaTypeSortDialog runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2301}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e00edc8a0c595cea7dde7d784d4870ea8ccbe5094d4ade075f7c61fb3ded498"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/WebDavConfigServer.kt: FileTooLong \u2014 858 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WebDavConfigServer (10-1097). The bar is 500 significant lines; this is 358 over it, 1.72\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":"app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aefb3a64b309e2df33baaaa6c67090961e493e82ceca367b440f5066dd0291"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DetailViewModel: ClassTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 267 over it, 1.67\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"febca747ecb1a51317a27037964ed3e4859cc39df3cbe3513934426311a9d0eb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartMediaScraper.scrapeSeriesInfo: MethodTooLong \u2014 scrapeSeriesInfo runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"31be49f378f878617b1a36feede4ff8c0681d3fe31333dbbd203a04e9336f23a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SkipConfigDialogKt.DurationSliderWithControls: MethodTooLong \u2014 DurationSliderWithControls runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/player/SkipConfigDialog.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e138d4f165c6ea1ed2a03a92072528b5a94fc334065b0c0405704ded1f82be8f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SkipConfigDialogKt.SkipConfigDialog: MethodTooLong \u2014 SkipConfigDialog runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\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":"app/src/main/java/com/lomen/tv/ui/player/SkipConfigDialog.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"379e1cc96634829bf7a716d3d41938dfe78d98ce16cbaab1a3b9896456786ba7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeScreenKt.HomeHeader: MethodTooLong \u2014 HomeHeader 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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37c3ce1d3570736006e83dcf635818c81d842a498e5e1bbf023bb98ae44f9fb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ResourceLibraryScreenKt.LibraryListItemV2: MethodTooLong \u2014 LibraryListItemV2 runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f3da5976222ef4642b7977faf30092709bd3c0ff88a9be8e9a1c1fed1e3b5d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DetailScreenKt.ManualMetadataEditDialog: MethodTooLong \u2014 ManualMetadataEditDialog 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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ed6d9f7e9464211ff50694437a0ae4efab820f4fccf8e06b2c2c5b27bdf3dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: detail/DetailViewModel.kt: FileTooLong \u2014 747 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: DetailViewModel (39-994). The bar is 500 significant lines; this is 247 over it, 1.49\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af041edcc66c96b517837e769f72e71e56168e68a736a6420c47b7ff8fce25a1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VersionUpdateDialogKt.VersionUpdateDialog: MethodTooLong \u2014 VersionUpdateDialog runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"app/src/main/java/com/lomen/tv/ui/components/VersionUpdateDialog.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b59d199433ebeecf801bac2de38aabc34695a0461b5add567c2eaf8032ffbd6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlayerViewModel.prepareMedia: MethodTooLong \u2014 prepareMedia runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f04175f64b92bdede39cadcadfcd5e93fdaf7741776c32c0775b6562a0bba7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsScreenKt.ClassificationStrategyDialog: MethodTooLong \u2014 ClassificationStrategyDialog 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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2625}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba53bcb16d53db94bfa6f2cebcd80aa4482d7d5d5084e2ebc8c0e022491f985b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CategoryScreenKt.CategoryScreen: MethodTooLong \u2014 CategoryScreen 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":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"5190e4103a7c53b60da59f038f77ccb7ef2bab7171ff0dbb24cab9cd43e77e6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: live/LiveScreen.kt: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 155 over it, 1.31\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":"app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8289e7bc6ddebed5269504196b300f29b744ff9b2d994eb31b2e6b6265fe1f2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TmdbScraper: ClassTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 121 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7d56953a9af695a5b6bca999fd475bc4d416a95c29c25d1f09751dbee15032"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WatchHistoryService.getRecentWatchHistory: MethodTooLong \u2014 getRecentWatchHistory 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":"app/src/main/java/com/lomen/tv/domain/service/WatchHistoryService.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20ae1ce34448ec72f5c7d76ab053774784b2a41528a082ca8a81c13363c001b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/LiveSettingsComponents.kt: FileTooLong \u2014 635 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 135 over it, 1.27\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5963ab8a61835e280ec28ed333d365575f308031c9387b5174bbd593e4d5d5ff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TmdbScraper: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f130745074319f0c7c9680545c83ca890d2083aa45c0a6b08494d1df5c9b382"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DetailScreenKt.DetailContent: MethodTooLong \u2014 DetailContent runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7780fa1df77928ebcc39b489dee09bdf5893699b87830536f8cefc2a39cc8c88"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsScreenKt.HomeSettingsSection: MethodTooLong \u2014 HomeSettingsSection runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee5111160730283b806e5b79b526eb6895db5e754cfe4833a3cf2681142d711"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TmdbApiSettingsDialogKt.TmdbApiSettingsDialog: MethodTooLong \u2014 TmdbApiSettingsDialog runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fd4a0fa48e46e1e8913c0078ca002cd830a9b3188d06a0634c1735aef3092a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeScreenKt.RecentCard: MethodTooLong \u2014 RecentCard runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2d3a4234a783f06ddb36cd794490e626f9395594682fe9a322438de2cdebe0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PlayerService: ClassTooLong \u2014 471 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 71 over it, 1.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":"app/src/main/java/com/lomen/tv/domain/service/PlayerService.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3807f482e352288d3efe92f3ccce06b46c307029f471658f19589fa9f365561"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DetailScreenKt.EpisodeCard: MethodTooLong \u2014 EpisodeCard runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcecfcb8b55959d2b4e44338325b919fa5befcded8ba6fc041c8bcbea06993f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/LiveStatusBar.kt: FileTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 73 over it, 1.15\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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd82b7cb1367652bf97e683975fd4f2096d686fac71193b515764047295ce14"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SmartMediaScraper: ClassTooLong \u2014 456 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 56 over it, 1.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9060342ce3d6d9278f49d722eeb65d620660491bd945d599aa59e1402e810397"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlayerService: 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":"app/src/main/java/com/lomen/tv/domain/service/PlayerService.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0c10318e75779998f5ea8ffdd312ebebbab46d7004cce540ac628ede300765"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebDavClient: ClassTooLong \u2014 449 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 49 over it, 1.12\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":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"1808ca42646a39c4e444f306ad13ab56646697ad2d6328b47ba37afce7b88c53"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: service/PlayerService.kt: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: PlayerService (31-771). The bar is 500 significant lines; this is 61 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/PlayerService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c411cf45d3bde9849e5aa7a644d2d1ec5f9bfc19198d77e6d32cde000b1158"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecentWatchingScreenKt.RecentWatchingCard: MethodTooLong \u2014 RecentWatchingCard 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":"app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"436fe6049281b8ba444e6dac3236331ece8f872c861df2b5aa4281c851d13e95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scraper/TmdbScraper.kt: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: TmdbScraper (41-870). The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06329eac53c720d3431a6082fd442b46ae5be60854b46221bb320d68119db8a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PlayerScreenKt.EpisodeListPanel: MethodTooLong \u2014 EpisodeListPanel runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1820}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0e3a1e3663ea19fb7610c7db8b99d0280f15dbfcbb7a0976c09d5296084940"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WebDavConfigDialogKt.WebDavQrCodeConfig: MethodTooLong \u2014 WebDavQrCodeConfig runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d70292670ca45e05d125edd6b6a05b8d0fab6dd8607a4ccbd6fd4c409a1894"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsScreenKt.SettingsSidebar: MethodTooLong \u2014 SettingsSidebar runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ddfa5797de3a4ebc21aa630c0d760beeec2caf24d19c3a31c632b636a816e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeScreenKt.TvShowSeriesCard: MethodTooLong \u2014 TvShowSeriesCard runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"61afd2df087858d8fd620b70581540c2eddbe6386e7c3bc5a1a483e78dd87fb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 35 shared lines): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1362-1527 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2155-2284 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2293-2437 | app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt:196-353 \u2014 These 4 members are variants of one another: a block of 35 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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d5b24739e8f535f80aa55204b19cd20988531163b6ddb0da4887d09355e253"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 32 shared lines): app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2042-2102 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2112-2172 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2182-2234 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2244-2304 \u2014 These 4 members are variants of one another: a block of 32 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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a716a5a11c1233b9934cbf037353fdc2ddbef2614174f3d89e5e217f1bb639"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (86 shared lines): app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:607-751 | app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:756-886 \u2014 These two members are variants of one another: 86 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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67f19d63d9768894fdd07c81af8d50d71ff335cc37b79e15536212b89014e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (53 shared lines): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1603-1677 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1871-1960 \u2014 These two members are variants of one another: 53 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bbcfdb5ddb4f2f613a342fc489ad74efd2162c5a3f5c099a9e6cb512adf9c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2478-2605 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1479-1590 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2032-2154 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2166-2294 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2305-2555 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2629-2797 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1515-1632 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2478}}}],"partialFingerprints":{"codehealthFindingId/v1":"47140939e4fe83d9d0767c91f85fadf7eb1ba1d06b717d2ab2e559296b180d5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/lomen/tv/domain/service/TmdbMetadataSyncManager.kt:162-181 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt:841-880 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt:943-974 | app/src/main/java/com/lomen/tv/ui/viewmodel/MediaSyncViewModel.kt:390-434 \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":"app/src/main/java/com/lomen/tv/domain/service/TmdbMetadataSyncManager.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c62a6bfb65e5be409332cb958555527d4a542fdecd2d50e280dc4712ff9242"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3317-3408 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3419-3510 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3521-3611 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3620-3691 \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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":3317}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6da30a86158dde801066a8e5f1043a7e64a59a5388b3d43e1e198b244cb815"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (110 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:316-440 | app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:447-556 \u2014 These two members are one piece of code written twice and then edited apart: 110 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1322fa4f12a32b774989f63388ff2e3f34a44666eeda6d16d18a66ac571ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (106 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1916-2022 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2041-2146 \u2014 These two members are one piece of code written twice and then edited apart: 106 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1916}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd447b1f781d02a59c0655cb77517ec4846b055a32a6c85f4a5f59e0b833468d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (114 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:337-465 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1395-1508 \u2014 These two members are one piece of code written twice and then edited apart: 114 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0e3472027f7f2ab48d38e1d7f7baa8bf54bb5532e0000b9f282a00db4fe018"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1068-1125 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1288-1345 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c101e9624666e8b5b884984d1e07b13f3b74b321ca00f9aebb1d327207d8e11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (89 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1580-1681 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1718-1806 \u2014 These two members are one piece of code written twice and then edited apart: 89 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94bf3fe67b320f54e4e2f28c98aaab0e7637c7e12599e740771c551e319d456"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 63\u002B corresponding lines): app/src/main/java/com/lomen/tv/data/alist/AListClient.kt:119-187 | app/src/main/java/com/lomen/tv/data/guangya/GuangyaApiClient.kt:352-414 | app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:448-528 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 63 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":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4833c82d2eaeada1e9ba4cf68aca0a65727d8526d4eb4d639e276bca3847ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1386-1446 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1453-1523 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"338d2932ad8edff5f0bd4f95e888e0bd0a9a0419e71a495cd7dd48b521afe6d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInfo.kt:31-100 | app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt:319-388 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInfo.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"321233650c376ee083474fbbf978768cf1491b3961ecb2e924c5c72fd8c8a7cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1036-1092 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1095-1155 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"c388a0375a12a4ffaa20fa8ce4441e9c2554564bffd4dd9d62784effd3738fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:586-615 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:617-646 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce349e920870c864048d28deea3a286682e089d0cc43753d5b0789733c4edee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:543-583 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:597-651 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc17a8fd1d7c37b64bc9955b2f12a6f2b32ed4616a6f6a854662ac605a50fe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:132-161 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:224-253 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:353-382 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b1e950b392f88246ec915d96258fa1f5949861529005e3aa18ab8a18a01906"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:461-507 | app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:512-553 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d73801c67b58552781e24293ba976d1d55e2534bc792cec3c62ebde1d55c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:307-328 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:330-351 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:563-584 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1baee9d7bc1bee7f13e85cb9746e03308db3f10bfac2fed37bf6d1bc43ea04a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): app/src/main/java/com/lomen/tv/data/remote/parser/EpgParser.kt:68-105 | app/src/main/java/com/lomen/tv/data/remote/parser/LiveSourceParser.kt:55-85 \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":"app/src/main/java/com/lomen/tv/data/remote/parser/EpgParser.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f8e290180a6814270f211f5487a564fb9d56e191027dbe61ea0a5f00208d66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:267-308 | app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt:147-188 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdad0caf0a3ae2bf3db919ccc6ac7ad1c4ac11270f93c5092db092d9fad1c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/search/SearchScreen.kt:349-387 | app/src/main/java/com/lomen/tv/ui/screens/search/SearchScreen.kt:395-443 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/search/SearchScreen.kt"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"294cede6f275621750dd03c37f7c2f27547202e23d0ae230d78f051ddf870409"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): app/src/main/java/com/lomen/tv/ui/components/InfoPillToast.kt:38-71 | app/src/main/java/com/lomen/tv/ui/components/WhitePillToast.kt:41-74 \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":"app/src/main/java/com/lomen/tv/ui/components/InfoPillToast.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8bd9a10a5815101c1cd37031fb8a27caf8bd39e8f869e9f7b3245407d59183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): app/src/main/java/com/lomen/tv/data/scraper/MediaInfoExtractor.kt:465-486 | app/src/main/java/com/lomen/tv/data/scraper/MediaInfoExtractor.kt:496-518 | app/src/main/java/com/lomen/tv/data/scraper/MediaInfoExtractor.kt:528-545 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"app/src/main/java/com/lomen/tv/data/scraper/MediaInfoExtractor.kt"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1e31be20f1bdcb65628a12529ef0f6d33ab727dc276b048affc5ea7a9b74ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:187-218 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:408-439 \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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"2935175d0c76e48540dc115dc67b70563f23a074e2be65dc55f83311189428d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt:126-150 | app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt:189-214 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac105e0f7b842a2a33d9e9bccbe6ff3e4631cce155b438fce75393efcc7b6c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:673-700 | app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:707-728 \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":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa9429778df1d4d30e57736658c8cca30eab60a5e06761b78eb9ab4175caf23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 19\u002B corresponding lines): app/src/main/java/com/lomen/tv/service/TmdbApiConfigServer.kt:304-322 | app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:436-461 | app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:745-770 | app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:1065-1083 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/service/TmdbApiConfigServer.kt"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f28bcf70ea1c184f8186514c38699810c827bd9a4205adad2c82cefbca8b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:990-1012 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:833-854 \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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"322c509e4a8ae69fe785ddfb36370c9f083851a1ecaa93bafedb1b4575ab5e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:1196-1228 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:1499-1534 \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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0522272e733c1ce3dd02293c22711ae1c2e34f857a5b9c5edc789df69c2c600"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): app/src/main/java/com/lomen/tv/domain/service/QuarkService.kt:63-87 | app/src/main/java/com/lomen/tv/domain/service/QuarkService.kt:94-118 | app/src/main/java/com/lomen/tv/domain/service/QuarkService.kt:121-147 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/QuarkService.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e42a41c8723336b843f6da83fcc4b280fe3a7dfd746f372215a75f36994e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): app/src/main/java/com/lomen/tv/data/repository/ResourceLibraryRepository.kt:46-66 | app/src/main/java/com/lomen/tv/data/repository/ResourceLibraryRepository.kt:69-87 | app/src/main/java/com/lomen/tv/data/repository/ResourceLibraryRepository.kt:101-116 \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":"app/src/main/java/com/lomen/tv/data/repository/ResourceLibraryRepository.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"390f29a55f587b9744acbaf1a79c043bcf926849ab5488d9a93a08e05518250b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/lomen/tv/data/repository/LiveChannelRepository.kt:140-156 | app/src/main/java/com/lomen/tv/data/repository/LiveChannelRepository.kt:161-177 \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":"app/src/main/java/com/lomen/tv/data/repository/LiveChannelRepository.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee458bd503c7112252cbbcd3df27b55ba337a1acf7dbefc77bf73b9f5f729f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/lomen/tv/domain/service/MetadataService.kt:198-212 | app/src/main/java/com/lomen/tv/domain/service/MetadataService.kt:217-233 \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":"app/src/main/java/com/lomen/tv/domain/service/MetadataService.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c36557c6e890f2b6dc91480021cd77b682060dbaaff092f595956de84e9e6f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:778-788 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:814-824 \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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf08d6a0f2b4592a7d42cc3cb480dc883904bd6f1e0bafb63f98206aebf069f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:87-117 | app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:179-196 \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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2372dcd3d5d0ace65229d83607d6d60d2545a87298188ff04a9ea1ffd8a0f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/src/main/java/com/lomen/tv/data/alist/AListClient.kt:219-234 | app/src/main/java/com/lomen/tv/data/alist/AListClient.kt:236-248 \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":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6afe7f36bc3e16d3f511de56873b8b5eb5b3771a5db7a297e38455ca6c6d6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:772-785 | app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:787-803 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"5270950697f6efa0c7a56c9ce6e56934b52cd52cf7b38355fe70022d8463f6b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInput.kt:21-40 | app/src/main/java/com/lomen/tv/ui/live/components/LiveDateTimeBar.kt:69-87 \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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInput.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d054b0d8a344c887a19821d2dfe6af3ddf145cea5bf0adc43d4569174edc49f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1530-1541 | app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt:355-366 \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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f16ed3aa31899d3f5eb08cea21a5a8d22ea2008cec858b9e7773e0acae2600"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:68-83 | app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:115-131 \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":"app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8c841f2b666b7540b3e728c3ecd72627f1c2aaa87b56d4a6a3de1978d2927a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/src/main/java/com/lomen/tv/ui/viewmodel/ResourceLibraryViewModel.kt:253-269 | app/src/main/java/com/lomen/tv/ui/viewmodel/ResourceLibraryViewModel.kt:290-307 \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":"app/src/main/java/com/lomen/tv/ui/viewmodel/ResourceLibraryViewModel.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ea0b7c2e6db616fddfbb648164460db00b001d0bfdcc5a0f434898b891c506"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/src/main/java/com/lomen/tv/domain/service/TmdbMetadataSyncManager.kt:60-74 | app/src/main/java/com/lomen/tv/domain/service/TmdbMetadataSyncManager.kt:76-90 \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":"app/src/main/java/com/lomen/tv/domain/service/TmdbMetadataSyncManager.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"709f8f5437ba0ffc4a41178a3004c8a0438c089117bf414d26f486eae77b890c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 8\u002B corresponding lines): app/src/main/java/com/lomen/tv/data/preferences/LiveSettingsPreferences.kt:150-157 | app/src/main/java/com/lomen/tv/data/preferences/LiveSettingsPreferences.kt:162-169 | app/src/main/java/com/lomen/tv/data/preferences/LiveSettingsPreferences.kt:352-360 | app/src/main/java/com/lomen/tv/data/preferences/LiveSettingsPreferences.kt:365-372 | app/src/main/java/com/lomen/tv/data/preferences/LiveSettingsPreferences.kt:387-395 | app/src/main/java/com/lomen/tv/data/preferences/LiveSettingsPreferences.kt:400-407 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/preferences/LiveSettingsPreferences.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9424f4ee728b1e4c07216ab412fdbf97f64517e3cc1208bfc22c3180c22cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1237-1247 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:168-177 \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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b26ac5ed45cd20e52d17504e9f684c69dc0be360b856d549af1978aae61905"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): app/src/main/java/com/lomen/tv/domain/model/MediaType.kt:15-18 | app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:1577-1580 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:107-110 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/model/MediaType.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b354943d3bb8b25f190b81a1978b13c1a43dcca1d0376260aff297cd860d1337"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (89\u201390 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2156-2245 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2294-2382 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2156\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2156}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4404b4af9df5b5856226911366059d47369ff0ca607c957459f06372e1864ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:317-394 | app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:448-525 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:317\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":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d893f005ddecb8d5111d61ec0904bb9d4fe4e2ee590648cdcdb8c19016d5a442"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56\u201357 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1917-1973 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2042-2097 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1917\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9eeb33b47a1edf507245864880160b27508f85bdbab9d79a980165a59ff33bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53\u201354 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:678-731 | app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:814-866 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:678\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91cba07949a3e10171dd8e8488826086dc0668589e0d1677bcc67d8cd5808a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:261-311 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:314-364 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:261\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"271178053484bc69efd11ce5d19d886c8833dc0a75e545a73fa7b908a95987a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1412-1461 | app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt:243-292 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1412\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 \u0060modifier\u0060 to \u0060Modifier = Modifier\u0060 in one and \u0060modifier =\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"872e420026df347cd0449f15b101ed5a8d1c7625405a32a6d7dc8d629d90d1b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201336 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3360-3394 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3462-3496 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3564-3599 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3360\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":3360}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a4a743da2ae2767197c72d4ef2b53e3ffa403d4555c3cd59847a550a1a4707"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1976-2010 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2100-2134 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1976\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1976}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85cfee418b56e29f6a576503879b0cc8b8f7af4c4d38a8dc06f1bce025851ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:731-763 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:794-826 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:731\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d35b2a1cd31056d678f47c4363cf5f1adc2e58ca64bebc61ee8030f3c693a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:433-464 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1477-1508 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:433\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: \u0060MaterialTheme\u0060 names \u0060androidx.compose.material3.MaterialTheme\u0060 in one and \u0060androidx.tv.material3.MaterialTheme\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d19a11c7fd966a6a4e86aca6249d4976127b623ba507411719573401d21f290"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2254-2284 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2407-2437 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2254\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56f68e1c230b3b29ce86d67da8bf18221689ef18b77920c80ee1a69e8e94e50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1173-1203 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1220-1250 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1173\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"48745aafb73691ec4ccdd6e36207893d6b35034642dcfaffbf1c82e358ea6641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/viewmodel/MediaSyncViewModel.kt:95-125 | app/src/main/java/com/lomen/tv/ui/viewmodel/MediaSyncViewModel.kt:155-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/viewmodel/MediaSyncViewModel.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d6164cc57f609e6a38344e06bc746fbaf771810019d999e367eb1d8d6fcf47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:555-583 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:622-651 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:555\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a06164f4fac768e1732e627818649eb1da3e0b2a64eb8861e3be382a69ec74a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:268-296 | app/src/main/java/com/lomen/tv/ui/screens/favorites/FavoritesScreen.kt:160-188 | app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt:148-176 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:268\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":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ac49d405e22ad2aa55627e977c0f3d9c5bfd54212c5b23b432b486c660118d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1088-1116 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1308-1336 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1088\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd571ae8f22fbfcac477d8947b3f5acafee34b3928700dcf6cbeea465d86be8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1605-1633 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1873-1901 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1605\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed4f020b068b46bb4b9286eed1a0778876fd1b0cde4c053bd3d9c8ae38d839d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInfo.kt:59-85 | app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt:348-375 \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 \u0060app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInfo.kt:59\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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInfo.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8b86e5e143fd567612d2cae3f628f105fc1ed1937e8c5d0850aede3d61bdea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/player/SkipConfigDialog.kt:461-487 | app/src/main/java/com/lomen/tv/ui/player/SkipConfigDialog.kt:495-522 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/SkipConfigDialog.kt:461\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":"app/src/main/java/com/lomen/tv/ui/player/SkipConfigDialog.kt"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d1eb6caf79d7cd00140ea94fa2cddc52544e85f315cb3f89adb85b316c80d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 6): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2482-2508 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1489-1514 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2035-2061 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2169-2194 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2324-2350 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2641-2666 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2482\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2479\u0060 calls \u0060FocusRequester\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2032\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2482}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16fc7ece7386b1fdc2c67b36705640877731287e2280a0d8df03833d1182493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1298-1324 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1367-1393 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1298\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1394\u0060 calls \u0060bringIntoView\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1325\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"63aebe00796193b4781f53252a8502de21bfe210e66442b89f769543a1c665ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/alist/AListClient.kt:126-151 | app/src/main/java/com/lomen/tv/data/guangya/GuangyaApiClient.kt:359-382 \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 \u0060app/src/main/java/com/lomen/tv/data/alist/AListClient.kt:126\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":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf4e38c2bf0504b2017eca68b2f4fb7819753872c81afc46bf073e5a0813b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:836-861 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1632-1657 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:836\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: \u0060MaterialTheme\u0060 names \u0060androidx.compose.material3.MaterialTheme\u0060 in one and \u0060androidx.tv.material3.MaterialTheme\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb696c19279c07f7798fc047da1b072d3cb4be596a8404275fbf8738109fee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:869-893 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:490-514 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:869\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0f5f7d1f9fbcd1f2b14c535ed3c7f35d1475871f46e198438f950dbab63098"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:148-171 | app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:173-196 | app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:198-221 \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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:146\u0060 calls \u0060when\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:171\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":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25f51a7222a607358b32febaaed25a16cfa5ca57885ec54a527220aa36f1b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2125-2148 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2265-2287 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2125\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1289950f10ea716f170269cf3f2292beeb57694d9ef60d7c22265af1f4e652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1125-1148 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1214-1237 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1125\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1125}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca635bfe0d21d31107347604ff271162a2fb67d745640ad9d68b32b64a9b6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:434-455 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1478-1499 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1601-1623 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:434\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc5e59303983a6580ea5f918f07e8b7d69afa8c8bdc5d80f27442406e29bfd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/favorites/FavoritesScreen.kt:241-263 | app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt:217-238 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/favorites/FavoritesScreen.kt:241\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":"app/src/main/java/com/lomen/tv/ui/screens/favorites/FavoritesScreen.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"575bf75864c134062e66b474e935ea909f822a3290d58579607f6843ab6e5531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelList.kt:57-78 | app/src/main/java/com/lomen/tv/ui/live/components/LiveFavoriteList.kt:33-53 \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 \u0060app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelList.kt:57\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelList.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f2b79da1d95f3b4dc43eccc74591a86de20b6d53fe75388ec91404ec48af13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:267-288 | app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:343-364 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:267\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"90139d9021d85a802d3bc1db6d11af5a3a28e3cdbef16c995ab888769ba7939a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:609-630 | app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:758-779 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:609\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8c3b187a56335dc018942933add454c14b936291df3e02f216245d5d7e27f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:419-440 | app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:535-556 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:419\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":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ea0fa3303643b9048a4a27a720d86f006560a3a0cd645cb509ac38141772ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2082-2102 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2152-2172 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2284-2304 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2082\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2340dabf25db13fb0fd67fb81c36d51ee17f0f2e786ac1c8ddee2fdaf0bff94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1033-1053 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1069-1089 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1105-1125 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1033\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1126\u0060 calls \u0060size\u0060, \u0060clip\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1054\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41a488cef10d60f4281b7eae906dedac0642898ccb60f056aa1cad12e983333"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1307-1327 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1977-1997 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2101-2121 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1307\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b54bd1c4a474a39a5b6814806840f21c4c4cbee4e5aeaa6158a13a442487fd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:403-422 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:882-902 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1447-1466 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:403\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:401\u0060 calls \u0060fillMaxWidth\u0060, \u0060padding\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:881\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"310065510a26f37812ce2ff05f8b5ae342ab4358ac5a84c1dff3ae5b71dd1e61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 6): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1307-1325 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1332-1351 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1977-1995 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2000-2019 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2101-2119 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2124-2143 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1307\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb30d68659ae6687784a9bc0e8e78bf8797221d0dfeeeaaa9ca96670ea8dd4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/search/SearchScreen.kt:350-369 | app/src/main/java/com/lomen/tv/ui/screens/search/SearchScreen.kt:396-415 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/search/SearchScreen.kt:350\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":"app/src/main/java/com/lomen/tv/ui/screens/search/SearchScreen.kt"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff63a626088d4bfb4c3f4fe8236a6fe92c0a3e8e8db4c89f6cbea49c972321c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2099-2118 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2239-2257 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2099\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2099}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab012273844ed89a15474f767beca775c7b3a62bd2dbefe3516f2f3aedd2b01a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1417-1434 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2197-2215 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2334-2352 | app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt:248-265 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1417\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060modifier\u0060 to \u0060Modifier = Modifier\u0060 in one and \u0060modifier =\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e657b32e8f950ace98a4a9fe0f1b9106436c01f0b5d523e2456c73a3a4cdf00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2534-2551 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2087-2104 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2227-2244 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2490-2508 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2534\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2553\u0060 calls \u0060focusRequester\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2510\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2534}}}],"partialFingerprints":{"codehealthFindingId/v1":"87030c1f5679ea4252130c5bca0e5ee6556c52a003e0b051490ae517d44ed1ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1584-1602 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1622-1640 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1664-1682 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1584\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1584}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6296a216ca9317d754b502a67e9ade2498cd0a4fd7c2bf6641259ec880911a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:1135-1153 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1643-1661 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1787-1805 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:1135\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c0c0661a442aa4b0563a4c2735619763ea2838839793dda029e8a3add25da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1063-1081 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1123-1141 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1212-1230 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060WebDavConfigServer.WebDavConfig): ConnectionTestResult? = withContext(Dispatchers.IO\u0060 in one and \u0060WebDavConfigServer.WebDavConfig): ConnectionTestResult = withContext(Dispatchers.IO\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"58488cd8264a1e920bcf0bfe87f54acb3464206619c86566824b43784a530214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:309-327 | app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:383-401 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:309\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":"app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"0371fe80a9248c8a6be3da91bffc149c227c92a1359ca433560935323494f96d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1363-1381 | app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt:197-215 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060historyItem\u0060 to \u0060com.lomen.tv.domain.service.WatchHistoryItem\u0060 in one and \u0060WatchHistoryItem\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt:217\u0060 calls \u0060Column\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1383\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa29d4c056bfb1c1d96374a006023bbb789d8478c2d80c7920f2b743ae898ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1195-1213 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1222-1240 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1195\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"e497c931c785808bcde5e484237f389daafcdc720ac0453417af80656e88f8ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1460-1475 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1497-1512 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1545-1562 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1460\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1496\u0060 calls \u0060Spacer\u0060, \u0060height\u0060, \u0060scale\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1459\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1460}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a00cc4d532ca3e314ed6e26e8273b03a3c0e9a4fe385fc63093827e73d6e40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:279-296 | app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:357-373 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:357\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":"app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade9d0d33525af7aa49a19215721c6b337ec0502e3318da248944d06ab25f70b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 7): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2492-2508 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1498-1514 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2045-2061 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2178-2194 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2334-2350 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2650-2666 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1542-1555 \u2014 there are 7 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2492\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2352\u0060 calls \u0060height\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2510\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2492}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfd128c0e09fc9f2f5b2acda9358d97225895ab213b8d02f4172ad4b5cde4a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1452-1468 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2254-2270 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2407-2423 | app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt:283-299 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/recentwatching/RecentWatchingScreen.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060modifier\u0060 to \u0060Modifier = Modifier\u0060 in one and \u0060modifier =\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"26bccaf4ba4bb43746b75f8099b6de4f45c23bcad300106ad0edc9fb3bedbf16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt:725-741 | app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt:783-799 \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 \u0060app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt:725\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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a548d124b0292c7613912bb923eadcb085de6565a4d185c5a0adf5635932baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:1044-1057 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1596-1612 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:1044\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 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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5490a9acfda83b0e2e94208af43c966ac1ff6b2bdd6aa19d27e6e8591978fca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1393-1409 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1422-1438 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1393\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1421\u0060 calls \u0060Spacer\u0060, \u0060height\u0060, \u0060scale\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1392\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be9547b8cd1a6883fb6a11f2e614f6fdbd30a0d0083cd81d9eff090ffd25921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1235-1251 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1336-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1235\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1335\u0060 calls \u0060padding\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1234\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c58c0deb45e796724592ff45a26b9b56ccf7b69dd3c49efc0781ca4a2717bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1069-1086 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1289-1306 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1069\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2eeb9759ba2335a2d068d7fa146273f0ae5f303cd28c50727fb7dbb0cfe00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2732-2748 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2764-2780 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2732\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2732}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e03364db5acfcb948689897e1e69a427dffb6180dd2af88c88780df6be89adc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2045-2060 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2115-2130 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2185-2200 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2247-2262 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2045\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":2045}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75278653855d67cd707034a86cf9637b30885035431585bda4508c7475c82d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2077-2092 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2147-2162 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2210-2225 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2279-2294 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2077\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a318f54f9ceb438150010c4fcb47c7277809c664d2943eabd959ee8dc8c1c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:371-400 | app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:502-531 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2221-2251 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2358-2388 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:371\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":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7acdd36985000ff1b2f873e6cf5effb04b7688d08bf971039fe7ad57ce5aee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3321-3336 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3423-3438 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3525-3540 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3624-3639 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3321\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":3321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae363cce0730b188c70565345f971b25f06cbb45295a307f0a8690141701ea44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:805-819 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1604-1619 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1872-1887 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:805\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:802\u0060 calls \u0060Composable\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1601\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ad27dd3461e40b2de41b065b8625509d9ce83a3a7d0ef7301f4073af94086c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:845-860 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1641-1656 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1909-1924 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:845\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"8814aee50f4a965f30e399dea1bf6cca21217dd8155614df07e895a7c48a4a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelItem.kt:136-151 | app/src/main/java/com/lomen/tv/ui/live/components/LiveClassicPanelChannelList.kt:225-240 \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 \u0060app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelItem.kt:136\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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelItem.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e387bd346941b4fcf4020851cdf5ac6aeb55d42aaec0242cbe27d5d674a116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1386-1401 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1724-1739 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1386\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1386}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fce6fa2179309f69a56dc938a46ea8818e10e4885a50bc46f7fd9ab23566593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2564-2579 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2116-2131 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2564\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2582\u0060 calls \u0060focusRequester\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2134\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2564}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e4a1c02c79ee0add4ade1bcb0b85519720cd7624abbc9607e7852359913d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1414-1429 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1489-1504 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1414\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b99cfd28d4bf72024d0ccb7d139b767a8e7b263202e3adabc82b0b6276edee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:538-553 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1059-1072 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt: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. 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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aec2bfdddce0376e9b50c4dc234ab014f302edd97fb250485aeef2bea4a0f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:583-598 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1095-1110 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:583\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c3c08a6771d03598f218465a56c86318c55ef2e0bf86d3f413f2871437e80d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1168-1181 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1271-1286 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1168\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6ec085d506f4289d222da70282cd7cd128870466c4e1298b45a58c96cdfe05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:587-602 | app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:643-658 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:587\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:603\u0060 calls \u0060fillMaxWidth\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:659\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"b682c3e03ae7935ded6bdf8f629e811b95da04f6e3aa9fd58397f90f45446931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:550-564 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:580-594 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:610-624 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:640-654 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:670-684 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:700-714 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:730-744 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:550\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c226f06d8fee8d12fcae4925992dd7c9ad8d51e1934be89b6132b0134b3897"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:249-263 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:278-291 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:388-401 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:456-470 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d280880ec5de37258c6befa1dec06e7e034e67284845198815a61952bf2c36c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt:77-91 | app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt:101-115 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt:77\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":"app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5df4a1cafcd3982a1c1b06577e4850284acd5539c4f1ff752e040424965efc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt:297-311 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1002-1016 \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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d27b495f007646c38e84c9e10a3014d9de20cdce1fca81fe2b1e04ef54c5c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1165-1179 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1189-1203 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1165\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c43eef12994b3d02e86eb343cceb6f8432352af889d033c0af63a5d18490ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:329-343 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:365-379 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:329\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fd155ebd6d35b81837bef73b8c597d44b6952cdfa5709819f0d664b22d7003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1424-1438 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1527-1541 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1424\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0aea8e3d2cff931b1abe837d8cba550f247a4786d800700de8f2fc56008b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): app/src/main/java/com/lomen/tv/data/alist/AListClient.kt:136-149 | app/src/main/java/com/lomen/tv/data/guangya/GuangyaApiClient.kt:369-381 | app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:463-476 \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 \u0060app/src/main/java/com/lomen/tv/data/alist/AListClient.kt:136\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":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1e543d7ce93022b9bc467ab72af6b1bf577d55cae4aefab6c8940635700171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt:849-862 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt:956-969 | app/src/main/java/com/lomen/tv/ui/viewmodel/MediaSyncViewModel.kt:416-429 \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 after the matched lines, \u0060app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt:971\u0060 calls \u0060enqueueSeasonEpisodes\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/viewmodel/MediaSyncViewModel.kt:430\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5efb1b36f37d3a168ca31df674b5d1fdf8ddafceae8767f39000e7be139797"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1383-1396 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2162-2175 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2300-2313 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1383\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefd5c4c2d24ec3919ba83fa56333dba8df8ccf3d90bf44b5e0b5d156ebd85de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2568-2581 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2120-2133 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2261-2273 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2568\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2582\u0060 calls \u0060focusRequester\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2134\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2568}}}],"partialFingerprints":{"codehealthFindingId/v1":"266aa3c16bfde202ce4b0951a53cab7a825fe9a3b41dfbf67774f4779851643d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:587-600 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:618-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 \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:587\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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f6d63ad7ee38a5e357d8ad9510b650149b72f78540a225c5f2207902934b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/src/main/java/com/lomen/tv/domain/service/MetadataService.kt:59-71 | app/src/main/java/com/lomen/tv/domain/service/MetadataService.kt:93-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/domain/service/MetadataService.kt:59\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":"app/src/main/java/com/lomen/tv/domain/service/MetadataService.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d93460874ac186ead0646e148c9ad29aa9fb1f2ce30403cc8eaaa8188c2e06b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:70-83 | app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:118-131 \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 \u0060app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:70\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":"app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb4e3710e6d1da69c93ef3ff2b118af2ea3f7250b5c9b964e051a85fbcff700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/components/VersionUpdateDialog.kt:177-190 | app/src/main/java/com/lomen/tv/ui/components/VersionUpdateDialog.kt:212-225 \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 \u0060app/src/main/java/com/lomen/tv/ui/components/VersionUpdateDialog.kt:177\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":"app/src/main/java/com/lomen/tv/ui/components/VersionUpdateDialog.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"73703bd067137398b53ddcc54f0a130718f39923f6bc88b5b5456c2ab958d937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:579-592 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:709-722 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:579\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4d5a47417af362b94190e6a6fec334c651bbd8c842b6a7bc3d6955c538076b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1615-1628 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1746-1759 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1615\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"baccac7b6412703b9df924f89a8bac2892e050ca98fc00f1a5f3aaa72a11626e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1387-1400 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1454-1467 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1387\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e902551c7498f27fab365c33881ae7a6a15b2d56005d3d6e2000f90db22d2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:196-209 | app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:370-381 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:196\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"70682836152e8cb6f6a40fe0bfaacb99978d3298346dd7ec625f26617d7f57d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2542-2554 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2571-2583 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2095-2107 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2235-2247 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2728-2740 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2542\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2542}}}],"partialFingerprints":{"codehealthFindingId/v1":"1342eedf8789d72f8d09c246bf2c4c331c84973b94011dff1c0cecdee288d1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2987-2999 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3010-3022 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3033-3045 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3056-3068 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3079-3091 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2987\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4bb4bc13c5a0ba47c6a34396a376f7cff6e8a8e3c075db2ac0e4687b44aac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:148-160 | app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:173-185 | app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:198-210 | app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:230-242 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:148\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:146\u0060 calls \u0060when\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:171\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":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"165e7f50ea7dfc20dae915e0b0c14e07e3f6014cf35ad8239e2fdbccf38e98b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2123-2135 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2263-2275 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2499-2511 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2123\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1c33069552faa424ca5094a298dd4739ed4b843504ad36b8f4f45bb86108a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3346-3358 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3448-3460 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3550-3562 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3346\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":3346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24b2f93dcd9da672e4da4f1fa0c29ca9cc285d0d3d72f1fb2168669b5fdb2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt:125-137 | app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:608-619 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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. 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":"app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e64db8b1a64c55d085ab9aff76edcb585baa8e05e6a52630f190bb2c02a975d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:219-231 | app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:408-420 \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":"app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"609b924b3decd60772d4686350195b2da6a485111a4eb188c0aa22dd1d93e5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:809-821 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:867-879 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:809\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"62410f2d7c912bf8144e6cbd09de01b3412aff6f6f708bd0375d164bbff002e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1196-1206 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1292-1304 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1196\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbf24e8ee3a5db6005e2baf100e8115a1bf947c209e0738f1a2301579827baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt:117-129 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:709-721 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt:117\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33323721a3725ecfa6ba772cd048e96164f02845a7c5b76ae316ec7079d6f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2540-2552 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2093-2105 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2233-2245 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2497-2509 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2727-2738 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2540\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2553\u0060 calls \u0060focusRequester\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2510\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf53070a566bd22170337597d400bdbbb40743c1e013a19cc354a9a55632d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt:132-143 | app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt:194-205 \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":"app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"814249bcf9b3fc810936bb54f071d6ca7e78ada71cbc9ed808ec428518edadc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt:98-109 | app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:404-414 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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 \u0060app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt:98\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":"app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1883dc2fc4c588016cf8d435dd46d58b22941aeb4370ead22c9b73ef1889953"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/live/components/LiveClassicPanelChannelList.kt:198-209 | app/src/main/java/com/lomen/tv/ui/live/components/LiveClassicPanelGroupList.kt:150-162 \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 \u0060app/src/main/java/com/lomen/tv/ui/live/components/LiveClassicPanelChannelList.kt:198\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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveClassicPanelChannelList.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"8024f1448a9998c704bbc1196a76adcbabe7e32229ae5a52e41d857b5e2dc33e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt:249-260 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2915-2926 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt:262\u0060 calls \u0060launch\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2927\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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7775f62d8a7580c1e7a661a72b3f924c882c97b2932ffe73df8ca6dab997863a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/navigation/LomenTVNavigation.kt:151-167 | app/src/main/java/com/lomen/tv/ui/navigation/LomenTVNavigation.kt:319-336 \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 \u0060app/src/main/java/com/lomen/tv/ui/navigation/LomenTVNavigation.kt:151\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":"app/src/main/java/com/lomen/tv/ui/navigation/LomenTVNavigation.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de0a969bcce0eccd58505c2585a9f68ee0b636919e2d8049b54bb81dcd741a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:404-415 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2393-2404 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:404\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":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bfa5c3d5f543674121ed5682eb5e04a8b2177efed18295d3b43407376dbfc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1555-1566 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1693-1704 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:1555\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"1204f3f5234fabcf8a788a7581ff5db2d4ee3167a2f0428cf24d5524a8d11b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:995-1006 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:837-848 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:995\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a4f4b46e9eec87d28689a5a9bfad0a4538b0f959d4e9ba25dd796ca57636d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:692-703 | app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:761-771 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:692\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"9571a9f80cfbd863606837778a706a91d6f4c5f28b04877207ba732fb5212c77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2545-2555 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2574-2584 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2098-2108 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2238-2248 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2383-2393 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2731-2741 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2763-2773 \u2014 there are 7 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 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:2545\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":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":2545}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c84270ed5b5d1b98abfb17d5220b66cc0be83c0f5b1ce8cfccc44c534d158cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt:76-86 | app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt:100-110 | app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:405-415 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 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 \u0060app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt:76\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, \u0060app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:416\u0060 calls \u0060resolveFinalScrapedType\u0060 and \u0060app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt:87\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":"app/src/main/java/com/lomen/tv/data/scraper/MediaScraper.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"895a7b9b623568089d65c2adf0b7251047b45e6a5ca9be7dd41afaa59150ed45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelItem.kt:136-146 | app/src/main/java/com/lomen/tv/ui/live/components/LiveClassicPanelChannelList.kt:225-235 | app/src/main/java/com/lomen/tv/ui/live/components/LiveTempPanel.kt:147-157 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelItem.kt:136\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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelItem.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ac066810d59c7508559a8022be15c23b10ca821029bee1782a4eaeab99be98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1105-1115 | app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:834-844 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1630-1640 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1105\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"485fbddf1ce0afa48caaf222e9c10059b3530eb6689b698006510ba237e526c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1045-1055 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1103-1113 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1166-1176 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060WebDavConfigServer.WebDavConfig): ConnectionTestResult? = withContext(Dispatchers.IO\u0060 in one and \u0060WebDavConfigServer.WebDavConfig): ConnectionTestResult = withContext(Dispatchers.IO\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1044\u0060 calls \u0060setRequestProperty\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1165\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c9bba6f4acbeef3716d1b11700b2a826d8adacd22cd1cdd692b01b60b30283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:755-765 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:791-801 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:755\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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c6c59d32d786f28eb5b88b72725f654d81ca54f30f0e527f4285c477b9ecf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:678-688 | app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:713-722 \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 \u0060app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:678\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, \u0060app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:712\u0060 calls \u0060method\u0060 and \u0060app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:677\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":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"994b96f5c8bd86839badb7d627dced977de1488ff29affb68beaebb53df83a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/lomen/tv/domain/service/QuarkService.kt:71-81 | app/src/main/java/com/lomen/tv/domain/service/QuarkService.kt:102-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/domain/service/QuarkService.kt:71\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":"app/src/main/java/com/lomen/tv/domain/service/QuarkService.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae691f6209c07aca4f87c9ef0131ac7596be82fff4bd06d842476ab34767fa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/lomen/tv/service/TmdbApiConfigServer.kt:330-340 | app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt:1086-1096 \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 \u0060app/src/main/java/com/lomen/tv/service/TmdbApiConfigServer.kt:330\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":"app/src/main/java/com/lomen/tv/service/TmdbApiConfigServer.kt"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c65492e6600d337093028a4b7301b026295b0373a19cd128ed3c967d580b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/live/components/LiveClassicPanelEpgList.kt:193-203 | app/src/main/java/com/lomen/tv/ui/live/components/LiveEpgDialog.kt:111-121 \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 \u0060app/src/main/java/com/lomen/tv/ui/live/components/LiveClassicPanelEpgList.kt:193\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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveClassicPanelEpgList.kt"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fce6df6365f91fd2fbca33cf3c998f171ac60134f0952672b64efed5fb0f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:655-665 | app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt:796-806 \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":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ef6b1a291148f14d951b22307a8975dbc725dae2a1acb9b47f0298d3305617"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt:605-616 | app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt:663-673 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt:605\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":"app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"b177e22e37ad595f83ee5029e3f31ecac496d92445a29f3f626a3f6b404c039c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1055-1065 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:179-185 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1055\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"234aeb81b6ea66fcd02c72de5020e8f4833f476be3d7808c5f417bf84b934a93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:217-226 | app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:309-318 | app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:383-392 | app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:406-415 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt:217\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":"app/src/main/java/com/lomen/tv/data/scraper/SmartMediaScraper.kt"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceca85859b9ba21a257468c12568aceda91b83de843ee3dcd0bc8ba3965161ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:581-590 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:642-651 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:686-695 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:711-720 \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 after the matched lines, \u0060app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:652\u0060 calls \u0060focusRequester\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:696\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bda64ec39ce778f346a7c6e7466bb172b9f4307f067196e096ab50ae7c3d07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt:76-85 | app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt:96-105 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt:76\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":"app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2739a0f62d1c6c5aeaee91e4b12e2cc177eb4c57e5d80a45c4e2bf854c65e2f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/lomen/tv/domain/service/MediaSyncService.kt:165-174 | app/src/main/java/com/lomen/tv/domain/service/MediaSyncService.kt:192-201 \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 \u0060app/src/main/java/com/lomen/tv/domain/service/MediaSyncService.kt:165\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":"app/src/main/java/com/lomen/tv/domain/service/MediaSyncService.kt"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"139ecf84239cd2239cbbe060b43c214dff1d7673eeee65187c29105407134b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInput.kt:22-30 | app/src/main/java/com/lomen/tv/ui/live/components/LiveDateTimeBar.kt:70-79 \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 \u0060app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInput.kt:22\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInput.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"712ed8e86569c547d7ddefd87775387fffbdd4aa989a4baf070de88e9e79e441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt:731-740 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt:757-766 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt:731\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"189d299545ae1da161ad0dfe2b4c948845ea50b037404f25548b7b41634aeb1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:720-729 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:783-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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:720\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9fdef42d116333c8e685d7a6744bd11467558258aba473a5ead8ab0c685369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInfo.kt:68-76 | app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt:357-365 | app/src/main/java/com/lomen/tv/ui/live/components/LiveTempPanel.kt:102-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 all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInfo.kt:68\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":"app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInfo.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"edfad900e622ad0f4a64b8747b1cfa13a0cbd63ba0a4476d6d7be39d4e0995a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/alist/AListClient.kt:71-79 | app/src/main/java/com/lomen/tv/data/alist/AListClient.kt:258-263 \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 \u0060app/src/main/java/com/lomen/tv/data/alist/AListClient.kt:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a381a8f0bf68795c0886c9a0ccc653b4f44aa30341533130c9e2835ae14d2d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/components/VersionUpdateDialog.kt:167-175 | app/src/main/java/com/lomen/tv/ui/components/VersionUpdateDialog.kt:202-210 \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 \u0060app/src/main/java/com/lomen/tv/ui/components/VersionUpdateDialog.kt:167\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":"app/src/main/java/com/lomen/tv/ui/components/VersionUpdateDialog.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"429b23d01f8e9aa5f34f36009db81e2e46c42914a900b0e39dbf7fd6269a23b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:399-407 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:262-270 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:399\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"4000b83403aeb470e693b71f015142ae8fce530017329ebbadcb12afbd4cec98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:627-635 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:661-669 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:627\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7723109f6c415a77c0d48715867a66d8da5e521b09f0e5c694e49e2685b0e9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/src/main/java/com/lomen/tv/data/repository/ResourceLibraryRepository.kt:47-54 | app/src/main/java/com/lomen/tv/data/repository/ResourceLibraryRepository.kt:70-77 | app/src/main/java/com/lomen/tv/data/repository/ResourceLibraryRepository.kt:102-109 \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 \u0060app/src/main/java/com/lomen/tv/data/repository/ResourceLibraryRepository.kt:47\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":"app/src/main/java/com/lomen/tv/data/repository/ResourceLibraryRepository.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"dadaaab4fbb80d3a7e1844ebba188829791fa48493f0299cce72cca9dbb2e846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1199-1206 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1297-1305 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1366-1374 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1199\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c5c3d34079f99da1cdd99bdec0fb76e862c83c4ed26f75f83c269acd08b9e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/navigation/LomenTVNavigation.kt:277-284 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:298-305 \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 \u0060app/src/main/java/com/lomen/tv/ui/navigation/LomenTVNavigation.kt:277\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":"app/src/main/java/com/lomen/tv/ui/navigation/LomenTVNavigation.kt"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"557f0c52722421770d87c6c6e7a31e2455631d8a694eefb608b877af3c18732d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1731-1738 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1932-1939 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1731\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1731}}}],"partialFingerprints":{"codehealthFindingId/v1":"01591b0f28984e35cd319519e168e2ded6a9d0e835aa05d651520e485c867ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:194-201 | app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:369-375 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:753-759 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"601293005497d52d1eee26fb351d67b48a4a0b56fd02bddd933008763f4fcbf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:312-323 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:599-607 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:765-776 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:599\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:607\u0060 calls \u0060optDouble\u0060, \u0060toFloat\u0060 and \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:323\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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"b108584f4945301d84562c8e10116fd6550bcc8156965af38def11082839899e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:341-346 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:806-812 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:341\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 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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5c0e6cd754080b9d6fe46e66ed741a6ad4e355130887cea8834343aa7dc368"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:81-87 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:227-233 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dca4fce666c22bb6a94d6cee915e38c0577465de38ec28792662912594af352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1149-1155 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1171-1177 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1149\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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3091d956a468426bb125d4e46ec2fb003e455d63c8904568fa80eae55028a17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1663-1669 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1930-1936 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1663\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1663}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2de682be1bbf7acceca74184cb874aa1e0656b38d19038d9eef7548110933d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): app/src/main/java/com/lomen/tv/domain/service/TmdbMetadataSyncManager.kt:171-176 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt:853-858 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt:960-965 | app/src/main/java/com/lomen/tv/ui/viewmodel/MediaSyncViewModel.kt:420-425 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/TmdbMetadataSyncManager.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"91311fc75f6f20a4bd8e59a42a618516389b98725a5843e40294ceb2a013dabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1594-1600 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1632-1638 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1674-1680 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1992-1998 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:1594\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"655df05b8e710314ee8d39b8f90e47ae49983e39577d7f785814d83443ce982c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:206-211 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:240-245 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:331-336 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:416-421 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:206\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, \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:422\u0060 calls \u0060error\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:246\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"152090654db1efff942908e1ae4bc22fb7d6ee9a9042f45b8d71acec599169f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:538-548 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1059-1069 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:183-188 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"1936e302774e6a5838ceba8df262239d7b3434c410a0e607b0d64154c0c30285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/MediaInfoExtractor.kt:497-504 | app/src/main/java/com/lomen/tv/data/scraper/MediaInfoExtractor.kt:529-536 \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":"app/src/main/java/com/lomen/tv/data/scraper/MediaInfoExtractor.kt"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a89887ca3ccec2d2d87c553eab3170a0d0f3b548bb90214cab0b0428c80bd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:779-784 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:815-820 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"9781df37f65e58681fe327675abec80927e7dea3a465d2447d634b19dd708b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:315-320 | app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt:256-262 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt:254\u0060 calls \u0060d\u0060 and \u0060app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt:313\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":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"911275123062e1c5bc48f81cb6b7438c7c8ff1b57e26213738427be24f608182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:161-166 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:162-167 \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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa4fd9fb8815b9f75166e365588d904667f1a09deca3dd00ba883aa8deb3740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:335-340 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:630-635 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:801-805 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:335\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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f500946056d13f086d8bf7e953cfb8a5f0b4415f71fe288aa08ec33455574fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1665-1669 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1731-1735 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1932-1936 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1665\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1665}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd6a4d704986984d74198982c62df23287500d95be9098497c5e89361aff7e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1140-1147 | app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt:1250-1257 \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":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e648e9501fcb693371b77f18499e2cf8d91a60516c4aec10f9d29464a3d4c621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/viewmodel/ResourceLibraryViewModel.kt:318-322 | app/src/main/java/com/lomen/tv/ui/viewmodel/ResourceLibraryViewModel.kt:364-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 \u0060app/src/main/java/com/lomen/tv/ui/viewmodel/ResourceLibraryViewModel.kt:318\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":"app/src/main/java/com/lomen/tv/ui/viewmodel/ResourceLibraryViewModel.kt"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c29ac4fe94ffce0d60af9b184d5c8dd2e769caf1b76f582d70676c26fa896a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt:64-68 | app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt:123-127 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"993f78d9957bdcc99e002ce917b0b973a4757168d8e4360221988a13999fa5a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:1197-1216 | app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:1500-1519 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt:1197\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":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccf5f57038d3c9416abe9e5fcdd25d037347e21e16483a88a6d01bf6c9f5087"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt:209-224 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:850-865 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt:209\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00de3e515602326d5dd9dea1d6545128c3677d214887b0da637cfde0c816f4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:198-212 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:728-743 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:198\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05f88b6081e42fccdf18f8d1d840235b6da68b97e27304982698b80df8a427b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt:154-168 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:728-742 \u2014 before extracting anything, compare \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt\u0060 and \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt:154\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/TmdbApiSettingsDialog.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a249fefa4791f99f1fe8c14c635b5910a2c310154fc1cfbfb78f212211b36464"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1242-1255 | app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1369-1382 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt:1242\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"3734f07cf8b9b518705fa5016730d16d9ab96ce68b0ba7515c501d2fa1d38a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2448-2459 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2469-2480 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:2448\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":2448}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea1d08491790ff4f44b365037b6dead8d9d9c34ad5929c5d02aa7d5bba5cf95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3219-3230 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3254-3265 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:3219\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":3219}}}],"partialFingerprints":{"codehealthFindingId/v1":"34eb385442404d4310511bd124edf8625d486294fa34c3b084724f09ad953e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:729-740 | app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:776-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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:729\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff628b53223d66e227a9f27426ca83928f1a6ffdd7082b263fcc9a745baa45db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2064-2074 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2134-2144 | app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2266-2276 \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 \u0060app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt:2064\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":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"da415b896ebb075004fec0fe4505f2d1ea385a6de64a0f70b747d8dc2ad5f217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:707-717 | app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:773-782 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt:707\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1b38fbc5a130689a30bf2b80421f9d47c03b8bc9e61ff1e373814874fc007e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt:618-627 | app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt:675-683 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt:618\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":"app/src/main/java/com/lomen/tv/ui/screens/live/LiveScreen.kt"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6355f928b4e83bc404f3a5f6822558029aa1a049bdda27d3ea501c06b84f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1511-1518 | app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt:1571-1579 \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":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"1896d357a7043c7a6d39ff0ac692dfe1ea28454ce7da18af5718683c4826b018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt:259-267 | app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt:310-318 | app/src/main/java/com/lomen/tv/domain/service/quarkcloudservice.kt:55-63 \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 \u0060app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt:259\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, \u0060app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt:309\u0060 calls \u0060header\u0060 and \u0060app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt:258\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":"app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fa9835a78f95b9e61d5b6b2b2e051a27dbb855d75e1a29b30bb493083fe27f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:704-711 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:736-743 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:704\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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1ea8bdc2353c89c24db13b7035e9f807ffd1800dd8eed5eedf637573aab997"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/repository/LiveChannelRepository.kt:141-148 | app/src/main/java/com/lomen/tv/data/repository/LiveChannelRepository.kt:162-169 \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":"app/src/main/java/com/lomen/tv/data/repository/LiveChannelRepository.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"972f15c825bdaf5d6dcb707d140737fba0c4db6833889a79d804fad7a2a36bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1453-1459 | app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1461-1467 \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 \u0060app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt:1453\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":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca78a6f093810c24348f89d68b5bb7dc4d0b1ac57ee7c908f3c5e4527562baa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:342-346 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:575-579 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:807-812 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:342\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 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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ea82fba6f76c3215063828176027e5976b55ee737849395ae36932688a0913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:145-149 | app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:366-370 \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 \u0060app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt:145\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":"app/src/main/java/com/lomen/tv/data/scraper/TmdbScraper.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a34a7606f3cc2fb042566978e1a54185d44a0368adaf101e2a9da87ce8426ef"}},{"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":"d83aabc8cf8652a85c8f9aa96eaf9d0fce29892986369975dca5dccdabde0e52"},"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":"D14","level":"error","message":{"text":"Banned license: org.jellyfin.media3:media3-ffmpeg-decoder: \u0060org.jellyfin.media3:media3-ffmpeg-decoder\u0060 1.2.1\u002B1 is published on Maven Central under \u0060GPL-3.0\u0060, which this policy bans, and this repository declares it in a Maven or Gradle manifest. The licence was read from the artifact\u0027s POM \u0060\u003Clicenses\u003E\u0060 block \u2014 following \u0060\u003Cparent\u003E\u0060 where the POM inherits them \u2014 and normalised to SPDX before it was judged, because Maven publishes the name as free text (\u0060GNU Affero General Public License v3\u0060 is AGPL-3.0). Where a POM lists several licences they are read as a CHOICE, per Maven\u0027s own documentation, so this is charged only because EVERY listed licence is banned. Replace the dependency, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b20205083af06cf446d4e0b217040f3c8c64996d59434ebe45a3875339d3df64"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt: app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 110 in PlayerScreenKt.PlayerScreen at line 163. 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-04-13..2026-07-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-13 02:53:31 \u002B08:00\u0027 --until=\u00272026-07-12 02:53:31 \u002B08:00\u0027 --full-history --no-merges -- app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c8a4f452337e42a4151bf427a1da69f6eeddb5c0e529000336366f65da50ac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt: app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 85 in HomeScreenKt.HomeScreen at line 181. 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-04-13..2026-07-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-13 02:53:31 \u002B08:00\u0027 --until=\u00272026-07-12 02:53:31 \u002B08:00\u0027 --full-history --no-merges -- app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffab3a4a418339c2cb738c25eb901f3da2f4e1aa94e1c2fc2635b46ed49aee1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt: app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in SettingsScreenKt.SettingsScreen at line 134. 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-04-13..2026-07-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-13 02:53:31 \u002B08:00\u0027 --until=\u00272026-07-12 02:53:31 \u002B08:00\u0027 --full-history --no-merges -- app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0b36f25349624ac548d4c3a21aa2c81dd128d52ab845cf839edd7260c7c4b6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt: app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in LiveSettingsComponentsKt.HistoryListDialog at line 472. 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-04-13..2026-07-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-13 02:53:31 \u002B08:00\u0027 --until=\u00272026-07-12 02:53:31 \u002B08:00\u0027 --full-history --no-merges -- app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d574cae6e296b53f1e0f587de45fbf3d8dd9d116170d8e018220ae7cfb1178"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt: app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in DetailViewModel.loadMediaDetail at line 128. 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-04-13..2026-07-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-13 02:53:31 \u002B08:00\u0027 --until=\u00272026-07-12 02:53:31 \u002B08:00\u0027 --full-history --no-merges -- app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/detail/DetailViewModel.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2b0d6fd2957ef9dbb936c78af61cf9c893f834084a86ab05891cadb0a19a2a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt: app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in PlayerViewModel.prepareMedia at line 221. 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-04-13..2026-07-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-13 02:53:31 \u002B08:00\u0027 --until=\u00272026-07-12 02:53:31 \u002B08:00\u0027 --full-history --no-merges -- app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9f5f670102df29725d10b793a228a6f1fa9ef0355ef58b2e3e45945ee6357f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt: app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ResourceLibraryScreenKt.ResourceLibraryScreen 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-04-13..2026-07-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-13 02:53:31 \u002B08:00\u0027 --until=\u00272026-07-12 02:53:31 \u002B08:00\u0027 --full-history --no-merges -- app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1566e3e6d0330a2fb3e77e6ed0754aa5f6292049f8b4d0092b7c8858b340edc"}},{"ruleId":"D16","level":"note","message":{"text":"Small-team knowledge concentration: 23 file(s) are concentrated to one author \u2014 the ambient state with 2 active author(s), not 23 separate risks. The signal becomes meaningful as ownership spreads; no per-file action implied now."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8aa75b6daa18f1b578387fa04036c50b3163d47f957c8f5601bf083ed4489b0c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u5B9E\u73B0\u641C\u7D22\u5386\u53F2\u6301\u4E45\u5316 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/search/SearchViewModel.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ed7547bfe134ab36a4e862dc0be283f8ccaa1b84d290f58612d504b7be5a5e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u4FDD\u5B58\u5230DataStore \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/search/SearchViewModel.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7cfee17a4541cc44ccab6032569de71654080f79d479df8ca87e51d954589d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u6E05\u9664DataStore \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/search/SearchViewModel.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8d42bc8a60c47ac1c0406f91cec4ab06e06c52263ea7c6bd793a6dfcea8d86"}},{"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 \u0060app/build.gradle.kts\u0060 makes this repository a deployable product (line 2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/build.gradle.kts"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0b7e6affaa93ee6bb19a08419940b0b329e278f472a33ac0b60c64caa16c5f"}},{"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":"a5e5ae2bcb616819a6c13135589ef98e906aa6fdd30de65c7ffd402fcdbdcac6"},"properties":{"commitSha":"bf792f9e9af78f8e3bf6fa134872a947deb3c3e3"}},{"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":"b0e6c5e3511e1827e922de10a8ded6892c5710d8f91edc50b9c7ecfdbdaecfac"},"properties":{"commitSha":"bf792f9e9af78f8e3bf6fa134872a947deb3c3e3"}},{"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":"35ef864528dc076084cecd4e9fe900e977f2ea09855a54436c178924d64dc4a0"},"properties":{"commitSha":"bf792f9e9af78f8e3bf6fa134872a947deb3c3e3"}},{"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":"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":"ae963e13b570334c950abec10f18dbaab36984be62abeadb804d9f7058dc4436"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: GuangyaTokenAutoRefresh: \u0060GuangyaTokenAutoRefresh\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (registered; e.g. \u0060registered\u0060 in \u0060start\u0060 at line 35)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/GuangyaTokenAutoRefresh.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"227eb1d8fae0969c547e873ab40ee596e5fa9dc311bff4f5efd90a4ce5a39957"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: PlayerService: \u0060PlayerService\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (exoPlayer, trackSelector, bandwidthMeter, currentMediaUrl, currentMediaTitle, currentMediaEpisodeTitle; e.g. \u0060exoPlayer\u0060 in \u0060initializePlayer\u0060 at line 72)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/PlayerService.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57903c695a18e75cd6946fef5599f145a552cc01e7c80a30ef1d8b3f2375efd"}},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful singleton: WatchHistoryService: \u0060WatchHistoryService\u0060 is a singleton (@Singleton: the container shares one instance across every request thread) but mutates instance state outside any lock (cachedWatchHistory, cacheTimestamp; e.g. \u0060cachedWatchHistory\u0060 in \u0060getRecentWatchHistory\u0060 at line 37)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/WatchHistoryService.kt"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff749afe134c42d231695bc14c05102e9b9eb2e365b4242322058e26e1a64e6"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: WebDavMediaDao (17 abstract methods): \u0060WebDavMediaDao\u0060 declares 17 abstract methods: \u0060getAllSync\u0060, \u0060getByLibraryId\u0060, \u0060getMoviesByLibraryId\u0060, \u0060getTvShowsByLibraryId\u0060, \u0060getByFilePath\u0060, \u0060getCreatedAtByFilePaths\u0060, \u0060getById\u0060, \u0060insert\u0060, \u0060insertAll\u0060, \u0060update\u0060, \u0060deleteByLibraryId\u0060, \u0060deleteByFilePath\u0060, \u0060deleteAll\u0060, \u0060countByLibraryId\u0060, \u0060search\u0060, \u0060getFingerprintsByLibraryId\u0060, \u0060deleteByFilePaths\u0060. Counted over its public functions with no body, once per name; default-bodied functions and properties are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/local/database/dao/WebDavMediaDao.kt"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"75648d11c0b7eb4249565317747092b39366d0bf7999d8278eb20d1d501c8048"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: EpisodeEntity: \u0060EpisodeEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060movieId\u0060, \u0060title\u0060, \u0060overview\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060EpisodeEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/local/database/entity/EpisodeEntity.kt"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcf2b7f117699abe42b6037e87c1d9078a635aeb57db25a0cf09b1bb1d6022b"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: FavoriteEntity: \u0060FavoriteEntity\u0060\u0027s public constructor takes \u0060mediaId\u0060, \u0060title\u0060, \u0060posterUrl\u0060, \u0060backdropUrl\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060FavoriteEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/local/database/entity/FavoriteEntity.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"9caefc3272a7a783eed6d0419da028e97ee7dee1a9a79700bbd41eff97368def"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: MovieEntity: \u0060MovieEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060title\u0060, \u0060originalTitle\u0060, \u0060overview\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060MovieEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/local/database/entity/MovieEntity.kt"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"24cadd728e58b65838b0776b4e4b7498abce32b7815d48a39ce48b3a97a2e2ba"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: SkipConfigEntity: \u0060SkipConfigEntity\u0060\u0027s public constructor takes \u0060mediaId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060SkipConfigEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/local/database/entity/SkipConfigEntity.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ea960d7ff3e89092350b0afa8280a917dfdb194588e0d2464e102f73254636"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: TmdbEpisodeEntity: \u0060TmdbEpisodeEntity\u0060\u0027s public constructor takes \u0060name\u0060, \u0060overview\u0060, \u0060stillUrl\u0060, \u0060airDate\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060TmdbEpisodeEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/local/database/entity/TmdbEpisodeEntity.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1913ae0acd55f1fb0bf6013165d427ec5357a9b3473ebe19a93c860a79cc8167"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: TmdbMediaEntity: \u0060TmdbMediaEntity\u0060\u0027s public constructor takes \u0060title\u0060, \u0060originalTitle\u0060, \u0060overview\u0060, \u0060posterUrl\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060TmdbMediaEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/local/database/entity/TmdbMediaEntity.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16d6ce1de66a0cbc90fc52cebd1001f94d904489f79cf9ef9392a229c88cec3"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: TmdbSyncQueueEntity: \u0060TmdbSyncQueueEntity\u0060\u0027s public constructor takes \u0060key\u0060, \u0060lastError\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060TmdbSyncQueueEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/local/database/entity/TmdbSyncQueueEntity.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a1abe896b1cc747e4c3663bd1c7aa6930aa76cce3a124fce1b06aa024084e9"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: WatchHistoryEntity: \u0060WatchHistoryEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060movieId\u0060, \u0060episodeId\u0060 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060WatchHistoryEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/local/database/entity/WatchHistoryEntity.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae5f9bb0b77480be807b24b65382050722cb4f0d272a5b7107c838e5c0e57a7"}},{"ruleId":"DM11","level":"warning","message":{"text":"Constructible in an invalid state: WebDavMediaEntity: \u0060WebDavMediaEntity\u0060\u0027s public constructor takes \u0060id\u0060, \u0060libraryId\u0060, \u0060title\u0060, \u0060originalTitle\u0060, \u2026 as raw primitives, and neither of the two things that would make that safe was found. What was searched, so you can tell an absence from a miss: for VALIDATION, the constructor body was scanned for \u0060throw\u0060, \u0060Guard.\u0060, \u0060Ensure.\u0060, \u0060ArgumentNullException\u0060, \u0060ArgumentException\u0060, \u0060CheckRule\u0060, \u0060Requires.\u0060 or an \u0060\u2026Exception.ThrowIf\u2026(\u0060 helper, and so was any method of this type it calls \u2014 a guard reached further than that is not seen. A static factory beside it was NOT counted: while this constructor is public a caller can skip the factory. If the constructor validates in a way this search misses, this row is wrong. If it does not, a caller can build a \u0060WebDavMediaEntity\u0060 that breaks the rules it exists to enforce, and every rule downstream then has to cope with a state the model said was impossible. Guard in the constructor, take value objects that validate themselves, or make the constructor private behind a \u0060Create\u0060 that can refuse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/local/database/entity/WebDavMediaEntity.kt"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"66860a7a512cd60e95a0967c190c0611e280d3b71e5f79bcb0ba8529dabdf64e"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 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":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060app/build.gradle.kts\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/build.gradle.kts"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8170fb04fe78176a33c2b44461eeb0bf2839b74c80362ebf7185e17a3b446ff7"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!address.isLoopbackAddress \u0026\u0026 address is java.net.Inet4Address\u0060 appears character-identically in 2 files \u2014 app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt, app/src/main/java/com/lomen/tv/ui/viewmodel/TmdbApiViewModel.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt"},"region":{"startLine":3723}}}],"partialFingerprints":{"codehealthFindingId/v1":"24823fcbd2267c40cecd839e6965c47965da98a4be12d8389c8351179f9de462"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!address.isLoopbackAddress \u0026\u0026 address.hostAddress?.contains(\u0022:\u0022) == false\u0060 appears character-identically in 2 files \u2014 app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt, app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0f207215adca2d82d7d12632a1c1e1eeceefc00274d94e0acf1005ac78a8b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060channel.urlList.isNotEmpty() \u0026\u0026 channelUrlIdx \u003C channel.urlList.size\u0060 appears character-identically in 3 files \u2014 app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInfo.kt, app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt, app/src/main/java/com/lomen/tv/ui/live/components/LiveTempPanel.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/live/components/LiveChannelInfo.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db0532017194f3cd1d31c2e359c74d91161d7dc017777cd31b2cea4af866a9a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060keyEvent.key == Key.Back \u0026\u0026 keyEvent.type == KeyEventType.KeyUp\u0060 appears character-identically in 7 files \u2014 app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt, app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt, app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt, app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/player/PlayerScreen.kt"},"region":{"startLine":1865}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77b6959fca4c880baef3b8fd0d9b180a66dee083f38e07b4098cab4baea8ecb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060keyEvent.key == Key.DirectionUp || keyEvent.key == Key.DirectionDown || keyEvent.key == Key.DirectionLeft || keyEvent.key == Key.DirectionRi\u2026\u0060 appears character-identically in 2 files \u2014 app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt, app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/LiveSettingsComponents.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"35453983047e0c75a2ae0e647d55c72c3b945db2abda935c4dab0769ad702001"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060library.username.isNotEmpty() \u0026\u0026 library.password.isNotEmpty()\u0060 appears character-identically in 3 files \u2014 app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt, app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt, app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0e8854dd1be886509dea2f6c4a296bde0659fd30b74faf5794c777f07b57d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060media.rating != null \u0026\u0026 media.rating \u003E 0\u0060 appears character-identically in 2 files \u2014 app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt, app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9225f7374723a2e428f42663f9b6eadc0940e940930151874024053490e84a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060playbackInfo != null \u0026\u0026 playbackInfo.videoPath != null\u0060 appears character-identically in 2 files \u2014 app/src/main/java/com/lomen/tv/ui/navigation/LomenTVNavigation.kt, app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/navigation/LomenTVNavigation.kt"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ee4c846f781371e6e0e7e1bee77e3eb319c1ec272e32ca91dc50622a858e11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060series.rating != null \u0026\u0026 series.rating \u003E 0\u0060 appears character-identically in 2 files \u2014 app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt, app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/category/CategoryScreen.kt"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87163908878e31f9657faeaee947e7fb6f6bb1faa96c3a29676facced69fb33"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060showVersionUpdateDialog \u0026\u0026 versionInfo != null\u0060 appears character-identically in 2 files \u2014 app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt, app/src/main/java/com/lomen/tv/ui/screens/settings/SettingsScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/HomeScreen.kt"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e83e56129770397e5952fb15663f45b71da33e77d275f59fa9d96aa992175c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this == MediaType.TV_SHOW || this == MediaType.VARIETY || this == MediaType.ANIME || this == MediaType.DOCUMENTARY\u0060 appears character-identically in 3 files \u2014 app/src/main/java/com/lomen/tv/domain/model/MediaType.kt, app/src/main/java/com/lomen/tv/ui/player/PlayerViewModel.kt, app/src/main/java/com/lomen/tv/ui/screens/detail/DetailScreen.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/model/MediaType.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bac2db05499dd44836b895d88cb8c3bdcc8b47c62c6e27cfe9eb573438e1f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060uri == \u0022/api/tmdb/config\u0022 \u0026\u0026 method == Method.POST\u0060 appears character-identically in 2 files \u2014 app/src/main/java/com/lomen/tv/service/TmdbApiConfigServer.kt, app/src/main/java/com/lomen/tv/service/WebDavConfigServer.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/service/TmdbApiConfigServer.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b5638418d1352fb9fa5e7be9fb81540a7068e27c75049f21aafdee7b714ea0"}},{"ruleId":"X2","level":"note","message":{"text":"Not all suspend functions that make a request accept the coroutine\u0027s cancellation: Only 0/27 suspend functions that make a cancellable request (Ktor, OkHttp newCall, URL streams) accept the coroutine\u0027s cancellation or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a screen navigated away from, a disposed widget, a superseded search. In a suspend function, make the request with a call that suspends \u2014 Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 that cancels the \u0060Call\u0060 \u2014 not a blocking \u0060execute()\u0060: \u0060withContext(Dispatchers.IO)\u0060 moves the call off the caller\u0027s thread but does not make it cancellable; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"97a0137a13dc63b0e07ec4e232770b687c26a8a2030f49787e45a4506416c527"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: requestDeviceCode: \u0060requestDeviceCode\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"33cd3e3c11ad3d61d17c57c4a986ee4a6d6fa981b39996230dc1975ded2495ee"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: pollTokenOnce: \u0060pollTokenOnce\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cab784be81363a7445d71d68527e15a1226cf236d065160a598edbb7d747b5"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: ensureCaptchaToken: \u0060ensureCaptchaToken\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"670ff18ee5a1d3505818177bb111dbf182a7a996f08336ff252170f4500f6891"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: requestSmsCode: \u0060requestSmsCode\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f573d2ba32ca6bfc2d978e7a2951539b171bf0c3288d9181da1b3daee74874"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: loginBySms: \u0060loginBySms\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/GuangyaLoginDialog.kt"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecb3378ce731758a4b580ee646fca228ab9d410d39566c7dcfcc712374a31ef"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: checkQuarkConnection: \u0060checkQuarkConnection\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3b0a327c5d49fea7a85d82c188ce08335f13e440ccd2e0061677b0d6fb0df1"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: downloadApk: \u0060downloadApk\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/DownloadService.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e468520019fa5c60786f39a362e10abbc1cf2a1b3d257c59a9550f79dd40909"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: isOpenListOrAList: \u0060isOpenListOrAList\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39226da5243eec5dbb2c15b2080251b0ebb3f7a00918c377f0324c947f67dcd"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: loginOpenList: \u0060loginOpenList\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9254ce449b4f73cec577bf65445b8564625eb26708dbbdb21f014591da107a55"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: getOpenListDirectUrl: \u0060getOpenListDirectUrl\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"36feac56782adc41c0f1d9fadc0d0bbfe173a5d2f023e292080c204ccb0b5a9b"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: resolveWebDavUrl: \u0060resolveWebDavUrl\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/MediaUrlResolver.kt"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a99f9f6209ca85d149d83322bc494f734694292986d1de4601ed6d32c47df2f"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: checkForUpdates: \u0060checkForUpdates\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/VersionCheckService.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7c1edc17cd70bcc2786c5d8f81cf3ea90f37dc8f3771da04871ea10b587ed9"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: getDownloadUrl: \u0060getDownloadUrl\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/quarkcloudservice.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b5a093794e45894d934d6dd4dde13aecddd00b63955d75498460c03f26f8db"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: listFiles: \u0060listFiles\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20954c4d7d92319a660a09a90c70e11cddf2904da0e4d76b474a5631d9773b1"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: tryOpenListApi: \u0060tryOpenListApi\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1304934140fb697b58162a6aa813780418cfa6b67ec900c948196751c28ace7e"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: tryOpenListLoginAndList: \u0060tryOpenListLoginAndList\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"1348c9bddfa6fd1c37abee2311d97b5fe133a004d58c1ee939faa8b1a2f30fac"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: getOrRefreshOpenListToken: \u0060getOrRefreshOpenListToken\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7835ee9c046a3bab84bc20ce7103a627d8483378e4ea33fe1ccaac72d6e5d3cb"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: readTextFile: \u0060readTextFile\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0627509ab9775be777593ab0d2a610c7e5f7e67e1df49bd41312140fd56e590"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: fileExists: \u0060fileExists\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"61131c3f77cb8adfddf9751ddad43e4422b86a0e15182031fb3056011bf4be83"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: getCastAndCrew: \u0060getCastAndCrew\u0060 suspends, but makes its request with \u0060URL(\u2026).openConnection()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/scraper/DoubanScraper.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6f58090bd7c6d98a31248346014897fc33fbf4c6a75f660d9c1a25ca3c6fa0"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: refreshAccessTokenLocked: \u0060refreshAccessTokenLocked\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/guangya/GuangyaApiClient.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"168404a5f1faf68061377e85a99b74a52bb20b3cf7a658946aaed6d7ba1d85c7"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: doPost: \u0060doPost\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/guangya/GuangyaApiClient.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"544292fea4a83d335d17a6396d3d942dfe67e3c16920ae09ce7962f0968bbc52"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: doCheck: \u0060doCheck\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/guangya/GuangyaApiClient.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e13c08acf902be818ddf82125de430f35b3242a54dc1644b1d1fc148fd663ed"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: listFiles: \u0060listFiles\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21524578d21872819b6d7eba029af2a51b126703d82c461cdcaa7da96cb5c82"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: readTextFile: \u0060readTextFile\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"404be3014492f5316c62c7569137b78eb4ea03ab9f0af473a0694a7e00e54afe"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: fileExists: \u0060fileExists\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6860ced76393dfc2c652e02c69b61e58c6655e29b482e656836e77764c0b3f"}},{"ruleId":"X2","level":"warning","message":{"text":"Suspend function with a blocking request: getRawUrl: \u0060getRawUrl\u0060 suspends, but makes its request with \u0060newCall(\u2026).execute()\u0060, which blocks: its caller\u0027s cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up \u2014 \u0060withContext(Dispatchers.IO)\u0060 moves it off the caller\u0027s thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp\u0027s \u0060executeAsync()\u0060, or a \u0060suspendCancellableCoroutine\u0060 over \u0060enqueue\u0060 that cancels the \u0060Call\u0060 in \u0060invokeOnCancellation\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9afa7ba54ba675b6668b5c2814258bcfe46c1c343bca0f0dcd8e1e98957d471"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef0010bf2b5222b11fd3c8c7c6c8de007ddce5ecedb42108aed99bdf16273df"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ac4eb00ff07f34752a0b05cb5f29cb4283e6429665b50d681fae71c8acc7d6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/settings/WebDavConfigDialog.kt"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1545afcdf0ba0888f59d4569fcbc3887ce39f88fdb2ad038b5d4c30819fe4f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/home/ResourceLibraryScreen.kt"},"region":{"startLine":1815}}}],"partialFingerprints":{"codehealthFindingId/v1":"304e4c640312d8b04055d12ddfbc7b0d43d68b790969e35d9eb2c75d9322d622"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/live/components/LiveStatusBar.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"b480f0f94899a4f2a982115ddd40f17a1601972a736645a6032e142b7867fdfe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/components/NotificationBar.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd39e6921c4e9d28844874dc8bae45b92e1ebc0f799911eab8148371d62b74f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/MetadataService.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a56cd2cb8b444dce2d7904325c157b263bd4b7b20bdcca5baa0ce7f5c7ebdb6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/VersionCheckService.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0cde90b2baeff5fe8906c5e11125ec7f4e8e00b8d3b0b62c30ae3a12bd38aa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7849c364aab403375c9714c6116d4f5cb6b1dcf2e09b282e09c51ef6636157"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c17a162a87d3e9341c06ddb230da32e08f145681d90cc0efca62834a5a26ad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/webdav/WebDavClient.kt"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ffba22a5e43ee9b5f33dd09f31211b46981eb2530270b7192a5a562e2563af"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/preferences/MediaTypeSortPreferences.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"471a60b4ba8a99f1f986d37e9706663a268e65b7688aabb9954fbea1e67cfbba"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/guangya/GuangyaApiClient.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87aa377d4a6ac38186bfb1877d89b8c7f94fed52ddb7fcfa90bab5d3c432f70"}},{"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":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eac0cee8aa961e9529c22d3baa8fbd1a47b08f7c422aa135e92e80110ba4ec8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a94747fd98eb8f3cf5bc45189aaf54e90e8c9adaa673648d8b6db859ba1f80"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/data/alist/AListClient.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"05752f48b7cc64661463d4b4bf54980cf65a6747890088d7b05cc26c2de9de12"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseVersionCode\u0060 swallows every exception into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/domain/service/VersionCheckService.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad13343e538c0e4b53c9dd1c4e54322fa26371d77a89aa0758f00600ce61b97"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060searchOnline\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. 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 in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/lomen/tv/ui/screens/search/SearchViewModel.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3442046a43df4a1dd4e56e50366c87ba2e3482e29ded8a4d414e0f98ff86b66"}}],"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-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-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_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/"}]}],"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":6,"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."]}]}