Public report of DevSon1024/Nosved-Player, published 17 November 2026. It has the same score, grades and number of findings as the full report. The details of security findings (where they are in the code, which known vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive report Measured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey → Signed and filed in the standard's public register, 17 November 2026, 06:12 UTC · Survey ID cd_f04120f5374c48a9bbe8aa85e81a2e8d

DevSon1024/Nosved-Player

Measured 17 November 2026, 06:12 UTC, at code version c5ae7b0

First survey, so nothing to compare with yet
CAI score 45.3out of 100 Weak
CriticalWeakAdequateStrongExemplary

The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.

A medium codebase: 69,977 lines of product code in 2 projects, tests not counted · Estimated rebuild effort: about 0.5 person-years · Weakest lens: Production Readiness, 25.7

Findings by how serious they are

0 critical 778 serious 44 minor

18 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.

This survey was produced by

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 06:12 UTC

A measurement, not a certificate. The Code Assurance Index records a number together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that implements it, and today the Canine Code Analyzer is the only one that does.

The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸

46of 46 dimensions measured by tools.
817of 822 findings point to an exact file and line, so you can open each one in the code. The other 5 concern the repository as a whole, such as missing documentation.
46dimensions across 7 lenses, read from 69,977 lines of product code in 2 projects.
Chapters

Executive summary

DevSon1024/Nosved-Player falls short of our standard for production because we found no working pipeline that builds or tests changes to the code and no automated security scanning of the code, its secrets or its dependencies. It scores 45.3 out of 100 and is rated Weak, and it has no critical findings.

Production Readiness, at 25.7, is the weakest lens and counts most in the score. The best first steps are adding an automated build and test pipeline and adding automated security scanning, each worth about 11.0 points. Raising Production Readiness to 70 would lift the score to about 60.5.

Most of the 778 serious findings are in Code Health.

The product code is 69,977 lines, about €74,000 to rebuild.

A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.

How the score is built: what each lens counts for The lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
Production Readiness 25.7 · counts for 46%Maturity 52.1 · counts for 25%Domain Modelling 61.8 · counts for 14%Code Health 61.9 · counts for 8%Architecture 89.6 · counts for 4%Security and Compliance 96.7 · counts for 2%Performance 100.0 · counts for 1%

If Production Readiness rose from 25.7 to 70, the lowest score rated Strong, the score would rise from 45.3 to about 60.5.

Code composition: what the lines of code are
Product code 96%Tests 4%
Rebuild cost: about €74,000 · Estimate
Cost to rebuild€25,000 to €120,000, for 412 to 1,306 hours of work, about 0.5 person-years for one engineer
Difficulty of the problemStandard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor×0.7 at a score of 45. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
SizeMedium: 69,977 lines of product code
What it is notNot a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.

How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.

Top priorities

The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.

1
Add a CI workflow that builds and runs the test suite on every push/PR.
Raises the score by about 11.0 points · Medium effort · CI/CD gates
2
Run what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
Raises the score by about 11.0 points · Medium effort · Security & performance tooling
3
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts.
Raises the score by about 4.9 points · Low effort · ADR Quality

Diagnosis: what the measurements show together

Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.

Where the investment is most exposed · Value at risk
This code would cost about €74,000 to build again, about 0.5 person-years of work. Its weakest lens is Production Readiness, at 25.7 (Weak). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Add a CI workflow that builds and runs the test suite on every push/PR. Of all the actions in this report, it raises the score most for the work it takes: about 11.0 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 4.3 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 9% to 21% on every change. The history of the code shows how much it changes: about 63,425 lines over the last 90 days, which is about 257,224 lines a year. At that pace, the extra work comes to an estimated 59.2 to 355.5 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.

Architecture: which parts of the code depend on which

The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.

133 modules, with 171 dependencies between them. 2 loops run through 4 of the modules, marked above the diagonal.

The table shows the 40 modules with the most connections; 93 more are left out to keep it readable.

Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
uses →1 data.mediainfo.MediaInfoOps2 data.parser3 domain.model4 player.ambient5 player.model6 ui.screen.editor7 ui.theme8 data.database9 domain.thumbnail.ThumbnailRepository10 ui.screen.videolist.components.common11 ui.screens.videolist.state12 util13 data.model14 data.security15 player.tracker16 ui.common.components.fastscroll17 ui.screens.videolist.components.explorer18 ui.screens.videolist.state.ExplorerItem19 ui.screens.videolist.state.VideoListUiAction20 ui.screens.videolist.state.VideoListUiEvent21 ui.screens.videolist.utils22 data.media.MatroskaSubtitleDemuxer23 ui.screen.library.components24 viewmodel.SubtitleExtractionUiState25 data.media26 data.repository27 domain.thumbnail28 player.engine29 ui.common30 viewmodel31 com.devson.nvplayer32 ui.common.components33 ui.navigation34 ui.screen35 ui.screen.library36 ui.screen.settings37 ui.screen.tools38 ui.screen.vault39 ui.screen.videolist40 ui.common.sheets
1 data.mediainfo.MediaInfoOps
2 data.parser
3 domain.model
4 player.ambient
5 player.model
6 ui.screen.editor
7 ui.theme
8 data.database2
9 domain.thumbnail.ThumbnailRepository1
10 ui.screen.videolist.components.common2
11 ui.screens.videolist.state4
12 util2
13 data.model3
14 data.security45
15 player.tracker4
16 ui.common.components.fastscroll31
17 ui.screens.videolist.components.explorer42
18 ui.screens.videolist.state.ExplorerItem22
19 ui.screens.videolist.state.VideoListUiAction520
20 ui.screens.videolist.state.VideoListUiEvent14
21 ui.screens.videolist.utils61
22 data.media.MatroskaSubtitleDemuxer1
23 ui.screen.library.components16
24 viewmodel.SubtitleExtractionUiState16
25 data.media54
26 data.repository1317331
27 domain.thumbnail111
28 player.engine126
29 ui.common334
30 viewmodel126711327411204
31 com.devson.nvplayer1312
32 ui.common.components311
33 ui.navigation415
34 ui.screen7519317
35 ui.screen.library132
36 ui.screen.settings71111111
37 ui.screen.tools1243
38 ui.screen.vault425
39 ui.screen.videolist513
40 ui.common.sheets43511
Uses a module listed above itPart of a loopThe module itself
1 data.mediainfo.MediaInfoOps2 data.parser3 domain.model4 player.ambient5 player.model6 ui.screen.editor7 ui.theme8 data.database9 domain.thumbnail.ThumbnailRepository10 ui.screen.videolist.components.common11 ui.screens.videolist.state12 util13 data.model14 data.security15 player.tracker16 ui.common.components.fastscroll17 ui.screens.videolist.components.explorer18 ui.screens.videolist.state.ExplorerItem19 ui.screens.videolist.state.VideoListUiAction20 ui.screens.videolist.state.VideoListUiEvent21 ui.screens.videolist.utils22 data.media.MatroskaSubtitleDemuxer23 ui.screen.library.components24 viewmodel.SubtitleExtractionUiState25 data.media26 data.repository27 domain.thumbnail28 player.engine29 ui.common30 viewmodel31 com.devson.nvplayer32 ui.common.components33 ui.navigation34 ui.screen35 ui.screen.library36 ui.screen.settings37 ui.screen.tools38 ui.screen.vault39 ui.screen.videolist40 ui.common.sheetsdata.mediainfo.MediaInfoOps1data.parser2domain.model3player.ambient4player.model5ui.screen.editor6ui.theme7data.database8domain.thumbnail.ThumbnailRepository9ui.screen.videolist.components.common10ui.screens.videolist.state11util12data.model13data.security14player.tracker15ui.common.components.fastscroll16ui.screens.videolist.components.explorer17ui.screens.videolist.state.ExplorerItem18ui.screens.videolist.state.VideoListUiAction19ui.screens.videolist.state.VideoListUiEvent20ui.screens.videolist.utils21data.media.MatroskaSubtitleDemuxer22ui.screen.library.components23viewmodel.SubtitleExtractionUiState24data.media25data.repository26domain.thumbnail27player.engine28ui.common29viewmodel30com.devson.nvplayer31ui.common.components32ui.navigation33ui.screen34ui.screen.library35ui.screen.settings36ui.screen.tools37ui.screen.vault38ui.screen.videolist39ui.common.sheets402124234543142225201461116165413173311111263341267113274112041312311415751931713271111111124342551343511+93 more modules (most-connected shown)

At a glance — Code Health · 61.9 · Adequate · gated by D1, D2, X3 ·

At a glance — Architecture · 89.6 · Strong ·

At a glance — Maturity · 52.1 · Adequate · gated by M2 ·

At a glance — Readiness · 25.7 · Weak · gated by P1, P3 ·

At a glance — Security · 96.7 · Exemplary ·

At a glance — Domain Modelling · 61.8 · Adequate · gated by DM4, DM11 ·

At a glance — Performance · 100.0 · Exemplary ·

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A05:2025 — Injection2Medium

Roadmap

Top priorities: Add a CI workflow that builds and runs the test suite on every push/PR; Run what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing; Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Add a CI workflow that builds and runs the test suite on every push/PR.+11.0 ptsMediumCI/CD gates
Run what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.+11.0 ptsMediumSecurity & performance tooling
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts.+4.9 ptsLowADR Quality
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.+4.7 ptsMediumRelease Hygiene
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.+4.2 ptsMediumArchitecture documentation
Resolve the 49 Hotspot finding(s) in Churn × Complexity Hotspots — start with VideoListScreen.kt, PlayerScreen.kt, AppNavigation.kt.+2.5 ptsHighChurn × Complexity Hotspots
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.+2.1 ptsMediumDocumentation (README)
Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.+1.4 ptsMediumRich vs anemic model

File quality

Per-file score 0–10 — a quality signature. Of 123 files carrying findings, judged against the Production bar: 0% slop · 85% mixed · 15% near-clean.

FileScoreBandWorst signal
app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt5.5MixedCyclomatic Complexity: PlayerScreenKt.PlayerScreen (cyclomatic 144)
app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt5.5MixedCyclomatic Complexity: PlayerControlsKt.PlayerControls (cyclomatic 71)
app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt5.5MixedCyclomatic Complexity: PlayerViewModel.importSubtitle (cyclomatic 23)
app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt5.5MixedCyclomatic Complexity: MPVPlayerEngine.isAviMedia (cyclomatic 19)
app/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt5.6MixedCyclomatic Complexity: PlaybackSettingsRepository.loadPlaybackSettings (cyclomatic 16)
app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt7.0MixedCyclomatic Complexity: GestureOverlayKt.GestureOverlay (cyclomatic 92)
app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt7.0MixedCyclomatic Complexity: PlayerSettingsSideSheetKt.PlayerSettingsSideSheet (cyclomatic 87)
app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt7.0MixedCyclomatic Complexity: VaultAuthScreenKt.VaultAuthScreen (cyclomatic 67)
app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt7.0MixedCyclomatic Complexity: AppNavigationKt.AppNavigation (cyclomatic 57)
app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt7.0MixedCyclomatic Complexity: StorageExplorerScreenKt.StorageExplorerScreen (cyclomatic 50)
app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt7.0MixedCyclomatic Complexity: MatroskaSubtitleDemuxer.parseTracks (cyclomatic 47)
app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt7.0MixedCyclomatic Complexity: FolderGridItemKt.FolderGridItem (cyclomatic 46)
app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt7.0MixedCyclomatic Complexity: VaultFileManager.convertVideoProtection (cyclomatic 43)
app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt7.0MixedCyclomatic Complexity: SubtitleExtractorHelper.inspectTracks (cyclomatic 41)
app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt7.0MixedCyclomatic Complexity: InformationBottomSheetKt.SingleVideoInformationContent (cyclomatic 40)
app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt7.0MixedCyclomatic Complexity: VideoListViewModel.loadVideos (cyclomatic 40)
app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt7.0MixedCyclomatic Complexity: HistoryScreenKt.HistoryScreen (cyclomatic 36)
app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt7.0MixedCyclomatic Complexity: GestureSettingsScreenKt.GestureSettingsScreen (cyclomatic 34)
app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt7.0MixedCyclomatic Complexity: VideoRepository.scanHiddenVideos (cyclomatic 31)
app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt7.0MixedCyclomatic Complexity: SubtitleSettingsSideSheetKt.StyleTab (cyclomatic 17)

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 0

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 778

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 44

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 18

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

Methodology & how to trust this report

This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 46 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.8, the weighted average across measured dimensions.

Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.

What we checked — 46 dimensions across the health lenses
D1D2D3D4D5D6D13D14D15D17D19D20D27D28D29D34D35D44AX10AX3AX4AX6DM11DM12DM4DM5DM6M1M2M3P1P3P6PF3X1X12X15X16X18X21X25X26X27X28X3X5

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 817 of 822 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Canine Code Analyzer duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivySecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic

Every finding is locatable in findings.md. Run 01a1e822-7f4d-79f8-a695-c266f343592e.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D8 Code Coverage — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.kt) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo.
  • D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.kt) and this repository declares a JVM test suite (repository root, Gradle), but it was not re-run: the analyzer environment could not run it. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
  • D12 Dependency Hygiene — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 3 Maven/Gradle manifest(s) were read, stating a version for 24 dependency(ies) and leaving 8 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-contributor repository — bus factor is not applicable (1 contributor(s) across 291 commit(s) sampled, automation and bot accounts excluded). Concentration needs a team to concentrate: with one contributor there is nobody to spread the knowledge to, so there is nothing here for the owner to act on.
  • D19 Documentation Quality — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. Each ecosystem's manifests (what makes a folder runnable or a published package) need their own proof before D19 judges its units. Until then those folders' READMEs are judged only as documents (boilerplate, structure), never counted as complete.
  • D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. PREREGISTRATION version 20's fallback (adjudication D21-sample3-v3): this rule kind was adjudicated below the 95 % precision gate, so its candidates are counted here and not published, and the score covers only the acronym-spelling and awaitable-suffix rules. The kind returns as rows only after it shows a measured precision; this says nothing about whether these names are consistent.
  • D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict.
  • D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
  • D26 Project Cohesion — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `app` (69977 LoC, 610 module-visible types across 46 directories) is over its size bounds, and whether one unit is a coherent whole or a grab-bag is read from its type references: the parts of it that reach the rest only through its shared core. Those are read over the C#/VB code model, which this unit's source did not supply. Its size alone is no verdict on its cohesion, so none is published.
  • D32 Data Compliance (PII/GDPR) — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt`, `app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt` produced a parse error, so every rule in this engine's `gdpr.yml` was absent there. That absence is NOT a clean result: these rules detect personal data crossing a boundary into a log sink, a URL or browser storage, and a file that was never parsed cannot report any of the three. The rest of the tree analysed normally and its rows above stand; only these files are unaccounted for. You can widen what we reach: fix the syntax error (or exclude the file deliberately) and re-scan to cover it.
  • AX1 Captive dependencies — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads Microsoft.Extensions.DependencyInjection registrations in C# and Spring beans in Java/Kotlin only, and this repository defines its own container in app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt, whose lifetimes are not modelled yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • AXR1 Runtime accessibility — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Boot via AndroidApp (app). the Android app did not build — `./gradlew :app:assembleDebug` exited 1: gradle/wrapper/dists/gradle-8.14.3-all/10utluxaxniiv4wxiphsi49nj/gradle-8.14.3-all.zip Expected checksum: 'b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06' Actual checksum: 'ed1a8d6…; runtime evidence skipped (launch chosen because app/build.gradle.kts applies the Android application plugin and gradlew builds it).
  • C2 Access Controls — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
  • DM8 Value-object opportunities — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds primitive parameters that travel together through several signatures of the domain (a missing value object). Its deterministic rule has not yet shown 95 % precision on adjudicated rows, so the clumps it finds are counted here and not published as findings, and the card carries no score. That is a limit of the analyzer, not a finding about your code.
  • DM9 Scattered domain decisions — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not measured — scattered-decision detection needs expression-level symbol resolution: a comparison operand bound to the member it judges (arm one) and a construction bound to the type it produces (arm two). A Roslyn compilation carries both; arm two alone also runs on any frontend that declares whether a construction is produced or passed, and this target loaded neither.
  • GD1 Unfinished & placeholder code — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust and Java source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Java was found, and this repository's Kotlin is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • IC1 Incompleteness & stubs — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby, Scala and Rust source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby, Scala or Rust was found, and this repository's Kotlin is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • P5 DR & Backup — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • S1 Web-Security Posture — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
  • X2 Cancellation propagation — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Go, PHP, Dart, Kotlin, Ruby, Scala, Java, Python and Rust source only, and no C# was loaded, and no named async function in this repository's JavaScript/TypeScript, nor any Go, PHP or Dart function or Kotlin suspend function, makes a request that can be cancelled (fetch, axios, ky, ofetch, got, undici, node:http; net/http, net.Dial; amphp; Dio; Ktor, OkHttp), so there is nothing to judge, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X24 Document value interpolated into markup unescaped — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X3 Exception handling — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. 204 further occurrence(s) are not listed individually; the score already reflects all 244.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
  • D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
  • D20 ADR Quality: ADR quality checks the structure of the decision records present: it cannot know about decisions made and never recorded, and it does not judge how well a record argues its case. Records in a language the section lexicon does not cover are not evaluated.
  • D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • DM4 Rich vs anemic model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
  • DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

Dimensions

D1 · Cyclomatic Complexity2.0 / 10Critical✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

108 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was VideoListScreenKt.VideoListScreen at 156. A further 2 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being PlayerSettingsSideSheetKt.GesturesTab at 19 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: app/src/main/java/com/devson/nvplayer/ui/screen/editor/MpvScriptEditor.kt (MpvScriptEditorKt.toTextMateLanguage at 19). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

VideoListScreenKt.VideoListScreen (cyclomatic 156)app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:102
PlayerScreenKt.PlayerScreen (cyclomatic 144)app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:112
VideoMetadataExtractor.extractDetails (cyclomatic 97)app/src/main/java/com/devson/nvplayer/data/media/VideoMetadataExtractor.kt:76
GestureOverlayKt.GestureOverlay (cyclomatic 92)app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:55
PlayerSettingsSideSheetKt.PlayerSettingsSideSheet (cyclomatic 87)app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:66

+ 103 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 7 bodies over 60 down to 60 or less in Cyclomatic Complexity — start with VideoListScreenKt.VideoListScreen (cyclomatic 156), PlayerScreenKt.PlayerScreen (cyclomatic 144), VideoMetadataExtractor.extractDetails (cyclomatic 97). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 7 together lifts Cyclomatic Complexity from 2.0 to about 3.2/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity2.0 / 10Critical✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

149 method(s) exceeded the cognitive complexity threshold of 15; the worst was VideoListScreenKt.VideoListScreen at 311.

VideoListScreenKt.VideoListScreen (cognitive 311)app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:102
PlayerScreenKt.PlayerScreen (cognitive 235)app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:112
MatroskaSubtitleDemuxer.parseTracks (cognitive 233)app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:387
GestureOverlayKt.GestureOverlay (cognitive 205)app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:55
VideoMetadataExtractor.extractDetails (cognitive 193)app/src/main/java/com/devson/nvplayer/data/media/VideoMetadataExtractor.kt:76

+ 144 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Bring the 20 bodies over 60 down to 60 or less in Cognitive Complexity — start with VideoListScreenKt.VideoListScreen (cognitive 311), PlayerScreenKt.PlayerScreen (cognitive 235), MatroskaSubtitleDemuxer.parseTracks (cognitive 233). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 20 together lifts Cognitive Complexity from 2.0 to about 3.2/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes5.0 / 10Weak✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

Maturity: Documented → Verified → Prevented · effective 5.0 / 10 · rule-coverage 100% · ceiling Prevented

113 god class(es) detected.

MethodTooLong: GestureSettingsScreenKt.GestureSettingsScreen · ×64app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:43
FileTooLong: screen/PlayerScreen.kt · ×33app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt
ClassTooLong: MPVPlayerEngine · ×9app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:24
TooManyMethods: SettingsViewModel · ×7app/src/main/java/com/devson/nvplayer/viewmodel/SettingsViewModel.kt:36

What to do

  1. Resolve the 64 MethodTooLong finding(s) in God Classes — start with AppDatabase.kt (6), PlayerScreen.kt (3), SubtitleSettingsSideSheet.kt (3). — One of this dimension's main actionable groups (64 warning-level).
  2. Resolve the 33 FileTooLong finding(s) in God Classes — start with PlayerScreen.kt, PlayerSettingsSideSheet.kt, PlayerControls.kt. — One of this dimension's main actionable groups (33 warning-level).
  3. Resolve the 9 ClassTooLong finding(s) in God Classes — start with MPVPlayerEngine.kt, PlayerViewModel.kt, VaultFileManager.kt. — One of this dimension's main actionable groups (9 warning-level).

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D4 · Code Duplication4.5 / 10Weak✓ Tool-verified

What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.

Maturity: Documented → Verified → Prevented · effective 4.5 / 10 · rule-coverage 100% · ceiling Verified

254 duplicated block group(s) detected. 13.6 % of the production lines (9,544 of 69,977) are in a reported copy. A further 44 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.

Duplicated block (15 lines × 2) · ×16app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:21
Duplicated block (14 lines × 2) · ×16app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1416
Duplicated block (11 lines × 2) · ×13app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:256
Duplicated block (13 lines × 2) · ×12app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:165
Duplicated block (18 lines × 2) · ×10app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:370

+ 139 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 16 Duplicated block (15 lines × 2) finding(s) in Code Duplication — start with SubtitleSettingsSideSheet.kt (2), VaultAuthScreen.kt (2), MediaStoreHelper.kt. — One of this dimension's main actionable groups (16 warning-level).
  2. Resolve the 16 Duplicated block (14 lines × 2) finding(s) in Code Duplication — start with ProfileScreen.kt (3), AudioSettingsSideSheet.kt (2), PlayerControls.kt. — One of this dimension's main actionable groups (16 warning-level).
  3. Resolve the 13 Duplicated block (11 lines × 2) finding(s) in Code Duplication — start with FastScroller.kt, AppNavigation.kt, SettingsScreen.kt. — One of this dimension's main actionable groups (13 warning-level).

Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.

D5 · Coupling10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.

Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.

Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

2 production modules (Gradle), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; edges a convention plugin adds from buildSrc or build-logic are not visible there; 0 module(s) off the main sequence, with abstractness counted on 1 of the 2 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).

✓ On the Gold path — maintain.

Detailed fixes: d5_recommendation.md.

D6 · Cohesion (LCOM4)8.7 / 10Strong✓ Tool-verified

What it measures: Whether a class's methods are focused on a single responsibility.

Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.

Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.

Maturity: Documented → Verified → Prevented · effective 8.7 / 10 · rule-coverage 100% · ceiling Verified

3 of 28 classes have LCOM4 above 3.

Low cohesion: MPVPlayerEngine (LCOM4 20) · ×3app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:24

What to do

  1. Resolve the 3 Low cohesion finding(s) in Cohesion (LCOM4) — start with MPVPlayerEngine.kt, SettingsViewModel.kt, FeedViewModel.kt. — One of this dimension's main actionable groups (3 warning-level).

Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D14 · License Compliance10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the licenses of third-party packages are compatible with your policy.

Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Verified

0 of 6 declared JVM dependency artifact(s) use a banned license. Licences were resolved from the POMs Maven Central publishes, over the coordinates this repository's 3 Maven/Gradle manifest(s) declare with a version resolvable from the manifest itself — the same declaration-site closure this analysis reads for dependency currency. The JVM has no lockfile a checkout is guaranteed to carry, so this is deliberately NOT the transitive closure. 8 further coordinate(s) are declared with no version at the declaration site — inherited from a parent POM, a BOM or an unresolved Gradle version reference — and are NOT graded: this verdict covers what the checkout pins, not the full transitive graph. A further 18 coordinate(s) are not published to Maven Central — another repository (Google's Maven hosts androidx), a SNAPSHOT, or a private artifact — so their licences are not readable from here and they are outside this verdict.

✓ On the Gold path — maintain.

Detailed fixes: d14_recommendation.md.

D15 · Churn × Complexity Hotspots7.8 / 10Strong✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: Documented → Verified → Prevented · effective 7.8 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt (15×156=2340); app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt (15×144=2160); app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt (27×57=1539) Repeated repair below the complexity floor: app/src/main/java/com/devson/nvplayer/util/FormatUtils.kt (3 of 3 changes were fixes)

Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt · ×49app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:102
Repeated repair: app/src/main/java/com/devson/nvplayer/util/FormatUtils.ktapp/src/main/java/com/devson/nvplayer/util/FormatUtils.kt:47

What to do

  1. Resolve the 49 Hotspot finding(s) in Churn × Complexity Hotspots — start with VideoListScreen.kt, PlayerScreen.kt, AppNavigation.kt. — One of this dimension's main actionable groups (49 warning-level).
  2. Resolve the 1 Repeated repair finding(s) in Churn × Complexity Hotspots — start with FormatUtils.kt. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D17 · Explicit Debt10.0 / 10Exemplary○ Nothing flagged

What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.

Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

0 deducted task-comment markers across 69977 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

✓ On the Gold path — maintain.

Detailed fixes: d17_recommendation.md.

D19 · Documentation Quality10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

1 of 1 documentation facets pass in full. 1 document(s) read across 1 unit(s).

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D20 · ADR Quality0.0 / 10Critical✓ Tool-verified

What it measures: Whether architecture decisions are recorded well (context, decision, consequences).

Method: Every ADR read by its section structure: nine located rules (a missing Decision, Context or Consequences section, a stale status, two records deciding the same question, a dangling supersede link, a number-only title, a single option, no named cost, no status where the log uses one, no enforcement field where the log adopted one), each a fixed deduction from 10; the score is the mean over evaluated records. Deterministic, no model. Advisory.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

No architecture decision records were found.

No ADRs foundapp/build.gradle.kts:7

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.kts. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d20_recommendation.md · top locations in Appendix A, every location in findings.md.

D27 · Navigability9.7 / 10Exemplary✓ Tool-verified

What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.

Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.

Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.

Maturity: Documented → Verified → Prevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Documented

16 % of calls cross a namespace and 6 % go through an interface, but 100 % of collaborators are co-located — so a call's collaborators sit together and tracing stays easy. Baseline: small — navigation cost is tolerated.

✓ On the Gold path — maintain.

Detailed fixes: d27_recommendation.md.

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)9.0 / 10Stronggated by 2 serious findings✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: Documented → Verified → Prevented · effective 9.0 / 10 · rule-coverage 100% · ceiling Documented

2 finding(s): 0 critical, 0 high, 2 medium, 0 low. semgrep hit a parse error in 1 file(s) — `app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt` (line 312) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.

REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D34 · Knowledge Freshness10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Every significant source file has living knowledge — recently and meaningfully worked. Counted over 167 of the 227 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling9.1 / 10Stronggated by 4 serious findings✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 9.1 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: PlayerControls.kt↔PlayerScreen.kt 73%; MPVPlayerEngine.kt↔PlayerViewModel.kt 67%; PlaybackSettingsRepository.kt↔PlayerScreen.kt 66%

Change-coupling hub: PlayerScreen.kt → PlaybackSettingsRepository.kt, MPVPlayerEngine.kt, PlayerControls.kt, ControlLayoutEditorScreen.kt, SettingsViewModel.kt · ×3app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt
Change coupling: PlaybackSettingsRepository.kt ↔ PlayerInterfaceSettingsScreen.ktapp/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt:1

What to do

  1. Resolve the 3 Change-coupling hub finding(s) in Change Coupling — start with PlayerScreen.kt, PlayerViewModel.kt, PlayerControls.kt. — One of this dimension's main actionable groups (3 warning-level).
  2. Resolve the 1 Change coupling finding(s) in Change Coupling — start with PlaybackSettingsRepository.kt. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.

Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 24 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AX10 · Code composition8.5 / 10Strong✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).

Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.

Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.

AX6 · Interface segregation8.7 / 10Strong✓ Tool-verified

Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').

Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.

  • `MediaLibraryDao` declares 35 abstract methods: `insertSeries`, `insertSeriesList`, `getSeriesById`, `getSeriesByTitle`, `getAllSeries`, `getAllSeriesSync`, `deleteSeries`, `insertSeason`, `insertSeasons`, `getSeasonsForSeries`, `getAllSeasonsSync`, `getSeasonByNumber`, `deleteSeason`, `insertEpisode`, `insertEpisodes`, `getAllEpisodesSync`, `getEpisodesForSeason`, `getEpisodeByUri`, `updateEpisodePlayback`, `deleteEpisode`, `deleteEpisodes`, `deleteEpisodeByUri`, `insertMovie`, `insertMovies`, `getMovieByUri`, `getAllMoviesSync`, `getAllMovies`, `updateMoviePlayback`, `deleteMovie`, `deleteMovies`, `deleteSeasons`, `deleteSeriesList`, `deleteOrphanedSeasons`, `deleteOrphanedSeries`, `updateSeriesSynopsis`. 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't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — app/src/main/java/com/devson/nvplayer/data/database/MediaLibraryDao.kt:11
  • `WatchHistoryDao` declares 25 abstract methods: `insert`, `getAllHistoryFlow`, `getAllHistorySync`, `deleteHistory`, `getHistory`, `findExistingHistory`, `deleteAll`, `getNetworkStreams`, `getStreamByUri`, `insertStream`, `getActiveHistoryFlow`, `getActiveHistorySync`, `getDeletedHistoryFlow`, `getDeletedHistorySync`, `getByHistoryId`, `getHistoryByPath`, `getLocalHistorySync`, `setDeletedStatus`, `markAsDeleted`, `restoreHistory`, `getHistoryForDate`, `getHistoryForDateFlow`, `getHistoryBetweenDates`, `getCompletedVideosFlow`, `updatePlaybackProgress`. 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't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — app/src/main/java/com/devson/nvplayer/data/database/WatchHistoryDao.kt:10
  • `PlayerEngine` declares 31 abstract methods: `loadVideo`, `play`, `pause`, `togglePlayback`, `seekTo`, `setPlaybackSpeed`, `cycleSubtitle`, `cycleAudio`, `selectSubtitleTrack`, `selectAudioTrack`, `selectChapter`, `setSubtitleDelay`, `setSubtitleStyle`, `applySubtitleSettings`, `seekNextSubtitle`, `seekPrevSubtitle`, `addExternalSubtitle`, `setAudioBoost`, `setMpvVolume`, `setDecoder`, `setAspectMode`, `setVideoTrackEnabled`, `stepFrameForward`, `stepFrameBackward`, `setMute`, `isMuted`, `getEstimatedFrameCount`, `getEstimatedFrameNumber`, `seekToFrame`, `setAmbientMode`, `release`. 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't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. — app/src/main/java/com/devson/nvplayer/player/engine/PlayerEngine.kt:12

What to do

  • Split fat interfaces into focused role-interfaces so clients depend only on what they use.
DM11 · Constructible invalid state3.8 / 10Weak✓ Tool-verified

Other · Domain Modelling — Whether an aggregate can be constructed in a state its own rules forbid — a public constructor that takes a raw primitive, stores it, and validates nothing, with no factory beside it. A constructor taking only value objects is not counted: each parameter has already validated itself.

Method: Neutral surface (DDD-gated): each non-abstract entity/aggregate checked for a PUBLIC constructor taking at least one RAW PRIMITIVE parameter whose body contains no guard token (throw / Guard. / Ensure. / ArgumentException / CheckRule / an XException.ThrowIf* helper). C#: a static factory beside a public constructor does not exempt it, and a public parameterless constructor followed by public raw-primitive setters that refuse nothing is charged when the type also declares a validating way in (a guarded constructor or a guarding static method returning the type); TypeScript: a static Create/Of/From/New factory exempts the type. A constructor taking only value objects is never charged -- measured: 64 of 87 unguarded public constructors on the C# corpus take value objects only, so ignoring parameter types would be 73% false positives. One finding per entity. Deterministic.

  • `CachedVideoMetadata`'s public constructor takes `uri`, `externalSubtitleUri`, `embeddedSubtitles`, `externalSubtitles` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `CachedVideoMetadata` 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 `Create` that can refuse. — app/src/main/java/com/devson/nvplayer/data/database/CachedVideoMetadata.kt:7
  • `DailyWatchEntity`'s public constructor takes `date`, `qualifyingVideoUris` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `DailyWatchEntity` 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 `Create` that can refuse. — app/src/main/java/com/devson/nvplayer/data/database/DailyWatchEntity.kt:7
  • `EpisodeEntity`'s public constructor takes `title`, `fileUri` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `EpisodeEntity` 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 `Create` that can refuse. — app/src/main/java/com/devson/nvplayer/data/database/EpisodeEntity.kt:23
  • `MovieEntity`'s public constructor takes `title`, `fileUri` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `MovieEntity` 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 `Create` that can refuse. — app/src/main/java/com/devson/nvplayer/data/database/MovieEntity.kt:13
  • `SeriesEntity`'s public constructor takes `title`, `synopsis`, `posterUri` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `SeriesEntity` 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 `Create` that can refuse. — app/src/main/java/com/devson/nvplayer/data/database/SeriesEntity.kt:13
  • `StreakStateEntity`'s public constructor takes `lastQualifyingWatchDate` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `StreakStateEntity` 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 `Create` that can refuse. — app/src/main/java/com/devson/nvplayer/data/database/StreakStateEntity.kt:7
  • `VaultEntity`'s public constructor takes `title`, `originalUri`, `vaultPath`, `thumbnailPath`, … 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `VaultEntity` 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 `Create` that can refuse. — app/src/main/java/com/devson/nvplayer/data/database/VaultEntity.kt:15
  • `WatchHistoryEntity`'s public constructor takes `uri`, `videoTitle`, `historyId`, `originalPath`, … 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `WatchHistoryEntity` 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 `Create` that can refuse. — app/src/main/java/com/devson/nvplayer/data/database/WatchHistoryEntity.kt:15

What to do

  • Give each aggregate one way in that can refuse — a guarded constructor, value-object parameters that validate themselves, or a private constructor behind a factory that returns a failure.
DM12 · Ambient inputs in the domain10.0 / 10Exemplary○ Nothing flagged

Other · Domain Modelling — Whether domain types receive the time and randomness their rules depend on, rather than reading the process clock or a global random source directly — an ambient read makes the rule it feeds untestable at the instant that matters and lets two reads inside one operation disagree.

Method: Roslyn (DDD-gated, C#/VB only): domain-layer types scanned for ambient reads — DateTime/DateTimeOffset.Now/UtcNow/Today, Random.Shared, new Random(), Stopwatch.GetTimestamp — resolved against the semantic model, with a comment/string-stripped token fallback only where resolution fails. Body reads are scored; field/property initialisers are surfaced unscored. Apply/When folds excluded (ES1 owns them). Deterministic, symbol-resolved.

DM4 · Rich vs anemic model3.0 / 10Weak✓ Tool-verified

Other · Domain Modelling — Whether aggregates/entities carry the behaviour that protects their invariants, rather than being data bags driven by external services.

Method: Roslyn (DDD-gated): entity method BODIES classified mutator-vs-query — only methods that mutate the entity's own declared state count as invariant-protecting behaviour, so a getter/passthrough doesn't rescue an anemic class. Deterministic, exhaustive over domain-layer entities.

Coverage: Population: entities by name/base convention; rich-vs-anemic judged by classifying each method body mutator-vs-query — logic-bearing domain types outside the convention are invisible.

  • `CachedVideoMetadata` is an aggregate/entity with 10 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service. — app/src/main/java/com/devson/nvplayer/data/database/CachedVideoMetadata.kt:7

What to do

  • Move business rules onto the aggregates/entities they govern so invariants are enforced at the source, not in anemic services.
DM5 · Encapsulated state10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether entities protect their state — private/init-only setters, and collections handed out as read-only views rather than the mutable backing collection — instead of exposing writable state that bypasses invariants. Softened when a rehydration framework (Marten/EF) is present.

Method: Roslyn (DDD-gated): entities scanned for publicly writable state — public setters, and (C#/VB) own mutable collections handed out through an auto-property, a public field or a bare-field expression getter, where a computed/copying getter is never charged. One finding per entity; score softened when Marten/EF rehydration frameworks present. Deterministic, framework-aware.

Coverage: Population: entities by convention; encapsulation (setter shape) checked exhaustively within the set.

DM6 · Domain ↔ infrastructure boundary10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies (EF/Marten/HTTP/ASP.NET) — the clean-architecture dependency rule.

Method: Roslyn (DDD-gated): domain-layer types scanned for infrastructure usage in member SIGNATURES and inside method/accessor BODIES — resolved calls and object-creations into EF/Marten/HTTP/Mongo/Redis/message-bus types (not just a namespace allowlist). Deterministic, symbol-resolved, exhaustive over domain-layer bodies, DDD-native.

Coverage: Domain layer identified by NAMESPACE heuristic; infrastructure then resolved by symbol in member SIGNATURES and method/accessor BODIES — rename the layer and the check evaporates.

M1 · Documentation (README)6.7 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

What to do

  • Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation0.0 / 10Critical✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` 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.
  • No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" 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 — not evidence that nobody wrote the shape down.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
  • Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

P1 · CI/CD gates0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

  • No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.

What to do

  • Add a CI workflow that builds and runs the test suite on every push/PR.
P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

  • No static application security testing detected. For this repository's stack, add spotbugs with find-sec-bugs (or `semgrep --config=auto`, which runs on any language) — 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's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
  • `app/build.gradle.kts` 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 — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`. — app/build.gradle.kts:140

What to do

  • Run what this repository's stack ships: spotbugs with find-sec-bugs — or `semgrep --config=auto`, which runs on any language — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P6 · Release Hygiene5.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

  • No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)

What to do

  • Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
PF3 · Async & latency hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Performance — Whether asynchronous code stays responsive — it avoids sync-over-async blocking (a .NET .Wait()/.GetAwaiter().GetResult(), a time.sleep or blocking HTTP call inside a Python coroutine, a *Sync call inside an async JavaScript function, block_on inside a Rust async fn, runBlocking inside a Kotlin suspend function, block() inside a Reactor publisher) that stalls a thread or event loop and risks deadlock, and, where the code is a reusable library on .NET, awaits with ConfigureAwait(false) so it never captures and stalls its caller's context.

Method: Production-source scan: sync-over-async blocking counted everywhere — .Wait()/.GetAwaiter().GetResult() in .NET; off .NET, read from each language's code model, a blocking call inside an async function (Python, TS/JS, Rust, Kotlin, Swift, Dart) or inside a Java method returning a Reactor Mono/Flux or a Scala method returning a Future or effect — and, for a .NET library with ≥5 awaits, the share of awaits using ConfigureAwait(false). Deterministic, syntax/text detection.

X1 · Async correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether the code avoids sync-over-async (deadlock-prone blocking on tasks) and async void.

Method: Roslyn syntax scan: async methods scanned for .Wait()/.GetAwaiter().GetResult() and async-void outside event handlers. Deterministic, hard fact per invocation.

X12 · Unreachable branch10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether any branch is dead by construction — a switch arm whose label can never equal a case-normalised subject, or an `else if` whose predicate the arm above has already swallowed.

Method: Roslyn syntax + semantics: switch labels compared against the subject's own case normaliser, and if/else-if chains checked for a literal an earlier arm's containment test already swallows. Deterministic, provable per finding. Advisory.

X15 · Unvalidated length from an untrusted reader3.5 / 10Weak✓ Tool-verified

Other · Security — Whether a length read out of the stream being parsed is bounded before it is allocated or read — an unchecked count taken from the input lets the input choose the allocation.

Method: Roslyn syntax + semantics: integer lengths read from a BinaryReader and spent on a bulk read or an array allocation, checked for any comparison or bounding call on the value anywhere in the method. Deterministic, provable per finding. Advisory.

  • `titleLen` is read from the bytes being parsed at line 184 (`readInt`), then used to size a `ByteArray` at line 185 — and nowhere in its scope is `titleLen` bounded from above — compared to a limit, clamped, or checked against the input that remains (a zero or sign test, or the loop that counts up to it, bounds nothing). Whoever wrote those bytes therefore chooses the allocation directly: a 32-bit length asks for up to 2 GiB before a single byte of the payload is known to exist, which either exhausts the heap with an `OutOfMemoryError` or, negative, throws `NegativeArraySizeException` out of a parser whose failure path was written for malformed input, not for hostile input. Bound `titleLen` against the bytes actually remaining and a maximum the format allows before allocating. — app/src/main/java/com/devson/nvplayer/data/security/VaultFileFormat.kt:185

What to do

  • Each finding names the read that takes the length from the input and the site that spends it, and states that the value is never compared in between. Confirm from the two, then bound the length against the remaining stream before using it.
X16 · Unfloored truncation loop10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.

Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.

X18 · Disposal-pattern correctness10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.

Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.

X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.

Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.

X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.

Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.

X26 · Unsynchronised callback handoff10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a value handed from a callback to the body that waits on it crosses on something built to be crossed — a `Queue<T>`/`List<T>`/`Dictionary<K,V>` written inside an event handler and read back outside it is mutated by two flows at once, and the semaphore or completion source beside it orders how MANY items exist while leaving the collection's own head, tail and backing array unprotected.

Method: Roslyn syntax: method, accessor, local-function and lambda bodies that declare BOTH a non-thread-safe generic collection (`Queue`/`Stack`/`List`/`Dictionary`/`HashSet`/`Sorted*`/`LinkedList`) and a synchronisation primitive (`SemaphoreSlim`/`TaskCompletionSource`/`ManualResetEvent(Slim)`/`AutoResetEvent`/`CountdownEvent`) as locals, then read for a `+=`-registered lambda that raises that primitive while the body outside every lambda waits on it — and, in that scope, a mutating call on the collection inside the lambda paired with a mention of it outside. Any `lock` in the scope abstains it. On a repository with no .NET source the same handoff is read in Java off the engine’s own token stream (test source sets, vendored and demonstration paths not): an `ArrayList`/`LinkedList`/`ArrayDeque`/`PriorityQueue`/`Hash*`/`LinkedHash*`/`Tree*` local and a `CountDownLatch`/`Semaphore`/`CompletableFuture` local, a lambda or anonymous class that raises the primitive and mutates the collection, and a wait outside it; any `synchronized` or `lock()` abstains the body. Because each of those primitives orders what the callback wrote before raising it, only a touch that provably overlaps the callback is convicted: one after the registration and before the next wait, or one in a loop registered-before, waiting on every pass and not declaring the collection. Deterministic, provable per finding. Advisory.

X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a `for (x in c)` or `c.forEach { … }` leaves the collection it is walking alone — a `mutableListOf`/`ArrayList`, `mutableMapOf`/`HashMap` or `mutableSetOf`/`HashSet` is a `java.util` collection on the JVM and is walked by its own fail-fast iterator, so a body that adds to or removes from the very collection the loop is walking makes the next step throw `ConcurrentModificationException` and the remaining elements are never seen.

Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.

X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.

Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.

X3 · Exception handling3.4 / 10Weak✓ Tool-verified

Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.

Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.

  • An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it. (×27) — app/src/main/java/com/devson/nvplayer/MainActivity.kt:428, app/src/main/java/com/devson/nvplayer/viewmodel/FeedViewModel.kt:126, app/src/main/java/com/devson/nvplayer/viewmodel/FeedViewModel.kt:148, …
  • `catch (e: Exception)` takes every exception and records none of it — 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. (×8) — app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:240, app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:427, app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:563, …
  • `catch (_: Exception)` takes every exception and records none of it — 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. (×5) — app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt:126, app/src/main/java/com/devson/nvplayer/viewmodel/VaultAuthViewModel.kt:131, app/src/main/java/com/devson/nvplayer/viewmodel/VaultAuthViewModel.kt:376, …

What to do

  • Swallowed exception (empty catch)
X5 · Nullable reference types10.0 / 10Exemplary✓ Tool-verified

Other · Code Health — Whether Kotlin's null safety is not undermined by not-null assertions — `String` cannot hold null and `String?` must be checked before use in every Kotlin module, and each `!!` is a run-time `NullPointerException` the author has told the compiler cannot happen.

Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health61.9Adequate — gated by D1, D2, X3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture89.6StrongSolid.
Maturity52.1Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness25.7Weak — gated by P1, P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security96.7ExemplarySolid.
Domain Modelling61.8Adequate — gated by DM4, DM11Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Performance100.0ExemplaryStrongest area.
Unscored — 2 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • X10 Duplicated predicate — 21 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
  • X7 Silent fallback defaults — 14 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 2 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • P4 Deployment & Rollback — not evidenced — no deploy/rollback/approval signal in the repo; absence of evidence is not evidence of a manual release
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 77 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Kotlin code is a Spring, JSR-330 or CDI singleton bean.
  • AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — not applicable — not a vertical-slice architecture
  • AX8 Test isolation — no test/production split to check
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — the Android app did not build — `./gradlew :app:assembleDebug` exited 1: gradle/wrapper/dists/gradle-8.14.3-all/10utluxaxniiv4wxiphsi49nj/gradle-8.14.3-all.zip Expected checksum: 'b266d5ff6b90eada6dc3b20cb090e3731302e553a27c5d3e4df1f0d76beaff06' Actual checksum: 'ed1a8d6…; runtime evidence skipped (launch chosen because app/build.gradle.kts applies the Android application plugin and gradlew builds it) This is a statement about this run, not a statement about your application: nothing here says the app is inaccessible, only that it was never run.
  • C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no data at rest for these controls to protect.
  • C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C3 Audit Trail — No personal data detected in a persisted data model — no PII-named column (email, first_name, date_of_birth, phone_number, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a store configured outside this repository, for instance), the trail belongs to wherever that data is stored.
  • C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no personal data whose lifetime a retention limit would bound.
  • C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, firstName, dateOfBirth, phoneNumber, …) or stored credential on a Room, JPA or MongoDB entity, an Exposed or Ktorm table, or in a SQL CREATE TABLE or ALTER TABLE — and no database or data-store client (Room, Exposed, SQLDelight, Realm, JPA, JDBC, MongoDB, Firebase, …) imported either, so this repository keeps no personal data for a data subject to erase, export or consent over.
  • D10 Test Quality — ~2911 lines of test source are present (.kt) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included — the .kt suite was found but not re-run
  • D12 Dependency Hygiene — Not scored — 3 Maven/Gradle manifest(s) were read, stating a version for 24 dependency(ies) and leaving 8 to a parent or an imported BOM, but no build resolved the dependency graph, so the outdated signal was not established. NOT a finding that these dependencies are current or healthy.
  • D16 Bus Factor — single-contributor repository — bus factor is not applicable
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D21 Naming Consistency — D21 withholds its case and prefix conventions rows: 5 candidate(s) found and not reported.
  • D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
  • D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only — this repository's production source is .kt, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — D26 could not read how the parts of this repository's one build unit reference each other, so its cohesion was not measured. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — 2 file(s) were not parsed by semgrep — the PII/GDPR ruleset never ran over them
  • D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not included — suite not readable by the collector
  • DM1 Aggregate boundaries — no aggregates detected — aggregate-boundary check not applicable
  • DM10 One transaction, one aggregate — no repository writes detected — no operation to judge against the one-aggregate rule
  • DM2 Strongly-typed ids — no id-bearing domain types detected — strongly-typed-id adoption not assessable
  • DM3 Integration-event coupling — no integration events detected — coupling check not applicable
  • DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
  • DM8 Value-object opportunities — not scored — the deterministic rule found 0 candidate clump(s); its rows are withheld until it has a measured precision of 95 % (a sample of fewer than 10 rows cannot show one)
  • DM9 Scattered domain decisions — not measured — scattered-decision detection needs expression-level symbol resolution: a comparison operand bound to the member it judges (arm one) and a construction bound to the type it produces (arm two). A Roslyn compilation carries both; arm two alone also runs on any frontend that declares whether a construction is produced or passed, and this target loaded neither
  • ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
  • GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust and Java, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
  • IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • M4 Documentation accuracy — Not applicable: the 1 current-state document(s) make no claim of a kind M4 checks.
  • P12 CI test-gate honesty — no CI workflow found
  • P2 Observability — This repository's JVM source (1 module(s), 224 file(s) read) declares no entry point and bootstraps no server, and nothing here deploys a service — it is a library, run inside whatever hosts it, so production observability (structured logging, tracing/metrics, health checks) is N/A. If it grows a binary or a service, the dimension reactivates.
  • P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the JVM source, so there is no service whose uptime a failing dependency could take down
  • P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
  • P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
  • PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `@Benchmark` in a Java, Kotlin or Scala file importing JMH or kotlinx-benchmark, Jetpack Benchmark's `measureRepeated` in a file importing androidx.benchmark, or JMH/kotlinx-benchmark/androidx.benchmark in a pom.xml, Gradle or sbt build, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
  • PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • X13 Undrained process stream — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X17 Uncapped recursion over a caller-supplied document — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X19 Unrestored process-global state — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X20 Mistyped argument guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X29 Per-element action decided by a fixed element — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X30 Support guard that admits what it rejects — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
  • X4 Structured logging — This check asks whether log calls keep a message's values apart from its text, which needs a logger that can carry them as fields. This repository's Kotlin was read, and it logs through none that an assembled message defeats: Android's `Log` and Timber, java.util.logging and log4j-api-kotlin take one finished message (as log4net does in C#), or it makes no call through a named logger at all. Calls made through SLF4J, log4j 2 or kotlin-logging (`LoggerFactory.getLogger`, `KotlinLogging.logger {}`) would be judged.
  • X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Serious — 778 finding(s)
D3 · God Classes · MethodTooLong · ×64
  • MethodTooLong: GestureSettingsScreenKt.GestureSettingsScreen app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:43 — MethodTooLong — GestureSettingsScreen runs 387 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 287 over it, 3.87× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: ControlLayoutEditorScreenKt.ControlLayoutEditorScreen app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:44 — MethodTooLong — ControlLayoutEditorScreen runs 377 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 277 over it, 3.77× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AppearanceSettingsScreenKt.AppearanceSettingsScreen app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:55 — MethodTooLong — AppearanceSettingsScreen runs 358 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 258 over it, 3.58× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: FrameExtractionScreenKt.FrameExtractionScreen app/src/main/java/com/devson/nvplayer/ui/screen/tools/FrameExtractionScreen.kt:47 — MethodTooLong — FrameExtractionScreen runs 319 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 219 over it, 3.19× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: InformationBottomSheetKt.SingleVideoInformationContent app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:191 — MethodTooLong — SingleVideoInformationContent runs 284 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 184 over it, 2.84× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SeriesDetailScreenKt.SeriesDetailScreen app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:49 — MethodTooLong — SeriesDetailScreen runs 281 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 181 over it, 2.81× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: SubtitleExtractionBottomSheetKt.SubtitleExtractionBottomSheet app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:46 — MethodTooLong — SubtitleExtractionBottomSheet runs 269 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 169 over it, 2.69× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: ViewSettingsBottomSheetKt.ViewSettingsBottomSheet app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:38 — MethodTooLong — ViewSettingsBottomSheet runs 267 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 167 over it, 2.67× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: PlayerScreenKt.PlayerUpNextQueuePanel app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1812 — MethodTooLong — PlayerUpNextQueuePanel runs 247 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 147 over it, 2.47× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: ChaptersSideSheetKt.ChaptersSideSheet app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:41 — MethodTooLong — ChaptersSideSheet runs 235 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 135 over it, 2.35× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: PermissionsSettingsScreenKt.PermissionsSettingsScreen app/src/main/java/com/devson/nvplayer/ui/screen/settings/PermissionsSettingsScreen.kt:34 — MethodTooLong — PermissionsSettingsScreen runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: RecycleBinScreenKt.RecycleBinScreen app/src/main/java/com/devson/nvplayer/ui/screen/settings/RecycleBinScreen.kt:54 — MethodTooLong — RecycleBinScreen runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: DeleteConfirmationDialogKt.DeleteConfirmationDialog app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:48 — MethodTooLong — DeleteConfirmationDialog runs 216 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 116 over it, 2.16× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: FolderSettingsScreenKt.FolderScreen app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:42 — MethodTooLong — FolderScreen runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: EnhanceSettingsSideSheetKt.EnhanceSettingsSideSheet app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:40 — MethodTooLong — EnhanceSettingsSideSheet runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: PlaybackSettingsRepository.loadPlaybackSettings app/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt:118 — MethodTooLong — loadPlaybackSettings runs 184 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 84 over it, 1.84× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: DeviceStatsOverlayKt.collectMpvPlaybackStats app/src/main/java/com/devson/nvplayer/ui/common/components/DeviceStatsOverlay.kt:529 — MethodTooLong — collectMpvPlaybackStats runs 184 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 84 over it, 1.84× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: FastScrollerKt.FastScroller app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:59 — MethodTooLong — FastScroller runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: DecoderSideSheetKt.DecoderSideSheet app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:36 — MethodTooLong — DecoderSideSheet 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× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: PlayerSettingsSideSheetKt.SpeedTab app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:680 — MethodTooLong — SpeedTab 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× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: FeedScreenKt.FeedPage app/src/main/java/com/devson/nvplayer/ui/screen/FeedScreen.kt:283 — MethodTooLong — FeedPage runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: FrameCaptureOverlayKt.FrameCaptureOverlay app/src/main/java/com/devson/nvplayer/ui/common/FrameCaptureOverlay.kt:30 — MethodTooLong — FrameCaptureOverlay runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: AmbientShaderBuilder.buildFrameExtendFull app/src/main/java/com/devson/nvplayer/player/ambient/AmbientShaderBuilder.kt:494 — MethodTooLong — buildFrameExtendFull 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× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: MpvHelpScreenKt.MpvHelpScreen app/src/main/java/com/devson/nvplayer/ui/screen/editor/MpvHelpScreen.kt:42 — MethodTooLong — MpvHelpScreen 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× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • MethodTooLong: MpvConfigSettingsScreenKt.MpvConfigSettingsScreen app/src/main/java/com/devson/nvplayer/ui/screen/settings/MpvConfigSettingsScreen.kt:35 — MethodTooLong — MpvConfigSettingsScreen runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63× 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 — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • + 39 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×49
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:102 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 156 in VideoListScreenKt.VideoListScreen at line 102. 3 of those changes were fix/bug commits, and the other 12 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:112 — app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 144 in PlayerScreenKt.PlayerScreen at line 112. 3 of those changes were fix/bug commits, and the other 12 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:95 — app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt changed 27 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in AppNavigationKt.AppNavigation at line 95. 7 of those changes were fix/bug commits, and the other 20 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:93 — app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in VaultAuthScreenKt.VaultAuthScreen at line 93. 4 of those changes were fix/bug commits, and the other 6 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:155 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in PlayerControlsKt.PlayerControls at line 155. 1 of those changes was a fix/bug commit, and the other 8 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:877 — app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in VaultFileManager.convertVideoProtection at line 877. 4 of those changes were fix/bug commits, and the other 9 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:66 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 87 in PlayerSettingsSideSheetKt.PlayerSettingsSideSheet at line 66. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:338 — app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in VideoListViewModel.loadVideos at line 338. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:62 — app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in LibraryHomeScreenKt.LibraryHomeScreen at line 62. 3 of those changes were fix/bug commits, and the other 10 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/data/media/VideoMetadataExtractor.kt app/src/main/java/com/devson/nvplayer/data/media/VideoMetadataExtractor.kt:76 — app/src/main/java/com/devson/nvplayer/data/media/VideoMetadataExtractor.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 97 in VideoMetadataExtractor.extractDetails at line 76. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/data/media/VideoMetadataExtractor.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt:349 — app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in LibraryViewModel.processVideos at line 349. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:633 — app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in PlayerViewModel.prepareVideo at line 633. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:62 — app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in HistoryScreenKt.HistoryScreen at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:87 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in VaultSettingsBottomSheetKt.VaultSettingsBottomSheet at line 87. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:55 — app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 92 in GestureOverlayKt.GestureOverlay at line 55. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:276 — app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in VideoRepository.scanHiddenVideos at line 276. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:675 — app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in MPVPlayerEngine.applySubtitleSettings at line 675. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/viewmodel/VaultAuthViewModel.kt app/src/main/java/com/devson/nvplayer/viewmodel/VaultAuthViewModel.kt:270 — app/src/main/java/com/devson/nvplayer/viewmodel/VaultAuthViewModel.kt changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in VaultAuthViewModel.processCompletedPin at line 270. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/viewmodel/VaultAuthViewModel.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultGalleryScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultGalleryScreen.kt:106 — app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultGalleryScreen.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in VaultGalleryScreenKt.VaultGalleryScreen at line 106. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultGalleryScreen.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:593 — app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in VaultSecurityManager.saveMetadataToDisk at line 593. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:59 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in FolderGridItemKt.FolderGridItem at line 59. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:42 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in PlayerInterfaceSettingsScreenKt.PlayerInterfaceSettingsScreen at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:191 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in InformationBottomSheetKt.SingleVideoInformationContent at line 191. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:50 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ExplorerListContentKt.ExplorerListContent at line 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:44 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in ControlLayoutEditorScreenKt.ControlLayoutEditorScreen at line 44. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • + 24 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×33
  • FileTooLong: screen/PlayerScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt — FileTooLong — 1612 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1112 over it, 3.22× 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.
  • FileTooLong: sheets/PlayerSettingsSideSheet.kt app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt — FileTooLong — 1342 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 842 over it, 2.68× 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.
  • FileTooLong: common/PlayerControls.kt app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt — FileTooLong — 1326 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 826 over it, 2.65× 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.
  • FileTooLong: viewmodel/PlayerViewModel.kt app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt — FileTooLong — 1202 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: PlayerViewModel (61-1815). The bar is 500 significant lines; this is 702 over it, 2.40× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: engine/MPVPlayerEngine.kt app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt — FileTooLong — 1177 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MPVPlayerEngine (24-1676). The bar is 500 significant lines; this is 677 over it, 2.35× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: videolist/VideoListScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt — FileTooLong — 957 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 457 over it, 1.91× 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.
  • FileTooLong: screen/ProfileScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt — FileTooLong — 910 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 410 over it, 1.82× 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.
  • FileTooLong: navigation/AppNavigation.kt app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt — FileTooLong — 909 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 409 over it, 1.82× 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.
  • FileTooLong: common/GestureOverlay.kt app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt — FileTooLong — 902 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 402 over it, 1.80× 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.
  • FileTooLong: vault/VaultAuthScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt — FileTooLong — 877 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 377 over it, 1.75× 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.
  • FileTooLong: security/VaultFileManager.kt app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt — FileTooLong — 817 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: VaultFileManager (94-1148). The bar is 500 significant lines; this is 317 over it, 1.63× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: screen/HistoryScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt — FileTooLong — 808 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 308 over it, 1.62× 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.
  • FileTooLong: common/SubtitleSettingsSideSheet.kt app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt — FileTooLong — 761 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 261 over it, 1.52× 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.
  • FileTooLong: editor/MpvHelpData.kt app/src/main/java/com/devson/nvplayer/ui/screen/editor/MpvHelpData.kt — FileTooLong — 736 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: HelpCategory (20-888). The bar is 500 significant lines; this is 236 over it, 1.47× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: settings/ControlLayoutEditorScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt — FileTooLong — 729 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 229 over it, 1.46× 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.
  • FileTooLong: settings/AppearanceSettingsScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt — FileTooLong — 698 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 198 over it, 1.40× 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.
  • FileTooLong: vault/VaultGalleryScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultGalleryScreen.kt — FileTooLong — 683 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 183 over it, 1.37× 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.
  • FileTooLong: viewmodel/VideoListViewModel.kt app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt — FileTooLong — 678 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: VideoListViewModel (43-978). The bar is 500 significant lines; this is 178 over it, 1.36× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: settings/GestureSettingsScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt — FileTooLong — 642 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 142 over it, 1.28× 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.
  • FileTooLong: media/SubtitleExtractorHelper.kt app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt — FileTooLong — 641 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 141 over it, 1.28× 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.
  • FileTooLong: components/DeviceStatsOverlay.kt app/src/main/java/com/devson/nvplayer/ui/common/components/DeviceStatsOverlay.kt — FileTooLong — 641 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 141 over it, 1.28× 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.
  • FileTooLong: settings/StorageAnalyzeScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt — FileTooLong — 638 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 138 over it, 1.28× 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.
  • FileTooLong: settings/PlayerInterfaceSettingsScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt — FileTooLong — 621 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 121 over it, 1.24× 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.
  • FileTooLong: viewmodel/FileOperationsViewModel.kt app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt — FileTooLong — 586 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: FileOperationsViewModel (52-867). The bar is 500 significant lines; this is 86 over it, 1.17× 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 — the parts that share the same inputs and are named together — into its own unit in a sibling file, and have the original call them.
  • FileTooLong: settings/AboutScreen.kt app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt — FileTooLong — 566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 66 over it, 1.13× 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.
  • + 8 more in this group — see findings.md.
X3 · Exception handling · Swallowed exception (empty catch) · ×27
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/MainActivity.kt:428 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/FeedViewModel.kt:126 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/FeedViewModel.kt:148 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/FeedViewModel.kt:159 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:606 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:722 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/HomeViewModel.kt:99 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt:477 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt:656 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:732 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:900 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1003 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1153 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1306 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1779 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/VaultGalleryViewModel.kt:169 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:668 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:670 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:697 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:699 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:724 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:21 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:30 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:46 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • Swallowed exception (empty catch) app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:55 — An empty catch block silently discards the error — failures vanish with no log and no rethrow. Log it, handle it, or don't catch it.
  • + 2 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×16
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:21 — app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:21-35 | app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:150-164 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:179 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:179-193 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:171-185 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 186 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:179` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1258 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1258-1272 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:297-311 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1258` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:860 — app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:860-874 | app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:926-940 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:860` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:491 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:491-505 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:254-268 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 95 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:491` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:493 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:493-507 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:543-557 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:493` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:87 — app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:87-101 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:151-165 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:87` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:748 — app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:748-762 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:860-874 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:748` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:900 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:900-914 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:931-945 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:900` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:142 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:142-156 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:230-244 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:142` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:228 — app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:228-242 | app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:659-673 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:228` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:485 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:485-499 | app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:873-887 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:485` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:153 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:153-167 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:220-234 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:153` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:208 — app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:208-222 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:283-297 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:208` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:439 — app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:439-453 | app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:514-528 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:439` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/common/PlayingIndicator.kt:37 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/common/PlayingIndicator.kt:37-51 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/common/PlayingIndicator.kt:65-79 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/common/PlayingIndicator.kt:37` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×16
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1416 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1416-1429 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1498-1511 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1416` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:1039 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:1039-1052 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1662-1675 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:1039` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/components/StorageAccessRequiredDialog.kt:59 — app/src/main/java/com/devson/nvplayer/ui/common/components/StorageAccessRequiredDialog.kt:59-72 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:143-156 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/common/components/StorageAccessRequiredDialog.kt:59` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:165 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:165-178 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:180-193 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:165` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:494 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:494-507 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:268-281 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 117 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 — extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:661 — app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:661-674 | app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:828-841 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:661` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:175 — app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:175-188 | app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:194-207 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:175` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:619 — app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:619-632 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:325-338 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:619` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:982 — app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:982-995 | app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:1103-1116 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:982` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:996` calls `DurationBadge` and `app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:1118` does not — 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.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:633 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:633-646 | app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:704-717 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:633` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:109 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:109-122 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:57-70 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:109` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:290 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:290-303 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:406-419 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:290` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:67 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:67-80 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:51-64 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 335 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:67` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:629 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:629-642 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:715-728 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:629` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:199 — app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:199-212 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:240-253 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:199` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:70 — app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:70-83 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:178-191 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×13
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:256 — app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:256-266 | app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:270-280 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:256` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:261 — app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:261-271 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:783-793 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:261` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:375 — app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:375-389 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:677-687 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:375` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:526 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:526-536 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:487-497 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:526` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:56 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:56-66 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:117-130 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:56` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:107 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:107-117 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:191-201 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:107` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:540 — app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:540-550 | app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:584-594 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:540` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:205 — app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:205-215 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:218-230 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:205` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:716 — app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:716-726 | app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:729-739 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:716` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:726` calls `safeSetPropertyString` and `app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:713` does not — 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.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:249 — app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:249-259 | app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:261-271 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:249` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/data/security/VaultMetadata.kt:163 — app/src/main/java/com/devson/nvplayer/data/security/VaultMetadata.kt:163-173 | app/src/main/java/com/devson/nvplayer/data/security/VaultMetadata.kt:177-187 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/security/VaultMetadata.kt:163` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/data/security/VaultMetadata.kt:189` calls `extractString` and `app/src/main/java/com/devson/nvplayer/data/security/VaultMetadata.kt:175` does not — 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.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:533 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:533-543 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:634-644 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:533` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:211 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:211-221 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListItem.kt:63-73 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:211` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
X3 · Exception handling · Swallowed exception (caught, then discarded) · ×13
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:240 — `catch (e: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:427 — `catch (e: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:563 — `catch (e: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:608 — `catch (e: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:668 — `catch (e: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:728 — `catch (e: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt:126 — `catch (_: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/viewmodel/VaultAuthViewModel.kt:131 — `catch (_: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/viewmodel/VaultAuthViewModel.kt:376 — `catch (_: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:466 — `catch (_: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/util/FormatUtils.kt:15 — `catch (e: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/util/FormatUtils.kt:42 — `catch (e: Exception)` takes every exception and records none of it — 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.
  • Swallowed exception (caught, then discarded) app/src/main/java/com/devson/nvplayer/util/MediaStoreThumbnailFetcher.kt:80 — `catch (_: Exception)` takes every exception and records none of it — 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.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×12
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:165 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:165-177 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:148-160 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:165` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:328 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:328-340 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:387-400 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:328` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:479 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:479-491 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:516-528 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:479` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:680 — app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:680-692 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:779-791 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:680` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:666 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:666-678 | app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:729-741 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:666` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:188 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:188-200 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:190-202 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:188` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:352 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:352-364 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:780-792 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:352` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:509 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:509-521 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:334-346 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:509` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:187 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:187-199 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:322-334 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:187` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:498 — app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:498-510 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:667-679 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:498` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:265 — app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:265-277 | app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:351-363 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:265` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:364` calls `close` and `app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:278` does not — 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.
  • Duplicated block (13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1397 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1397-1409 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1479-1491 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1397` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×10
  • Duplicated block (18 lines × 2) app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:370 — app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:370-387 | app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1636-1653 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:370` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:224 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:224-241 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:271-288 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:224` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:385 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:385-402 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:187-204 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:385` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:86 — app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:86-103 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:130-147 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:86` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (18 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:469 — app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:469-486 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:340-357 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:469` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:635 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:635-652 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:668-685 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:635` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:123 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:123-140 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListContent.kt:107-124 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListContent.kt` 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. 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:123` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (18 lines × 2) app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:16 — app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:16-33 | app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:41-58 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:16` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
  • Duplicated block (18 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:427 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:427-444 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:470-487 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:427` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:495 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:495-512 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:532-549 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:495` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×10
  • Duplicated block (10 lines × 2) app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:123 — app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:123-132 | app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:227-236 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:127 — app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:127-136 | app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:78-87 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:127` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/src/main/java/com/devson/nvplayer/data/security/LegacyVaultManager.kt:63 — app/src/main/java/com/devson/nvplayer/data/security/LegacyVaultManager.kt:63-72 | app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:239-248 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/data/security/LegacyVaultManager.kt:63` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/src/main/java/com/devson/nvplayer/player/tracker/WatchTracker.kt:104 — app/src/main/java/com/devson/nvplayer/player/tracker/WatchTracker.kt:104-113 | app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:929-938 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (10 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:696 — app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:696-705 | app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:757-766 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:696` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (10 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/library/components/MediaBackdropCard.kt:49 — app/src/main/java/com/devson/nvplayer/ui/screen/library/components/MediaBackdropCard.kt:49-58 | app/src/main/java/com/devson/nvplayer/ui/screen/library/components/MediaHeroCarousel.kt:55-64 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:206 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:206-215 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:636-645 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:206` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (10 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:281 — app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:281-290 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:149-158 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:281` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (10 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:650 — app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:650-659 | app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:817-826 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:650` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:698 — app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:698-707 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/utils/ShareUtils.kt:16-25 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:698` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D3 · God Classes · ClassTooLong · ×9
  • ClassTooLong: MPVPlayerEngine app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:24 — ClassTooLong — 1156 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods. The bar is 400 significant lines; this is 756 over it, 2.89× 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.
  • ClassTooLong: PlayerViewModel app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:61 — ClassTooLong — 1149 significant lines (blank, comment-only and punctuation-only lines excluded), 69 methods. The bar is 400 significant lines; this is 749 over it, 2.87× 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.
  • ClassTooLong: VaultFileManager app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:94 — ClassTooLong — 748 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 348 over it, 1.87× 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.
  • ClassTooLong: HelpCategory app/src/main/java/com/devson/nvplayer/ui/screen/editor/MpvHelpData.kt:20 — ClassTooLong — 722 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 322 over it, 1.81× 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.
  • ClassTooLong: VideoListViewModel app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:43 — ClassTooLong — 638 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 238 over it, 1.60× 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.
  • ClassTooLong: FileOperationsViewModel app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:52 — ClassTooLong — 548 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 148 over it, 1.37× 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.
  • ClassTooLong: PlaybackSettingsRepository app/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt:15 — ClassTooLong — 511 significant lines (blank, comment-only and punctuation-only lines excluded), 84 methods. The bar is 400 significant lines; this is 111 over it, 1.28× 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.
  • ClassTooLong: LibraryViewModel app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt:37 — ClassTooLong — 454 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 54 over it, 1.14× 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.
  • ClassTooLong: VaultSecurityManager app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:25 — ClassTooLong — 422 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 22 over it, 1.06× 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.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×8
  • Duplicated block (12 lines × 2) app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:312 — app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:312-323 | app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:372-383 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:312` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/FrameCaptureOverlay.kt:180 — app/src/main/java/com/devson/nvplayer/ui/common/FrameCaptureOverlay.kt:180-191 | app/src/main/java/com/devson/nvplayer/ui/common/FrameCaptureOverlay.kt:238-249 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/FrameCaptureOverlay.kt:180` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/library/components/MediaHeroCarousel.kt:77 — app/src/main/java/com/devson/nvplayer/ui/screen/library/components/MediaHeroCarousel.kt:77-91 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultGalleryScreen.kt:560-571 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/library/components/MediaHeroCarousel.kt:77` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StreakScreen.kt:129 — app/src/main/java/com/devson/nvplayer/ui/screen/StreakScreen.kt:129-140 | app/src/main/java/com/devson/nvplayer/ui/screen/StreakScreen.kt:558-569 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StreakScreen.kt:129` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:341 — app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:341-352 | app/src/main/java/com/devson/nvplayer/ui/screen/library/components/ContinueWatchingRow.kt:30-41 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:341` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:94 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:94-105 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:69-80 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:94` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:693 — app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:693-704 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:829-840 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:693` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:178 — app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:178-189 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:834-845 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:178` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
DM11 · Constructible invalid state · Constructible in an invalid state · ×8
  • Constructible in an invalid state: CachedVideoMetadata app/src/main/java/com/devson/nvplayer/data/database/CachedVideoMetadata.kt:7 — `CachedVideoMetadata`'s public constructor takes `uri`, `externalSubtitleUri`, `embeddedSubtitles`, `externalSubtitles` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `CachedVideoMetadata` 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 `Create` that can refuse.
  • Constructible in an invalid state: DailyWatchEntity app/src/main/java/com/devson/nvplayer/data/database/DailyWatchEntity.kt:7 — `DailyWatchEntity`'s public constructor takes `date`, `qualifyingVideoUris` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `DailyWatchEntity` 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 `Create` that can refuse.
  • Constructible in an invalid state: EpisodeEntity app/src/main/java/com/devson/nvplayer/data/database/EpisodeEntity.kt:23 — `EpisodeEntity`'s public constructor takes `title`, `fileUri` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `EpisodeEntity` 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 `Create` that can refuse.
  • Constructible in an invalid state: MovieEntity app/src/main/java/com/devson/nvplayer/data/database/MovieEntity.kt:13 — `MovieEntity`'s public constructor takes `title`, `fileUri` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `MovieEntity` 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 `Create` that can refuse.
  • Constructible in an invalid state: SeriesEntity app/src/main/java/com/devson/nvplayer/data/database/SeriesEntity.kt:13 — `SeriesEntity`'s public constructor takes `title`, `synopsis`, `posterUri` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `SeriesEntity` 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 `Create` that can refuse.
  • Constructible in an invalid state: StreakStateEntity app/src/main/java/com/devson/nvplayer/data/database/StreakStateEntity.kt:7 — `StreakStateEntity`'s public constructor takes `lastQualifyingWatchDate` 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `StreakStateEntity` 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 `Create` that can refuse.
  • Constructible in an invalid state: VaultEntity app/src/main/java/com/devson/nvplayer/data/database/VaultEntity.kt:15 — `VaultEntity`'s public constructor takes `title`, `originalUri`, `vaultPath`, `thumbnailPath`, … 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `VaultEntity` 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 `Create` that can refuse.
  • Constructible in an invalid state: WatchHistoryEntity app/src/main/java/com/devson/nvplayer/data/database/WatchHistoryEntity.kt:15 — `WatchHistoryEntity`'s public constructor takes `uri`, `videoTitle`, `historyId`, `originalPath`, … 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 `throw`, `Guard.`, `Ensure.`, `ArgumentNullException`, `ArgumentException`, `CheckRule`, `Requires.` or an `…Exception.ThrowIf…(` helper, and so was any method of this type it calls — 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 `WatchHistoryEntity` 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 `Create` that can refuse.
D3 · God Classes · TooManyMethods · ×7
  • TooManyMethods: SettingsViewModel app/src/main/java/com/devson/nvplayer/viewmodel/SettingsViewModel.kt:36 — TooManyMethods — 92 methods. The bar is 30 methods; this is 62 over it, 3.07× 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.
  • TooManyMethods: PlaybackSettingsRepository app/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt:15 — TooManyMethods — 84 methods. The bar is 30 methods; this is 54 over it, 2.80× 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.
  • TooManyMethods: PlayerViewModel app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:61 — TooManyMethods — 69 methods. The bar is 30 methods; this is 39 over it, 2.30× 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.
  • TooManyMethods: MPVPlayerEngine app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:24 — TooManyMethods — 65 methods. The bar is 30 methods; this is 35 over it, 2.17× 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.
  • TooManyMethods: VideoListViewModel app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:43 — TooManyMethods — 42 methods. The bar is 30 methods; this is 12 over it, 1.40× 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.
  • TooManyMethods: ViewSettingsRepository app/src/main/java/com/devson/nvplayer/data/repository/ViewSettingsRepository.kt:17 — TooManyMethods — 35 methods. The bar is 30 methods; this is 5 over it, 1.17× 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.
  • TooManyMethods: VaultSecurityManager app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:25 — TooManyMethods — 34 methods. The bar is 30 methods; this is 4 over it, 1.13× 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.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×7
  • Duplicated block (16 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:440 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:440-455 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:479-494 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:440` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:235 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:235-250 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:319-334 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:235` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:296 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:296-311 | app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:366-381 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:296` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (16 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/library/components/ContinueWatchingRow.kt:35 — app/src/main/java/com/devson/nvplayer/ui/screen/library/components/ContinueWatchingRow.kt:35-50 | app/src/main/java/com/devson/nvplayer/ui/screen/library/components/RecentlyAddedRow.kt:35-50 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/library/components/ContinueWatchingRow.kt:35` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (16 lines × 2) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:115 — app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:115-130 | app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:199-214 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:115` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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.
  • Duplicated block (16 lines × 2) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:251 — app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:251-266 | app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:681-696 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (16 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:244 — app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:244-259 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:329-344 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:244` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×7
  • Duplicated block (7 lines × 2) app/src/main/java/com/devson/nvplayer/data/repository/WatchHistoryRepository.kt:32 — app/src/main/java/com/devson/nvplayer/data/repository/WatchHistoryRepository.kt:32-38 | app/src/main/java/com/devson/nvplayer/viewmodel/HomeViewModel.kt:89-95 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/data/repository/WatchHistoryRepository.kt:32` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:889 — app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:889-895 | app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:909-915 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:889` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:130 — app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:130-136 | app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:144-150 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:130` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:112 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:112-118 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListContent.kt:99-105 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:112` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:656 — app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:656-662 | app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:713-719 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:237 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:237-243 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:260-266 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:237` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (7 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:553 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:553-559 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:566-572 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:566` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×7
  • Duplicated block (5 lines × 2) app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:555 — app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:555-564 | app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1766-1770 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:555` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (5 lines × 2) app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:186 — app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:186-190 | app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:194-198 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (5 lines × 2) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:767 — app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:767-771 | app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:1089-1093 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:767` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1046 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1046-1050 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1068-1073 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1046` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (5 lines × 2) app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:242 — app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:242-246 | app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:255-259 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:242` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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.
  • Duplicated block (5 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:800 — app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:800-804 | app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:966-970 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:800` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (5 lines × 2) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:948 — app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:948-952 | app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1028-1032 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×6
  • Duplicated block (17 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1259 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1259-1275 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1327-1343 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:570 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:570-586 | app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:612-628 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:570` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:660 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:660-676 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:328-344 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:660` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:677` calls `Text` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:345` does not — 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.
  • Duplicated block (17 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:82 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:82-98 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:66-82 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 335 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:82` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (17 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:766 — app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:766-782 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:878-894 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:766` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:99 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:99-115 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:256-272 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:99` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×5
  • Duplicated block (23 lines × 2) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:450 — app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:450-472 | app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:640-662 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:450` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (23 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1196 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1196-1218 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1263-1285 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1196` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (23 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/components/SelectionBottomAppBar.kt:218 — app/src/main/java/com/devson/nvplayer/ui/common/components/SelectionBottomAppBar.kt:218-240 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/selection/VideoSelectionBottomBar.kt:277-299 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/components/SelectionBottomAppBar.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/selection/VideoSelectionBottomBar.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 91 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. 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 `return` inside it is the body's own exit and keeps its meaning in the moved unit.
  • Duplicated block (23 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:250 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:250-272 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:340-362 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:250` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (23 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:384 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:384-406 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultGalleryScreen.kt:459-481 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:384` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×5
  • Duplicated block (12 lines × 3) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:435 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:435-446 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:476-487 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:513-524 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:435` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (12 lines × 3) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:418 — app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:418-429 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:478-489 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:961-972 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (12 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/settings/RecycleBinScreen.kt:406 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/RecycleBinScreen.kt:406-417 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:565-576 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:720-731 — there are 3 copies across 2 file(s) — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/RecycleBinScreen.kt:406` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (12 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:897 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:897-908 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:928-939 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:998-1009 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:1010` calls `PaddingValues` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:909` does not — 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.
  • Duplicated block (12 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:70 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:70-81 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListContent.kt:76-87 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListContent.kt:62-73 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListContent.kt` 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. 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:70` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×5
  • Duplicated block (8 lines × 2) app/src/main/java/com/devson/nvplayer/domain/thumbnail/CoilVideoThumbnailDecoder.kt:155 — app/src/main/java/com/devson/nvplayer/domain/thumbnail/CoilVideoThumbnailDecoder.kt:155-162 | app/src/main/java/com/devson/nvplayer/domain/thumbnail/CoilVideoThumbnailDecoder.kt:229-236 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/devson/nvplayer/domain/thumbnail/CoilVideoThumbnailDecoder.kt:228` calls `getThumbnailFrameAt` and `app/src/main/java/com/devson/nvplayer/domain/thumbnail/CoilVideoThumbnailDecoder.kt:153` does not — 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.
  • Duplicated block (8 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1556 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1556-1563 | app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1178-1185 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1178` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:75 — app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:75-83 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:184-191 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:75` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:204 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:204-211 | app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:213-220 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:204` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (8 lines × 2) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:708 — app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:708-715 | app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:719-726 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:708` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×4
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:380 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:380-445 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:425-519 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:48-380 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:41-290 — 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 — 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' 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. 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.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1431 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1431-1476 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1485-1533 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:652-692 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:323-359 — 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 — 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' 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. 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.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:47 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:47-584 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/ToolScreen.kt:29-81 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/MediaStoreFinderScreen.kt:32-185 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/MilliSecondScreen.kt:31-226 — 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 — 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' 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. 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.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:68 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:68-445 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:190-326 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:44-245 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListItem.kt:48-223 — 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 — 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' 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. 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.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×4
  • Duplicated block (21 lines × 2) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:385 — app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:385-405 | app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:417-437 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:385` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 2) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:443 — app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:443-463 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:832-852 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:443` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (21 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:432 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:432-452 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:575-595 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:432` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (21 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:185 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:185-205 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:311-331 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:185` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (11–12 lines × 2) · ×4
  • Duplicated block (11–12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:528 — app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:528-538 | app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:574-585 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11–12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:540 — app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:540-550 | app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:561-572 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11–12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:345 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:345-356 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:361-371 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 95 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:345` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (11–12 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StreakScreen.kt:259 — app/src/main/java/com/devson/nvplayer/ui/screen/StreakScreen.kt:259-270 | app/src/main/java/com/devson/nvplayer/ui/screen/StreakScreen.kt:457-467 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StreakScreen.kt:259` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×4
  • Duplicated block (9 lines × 2) app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:578 — app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:578-586 | app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:603-611 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (9 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:139 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:139-147 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:65-73 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 95 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.
  • Duplicated block (9 lines × 2) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:553 — app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:553-561 | app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:596-604 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:916 — app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:916-924 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:1024-1032 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:916` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×4
  • Duplicated block (6 lines × 2) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:186 — app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:186-191 | app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:365-370 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:186` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:112 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:112-117 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListContent.kt:99-104 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListContent.kt` 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. 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:112` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (6 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:367 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:367-372 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:795-800 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:465 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:465-470 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:582-587 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:465` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D35 · Change Coupling · Change-coupling hub · ×3
  • Change-coupling hub: PlayerScreen.kt → PlaybackSettingsRepository.kt, MPVPlayerEngine.kt, PlayerControls.kt, ControlLayoutEditorScreen.kt, SettingsViewModel.kt app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt — `app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt` changes together with 5 other files — `app/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt`, `app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt`, `app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt`, `app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt`, `app/src/main/java/com/devson/nvplayer/viewmodel/SettingsViewModel.kt` — none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5.
  • Change-coupling hub: PlayerViewModel.kt → MPVPlayerEngine.kt, GestureOverlay.kt, HomeViewModel.kt app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt — `app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt` changes together with 3 other files — `app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt`, `app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt`, `app/src/main/java/com/devson/nvplayer/viewmodel/HomeViewModel.kt` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
  • Change-coupling hub: PlayerControls.kt → PlaybackSettingsRepository.kt, PlayerEngine.kt, PlayerInterfaceSettingsScreen.kt app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt — `app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt` changes together with 3 other files — `app/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt`, `app/src/main/java/com/devson/nvplayer/player/engine/PlayerEngine.kt`, `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt` — none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3.
D4 · Code Duplication · Duplicated block (18–19 lines × 2) · ×3
  • Duplicated block (18–19 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:292 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:292-310 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:184-201 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:292` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (18–19 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:160 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:160-178 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:90-107 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 95 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:160` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (18–19 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:216 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:216-233 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:342-360 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:216` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17 lines × 3) · ×3
  • Duplicated block (17 lines × 3) app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:262 — app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:262-278 | app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:320-336 | app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:392-408 — 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 — 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 `app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:262` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (17 lines × 3) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:464 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:464-480 | app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:735-751 | app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:852-868 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:464` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:461` calls `SubtitleLivePreviewCard` and `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:733` does not — 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.
  • Duplicated block (17 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:87 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:87-103 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/MpvConfigSettingsScreen.kt:55-71 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:59-75 — 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 — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:87` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14–15 lines × 2) · ×3
  • Duplicated block (14–15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:417 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:417-431 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:488-501 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:417` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:486` calls `isNotEmpty` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:416` does not — 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.
  • Duplicated block (14–15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/library/components/MediaHeroCarousel.kt:72 — app/src/main/java/com/devson/nvplayer/ui/screen/library/components/MediaHeroCarousel.kt:72-86 | app/src/main/java/com/devson/nvplayer/ui/screen/library/components/MediaPosterCard.kt:54-67 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/library/components/MediaHeroCarousel.kt:72` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14–15 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:583 — app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:583-596 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:433-447 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:583` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×3
  • Duplicated block (14 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:66 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:66-79 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:102-115 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:86-99 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 149 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:66` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (14 lines × 3) app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:237 — app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:237-250 | app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:254-267 | app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:271-284 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
  • Duplicated block (14 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:91 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:91-104 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PermissionsSettingsScreen.kt:59-72 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:103-116 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:91` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×3
  • Duplicated block (10 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:141 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:141-150 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:229-238 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListItem.kt:176-185 — there are 3 copies across 2 file(s) — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:141` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (10 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:71 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:71-86 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/LanguageSettingsScreen.kt:46-55 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:55-70 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:71` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (10 lines × 3) app/src/main/java/com/devson/nvplayer/util/AppShortcutHelper.kt:26 — app/src/main/java/com/devson/nvplayer/util/AppShortcutHelper.kt:26-35 | app/src/main/java/com/devson/nvplayer/util/AppShortcutHelper.kt:41-50 | app/src/main/java/com/devson/nvplayer/util/AppShortcutHelper.kt:56-65 — 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 — 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 `app/src/main/java/com/devson/nvplayer/util/AppShortcutHelper.kt:26` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D6 · Cohesion (LCOM4) · Low cohesion · ×3
  • Low cohesion: MPVPlayerEngine (LCOM4 20) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:24 — MPVPlayerEngine's methods fall into 20 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 20 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: SettingsViewModel (LCOM4 5) app/src/main/java/com/devson/nvplayer/viewmodel/SettingsViewModel.kt:36 — SettingsViewModel's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
  • Low cohesion: FeedViewModel (LCOM4 4) app/src/main/java/com/devson/nvplayer/viewmodel/FeedViewModel.kt:33 — FeedViewModel's methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
D4 · Code Duplication · Edited copy of a member (53 corresponding lines) · ×2
  • Edited copy of a member (53 corresponding lines) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:629 — app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:629-681 | app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:686-741 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, 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' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (53 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/settings/MpvConfigSettingsScreen.kt:286 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/MpvConfigSettingsScreen.kt:286-350 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:714-766 — These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, 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' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (20 corresponding lines) · ×2
  • Edited copy of a member (20 corresponding lines) app/src/main/java/com/devson/nvplayer/util/SearchUtils.kt:69 — app/src/main/java/com/devson/nvplayer/util/SearchUtils.kt:69-88 | app/src/main/java/com/devson/nvplayer/util/SearchUtils.kt:98-118 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (20 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1617 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1617-1641 | app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1141-1160 — These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (9 corresponding lines) · ×2
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/devson/nvplayer/player/ambient/AmbientShaderBuilder.kt:190 — app/src/main/java/com/devson/nvplayer/player/ambient/AmbientShaderBuilder.kt:190-198 | app/src/main/java/com/devson/nvplayer/player/ambient/AmbientShaderBuilder.kt:211-219 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (9 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:305 — app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:305-319 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/LanguageSettingsScreen.kt:445-453 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (12 corresponding lines) · ×2
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:651 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:651-662 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:1205-1223 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
  • Edited copy of a member (12 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1537 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1537-1548 | app/src/main/java/com/devson/nvplayer/util/FormatUtils.kt:20-31 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Duplicated block (21 lines × 4) · ×2
  • Duplicated block (21 lines × 4) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:114 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:114-134 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:103-123 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:100-120 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:83-103 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 186 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:114` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (21 lines × 4) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:128 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:128-148 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:117-137 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:97-117 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:137-157 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 186 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:128` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×2
  • Duplicated block (20 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:947 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:947-966 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1304-1323 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:947` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
  • Duplicated block (20 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:171 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:171-190 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:243-262 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:171` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (19 lines × 5) · ×2
  • Duplicated block (19 lines × 5) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:90 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:90-108 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:79-97 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:59-77 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:98-116 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerInfoSideSheet.kt:51-69 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 186 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:90` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (19 lines × 5) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:136 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:136-154 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:125-143 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:122-140 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:105-123 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:145-163 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 186 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:136` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (18 lines × 4) · ×2
  • Duplicated block (18 lines × 4) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:473 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:473-490 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:630-647 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:690-707 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:836-853 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (18 lines × 4) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:180 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:180-197 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:270-287 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:377-394 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:499-516 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:180` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (17–18 lines × 2) · ×2
  • Duplicated block (17–18 lines × 2) app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:327 — app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:327-344 | app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:348-364 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17–18 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1199 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1199-1216 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:235-251 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1199` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (16–17 lines × 2) · ×2
  • Duplicated block (16–17 lines × 2) app/src/main/java/com/devson/nvplayer/data/security/LegacyVaultManager.kt:130 — app/src/main/java/com/devson/nvplayer/data/security/LegacyVaultManager.kt:130-145 | app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:147-163 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/data/security/LegacyVaultManager.kt:130` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (16–17 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:71 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:71-87 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:192-207 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 111 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:71` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (12–14 lines × 4) · ×2
  • Duplicated block (12–14 lines × 4) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1444 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1444-1457 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1498-1511 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:665-676 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:333-346 — there are 4 copies across 3 file(s) — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1444` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:676` calls `Column`, `weight`, `Text` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1457` does not — 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.
  • Duplicated block (12–14 lines × 4) app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:193 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:193-206 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/ToolScreen.kt:34-45 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/MediaStoreFinderScreen.kt:83-94 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/MilliSecondScreen.kt:107-118 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:193` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/ui/screen/tools/MilliSecondScreen.kt:120` calls `verticalScroll`, `rememberScrollState` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/ToolScreen.kt:47` does not — 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.
D4 · Code Duplication · Duplicated block (13 lines × 4) · ×2
  • Duplicated block (13 lines × 4) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:394 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:394-406 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:439-451 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:306-318 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:204-216 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 186 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:394` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
  • Duplicated block (13 lines × 4) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:116 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:116-128 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:64-76 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:100-112 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:84-96 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 149 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:116` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (9–10 lines × 3) · ×2
  • Duplicated block (9–10 lines × 3) app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:371 — app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:371-380 | app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:335-343 | app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1637-1646 — 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 — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:371` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (9–10 lines × 3) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:684 — app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:684-692 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:694-703 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:783-791 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:684` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8–9 lines × 2) · ×2
  • Duplicated block (8–9 lines × 2) app/src/main/java/com/devson/nvplayer/data/security/LegacyVaultManager.kt:127 — app/src/main/java/com/devson/nvplayer/data/security/LegacyVaultManager.kt:127-134 | app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:286-294 — 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 — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8–9 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:367 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:367-375 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:457-464 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:367` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:457` calls `Surface` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:367` does not — 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.
D4 · Code Duplication · Duplicated block (7–8 lines × 3) · ×2
  • Duplicated block (7–8 lines × 3) app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:25 — app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:25-31 | app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:154-160 | app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:791-798 — there are 3 copies across 2 file(s) — 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 `app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:25` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
  • Duplicated block (7–8 lines × 3) app/src/main/java/com/devson/nvplayer/ui/common/components/FastScroller.kt:190 — app/src/main/java/com/devson/nvplayer/ui/common/components/FastScroller.kt:190-197 | app/src/main/java/com/devson/nvplayer/ui/common/components/FastScroller.kt:204-210 | app/src/main/java/com/devson/nvplayer/ui/common/components/FastScroller.kt:221-228 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/common/components/FastScroller.kt:190` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×2
  • Duplicated block (7 lines × 3) app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:15 — app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:15-21 | app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:40-46 | app/src/main/java/com/devson/nvplayer/util/DocumentPickerContracts.kt:65-71 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (7 lines × 3) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:390 — app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:390-396 | app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:422-428 | app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:475-481 — 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 — 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 `app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:390` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D1 · Cyclomatic Complexity · VideoListScreenKt.VideoListScreen (cyclomatic 156) · ×1
  • VideoListScreenKt.VideoListScreen (cyclomatic 156) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:102 — VideoListScreenKt.VideoListScreen has cyclomatic complexity 156 (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.
D1 · Cyclomatic Complexity · PlayerScreenKt.PlayerScreen (cyclomatic 144) · ×1
  • PlayerScreenKt.PlayerScreen (cyclomatic 144) app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:112 — PlayerScreenKt.PlayerScreen has cyclomatic complexity 144 (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.
D1 · Cyclomatic Complexity · VideoMetadataExtractor.extractDetails (cyclomatic 97) · ×1
  • VideoMetadataExtractor.extractDetails (cyclomatic 97) app/src/main/java/com/devson/nvplayer/data/media/VideoMetadataExtractor.kt:76 — VideoMetadataExtractor.extractDetails has cyclomatic complexity 97 (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.
D1 · Cyclomatic Complexity · GestureOverlayKt.GestureOverlay (cyclomatic 92) · ×1
  • GestureOverlayKt.GestureOverlay (cyclomatic 92) app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:55 — GestureOverlayKt.GestureOverlay has cyclomatic complexity 92 (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.
D1 · Cyclomatic Complexity · PlayerSettingsSideSheetKt.PlayerSettingsSideSheet (cyclomatic 87) · ×1
  • PlayerSettingsSideSheetKt.PlayerSettingsSideSheet (cyclomatic 87) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:66 — PlayerSettingsSideSheetKt.PlayerSettingsSideSheet has cyclomatic complexity 87 (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 — the same kind of value, with no behaviour of its own — 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.
D1 · Cyclomatic Complexity · PlayerControlsKt.PlayerControls (cyclomatic 71) · ×1
  • PlayerControlsKt.PlayerControls (cyclomatic 71) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:155 — PlayerControlsKt.PlayerControls has cyclomatic complexity 71 (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.
D1 · Cyclomatic Complexity · VaultAuthScreenKt.VaultAuthScreen (cyclomatic 67) · ×1
  • VaultAuthScreenKt.VaultAuthScreen (cyclomatic 67) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:93 — VaultAuthScreenKt.VaultAuthScreen has cyclomatic complexity 67 (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 — the same kind of value, with no behaviour of its own — 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.
D1 · Cyclomatic Complexity · AppNavigationKt.AppNavigation (cyclomatic 57) · ×1
  • AppNavigationKt.AppNavigation (cyclomatic 57) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:95 — AppNavigationKt.AppNavigation has cyclomatic complexity 57 (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.
D1 · Cyclomatic Complexity · ControlLayoutEditorScreenKt.ControlLayoutEditorScreen (cyclomatic 57) · ×1
  • ControlLayoutEditorScreenKt.ControlLayoutEditorScreen (cyclomatic 57) app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:44 — ControlLayoutEditorScreenKt.ControlLayoutEditorScreen has cyclomatic complexity 57 (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 — the same kind of value, with no behaviour of its own — 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.
D1 · Cyclomatic Complexity · StorageExplorerScreenKt.StorageExplorerScreen (cyclomatic 50) · ×1
  • StorageExplorerScreenKt.StorageExplorerScreen (cyclomatic 50) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:110 — StorageExplorerScreenKt.StorageExplorerScreen has cyclomatic complexity 50 (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.
D1 · Cyclomatic Complexity · MatroskaSubtitleDemuxer.parseTracks (cyclomatic 47) · ×1
  • MatroskaSubtitleDemuxer.parseTracks (cyclomatic 47) app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:387 — MatroskaSubtitleDemuxer.parseTracks has cyclomatic complexity 47 (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.
D1 · Cyclomatic Complexity · FolderGridItemKt.FolderGridItem (cyclomatic 46) · ×1
  • FolderGridItemKt.FolderGridItem (cyclomatic 46) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:59 — FolderGridItemKt.FolderGridItem has cyclomatic complexity 46 (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.
D1 · Cyclomatic Complexity · PlayerInterfaceSettingsScreenKt.PlayerInterfaceSettingsScreen (cyclomatic 45) · ×1
  • PlayerInterfaceSettingsScreenKt.PlayerInterfaceSettingsScreen (cyclomatic 45) app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:42 — PlayerInterfaceSettingsScreenKt.PlayerInterfaceSettingsScreen has cyclomatic complexity 45 (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 — the same kind of value, with no behaviour of its own — 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.
D1 · Cyclomatic Complexity · VaultFileManager.convertVideoProtection (cyclomatic 43) · ×1
  • VaultFileManager.convertVideoProtection (cyclomatic 43) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:877 — VaultFileManager.convertVideoProtection has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SubtitleExtractorHelper.inspectTracks (cyclomatic 41) · ×1
  • SubtitleExtractorHelper.inspectTracks (cyclomatic 41) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:72 — SubtitleExtractorHelper.inspectTracks has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DeviceStatsOverlayKt.collectMpvPlaybackStats (cyclomatic 40) · ×1
  • DeviceStatsOverlayKt.collectMpvPlaybackStats (cyclomatic 40) app/src/main/java/com/devson/nvplayer/ui/common/components/DeviceStatsOverlay.kt:529 — DeviceStatsOverlayKt.collectMpvPlaybackStats 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.
D1 · Cyclomatic Complexity · InformationBottomSheetKt.SingleVideoInformationContent (cyclomatic 40) · ×1
  • InformationBottomSheetKt.SingleVideoInformationContent (cyclomatic 40) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:191 — InformationBottomSheetKt.SingleVideoInformationContent 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.
D1 · Cyclomatic Complexity · VideoListViewModel.loadVideos (cyclomatic 40) · ×1
  • VideoListViewModel.loadVideos (cyclomatic 40) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:338 — VideoListViewModel.loadVideos 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.
D1 · Cyclomatic Complexity · MatroskaSubtitleDemuxer.demuxTrackCues (cyclomatic 38) · ×1
  • MatroskaSubtitleDemuxer.demuxTrackCues (cyclomatic 38) app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:184 — MatroskaSubtitleDemuxer.demuxTrackCues 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.
D1 · Cyclomatic Complexity · VaultFileManager.removeAllVaultData (cyclomatic 37) · ×1
  • VaultFileManager.removeAllVaultData (cyclomatic 37) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:744 — VaultFileManager.removeAllVaultData has cyclomatic complexity 37 (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.
D1 · Cyclomatic Complexity · VaultMigrationManager.migrateSingleFile (cyclomatic 37) · ×1
  • VaultMigrationManager.migrateSingleFile (cyclomatic 37) app/src/main/java/com/devson/nvplayer/data/security/VaultMigrationManager.kt:238 — VaultMigrationManager.migrateSingleFile has cyclomatic complexity 37 (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.
D1 · Cyclomatic Complexity · MediaInfoParser.parse (cyclomatic 36) · ×1
  • MediaInfoParser.parse (cyclomatic 36) app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoParser.kt:140 — MediaInfoParser.parse has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · HistoryScreenKt.HistoryScreen (cyclomatic 36) · ×1
  • HistoryScreenKt.HistoryScreen (cyclomatic 36) app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:62 — HistoryScreenKt.HistoryScreen has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LibraryViewModel.processVideos (cyclomatic 36) · ×1
  • LibraryViewModel.processVideos (cyclomatic 36) app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt:349 — LibraryViewModel.processVideos has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · GestureSettingsScreenKt.GestureSettingsScreen (cyclomatic 34) · ×1
  • GestureSettingsScreenKt.GestureSettingsScreen (cyclomatic 34) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:43 — GestureSettingsScreenKt.GestureSettingsScreen has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · VideoListViewModel.repairZeroDurationVideos (cyclomatic 33) · ×1
  • VideoListViewModel.repairZeroDurationVideos (cyclomatic 33) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:640 — VideoListViewModel.repairZeroDurationVideos has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DeviceStatsOverlayKt.friendlyCodec (cyclomatic 32) · ×1
  • DeviceStatsOverlayKt.friendlyCodec (cyclomatic 32) app/src/main/java/com/devson/nvplayer/ui/common/components/DeviceStatsOverlay.kt:470 — DeviceStatsOverlayKt.friendlyCodec has cyclomatic complexity 32 (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 — the same kind of value, with no behaviour of its own — 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.
D1 · Cyclomatic Complexity · WatchHistoryViewModel.calculateStreakUiState (cyclomatic 32) · ×1
  • WatchHistoryViewModel.calculateStreakUiState (cyclomatic 32) app/src/main/java/com/devson/nvplayer/viewmodel/WatchHistoryViewModel.kt:176 — WatchHistoryViewModel.calculateStreakUiState has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VideoRepository.scanHiddenVideos (cyclomatic 31) · ×1
  • VideoRepository.scanHiddenVideos (cyclomatic 31) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:276 — VideoRepository.scanHiddenVideos has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VaultSettingsBottomSheetKt.VaultSettingsBottomSheet (cyclomatic 31) · ×1
  • VaultSettingsBottomSheetKt.VaultSettingsBottomSheet (cyclomatic 31) app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:87 — VaultSettingsBottomSheetKt.VaultSettingsBottomSheet has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · LibraryHomeScreenKt.LibraryHomeScreen (cyclomatic 30) · ×1
  • LibraryHomeScreenKt.LibraryHomeScreen (cyclomatic 30) app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:62 — LibraryHomeScreenKt.LibraryHomeScreen has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ComposeSubtitleOverlayKt.ComposeSubtitleOverlay (cyclomatic 29) · ×1
  • ComposeSubtitleOverlayKt.ComposeSubtitleOverlay (cyclomatic 29) app/src/main/java/com/devson/nvplayer/ui/common/ComposeSubtitleOverlay.kt:39 — ComposeSubtitleOverlayKt.ComposeSubtitleOverlay 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.
D1 · Cyclomatic Complexity · VideoGridItemKt.VideoGridItem (cyclomatic 29) · ×1
  • VideoGridItemKt.VideoGridItem (cyclomatic 29) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:36 — VideoGridItemKt.VideoGridItem has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DefaultVaultContainer.decryptVaultFile (cyclomatic 27) · ×1
  • DefaultVaultContainer.decryptVaultFile (cyclomatic 27) app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:229 — DefaultVaultContainer.decryptVaultFile has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FastScrollerKt.FastScroller (cyclomatic 26) · ×1
  • FastScrollerKt.FastScroller (cyclomatic 26) app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:59 — FastScrollerKt.FastScroller has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MediaFilenameParser.parse (cyclomatic 25) · ×1
  • MediaFilenameParser.parse (cyclomatic 25) app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:227 — MediaFilenameParser.parse 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.
D1 · Cyclomatic Complexity · AudioSettingsSideSheetKt.AudioSettingsSideSheet (cyclomatic 25) · ×1
  • AudioSettingsSideSheetKt.AudioSettingsSideSheet (cyclomatic 25) app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:45 — AudioSettingsSideSheetKt.AudioSettingsSideSheet 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.
D1 · Cyclomatic Complexity · PlayerScreenKt.PlayerUpNextQueuePanel (cyclomatic 25) · ×1
  • PlayerScreenKt.PlayerUpNextQueuePanel (cyclomatic 25) app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1812 — PlayerScreenKt.PlayerUpNextQueuePanel has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FolderSettingsScreenKt.FolderScreen (cyclomatic 25) · ×1
  • FolderSettingsScreenKt.FolderScreen (cyclomatic 25) app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:42 — FolderSettingsScreenKt.FolderScreen 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.
D1 · Cyclomatic Complexity · StorageVolumeHelperKt.getAvailableStorageVolumes (cyclomatic 25) · ×1
  • StorageVolumeHelperKt.getAvailableStorageVolumes (cyclomatic 25) app/src/main/java/com/devson/nvplayer/util/StorageVolumeHelper.kt:16 — StorageVolumeHelperKt.getAvailableStorageVolumes has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FileTransferOps.copyVideoScoped (cyclomatic 24) · ×1
  • FileTransferOps.copyVideoScoped (cyclomatic 24) app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:208 — FileTransferOps.copyVideoScoped 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.
D1 · Cyclomatic Complexity · LegacyVaultManager.decryptLegacyFile (cyclomatic 24) · ×1
  • LegacyVaultManager.decryptLegacyFile (cyclomatic 24) app/src/main/java/com/devson/nvplayer/data/security/LegacyVaultManager.kt:58 — LegacyVaultManager.decryptLegacyFile 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.
D1 · Cyclomatic Complexity · CoilVideoThumbnailDecoder.decodeWithSoftwareCodec (cyclomatic 24) · ×1
  • CoilVideoThumbnailDecoder.decodeWithSoftwareCodec (cyclomatic 24) app/src/main/java/com/devson/nvplayer/domain/thumbnail/CoilVideoThumbnailDecoder.kt:301 — CoilVideoThumbnailDecoder.decodeWithSoftwareCodec 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.
D1 · Cyclomatic Complexity · FrameExtractionService.startExtractionJob (cyclomatic 23) · ×1
  • FrameExtractionService.startExtractionJob (cyclomatic 23) app/src/main/java/com/devson/nvplayer/service/FrameExtractionService.kt:211 — FrameExtractionService.startExtractionJob 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.
D1 · Cyclomatic Complexity · EnhanceSettingsSideSheetKt.EnhanceSettingsSideSheet (cyclomatic 23) · ×1
  • EnhanceSettingsSideSheetKt.EnhanceSettingsSideSheet (cyclomatic 23) app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:40 — EnhanceSettingsSideSheetKt.EnhanceSettingsSideSheet has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — 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.
D1 · Cyclomatic Complexity · FeedScreenKt.FeedPage (cyclomatic 23) · ×1
  • FeedScreenKt.FeedPage (cyclomatic 23) app/src/main/java/com/devson/nvplayer/ui/screen/FeedScreen.kt:283 — FeedScreenKt.FeedPage 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.
D1 · Cyclomatic Complexity · ExplorerListContentKt.ExplorerListContent (cyclomatic 23) · ×1
  • ExplorerListContentKt.ExplorerListContent (cyclomatic 23) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:50 — ExplorerListContentKt.ExplorerListContent has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — 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.
D1 · Cyclomatic Complexity · PlayerViewModel.importSubtitle (cyclomatic 23) · ×1
  • PlayerViewModel.importSubtitle (cyclomatic 23) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1117 — PlayerViewModel.importSubtitle 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.
D1 · Cyclomatic Complexity · VaultFileManager.restoreVideoFromVault (cyclomatic 22) · ×1
  • VaultFileManager.restoreVideoFromVault (cyclomatic 22) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:615 — VaultFileManager.restoreVideoFromVault 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.
D1 · Cyclomatic Complexity · FrameExtractionService.resolveVideoDisplayName (cyclomatic 22) · ×1
  • FrameExtractionService.resolveVideoDisplayName (cyclomatic 22) app/src/main/java/com/devson/nvplayer/service/FrameExtractionService.kt:51 — FrameExtractionService.resolveVideoDisplayName has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · DeviceStatsOverlayKt.DeviceStatsOverlay (cyclomatic 22) · ×1
  • DeviceStatsOverlayKt.DeviceStatsOverlay (cyclomatic 22) app/src/main/java/com/devson/nvplayer/ui/common/components/DeviceStatsOverlay.kt:144 — DeviceStatsOverlayKt.DeviceStatsOverlay 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.
D1 · Cyclomatic Complexity · ProfileScreenKt.ProfileScreen (cyclomatic 22) · ×1
  • ProfileScreenKt.ProfileScreen (cyclomatic 22) app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:63 — ProfileScreenKt.ProfileScreen has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FrameExtractionScreenKt.FrameExtractionScreen (cyclomatic 22) · ×1
  • FrameExtractionScreenKt.FrameExtractionScreen (cyclomatic 22) app/src/main/java/com/devson/nvplayer/ui/screen/tools/FrameExtractionScreen.kt:47 — FrameExtractionScreenKt.FrameExtractionScreen has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VaultAuthViewModel.processCompletedPin (cyclomatic 22) · ×1
  • VaultAuthViewModel.processCompletedPin (cyclomatic 22) app/src/main/java/com/devson/nvplayer/viewmodel/VaultAuthViewModel.kt:270 — VaultAuthViewModel.processCompletedPin has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VideoRepository.scanVolumeForVideos (cyclomatic 21) · ×1
  • VideoRepository.scanVolumeForVideos (cyclomatic 21) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:97 — VideoRepository.scanVolumeForVideos has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · NosvedExpressiveFabKt.NosvedExpressiveFab (cyclomatic 21) · ×1
  • NosvedExpressiveFabKt.NosvedExpressiveFab (cyclomatic 21) app/src/main/java/com/devson/nvplayer/ui/common/components/fab/NosvedExpressiveFab.kt:47 — NosvedExpressiveFabKt.NosvedExpressiveFab 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.
D1 · Cyclomatic Complexity · VideoListItemKt.VideoListItem (cyclomatic 21) · ×1
  • VideoListItemKt.VideoListItem (cyclomatic 21) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListItem.kt:39 — VideoListItemKt.VideoListItem 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.
D1 · Cyclomatic Complexity · VideoRepository.extractFastVideoMetadata (cyclomatic 20) · ×1
  • VideoRepository.extractFastVideoMetadata (cyclomatic 20) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:215 — VideoRepository.extractFastVideoMetadata 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.
D1 · Cyclomatic Complexity · VaultFileManager.rebuildDatabaseFromStorage (cyclomatic 20) · ×1
  • VaultFileManager.rebuildDatabaseFromStorage (cyclomatic 20) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:351 — VaultFileManager.rebuildDatabaseFromStorage has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · InformationBottomSheetKt.getIconForProperty (cyclomatic 20) · ×1
  • InformationBottomSheetKt.getIconForProperty (cyclomatic 20) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:651 — InformationBottomSheetKt.getIconForProperty has cyclomatic complexity 20 (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 — the same kind of value, with no behaviour of its own — 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.
D1 · Cyclomatic Complexity · ViewSettingsBottomSheetKt.ViewSettingsBottomSheet (cyclomatic 20) · ×1
  • ViewSettingsBottomSheetKt.ViewSettingsBottomSheet (cyclomatic 20) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:38 — ViewSettingsBottomSheetKt.ViewSettingsBottomSheet 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.
D1 · Cyclomatic Complexity · SeriesDetailScreenKt.SeriesDetailScreen (cyclomatic 20) · ×1
  • SeriesDetailScreenKt.SeriesDetailScreen (cyclomatic 20) app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:49 — SeriesDetailScreenKt.SeriesDetailScreen 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.
D1 · Cyclomatic Complexity · FolderPickerBottomSheetKt.FolderPickerBottomSheet (cyclomatic 20) · ×1
  • FolderPickerBottomSheetKt.FolderPickerBottomSheet (cyclomatic 20) app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:45 — FolderPickerBottomSheetKt.FolderPickerBottomSheet 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.
D1 · Cyclomatic Complexity · FileTransferOps.moveVideoScoped (cyclomatic 19) · ×1
  • FileTransferOps.moveVideoScoped (cyclomatic 19) app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:100 — FileTransferOps.moveVideoScoped 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.
D1 · Cyclomatic Complexity · VideoRepository.getAllVideos (cyclomatic 19) · ×1
  • VideoRepository.getAllVideos (cyclomatic 19) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:408 — VideoRepository.getAllVideos 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.
D1 · Cyclomatic Complexity · WatchHistoryRepository.syncWatchHistoryRecords (cyclomatic 19) · ×1
  • WatchHistoryRepository.syncWatchHistoryRecords (cyclomatic 19) app/src/main/java/com/devson/nvplayer/data/repository/WatchHistoryRepository.kt:148 — WatchHistoryRepository.syncWatchHistoryRecords 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.
D1 · Cyclomatic Complexity · VaultMetadata.equals (cyclomatic 19) · ×1
  • VaultMetadata.equals (cyclomatic 19) app/src/main/java/com/devson/nvplayer/data/security/VaultMetadata.kt:41 — VaultMetadata.equals 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.
D1 · Cyclomatic Complexity · VaultSecurityManager.saveMetadataToDisk (cyclomatic 19) · ×1
  • VaultSecurityManager.saveMetadataToDisk (cyclomatic 19) app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:593 — VaultSecurityManager.saveMetadataToDisk has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · MPVPlayerEngine.isAviMedia (cyclomatic 19) · ×1
  • MPVPlayerEngine.isAviMedia (cyclomatic 19) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:326 — MPVPlayerEngine.isAviMedia 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.
D1 · Cyclomatic Complexity · PlayerControlsKt.RenderPlayerButton (cyclomatic 19) · ×1
  • PlayerControlsKt.RenderPlayerButton (cyclomatic 19) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1647 — PlayerControlsKt.RenderPlayerButton has cyclomatic complexity 19 (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 — the same kind of value, with no behaviour of its own — 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.
D1 · Cyclomatic Complexity · DecoderSideSheetKt.DecoderSideSheet (cyclomatic 19) · ×1
  • DecoderSideSheetKt.DecoderSideSheet (cyclomatic 19) app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:36 — DecoderSideSheetKt.DecoderSideSheet 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.
D1 · Cyclomatic Complexity · VaultGalleryScreenKt.VaultGalleryScreen (cyclomatic 19) · ×1
  • VaultGalleryScreenKt.VaultGalleryScreen (cyclomatic 19) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultGalleryScreen.kt:106 — VaultGalleryScreenKt.VaultGalleryScreen 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.
D1 · Cyclomatic Complexity · MediaInfoOps.extractBasicMetadata (cyclomatic 18) · ×1
  • MediaInfoOps.extractBasicMetadata (cyclomatic 18) app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:446 — MediaInfoOps.extractBasicMetadata has cyclomatic complexity 18 (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 — the same kind of value, with no behaviour of its own — 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.
D1 · Cyclomatic Complexity · DefaultVaultContainer.createEncryptedVaultFile (cyclomatic 18) · ×1
  • DefaultVaultContainer.createEncryptedVaultFile (cyclomatic 18) app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:68 — DefaultVaultContainer.createEncryptedVaultFile has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · DefaultVaultContainer.verifyVaultFileIntegrity (cyclomatic 18) · ×1
  • DefaultVaultContainer.verifyVaultFileIntegrity (cyclomatic 18) app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:376 — DefaultVaultContainer.verifyVaultFileIntegrity has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · VaultMigrationManager.classifyFile (cyclomatic 18) · ×1
  • VaultMigrationManager.classifyFile (cyclomatic 18) app/src/main/java/com/devson/nvplayer/data/security/VaultMigrationManager.kt:103 — VaultMigrationManager.classifyFile 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.
D1 · Cyclomatic Complexity · VaultMigrationManager.isUnencryptedMediaSignature (cyclomatic 18) · ×1
  • VaultMigrationManager.isUnencryptedMediaSignature (cyclomatic 18) app/src/main/java/com/devson/nvplayer/data/security/VaultMigrationManager.kt:518 — VaultMigrationManager.isUnencryptedMediaSignature 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.
D1 · Cyclomatic Complexity · VaultSecurityManager.loadVaultMetadata (cyclomatic 18) · ×1
  • VaultSecurityManager.loadVaultMetadata (cyclomatic 18) app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:142 — VaultSecurityManager.loadVaultMetadata 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.
D1 · Cyclomatic Complexity · MPVPlayerEngine.evaluateHdrType (cyclomatic 18) · ×1
  • MPVPlayerEngine.evaluateHdrType (cyclomatic 18) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:1636 — MPVPlayerEngine.evaluateHdrType has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D1 · Cyclomatic Complexity · CustomSeekbarKt.StandardOrThickSeekbarCanvas (cyclomatic 18) · ×1
  • CustomSeekbarKt.StandardOrThickSeekbarCanvas (cyclomatic 18) app/src/main/java/com/devson/nvplayer/ui/common/components/CustomSeekbar.kt:312 — CustomSeekbarKt.StandardOrThickSeekbarCanvas 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.
D1 · Cyclomatic Complexity · RecycleBinScreenKt.RecycleBinScreen (cyclomatic 18) · ×1
  • RecycleBinScreenKt.RecycleBinScreen (cyclomatic 18) app/src/main/java/com/devson/nvplayer/ui/screen/settings/RecycleBinScreen.kt:54 — RecycleBinScreenKt.RecycleBinScreen has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlayerViewModel.prepareVideo (cyclomatic 18) · ×1
  • PlayerViewModel.prepareVideo (cyclomatic 18) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:633 — PlayerViewModel.prepareVideo 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.
D1 · Cyclomatic Complexity · PlayerViewModel.autoDetectAndLoadSubtitles (cyclomatic 18) · ×1
  • PlayerViewModel.autoDetectAndLoadSubtitles (cyclomatic 18) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1205 — PlayerViewModel.autoDetectAndLoadSubtitles 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.
D1 · Cyclomatic Complexity · VaultFileManager.cleanOrphanedPartFiles (cyclomatic 17) · ×1
  • VaultFileManager.cleanOrphanedPartFiles (cyclomatic 17) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:1064 — VaultFileManager.cleanOrphanedPartFiles has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MPVPlayerEngine.applySubtitleSettings (cyclomatic 17) · ×1
  • MPVPlayerEngine.applySubtitleSettings (cyclomatic 17) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:675 — MPVPlayerEngine.applySubtitleSettings 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.
D1 · Cyclomatic Complexity · MPVPlayerEngine.updateAmbientStretch (cyclomatic 17) · ×1
  • MPVPlayerEngine.updateAmbientStretch (cyclomatic 17) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:1292 — MPVPlayerEngine.updateAmbientStretch has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · MPVPlayerEngine.reloadMpvConfig (cyclomatic 17) · ×1
  • MPVPlayerEngine.reloadMpvConfig (cyclomatic 17) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:1557 — MPVPlayerEngine.reloadMpvConfig has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WatchTracker.onPlaybackTick (cyclomatic 17) · ×1
  • WatchTracker.onPlaybackTick (cyclomatic 17) app/src/main/java/com/devson/nvplayer/player/tracker/WatchTracker.kt:229 — WatchTracker.onPlaybackTick has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlayerControlsKt.CenterTransportDock (cyclomatic 17) · ×1
  • PlayerControlsKt.CenterTransportDock (cyclomatic 17) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1357 — PlayerControlsKt.CenterTransportDock has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · SubtitleSettingsSideSheetKt.StyleTab (cyclomatic 17) · ×1
  • SubtitleSettingsSideSheetKt.StyleTab (cyclomatic 17) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:451 — SubtitleSettingsSideSheetKt.StyleTab has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · ChaptersSideSheetKt.ChaptersSideSheet (cyclomatic 17) · ×1
  • ChaptersSideSheetKt.ChaptersSideSheet (cyclomatic 17) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:41 — ChaptersSideSheetKt.ChaptersSideSheet has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PlayerSettingsSideSheetKt.InterfaceTab (cyclomatic 17) · ×1
  • PlayerSettingsSideSheetKt.InterfaceTab (cyclomatic 17) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1036 — PlayerSettingsSideSheetKt.InterfaceTab has cyclomatic complexity 17 (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 — the same kind of value, with no behaviour of its own — 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. This is NOT this file's highest cyclomatic complexity: PlayerSettingsSideSheetKt.GesturesTab (cyclomatic 19) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension's figures nor in its score.
D1 · Cyclomatic Complexity · AppearanceSettingsScreenKt.AppearanceSettingsScreen (cyclomatic 17) · ×1
  • AppearanceSettingsScreenKt.AppearanceSettingsScreen (cyclomatic 17) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:55 — AppearanceSettingsScreenKt.AppearanceSettingsScreen has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · PermissionsSettingsScreenKt.PermissionsSettingsScreen (cyclomatic 17) · ×1
  • PermissionsSettingsScreenKt.PermissionsSettingsScreen (cyclomatic 17) app/src/main/java/com/devson/nvplayer/ui/screen/settings/PermissionsSettingsScreen.kt:34 — PermissionsSettingsScreenKt.PermissionsSettingsScreen has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · LibraryViewModel.loadCachedLibraryFromDb (cyclomatic 17) · ×1
  • LibraryViewModel.loadCachedLibraryFromDb (cyclomatic 17) app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt:210 — LibraryViewModel.loadCachedLibraryFromDb has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MainActivity.handleIntent (cyclomatic 16) · ×1
  • MainActivity.handleIntent (cyclomatic 16) app/src/main/java/com/devson/nvplayer/MainActivity.kt:72 — MainActivity.handleIntent has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · SubtitleExtractorHelper.extractTrack (cyclomatic 16) · ×1
  • SubtitleExtractorHelper.extractTrack (cyclomatic 16) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:230 — SubtitleExtractorHelper.extractTrack has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MpvConfigRepository.serializeConfig (cyclomatic 16) · ×1
  • MpvConfigRepository.serializeConfig (cyclomatic 16) app/src/main/java/com/devson/nvplayer/data/repository/MpvConfigRepository.kt:128 — MpvConfigRepository.serializeConfig 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.
D1 · Cyclomatic Complexity · PlaybackSettingsRepository.loadPlaybackSettings (cyclomatic 16) · ×1
  • PlaybackSettingsRepository.loadPlaybackSettings (cyclomatic 16) app/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt:118 — PlaybackSettingsRepository.loadPlaybackSettings has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · VideoKt.getSectionLabel (cyclomatic 16) · ×1
  • VideoKt.getSectionLabel (cyclomatic 16) app/src/main/java/com/devson/nvplayer/domain/model/Video.kt:76 — VideoKt.getSectionLabel has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · VideoFolderKt.getSectionLabel (cyclomatic 16) · ×1
  • VideoFolderKt.getSectionLabel (cyclomatic 16) app/src/main/java/com/devson/nvplayer/domain/model/VideoFolder.kt:27 — VideoFolderKt.getSectionLabel has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MediaPlaybackService.onStartCommand (cyclomatic 16) · ×1
  • MediaPlaybackService.onStartCommand (cyclomatic 16) app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:159 — MediaPlaybackService.onStartCommand has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · WatchTracker.handleQualification (cyclomatic 16) · ×1
  • WatchTracker.handleQualification (cyclomatic 16) app/src/main/java/com/devson/nvplayer/player/tracker/WatchTracker.kt:329 — WatchTracker.handleQualification 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.
D1 · Cyclomatic Complexity · PlayerControlsKt.CapsuleControlItem (cyclomatic 16) · ×1
  • PlayerControlsKt.CapsuleControlItem (cyclomatic 16) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1028 — PlayerControlsKt.CapsuleControlItem 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.
D1 · Cyclomatic Complexity · FastScrollerKt.FastScrollerOverlay (cyclomatic 16) · ×1
  • FastScrollerKt.FastScrollerOverlay (cyclomatic 16) app/src/main/java/com/devson/nvplayer/ui/common/components/FastScroller.kt:42 — FastScrollerKt.FastScrollerOverlay 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.
D1 · Cyclomatic Complexity · InformationBottomSheetKt.parseMediaInfoText (cyclomatic 16) · ×1
  • InformationBottomSheetKt.parseMediaInfoText (cyclomatic 16) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:669 — InformationBottomSheetKt.parseMediaInfoText has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · MpvHelpScreenKt.MpvHelpScreen (cyclomatic 16) · ×1
  • MpvHelpScreenKt.MpvHelpScreen (cyclomatic 16) app/src/main/java/com/devson/nvplayer/ui/screen/editor/MpvHelpScreen.kt:42 — MpvHelpScreenKt.MpvHelpScreen 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.
D1 · Cyclomatic Complexity · MetadataChipsKt.VideoMetadataChips (cyclomatic 16) · ×1
  • MetadataChipsKt.VideoMetadataChips (cyclomatic 16) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/common/MetadataChips.kt:74 — MetadataChipsKt.VideoMetadataChips 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.
D15 · Churn × Complexity Hotspots · Repeated repair · ×1
  • Repeated repair: app/src/main/java/com/devson/nvplayer/util/FormatUtils.kt app/src/main/java/com/devson/nvplayer/util/FormatUtils.kt:47 — app/src/main/java/com/devson/nvplayer/util/FormatUtils.kt changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file's churn. Its max cyclomatic complexity is 8 (its worst body is FormatUtilsKt.formatResolutionCompact at line 47), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn × complexity hotspot — the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: “fix(media,ui): resolve hidden video metadata extraction, fdsan crash, and smooth navigation pill”; “fix(build,library): resolve mpvlib Kotlin metadata conflict and improve hidden folder discovery”; “refactor(sort): streamline sort fields and fix folder and video sorting”. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 18:06:40 +05:30' --until='2026-11-12 18:06:40 +05:30' --full-history --no-merges -- app/src/main/java/com/devson/nvplayer/util/FormatUtils.kt`: 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 — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D2 · Cognitive Complexity · VideoListScreenKt.VideoListScreen (cognitive 311) · ×1
  • VideoListScreenKt.VideoListScreen (cognitive 311) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:102 — VideoListScreenKt.VideoListScreen has cognitive complexity 311 (threshold 15). Drivers by points: if/else 145 (258 pts), match/switch 13 (22 pts), boolean chains 21, error handling 7 (10 pts) (nesting depth added 125). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlayerScreenKt.PlayerScreen (cognitive 235) · ×1
  • PlayerScreenKt.PlayerScreen (cognitive 235) app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:112 — PlayerScreenKt.PlayerScreen has cognitive complexity 235 (threshold 15). Drivers by points: if/else 101 (185 pts), boolean chains 30, match/switch 8 (14 pts), error handling 2 (3 pts), loops 3 (nesting depth added 91). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MatroskaSubtitleDemuxer.parseTracks (cognitive 233) · ×1
  • MatroskaSubtitleDemuxer.parseTracks (cognitive 233) app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:387 — MatroskaSubtitleDemuxer.parseTracks has cognitive complexity 233 (threshold 15). Drivers by points: if/else 32 (178 pts), loops 6 (34 pts), match/switch 2 (18 pts), boolean chains 3 (nesting depth added 190). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · GestureOverlayKt.GestureOverlay (cognitive 205) · ×1
  • GestureOverlayKt.GestureOverlay (cognitive 205) app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:55 — GestureOverlayKt.GestureOverlay has cognitive complexity 205 (threshold 15). Drivers by points: if/else 83 (170 pts), boolean chains 19, match/switch 4 (8 pts), error handling 2 (7 pts), loops 1 (nesting depth added 96). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · VideoMetadataExtractor.extractDetails (cognitive 193) · ×1
  • VideoMetadataExtractor.extractDetails (cognitive 193) app/src/main/java/com/devson/nvplayer/data/media/VideoMetadataExtractor.kt:76 — VideoMetadataExtractor.extractDetails has cognitive complexity 193 (threshold 15). Drivers by points: if/else 54 (117 pts), error handling 14 (37 pts), boolean chains 30, loops 3 (6 pts), match/switch 1 (3 pts) (nesting depth added 91). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · PlayerControlsKt.PlayerControls (cognitive 124) · ×1
  • PlayerControlsKt.PlayerControls (cognitive 124) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:155 — PlayerControlsKt.PlayerControls has cognitive complexity 124 (threshold 15). Drivers by points: if/else 80 (115 pts), boolean chains 7, loops 1, match/switch 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MatroskaSubtitleDemuxer.demuxTrackCues (cognitive 112) · ×1
  • MatroskaSubtitleDemuxer.demuxTrackCues (cognitive 112) app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:184 — MatroskaSubtitleDemuxer.demuxTrackCues has cognitive complexity 112 (threshold 15). Drivers by points: if/else 27 (81 pts), loops 5 (13 pts), match/switch 3 (12 pts), boolean chains 5, error handling 1 (nesting depth added 71). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HistoryScreenKt.HistoryScreen (cognitive 98) · ×1
  • HistoryScreenKt.HistoryScreen (cognitive 98) app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:62 — HistoryScreenKt.HistoryScreen has cognitive complexity 98 (threshold 15). Drivers by points: if/else 56 (95 pts), boolean chains 3 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StorageExplorerScreenKt.StorageExplorerScreen (cognitive 96) · ×1
  • StorageExplorerScreenKt.StorageExplorerScreen (cognitive 96) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:110 — StorageExplorerScreenKt.StorageExplorerScreen has cognitive complexity 96 (threshold 15). Drivers by points: if/else 65 (87 pts), boolean chains 5, match/switch 2 (3 pts), loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FolderGridItemKt.FolderGridItem (cognitive 96) · ×1
  • FolderGridItemKt.FolderGridItem (cognitive 96) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:59 — FolderGridItemKt.FolderGridItem has cognitive complexity 96 (threshold 15). Drivers by points: if/else 60 (89 pts), match/switch 5 (7 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VideoListViewModel.loadVideos (cognitive 90) · ×1
  • VideoListViewModel.loadVideos (cognitive 90) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:338 — VideoListViewModel.loadVideos has cognitive complexity 90 (threshold 15). Drivers by points: if/else 44 (74 pts), error handling 5 (8 pts), boolean chains 7, loops 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AppNavigationKt.AppNavigation (cognitive 86) · ×1
  • AppNavigationKt.AppNavigation (cognitive 86) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:95 — AppNavigationKt.AppNavigation has cognitive complexity 86 (threshold 15). Drivers by points: if/else 48 (68 pts), boolean chains 16, match/switch 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VideoRepository.scanHiddenVideos (cognitive 85) · ×1
  • VideoRepository.scanHiddenVideos (cognitive 85) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:276 — VideoRepository.scanHiddenVideos has cognitive complexity 85 (threshold 15). Drivers by points: if/else 19 (65 pts), boolean chains 7, loops 4 (7 pts), error handling 2 (6 pts) (nesting depth added 53). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · InformationBottomSheetKt.SingleVideoInformationContent (cognitive 85) · ×1
  • InformationBottomSheetKt.SingleVideoInformationContent (cognitive 85) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:191 — InformationBottomSheetKt.SingleVideoInformationContent has cognitive complexity 85 (threshold 15). Drivers by points: if/else 38 (75 pts), boolean chains 7, match/switch 2 (3 pts) (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.
D2 · Cognitive Complexity · VaultFileManager.removeAllVaultData (cognitive 72) · ×1
  • VaultFileManager.removeAllVaultData (cognitive 72) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:744 — VaultFileManager.removeAllVaultData has cognitive complexity 72 (threshold 15). Drivers by points: if/else 23 (56 pts), boolean chains 9, error handling 4 (5 pts), loops 1 (2 pts) (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · DeviceStatsOverlayKt.collectMpvPlaybackStats (cognitive 68) · ×1
  • DeviceStatsOverlayKt.collectMpvPlaybackStats (cognitive 68) app/src/main/java/com/devson/nvplayer/ui/common/components/DeviceStatsOverlay.kt:529 — DeviceStatsOverlayKt.collectMpvPlaybackStats has cognitive complexity 68 (threshold 15). Drivers by points: if/else 35 (56 pts), match/switch 4 (5 pts), boolean chains 3, error handling 3, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlayerSettingsSideSheetKt.PlayerSettingsSideSheet (cognitive 68) · ×1
  • PlayerSettingsSideSheetKt.PlayerSettingsSideSheet (cognitive 68) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:66 — PlayerSettingsSideSheetKt.PlayerSettingsSideSheet has cognitive complexity 68 (threshold 15). Drivers by points: if/else 40 (41 pts), match/switch 14 (27 pts) (nesting depth added 14). To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · LibraryHomeScreenKt.LibraryHomeScreen (cognitive 67) · ×1
  • LibraryHomeScreenKt.LibraryHomeScreen (cognitive 67) app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:62 — LibraryHomeScreenKt.LibraryHomeScreen has cognitive complexity 67 (threshold 15). Drivers by points: if/else 22 (49 pts), boolean chains 7, match/switch 2 (6 pts), loops 1 (5 pts) (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · VaultFileManager.convertVideoProtection (cognitive 66) · ×1
  • VaultFileManager.convertVideoProtection (cognitive 66) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:877 — VaultFileManager.convertVideoProtection has cognitive complexity 66 (threshold 15). Drivers by points: if/else 34 (47 pts), error handling 6 (13 pts), boolean chains 6 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SubtitleExtractorHelper.inspectTracks (cognitive 63) · ×1
  • SubtitleExtractorHelper.inspectTracks (cognitive 63) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:72 — SubtitleExtractorHelper.inspectTracks has cognitive complexity 63 (threshold 15). Drivers by points: if/else 20 (32 pts), match/switch 5 (15 pts), error handling 5 (7 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VaultSettingsBottomSheetKt.VaultSettingsBottomSheet (cognitive 60) · ×1
  • VaultSettingsBottomSheetKt.VaultSettingsBottomSheet (cognitive 60) app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:87 — VaultSettingsBottomSheetKt.VaultSettingsBottomSheet has cognitive complexity 60 (threshold 15). Drivers by points: if/else 25 (58 pts), boolean chains 1, match/switch 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VaultAuthScreenKt.VaultAuthScreen (cognitive 60) · ×1
  • VaultAuthScreenKt.VaultAuthScreen (cognitive 60) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:93 — VaultAuthScreenKt.VaultAuthScreen has cognitive complexity 60 (threshold 15). Drivers by points: if/else 26 (36 pts), match/switch 6 (9 pts), boolean chains 8, error handling 2 (5 pts), loops 1 (2 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · StorageVolumeHelperKt.getAvailableStorageVolumes (cognitive 60) · ×1
  • StorageVolumeHelperKt.getAvailableStorageVolumes (cognitive 60) app/src/main/java/com/devson/nvplayer/util/StorageVolumeHelper.kt:16 — StorageVolumeHelperKt.getAvailableStorageVolumes has cognitive complexity 60 (threshold 15). Drivers by points: if/else 19 (50 pts), boolean chains 5, loops 2 (3 pts), error handling 2 (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · VideoListViewModel.repairZeroDurationVideos (cognitive 59) · ×1
  • VideoListViewModel.repairZeroDurationVideos (cognitive 59) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:640 — VideoListViewModel.repairZeroDurationVideos has cognitive complexity 59 (threshold 15). Drivers by points: if/else 22 (38 pts), boolean chains 11, error handling 5 (8 pts), loops 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FastScrollerKt.FastScroller (cognitive 57) · ×1
  • FastScrollerKt.FastScroller (cognitive 57) app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt:59 — FastScrollerKt.FastScroller has cognitive complexity 57 (threshold 15). Drivers by points: if/else 32 (51 pts), boolean chains 6 (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.
D2 · Cognitive Complexity · FeedScreenKt.FeedPage (cognitive 56) · ×1
  • FeedScreenKt.FeedPage (cognitive 56) app/src/main/java/com/devson/nvplayer/ui/screen/FeedScreen.kt:283 — FeedScreenKt.FeedPage has cognitive complexity 56 (threshold 15). Drivers by points: if/else 22 (47 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FileTransferOps.copyVideoScoped (cognitive 54) · ×1
  • FileTransferOps.copyVideoScoped (cognitive 54) app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:208 — FileTransferOps.copyVideoScoped has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (42 pts), error handling 3 (7 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WatchHistoryViewModel.calculateStreakUiState (cognitive 54) · ×1
  • WatchHistoryViewModel.calculateStreakUiState (cognitive 54) app/src/main/java/com/devson/nvplayer/viewmodel/WatchHistoryViewModel.kt:176 — WatchHistoryViewModel.calculateStreakUiState has cognitive complexity 54 (threshold 15). Drivers by points: if/else 25 (40 pts), boolean chains 10, loops 3, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VideoRepository.scanVolumeForVideos (cognitive 51) · ×1
  • VideoRepository.scanVolumeForVideos (cognitive 51) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:97 — VideoRepository.scanVolumeForVideos has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (43 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VideoRepository.getAllVideos (cognitive 51) · ×1
  • VideoRepository.getAllVideos (cognitive 51) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:408 — VideoRepository.getAllVideos has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (41 pts), loops 3 (5 pts), boolean chains 4, error handling 1 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · VaultMigrationManager.migrateSingleFile (cognitive 51) · ×1
  • VaultMigrationManager.migrateSingleFile (cognitive 51) app/src/main/java/com/devson/nvplayer/data/security/VaultMigrationManager.kt:238 — VaultMigrationManager.migrateSingleFile has cognitive complexity 51 (threshold 15). Drivers by points: if/else 25 (34 pts), error handling 5 (11 pts), boolean chains 5, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ComposeSubtitleOverlayKt.ComposeSubtitleOverlay (cognitive 51) · ×1
  • ComposeSubtitleOverlayKt.ComposeSubtitleOverlay (cognitive 51) app/src/main/java/com/devson/nvplayer/ui/common/ComposeSubtitleOverlay.kt:39 — ComposeSubtitleOverlayKt.ComposeSubtitleOverlay has cognitive complexity 51 (threshold 15). Drivers by points: if/else 24 (44 pts), match/switch 4 (6 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LibraryViewModel.processVideos (cognitive 51) · ×1
  • LibraryViewModel.processVideos (cognitive 51) app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt:349 — LibraryViewModel.processVideos has cognitive complexity 51 (threshold 15). Drivers by points: if/else 19 (30 pts), loops 9 (12 pts), error handling 4 (5 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ControlLayoutEditorScreenKt.ControlLayoutEditorScreen (cognitive 50) · ×1
  • ControlLayoutEditorScreenKt.ControlLayoutEditorScreen (cognitive 50) app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:44 — ControlLayoutEditorScreenKt.ControlLayoutEditorScreen has cognitive complexity 50 (threshold 15). Drivers by points: if/else 28 (34 pts), boolean chains 8, match/switch 5 (8 pts) (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · VideoGridItemKt.VideoGridItem (cognitive 50) · ×1
  • VideoGridItemKt.VideoGridItem (cognitive 50) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:36 — VideoGridItemKt.VideoGridItem has cognitive complexity 50 (threshold 15). Drivers by points: if/else 34 (43 pts), match/switch 4 (6 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · CoilVideoThumbnailDecoder.decodeWithSoftwareCodec (cognitive 49) · ×1
  • CoilVideoThumbnailDecoder.decodeWithSoftwareCodec (cognitive 49) app/src/main/java/com/devson/nvplayer/domain/thumbnail/CoilVideoThumbnailDecoder.kt:301 — CoilVideoThumbnailDecoder.decodeWithSoftwareCodec has cognitive complexity 49 (threshold 15). Drivers by points: if/else 16 (36 pts), loops 4 (6 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ProfileScreenKt.ProfileScreen (cognitive 49) · ×1
  • ProfileScreenKt.ProfileScreen (cognitive 49) app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:63 — ProfileScreenKt.ProfileScreen has cognitive complexity 49 (threshold 15). Drivers by points: if/else 23 (46 pts), boolean chains 2, match/switch 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MediaInfoParser.parse (cognitive 47) · ×1
  • MediaInfoParser.parse (cognitive 47) app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoParser.kt:140 — MediaInfoParser.parse has cognitive complexity 47 (threshold 15). Drivers by points: if/else 22 (36 pts), boolean chains 10, match/switch 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.
D2 · Cognitive Complexity · WatchHistoryRepository.syncWatchHistoryRecords (cognitive 47) · ×1
  • WatchHistoryRepository.syncWatchHistoryRecords (cognitive 47) app/src/main/java/com/devson/nvplayer/data/repository/WatchHistoryRepository.kt:148 — WatchHistoryRepository.syncWatchHistoryRecords has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (38 pts), error handling 2 (4 pts), loops 2, match/switch 1 (2 pts), boolean chains 1 (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.
D2 · Cognitive Complexity · PlayerViewModel.importSubtitle (cognitive 47) · ×1
  • PlayerViewModel.importSubtitle (cognitive 47) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1117 — PlayerViewModel.importSubtitle has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (40 pts), boolean chains 4, error handling 2 (3 pts) (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · MPVPlayerEngine.reloadMpvConfig (cognitive 46) · ×1
  • MPVPlayerEngine.reloadMpvConfig (cognitive 46) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:1557 — MPVPlayerEngine.reloadMpvConfig has cognitive complexity 46 (threshold 15). Drivers by points: if/else 10 (27 pts), error handling 5 (17 pts), boolean chains 2 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · FolderSettingsScreenKt.FolderScreen (cognitive 46) · ×1
  • FolderSettingsScreenKt.FolderScreen (cognitive 46) app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:42 — FolderSettingsScreenKt.FolderScreen has cognitive complexity 46 (threshold 15). Drivers by points: if/else 36 (44 pts), match/switch 2 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · PlayerScreenKt.PlayerUpNextQueuePanel (cognitive 45) · ×1
  • PlayerScreenKt.PlayerUpNextQueuePanel (cognitive 45) app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1812 — PlayerScreenKt.PlayerUpNextQueuePanel has cognitive complexity 45 (threshold 15). Drivers by points: if/else 27 (38 pts), boolean chains 7 (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.
D2 · Cognitive Complexity · PlayerInterfaceSettingsScreenKt.PlayerInterfaceSettingsScreen (cognitive 43) · ×1
  • PlayerInterfaceSettingsScreenKt.PlayerInterfaceSettingsScreen (cognitive 43) app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:42 — PlayerInterfaceSettingsScreenKt.PlayerInterfaceSettingsScreen has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23 (28 pts), match/switch 10 (15 pts) (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · DefaultVaultContainer.decryptVaultFile (cognitive 42) · ×1
  • DefaultVaultContainer.decryptVaultFile (cognitive 42) app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:229 — DefaultVaultContainer.decryptVaultFile has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 8, error handling 3 (7 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FrameExtractionService.startExtractionJob (cognitive 41) · ×1
  • FrameExtractionService.startExtractionJob (cognitive 41) app/src/main/java/com/devson/nvplayer/service/FrameExtractionService.kt:211 — FrameExtractionService.startExtractionJob has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (22 pts), error handling 6 (13 pts), boolean chains 5, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FrameExtractionService.resolveVideoDisplayName (cognitive 40) · ×1
  • FrameExtractionService.resolveVideoDisplayName (cognitive 40) app/src/main/java/com/devson/nvplayer/service/FrameExtractionService.kt:51 — FrameExtractionService.resolveVideoDisplayName has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (31 pts), error handling 3 (5 pts), boolean chains 4 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · DeleteConfirmationDialogKt.DeleteConfirmationDialog (cognitive 40) · ×1
  • DeleteConfirmationDialogKt.DeleteConfirmationDialog (cognitive 40) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:48 — DeleteConfirmationDialogKt.DeleteConfirmationDialog has cognitive complexity 40 (threshold 15). Drivers by points: if/else 24 (40 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AudioSettingsSideSheetKt.AudioSettingsSideSheet (cognitive 38) · ×1
  • AudioSettingsSideSheetKt.AudioSettingsSideSheet (cognitive 38) app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:45 — AudioSettingsSideSheetKt.AudioSettingsSideSheet has cognitive complexity 38 (threshold 15). Drivers by points: if/else 29 (32 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · ChaptersSideSheetKt.ChaptersSideSheet (cognitive 38) · ×1
  • ChaptersSideSheetKt.ChaptersSideSheet (cognitive 38) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:41 — ChaptersSideSheetKt.ChaptersSideSheet has cognitive complexity 38 (threshold 15). Drivers by points: if/else 29 (37 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · PlayerViewModel.getPhysicalPathFromTreeUri (cognitive 38) · ×1
  • PlayerViewModel.getPhysicalPathFromTreeUri (cognitive 38) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1671 — PlayerViewModel.getPhysicalPathFromTreeUri has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (33 pts), loops 1 (4 pts), error handling 1 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · ViewSettingsBottomSheetKt.ViewSettingsBottomSheet (cognitive 37) · ×1
  • ViewSettingsBottomSheetKt.ViewSettingsBottomSheet (cognitive 37) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:38 — ViewSettingsBottomSheetKt.ViewSettingsBottomSheet has cognitive complexity 37 (threshold 15). Drivers by points: if/else 33 (37 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · FrameExtractionScreenKt.FrameExtractionScreen (cognitive 37) · ×1
  • FrameExtractionScreenKt.FrameExtractionScreen (cognitive 37) app/src/main/java/com/devson/nvplayer/ui/screen/tools/FrameExtractionScreen.kt:47 — FrameExtractionScreenKt.FrameExtractionScreen has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (30 pts), error handling 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlayerViewModel.prepareVideo (cognitive 37) · ×1
  • PlayerViewModel.prepareVideo (cognitive 37) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:633 — PlayerViewModel.prepareVideo has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (27 pts), error handling 2 (6 pts), boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlayerViewModel.autoDetectAndLoadSubtitles (cognitive 37) · ×1
  • PlayerViewModel.autoDetectAndLoadSubtitles (cognitive 37) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1205 — PlayerViewModel.autoDetectAndLoadSubtitles has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (24 pts), boolean chains 6, loops 2 (6 pts), error handling 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · VaultAuthViewModel.processCompletedPin (cognitive 37) · ×1
  • VaultAuthViewModel.processCompletedPin (cognitive 37) app/src/main/java/com/devson/nvplayer/viewmodel/VaultAuthViewModel.kt:270 — VaultAuthViewModel.processCompletedPin has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (30 pts), error handling 2 (6 pts), match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · VideoRepository.extractFastVideoMetadata (cognitive 35) · ×1
  • VideoRepository.extractFastVideoMetadata (cognitive 35) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:215 — VideoRepository.extractFastVideoMetadata has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 7, error handling 3 (4 pts), loops 1 (2 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.
D2 · Cognitive Complexity · CustomSeekbarKt.StandardOrThickSeekbarCanvas (cognitive 34) · ×1
  • CustomSeekbarKt.StandardOrThickSeekbarCanvas (cognitive 34) app/src/main/java/com/devson/nvplayer/ui/common/components/CustomSeekbar.kt:312 — CustomSeekbarKt.StandardOrThickSeekbarCanvas has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PermissionsSettingsScreenKt.PermissionsSettingsScreen (cognitive 34) · ×1
  • PermissionsSettingsScreenKt.PermissionsSettingsScreen (cognitive 34) app/src/main/java/com/devson/nvplayer/ui/screen/settings/PermissionsSettingsScreen.kt:34 — PermissionsSettingsScreenKt.PermissionsSettingsScreen has cognitive complexity 34 (threshold 15). Drivers by points: if/else 26 (28 pts), error handling 3 (6 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · MainActivity.handleIntent (cognitive 33) · ×1
  • MainActivity.handleIntent (cognitive 33) app/src/main/java/com/devson/nvplayer/MainActivity.kt:72 — MainActivity.handleIntent has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 2 (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.
D2 · Cognitive Complexity · FileTransferOps.moveVideoScoped (cognitive 33) · ×1
  • FileTransferOps.moveVideoScoped (cognitive 33) app/src/main/java/com/devson/nvplayer/data/media/FileTransferOps.kt:100 — FileTransferOps.moveVideoScoped has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (27 pts), error handling 3 (5 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DeviceStatsOverlayKt.DeviceStatsOverlay (cognitive 33) · ×1
  • DeviceStatsOverlayKt.DeviceStatsOverlay (cognitive 33) app/src/main/java/com/devson/nvplayer/ui/common/components/DeviceStatsOverlay.kt:144 — DeviceStatsOverlayKt.DeviceStatsOverlay has cognitive complexity 33 (threshold 15). Drivers by points: if/else 28 (29 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · RecycleBinScreenKt.RecycleBinScreen (cognitive 33) · ×1
  • RecycleBinScreenKt.RecycleBinScreen (cognitive 33) app/src/main/java/com/devson/nvplayer/ui/screen/settings/RecycleBinScreen.kt:54 — RecycleBinScreenKt.RecycleBinScreen has cognitive complexity 33 (threshold 15). Drivers by points: if/else 27 (32 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · SubtitleExtractorHelper.extractTrack (cognitive 31) · ×1
  • SubtitleExtractorHelper.extractTrack (cognitive 31) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:230 — SubtitleExtractorHelper.extractTrack has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (22 pts), match/switch 2 (4 pts), error handling 1 (3 pts), loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VaultFileManager.rebuildDatabaseFromStorage (cognitive 31) · ×1
  • VaultFileManager.rebuildDatabaseFromStorage (cognitive 31) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:351 — VaultFileManager.rebuildDatabaseFromStorage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 6 (10 pts), match/switch 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VaultFileManager.cleanOrphanedPartFiles (cognitive 31) · ×1
  • VaultFileManager.cleanOrphanedPartFiles (cognitive 31) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:1064 — VaultFileManager.cleanOrphanedPartFiles has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (27 pts), boolean chains 3, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VaultSecurityManager.loadVaultMetadata (cognitive 31) · ×1
  • VaultSecurityManager.loadVaultMetadata (cognitive 31) app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:142 — VaultSecurityManager.loadVaultMetadata has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 6 (13 pts), boolean chains 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FolderPickerBottomSheetKt.FolderPickerBottomSheet (cognitive 31) · ×1
  • FolderPickerBottomSheetKt.FolderPickerBottomSheet (cognitive 31) app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:45 — FolderPickerBottomSheetKt.FolderPickerBottomSheet has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24 (27 pts), boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · PlayerViewModel.changeVideo (cognitive 31) · ×1
  • PlayerViewModel.changeVideo (cognitive 31) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:830 — PlayerViewModel.changeVideo has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (22 pts), error handling 2 (6 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MediaFilenameParser.parse (cognitive 30) · ×1
  • MediaFilenameParser.parse (cognitive 30) app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:227 — MediaFilenameParser.parse has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 11 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · LegacyVaultManager.decryptLegacyFile (cognitive 30) · ×1
  • LegacyVaultManager.decryptLegacyFile (cognitive 30) app/src/main/java/com/devson/nvplayer/data/security/LegacyVaultManager.kt:58 — LegacyVaultManager.decryptLegacyFile has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 8, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VaultSecurityManager.saveMetadataToDisk (cognitive 30) · ×1
  • VaultSecurityManager.saveMetadataToDisk (cognitive 30) app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:593 — VaultSecurityManager.saveMetadataToDisk has cognitive complexity 30 (threshold 15). Drivers by points: error handling 8 (16 pts), if/else 8 (12 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlayerControlsKt.CenterTransportDock (cognitive 30) · ×1
  • PlayerControlsKt.CenterTransportDock (cognitive 30) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1357 — PlayerControlsKt.CenterTransportDock has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22 (26 pts), match/switch 2 (4 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · SeriesDetailScreenKt.SeriesDetailScreen (cognitive 30) · ×1
  • SeriesDetailScreenKt.SeriesDetailScreen (cognitive 30) app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:49 — SeriesDetailScreenKt.SeriesDetailScreen has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · VaultGalleryScreenKt.VaultGalleryScreen (cognitive 30) · ×1
  • VaultGalleryScreenKt.VaultGalleryScreen (cognitive 30) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultGalleryScreen.kt:106 — VaultGalleryScreenKt.VaultGalleryScreen has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (20 pts), error handling 2 (6 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · VideoListTopAppBarKt.VideoListTopAppBar (cognitive 30) · ×1
  • VideoListTopAppBarKt.VideoListTopAppBar (cognitive 30) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/topbar/VideoListTopAppBar.kt:59 — VideoListTopAppBarKt.VideoListTopAppBar has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VaultFileManager.restoreVideoFromVault (cognitive 29) · ×1
  • VaultFileManager.restoreVideoFromVault (cognitive 29) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:615 — VaultFileManager.restoreVideoFromVault has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (17 pts), error handling 4 (7 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · MPVPlayerEngine.isAviMedia (cognitive 29) · ×1
  • MPVPlayerEngine.isAviMedia (cognitive 29) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:326 — MPVPlayerEngine.isAviMedia has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 6, error handling 3 (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.
D2 · Cognitive Complexity · WatchTracker.onVideoChanged (cognitive 29) · ×1
  • WatchTracker.onVideoChanged (cognitive 29) app/src/main/java/com/devson/nvplayer/player/tracker/WatchTracker.kt:119 — WatchTracker.onVideoChanged has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 1, error handling 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · VaultMigrationManager.isUnencryptedMediaSignature (cognitive 28) · ×1
  • VaultMigrationManager.isUnencryptedMediaSignature (cognitive 28) app/src/main/java/com/devson/nvplayer/data/security/VaultMigrationManager.kt:518 — VaultMigrationManager.isUnencryptedMediaSignature has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 6 (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.
D2 · Cognitive Complexity · MediaPlaybackService.onStartCommand (cognitive 28) · ×1
  • MediaPlaybackService.onStartCommand (cognitive 28) app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:159 — MediaPlaybackService.onStartCommand has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 4 (11 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.
D2 · Cognitive Complexity · NosvedExpressiveFabKt.NosvedExpressiveFab (cognitive 28) · ×1
  • NosvedExpressiveFabKt.NosvedExpressiveFab (cognitive 28) app/src/main/java/com/devson/nvplayer/ui/common/components/fab/NosvedExpressiveFab.kt:47 — NosvedExpressiveFabKt.NosvedExpressiveFab has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, boolean chains 2, match/switch 2. To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · ExplorerListContentKt.ExplorerListContent (cognitive 28) · ×1
  • ExplorerListContentKt.ExplorerListContent (cognitive 28) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:50 — ExplorerListContentKt.ExplorerListContent has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (12 pts), match/switch 6 (12 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VideoListItemKt.VideoListItem (cognitive 28) · ×1
  • VideoListItemKt.VideoListItem (cognitive 28) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListItem.kt:39 — VideoListItemKt.VideoListItem has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23 (24 pts), match/switch 3, boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · VaultMigrationManager.classifyFile (cognitive 27) · ×1
  • VaultMigrationManager.classifyFile (cognitive 27) app/src/main/java/com/devson/nvplayer/data/security/VaultMigrationManager.kt:103 — VaultMigrationManager.classifyFile has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (19 pts), error handling 2 (4 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · GestureSettingsScreenKt.GestureSettingsScreen (cognitive 27) · ×1
  • GestureSettingsScreenKt.GestureSettingsScreen (cognitive 27) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:43 — GestureSettingsScreenKt.GestureSettingsScreen has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20 (22 pts), match/switch 3, boolean chains 1, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · PlayerViewModel.resolveVideoFilePath (cognitive 27) · ×1
  • PlayerViewModel.resolveVideoFilePath (cognitive 27) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1284 — PlayerViewModel.resolveVideoFilePath has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth — 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's 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.
D2 · Cognitive Complexity · PlayerSettingsSideSheetKt.SpeedTab (cognitive 26) · ×1
  • PlayerSettingsSideSheetKt.SpeedTab (cognitive 26) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:680 — PlayerSettingsSideSheetKt.SpeedTab has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MediaStoreFinderScreenKt.getMediaIdFromUri (cognitive 25) · ×1
  • MediaStoreFinderScreenKt.getMediaIdFromUri (cognitive 25) app/src/main/java/com/devson/nvplayer/ui/screen/tools/MediaStoreFinderScreen.kt:189 — MediaStoreFinderScreenKt.getMediaIdFromUri has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 3 (7 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · LibraryViewModel.loadCachedLibraryFromDb (cognitive 25) · ×1
  • LibraryViewModel.loadCachedLibraryFromDb (cognitive 25) app/src/main/java/com/devson/nvplayer/viewmodel/LibraryViewModel.kt:210 — LibraryViewModel.loadCachedLibraryFromDb has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 4, loops 3 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MPVPlayerEngine.updateActiveAudioDecoderInfo (cognitive 24) · ×1
  • MPVPlayerEngine.updateActiveAudioDecoderInfo (cognitive 24) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:1048 — MPVPlayerEngine.updateActiveAudioDecoderInfo has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5, 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.
D2 · Cognitive Complexity · MpvConfigRepository.serializeConfig (cognitive 23) · ×1
  • MpvConfigRepository.serializeConfig (cognitive 23) app/src/main/java/com/devson/nvplayer/data/repository/MpvConfigRepository.kt:128 — MpvConfigRepository.serializeConfig has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · DefaultVaultContainer.createEncryptedVaultFile (cognitive 23) · ×1
  • DefaultVaultContainer.createEncryptedVaultFile (cognitive 23) app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:68 — DefaultVaultContainer.createEncryptedVaultFile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4, error handling 2 (3 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · VideoKt.getSectionLabel (cognitive 23) · ×1
  • VideoKt.getSectionLabel (cognitive 23) app/src/main/java/com/devson/nvplayer/domain/model/Video.kt:76 — VideoKt.getSectionLabel has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 3 (5 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · VideoFolderKt.getSectionLabel (cognitive 23) · ×1
  • VideoFolderKt.getSectionLabel (cognitive 23) app/src/main/java/com/devson/nvplayer/domain/model/VideoFolder.kt:27 — VideoFolderKt.getSectionLabel has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 3 (5 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction — a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full — so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident.
D2 · Cognitive Complexity · RecycleBinScreenKt.TrashedVideoItem (cognitive 23) · ×1
  • RecycleBinScreenKt.TrashedVideoItem (cognitive 23) app/src/main/java/com/devson/nvplayer/ui/screen/settings/RecycleBinScreen.kt:487 — RecycleBinScreenKt.TrashedVideoItem has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · MPVPlayerEngine.loadVideo (cognitive 22) · ×1
  • MPVPlayerEngine.loadVideo (cognitive 22) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:376 — MPVPlayerEngine.loadVideo has cognitive complexity 22 (threshold 15). Drivers by points: error handling 9 (15 pts), if/else 6, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SearchResultsScreenKt.SearchResultsScreen (cognitive 22) · ×1
  • SearchResultsScreenKt.SearchResultsScreen (cognitive 22) app/src/main/java/com/devson/nvplayer/ui/screen/SearchResultsScreen.kt:38 — SearchResultsScreenKt.SearchResultsScreen has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (22 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ControlLayoutEditorScreenKt.SimulatedPlayerPreview (cognitive 22) · ×1
  • ControlLayoutEditorScreenKt.SimulatedPlayerPreview (cognitive 22) app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:587 — ControlLayoutEditorScreenKt.SimulatedPlayerPreview has cognitive complexity 22 (threshold 15). Drivers by points: if/else 22. To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · FileOperationsViewModel.moveVideos (cognitive 22) · ×1
  • FileOperationsViewModel.moveVideos (cognitive 22) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:101 — FileOperationsViewModel.moveVideos has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VaultFileManager.importStreamToVault (cognitive 21) · ×1
  • VaultFileManager.importStreamToVault (cognitive 21) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:182 — VaultFileManager.importStreamToVault has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 5 (10 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WatchTracker.handleQualification (cognitive 21) · ×1
  • WatchTracker.handleQualification (cognitive 21) app/src/main/java/com/devson/nvplayer/player/tracker/WatchTracker.kt:329 — WatchTracker.handleQualification has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, error handling 3 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · MetadataChipsKt.VideoMetadataChips (cognitive 21) · ×1
  • MetadataChipsKt.VideoMetadataChips (cognitive 21) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/common/MetadataChips.kt:74 — MetadataChipsKt.VideoMetadataChips has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · FolderListItemKt.FolderListItem (cognitive 21) · ×1
  • FolderListItemKt.FolderListItem (cognitive 21) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:181 — FolderListItemKt.FolderListItem has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (18 pts), match/switch 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · VideoListContentKt.VideoListContent (cognitive 21) · ×1
  • VideoListContentKt.VideoListContent (cognitive 21) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListContent.kt:42 — VideoListContentKt.VideoListContent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · SubtitleExtractorHelper.formatAssFromDemuxed (cognitive 20) · ×1
  • SubtitleExtractorHelper.formatAssFromDemuxed (cognitive 20) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:446 — SubtitleExtractorHelper.formatAssFromDemuxed has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · VaultFileManager.removeOriginalSourceFile (cognitive 20) · ×1
  • VaultFileManager.removeOriginalSourceFile (cognitive 20) app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:458 — VaultFileManager.removeOriginalSourceFile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 5 (8 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · WatchTracker.onPlaybackTick (cognitive 20) · ×1
  • WatchTracker.onPlaybackTick (cognitive 20) app/src/main/java/com/devson/nvplayer/player/tracker/WatchTracker.kt:229 — WatchTracker.onPlaybackTick has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · SubtitleSettingsSideSheetKt.TrackCardItem (cognitive 20) · ×1
  • SubtitleSettingsSideSheetKt.TrackCardItem (cognitive 20) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:374 — SubtitleSettingsSideSheetKt.TrackCardItem has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (20 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · FastScrollerKt.FastScrollerOverlay (cognitive 20) · ×1
  • FastScrollerKt.FastScrollerOverlay (cognitive 20) app/src/main/java/com/devson/nvplayer/ui/common/components/FastScroller.kt:42 — FastScrollerKt.FastScrollerOverlay has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 5. To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · DecoderSideSheetKt.DecoderSideSheet (cognitive 20) · ×1
  • DecoderSideSheetKt.DecoderSideSheet (cognitive 20) app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:36 — DecoderSideSheetKt.DecoderSideSheet has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, match/switch 3. To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · InformationBottomSheetKt.parseMediaInfoText (cognitive 20) · ×1
  • InformationBottomSheetKt.parseMediaInfoText (cognitive 20) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:669 — InformationBottomSheetKt.parseMediaInfoText has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 6, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · FileOperationsViewModel.deleteVideos (cognitive 20) · ×1
  • FileOperationsViewModel.deleteVideos (cognitive 20) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:307 — FileOperationsViewModel.deleteVideos has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (18 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.
D2 · Cognitive Complexity · FileOperationsViewModel.moveItemsToPath (cognitive 20) · ×1
  • FileOperationsViewModel.moveItemsToPath (cognitive 20) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:686 — FileOperationsViewModel.moveItemsToPath has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 3 (6 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VideoListViewModel.discoverHiddenVideos (cognitive 20) · ×1
  • VideoListViewModel.discoverHiddenVideos (cognitive 20) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:543 — VideoListViewModel.discoverHiddenVideos has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 2, error handling 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · MediaStoreHelper.getAllVideos (cognitive 19) · ×1
  • MediaStoreHelper.getAllVideos (cognitive 19) app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:17 — MediaStoreHelper.getAllVideos has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CoilVideoThumbnailDecoder.findSoftwareCodec (cognitive 19) · ×1
  • CoilVideoThumbnailDecoder.findSoftwareCodec (cognitive 19) app/src/main/java/com/devson/nvplayer/domain/thumbnail/CoilVideoThumbnailDecoder.kt:413 — CoilVideoThumbnailDecoder.findSoftwareCodec has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlayerControlsKt.CapsuleControlItem (cognitive 19) · ×1
  • PlayerControlsKt.CapsuleControlItem (cognitive 19) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1028 — PlayerControlsKt.CapsuleControlItem has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · PlayerControlsKt.BottomZoneWithOverflow (cognitive 19) · ×1
  • PlayerControlsKt.BottomZoneWithOverflow (cognitive 19) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1130 — PlayerControlsKt.BottomZoneWithOverflow has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16 (19 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · AudioSettingsSideSheetKt.TrackCard (cognitive 19) · ×1
  • AudioSettingsSideSheetKt.TrackCard (cognitive 19) app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:419 — AudioSettingsSideSheetKt.TrackCard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17 (19 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · AppearanceSettingsScreenKt.SettingToggleCard (cognitive 19) · ×1
  • AppearanceSettingsScreenKt.SettingToggleCard (cognitive 19) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:807 — AppearanceSettingsScreenKt.SettingToggleCard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · ControlLayoutEditorScreenKt.MockRegionBox (cognitive 19) · ×1
  • ControlLayoutEditorScreenKt.MockRegionBox (cognitive 19) app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt:719 — ControlLayoutEditorScreenKt.MockRegionBox has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (19 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · CustomProfileSettingsScreenKt.SettingToggleCard (cognitive 19) · ×1
  • CustomProfileSettingsScreenKt.SettingToggleCard (cognitive 19) app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:292 — CustomProfileSettingsScreenKt.SettingToggleCard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · GestureSettingsScreenKt.SettingToggleCard (cognitive 19) · ×1
  • GestureSettingsScreenKt.SettingToggleCard (cognitive 19) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:699 — GestureSettingsScreenKt.SettingToggleCard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · PlayerInterfaceSettingsScreenKt.SettingToggleCard (cognitive 19) · ×1
  • PlayerInterfaceSettingsScreenKt.SettingToggleCard (cognitive 19) app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:694 — PlayerInterfaceSettingsScreenKt.SettingToggleCard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · PlayerViewModel.getDisplayNameFromUri (cognitive 19) · ×1
  • PlayerViewModel.getDisplayNameFromUri (cognitive 19) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1634 — PlayerViewModel.getDisplayNameFromUri has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · DefaultVaultContainer.verifyVaultFileIntegrity (cognitive 18) · ×1
  • DefaultVaultContainer.verifyVaultFileIntegrity (cognitive 18) app/src/main/java/com/devson/nvplayer/data/security/VaultContainer.kt:376 — DefaultVaultContainer.verifyVaultFileIntegrity has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 6, error handling 3, loops 1. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VaultMetadata.equals (cognitive 18) · ×1
  • VaultMetadata.equals (cognitive 18) app/src/main/java/com/devson/nvplayer/data/security/VaultMetadata.kt:41 — VaultMetadata.equals has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · MPVPlayerEngine.applySubtitleSettings (cognitive 18) · ×1
  • MPVPlayerEngine.applySubtitleSettings (cognitive 18) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:675 — MPVPlayerEngine.applySubtitleSettings has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, error handling 4 (6 pts), match/switch 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · GestureOverlayKt.AccumulatingSeekRipple (cognitive 18) · ×1
  • GestureOverlayKt.AccumulatingSeekRipple (cognitive 18) app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:1005 — GestureOverlayKt.AccumulatingSeekRipple has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · SubtitleSettingsSideSheetKt.StyleTab (cognitive 18) · ×1
  • SubtitleSettingsSideSheetKt.StyleTab (cognitive 18) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:451 — SubtitleSettingsSideSheetKt.StyleTab has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, match/switch 2. To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · FileOperationsViewModel.copyItemsToPath (cognitive 18) · ×1
  • FileOperationsViewModel.copyItemsToPath (cognitive 18) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:629 — FileOperationsViewModel.copyItemsToPath has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · SubtitleExtractorHelper.formatSrtFromDemuxed (cognitive 17) · ×1
  • SubtitleExtractorHelper.formatSrtFromDemuxed (cognitive 17) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:384 — SubtitleExtractorHelper.formatSrtFromDemuxed has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SubtitleExtractorHelper.formatVttFromDemuxed) has the same decision points, in the same order, at the same nesting depths — 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.
D2 · Cognitive Complexity · SubtitleExtractorHelper.formatVttFromDemuxed (cognitive 17) · ×1
  • SubtitleExtractorHelper.formatVttFromDemuxed (cognitive 17) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:414 — SubtitleExtractorHelper.formatVttFromDemuxed has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SubtitleExtractorHelper.formatSrtFromDemuxed) has the same decision points, in the same order, at the same nesting depths — 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.
D2 · Cognitive Complexity · SubtitleExtractorHelper.saveToDownloads (cognitive 17) · ×1
  • SubtitleExtractorHelper.saveToDownloads (cognitive 17) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:739 — SubtitleExtractorHelper.saveToDownloads has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MediaFilenameParser.extractShowSeason (cognitive 17) · ×1
  • MediaFilenameParser.extractShowSeason (cognitive 17) app/src/main/java/com/devson/nvplayer/data/parser/MediaFilenameParser.kt:181 — MediaFilenameParser.extractShowSeason has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MPVPlayerEngine.updateAmbientStretch (cognitive 17) · ×1
  • MPVPlayerEngine.updateAmbientStretch (cognitive 17) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:1292 — MPVPlayerEngine.updateAmbientStretch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 4, error handling 3, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · AnimatedNosvedLogoKt.AnimatedNosvedLogo (cognitive 17) · ×1
  • AnimatedNosvedLogoKt.AnimatedNosvedLogo (cognitive 17) app/src/main/java/com/devson/nvplayer/ui/common/components/AnimatedNosvedLogo.kt:203 — AnimatedNosvedLogoKt.AnimatedNosvedLogo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · HistoryScreenKt.HistoryListItem (cognitive 17) · ×1
  • HistoryScreenKt.HistoryListItem (cognitive 17) app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:639 — HistoryScreenKt.HistoryListItem has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (17 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · StreakScreenKt.DayActivityPill (cognitive 17) · ×1
  • StreakScreenKt.DayActivityPill (cognitive 17) app/src/main/java/com/devson/nvplayer/ui/screen/StreakScreen.kt:302 — StreakScreenKt.DayActivityPill has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, match/switch 1. To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · AppearanceSettingsScreenKt.AppearanceSettingsScreen (cognitive 17) · ×1
  • AppearanceSettingsScreenKt.AppearanceSettingsScreen (cognitive 17) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:55 — AppearanceSettingsScreenKt.AppearanceSettingsScreen has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (14 pts), match/switch 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · MatroskaSubtitleDemuxer.inspectMatroska (cognitive 16) · ×1
  • MatroskaSubtitleDemuxer.inspectMatroska (cognitive 16) app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:126 — MatroskaSubtitleDemuxer.inspectMatroska has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 3, error handling 2 (3 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MediaStoreHelper.getTrashedVideos (cognitive 16) · ×1
  • MediaStoreHelper.getTrashedVideos (cognitive 16) app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:145 — MediaStoreHelper.getTrashedVideos has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PlaybackSettingsRepository.loadPlaybackSettings (cognitive 16) · ×1
  • PlaybackSettingsRepository.loadPlaybackSettings (cognitive 16) app/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt:118 — PlaybackSettingsRepository.loadPlaybackSettings has cognitive complexity 16 (threshold 15). Drivers by points: error handling 13, if/else 2, boolean chains 1. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · VideoRepository.getTrashedVideos (cognitive 16) · ×1
  • VideoRepository.getTrashedVideos (cognitive 16) app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:491 — VideoRepository.getTrashedVideos has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · VaultFileFormat.readHeaderWithBytes (cognitive 16) · ×1
  • VaultFileFormat.readHeaderWithBytes (cognitive 16) app/src/main/java/com/devson/nvplayer/data/security/VaultFileFormat.kt:85 — VaultFileFormat.readHeaderWithBytes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · HistoryScreenKt.HistoryGridItem (cognitive 16) · ×1
  • HistoryScreenKt.HistoryGridItem (cognitive 16) app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:806 — HistoryScreenKt.HistoryGridItem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14 (16 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — 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.
D2 · Cognitive Complexity · PlayerScreenKt.SpeedSliderHUD (cognitive 16) · ×1
  • PlayerScreenKt.SpeedSliderHUD (cognitive 16) app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1329 — PlayerScreenKt.SpeedSliderHUD has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth — 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.
D2 · Cognitive Complexity · MpvHelpScreenKt.MpvHelpScreen (cognitive 16) · ×1
  • MpvHelpScreenKt.MpvHelpScreen (cognitive 16) app/src/main/java/com/devson/nvplayer/ui/screen/editor/MpvHelpScreen.kt:42 — MpvHelpScreenKt.MpvHelpScreen has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, error handling 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — 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.
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D35 · Change Coupling · Change coupling · ×1
  • Change coupling: PlaybackSettingsRepository.kt ↔ PlayerInterfaceSettingsScreen.kt app/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt:1 — `app/src/main/java/com/devson/nvplayer/data/repository/PlaybackSettingsRepository.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt` change together 56% of the time (14 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE — the registration is the link, and it is meant not to be an import — and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 14 shared commits counted here, the most recent 3 are `23536932` feat(player,ui): add playback stats overlay, auto-scroll to last play…; `91f6b17e` feat: add launcher app shortcuts and configurable brightness persistence; `91318242` feat(ui): update system navigation defaults and playback control posi… — run `git show` on any of them.
D4 · Code Duplication · Near-duplicate member family (7 members, 37 shared lines) · ×1
  • Near-duplicate member family (7 members, 37 shared lines) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:815 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:815-890 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:900-970 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:300-375 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:707-782 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:792-862 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:702-777 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:787-857 — These 7 members are variants of one another: a block of 37 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 7 times. The repair is at the members' 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. 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.
D4 · Code Duplication · Near-duplicate member pair (120 shared lines) · ×1
  • Near-duplicate member pair (120 shared lines) app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:67 — app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:67-284 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:286-503 — These two members are variants of one another: 120 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' grain — 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.
D4 · Code Duplication · Near-duplicate member pair (71 shared lines) · ×1
  • Near-duplicate member pair (71 shared lines) app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:648 — app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:648-802 | app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:815-984 — These two members are variants of one another: 71 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' grain — 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.
D4 · Code Duplication · Near-duplicate member pair (44 shared lines) · ×1
  • Near-duplicate member pair (44 shared lines) app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:655 — app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:655-782 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:790-894 — These two members are variants of one another: 44 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' grain — 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.
D4 · Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (7 members, 50+ identical tokens) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:69 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:69-274 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:56-416 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:48-380 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:41-290 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:50-311 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerInfoSideSheet.kt:37-156 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:73-675 — 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 — 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' 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. 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.
D4 · Code Duplication · Edited copy of a member (99 corresponding lines) · ×1
  • Edited copy of a member (99 corresponding lines) app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:20 — app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:20-120 | app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:145-243 — These two members are one piece of code written twice and then edited apart: 99 consecutive lines correspond almost exactly, 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' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (97 corresponding lines) · ×1
  • Edited copy of a member (97 corresponding lines) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:639 — app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:639-757 | app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:830-926 — These two members are one piece of code written twice and then edited apart: 97 consecutive lines correspond almost exactly, 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' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 54+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 54+ corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:632 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:632-697 | app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:703-756 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:425-482 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 54 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' 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.
D4 · Code Duplication · Edited copy of a member (39 corresponding lines) · ×1
  • Edited copy of a member (39 corresponding lines) app/src/main/java/com/devson/nvplayer/domain/model/Video.kt:79 — app/src/main/java/com/devson/nvplayer/domain/model/Video.kt:79-117 | app/src/main/java/com/devson/nvplayer/domain/model/VideoFolder.kt:31-73 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 56+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 56+ corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:420 — app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:420-485 | app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:491-546 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:144-206 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 56 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' 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.
D4 · Code Duplication · Edited copy of a member (49 corresponding lines) · ×1
  • Edited copy of a member (49 corresponding lines) app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:402 — app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:402-450 | app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:475-526 — These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, 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' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (56 corresponding lines) · ×1
  • Edited copy of a member (56 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:121 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:121-176 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:189-253 — These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (38 corresponding lines) · ×1
  • Edited copy of a member (38 corresponding lines) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:539 — app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:539-576 | app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:583-621 — These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (35 corresponding lines) · ×1
  • Edited copy of a member (35 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/NetworkStreamDialog.kt:361 — app/src/main/java/com/devson/nvplayer/ui/screen/NetworkStreamDialog.kt:361-409 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/ToolScreen.kt:89-123 — These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (45 corresponding lines) · ×1
  • Edited copy of a member (45 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:350 — app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:350-394 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:598-644 — These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, 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' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (40 corresponding lines) · ×1
  • Edited copy of a member (40 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/library/components/ContinueWatchingRow.kt:22 — app/src/main/java/com/devson/nvplayer/ui/screen/library/components/ContinueWatchingRow.kt:22-61 | app/src/main/java/com/devson/nvplayer/ui/screen/library/components/RecentlyAddedRow.kt:22-61 — These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (28 corresponding lines) · ×1
  • Edited copy of a member (28 corresponding lines) app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:369 — app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt:369-396 | app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:1634-1669 — These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (33 corresponding lines) · ×1
  • Edited copy of a member (33 corresponding lines) app/src/main/java/com/devson/nvplayer/viewmodel/SubtitleExtractionViewModel.kt:75 — app/src/main/java/com/devson/nvplayer/viewmodel/SubtitleExtractionViewModel.kt:75-107 | app/src/main/java/com/devson/nvplayer/viewmodel/SubtitleExtractionViewModel.kt:109-150 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 19+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 19+ corresponding lines) app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:556 — app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:556-574 | app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:576-599 | app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:601-620 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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.
D4 · Code Duplication · Edited copy of a member (29 corresponding lines) · ×1
  • Edited copy of a member (29 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScrollSectionHelper.kt:19 — app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScrollSectionHelper.kt:19-48 | app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScrollSectionHelper.kt:54-82 — These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (27 corresponding lines) · ×1
  • Edited copy of a member (27 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:686 — app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt:686-712 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionScreen.kt:756-794 — These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 26+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 26+ corresponding lines) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:384 — app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:384-412 | app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:414-444 | app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:554-579 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 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' 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.
D4 · Code Duplication · Edited copies of one member (3 members, 29+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 29+ corresponding lines) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:1028 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:1028-1056 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:410-441 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1651-1679 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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.
D4 · Code Duplication · Edited copy of a member (24 corresponding lines) · ×1
  • Edited copy of a member (24 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:340 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:340-364 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:769-792 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (17 corresponding lines) · ×1
  • Edited copy of a member (17 corresponding lines) app/src/main/java/com/devson/nvplayer/MainActivity.kt:470 — app/src/main/java/com/devson/nvplayer/MainActivity.kt:470-486 | app/src/main/java/com/devson/nvplayer/MainActivity.kt:488-505 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (16 corresponding lines) · ×1
  • Edited copy of a member (16 corresponding lines) app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:1213 — app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:1213-1228 | app/src/main/java/com/devson/nvplayer/player/engine/MPVPlayerEngine.kt:1230-1245 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (11 corresponding lines) · ×1
  • Edited copy of a member (11 corresponding lines) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:806 — app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:806-816 | app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:818-828 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (14 corresponding lines) · ×1
  • Edited copy of a member (14 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:422 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:422-438 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:441-454 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copy of a member (18 corresponding lines) · ×1
  • Edited copy of a member (18 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:790 — app/src/main/java/com/devson/nvplayer/ui/screen/ProfileScreen.kt:790-807 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:446-463 — 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 — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (4 members, 9+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 9+ corresponding lines) app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:696 — app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:696-704 | app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:706-715 | app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:717-726 | app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:728-737 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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.
D4 · Code Duplication · Edited copy of a member (8 corresponding lines) · ×1
  • Edited copy of a member (8 corresponding lines) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:776 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:776-783 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:264-271 — These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Edited copies of one member (3 members, 9+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 9+ corresponding lines) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1393 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1393-1401 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:157-165 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:223-231 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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.
D4 · Code Duplication · Duplicated block (57 lines × 2) · ×1
  • Duplicated block (57 lines × 2) app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:691 — app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:691-747 | app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt:859-915 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (48 lines × 2) · ×1
  • Duplicated block (48 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:77 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:77-124 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:66-113 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 186 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:77` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (75 lines × 4) · ×1
  • Duplicated block (75 lines × 4) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:816 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:816-890 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:301-375 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:708-782 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:703-777 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 137 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 — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (47 lines × 2) · ×1
  • Duplicated block (47 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:754 — app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:754-800 | app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:906-952 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:754` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (52–53 lines × 2) · ×1
  • Duplicated block (52–53 lines × 2) app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:68 — app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:68-120 | app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:192-243 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:68` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (70 lines × 3) · ×1
  • Duplicated block (70 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:901 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:901-970 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:793-862 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:788-857 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 220 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 — extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any `return` inside it is the body's own exit and keeps its meaning in the moved unit.
D4 · Code Duplication · Duplicated block (43 lines × 2) · ×1
  • Duplicated block (43 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:559 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:559-601 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:731-773 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:559` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (40–42 lines × 3) · ×1
  • Duplicated block (40–42 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:148 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:148-187 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:248-287 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:276-317 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 111 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:148` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (41 lines × 2) · ×1
  • Duplicated block (41 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:117 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:117-157 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:274-314 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/DeleteConfirmationDialog.kt:117` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (39 lines × 2) · ×1
  • Duplicated block (39 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/components/SelectionBottomAppBar.kt:105 — app/src/main/java/com/devson/nvplayer/ui/common/components/SelectionBottomAppBar.kt:105-143 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/selection/VideoSelectionBottomBar.kt:107-145 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/components/SelectionBottomAppBar.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/selection/VideoSelectionBottomBar.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 91 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 `app/src/main/java/com/devson/nvplayer/ui/common/components/SelectionBottomAppBar.kt:105` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (32–33 lines × 2) · ×1
  • Duplicated block (32–33 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:362 — app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:362-393 | app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:416-448 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:362` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (32 lines × 2) · ×1
  • Duplicated block (32 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1436 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1436-1467 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1490-1521 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:1436` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (30–31 lines × 2) · ×1
  • Duplicated block (30–31 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:140 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:140-169 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:211-241 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:140` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×1
  • Duplicated block (29 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/components/SelectionBottomAppBar.kt:151 — app/src/main/java/com/devson/nvplayer/ui/common/components/SelectionBottomAppBar.kt:151-179 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/selection/VideoSelectionBottomBar.kt:155-183 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/components/SelectionBottomAppBar.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/selection/VideoSelectionBottomBar.kt` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 91 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.
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×1
  • Duplicated block (28 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:928 — app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:928-955 | app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1342-1369 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
D4 · Code Duplication · Duplicated block (26–27 lines × 2) · ×1
  • Duplicated block (26–27 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:126 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:126-151 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:192-218 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:126` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×1
  • Duplicated block (27 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/RecycleBinScreen.kt:514 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/RecycleBinScreen.kt:514-540 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/StorageAnalyzeScreen.kt:637-663 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/RecycleBinScreen.kt:514` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (26 lines × 3) · ×1
  • Duplicated block (26 lines × 3) app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:59 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:59-84 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:98-123 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerInfoSideSheet.kt:51-76 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 135 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:59` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (26 lines × 2) · ×1
  • Duplicated block (26 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:78 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:78-103 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerInfoSideSheet.kt:103-128 — 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 — a file they already depend on, or a new one alongside them — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:78` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×1
  • Duplicated block (25 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:278 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:278-302 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:1693-1717 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:278` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (23–24 lines × 2) · ×1
  • Duplicated block (23–24 lines × 2) app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:630 — app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:630-652 | app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:687-710 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/viewmodel/FileOperationsViewModel.kt:630` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (18–23 lines × 2) · ×1
  • Duplicated block (18–23 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/components/CustomSeekbar.kt:386 — app/src/main/java/com/devson/nvplayer/ui/common/components/CustomSeekbar.kt:386-403 | app/src/main/java/com/devson/nvplayer/ui/common/components/CustomSeekbar.kt:427-449 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/components/CustomSeekbar.kt:386` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (22–23 lines × 2) · ×1
  • Duplicated block (22–23 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1540 — app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1540-1562 | app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1621-1642 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt:1540` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (22 lines × 6) · ×1
  • Duplicated block (22 lines × 6) app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:289 — app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:289-310 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:325-346 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:361-382 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:397-418 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:433-454 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:469-490 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:286` calls `darkScheme`, `when` and `app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:322` does not — 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.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×1
  • Duplicated block (22 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:47 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:47-68 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:55-76 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:47` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (21 lines × 3) · ×1
  • Duplicated block (21 lines × 3) app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:85 — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:85-105 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:107-127 | app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:129-149 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:85` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (20–21 lines × 3) · ×1
  • Duplicated block (20–21 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:94 — app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:94-114 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/LanguageSettingsScreen.kt:60-79 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PermissionsSettingsScreen.kt:77-96 — 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 — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:94` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (20–21 lines × 2) · ×1
  • Duplicated block (20–21 lines × 2) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:259 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:259-278 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:343-363 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ViewSettingsBottomSheet.kt:259` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (20 lines × 12) · ×1
  • Duplicated block (20 lines × 12) app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:84 — app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:84-103 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:120-139 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:156-175 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:192-211 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:228-247 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:264-283 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:303-322 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:339-358 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:375-394 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:411-430 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:447-466 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:483-502 — all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites — 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 `app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:84` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:286` calls `darkScheme`, `when` and `app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:324` does not — 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.
D4 · Code Duplication · Duplicated block (19–20 lines × 7) · ×1
  • Duplicated block (19–20 lines × 7) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:834 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:834-853 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:917-935 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:319-338 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:726-745 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:809-827 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:721-740 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:804-822 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 137 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:834` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (20 lines × 3) · ×1
  • Duplicated block (20 lines × 3) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:382 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:382-401 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:427-446 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:294-313 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 186 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 `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:382` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (19 lines × 4) · ×1
  • Duplicated block (19 lines × 4) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:86 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:86-104 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:69-87 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:108-126 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerInfoSideSheet.kt:61-79 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:86` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:127` calls `RoundedCornerShape` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:105` does not — 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.
D4 · Code Duplication · Duplicated block (19 lines × 3) · ×1
  • Duplicated block (19 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:55 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:55-73 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PermissionsSettingsScreen.kt:66-84 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:49-67 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:55` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×1
  • Duplicated block (19 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:325 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:325-343 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:952-970 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:325` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16–19 lines × 2) · ×1
  • Duplicated block (16–19 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:128 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:128-143 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:253-271 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 111 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:128` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (18 lines × 7) · ×1
  • Duplicated block (18 lines × 7) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:865 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:865-882 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:944-961 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:350-367 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:757-774 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:836-853 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:752-769 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:831-848 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 137 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:865` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15–18 lines × 3) · ×1
  • Duplicated block (15–18 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:655 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:655-670 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:443-457 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:586-603 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 95 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:655` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (18 lines × 3) · ×1
  • Duplicated block (18 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:384 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:384-401 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:520-537 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:570-587 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:384` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×1
  • Duplicated block (16 lines × 3) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:63 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:63-78 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:46-61 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:85-100 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:63` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14–16 lines × 2) · ×1
  • Duplicated block (14–16 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:106 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:106-119 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:224-239 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 111 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:106` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15–16 lines × 2) · ×1
  • Duplicated block (15–16 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListContent.kt:126 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListContent.kt:126-140 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListContent.kt:160-175 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListContent.kt:126` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (15 lines × 5) · ×1
  • Duplicated block (15 lines × 5) app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:70 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:70-84 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:53-67 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/EnhanceSettingsSideSheet.kt:92-106 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerInfoSideSheet.kt:45-59 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/PlayerSettingsSideSheet.kt:131-145 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 126 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:70` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (14–15 lines × 4) · ×1
  • Duplicated block (14–15 lines × 4) app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:358 — app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:358-372 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:932-945 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:824-837 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:819-832 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 220 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:358` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:932` calls `Box` and `app/src/main/java/com/devson/nvplayer/ui/screen/SettingsScreen.kt:358` does not — 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.
D4 · Code Duplication · Duplicated block (14–15 lines × 3) · ×1
  • Duplicated block (14–15 lines × 3) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:449 — app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:449-462 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:500-514 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:838-851 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:449` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (14 lines × 4) · ×1
  • Duplicated block (14 lines × 4) app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:106 — app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:106-119 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:142-155 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:214-227 | app/src/main/java/com/devson/nvplayer/ui/theme/AppThemePalette.kt:250-263 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (13–14 lines × 3) · ×1
  • Duplicated block (13–14 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:710 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:710-722 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:434-447 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderSettingsScreen.kt:577-590 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 95 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:710` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (13–14 lines × 2) · ×1
  • Duplicated block (13–14 lines × 2) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:477 — app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:477-489 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:960-973 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (13 lines × 7) · ×1
  • Duplicated block (13 lines × 7) app/src/main/java/com/devson/nvplayer/ui/screen/editor/MpvHelpScreen.kt:128 — app/src/main/java/com/devson/nvplayer/ui/screen/editor/MpvHelpScreen.kt:128-140 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:138-150 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:66-78 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:93-105 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:77-89 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:60-72 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/FrameExtractionScreen.kt:118-130 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 220 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/editor/MpvHelpScreen.kt:128` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (12–13 lines × 4) · ×1
  • Duplicated block (12–13 lines × 4) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:400 — app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:400-412 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:446-457 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:497-508 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:835-846 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:446` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (12–13 lines × 2) · ×1
  • Duplicated block (12–13 lines × 2) app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:76 — app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:76-87 | app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:203-215 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:76` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:87` calls `toLongOrNull` and `app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:215` does not — 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.
D4 · Code Duplication · Duplicated block (11–13 lines × 2) · ×1
  • Duplicated block (11–13 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:129 — app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:129-141 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoThumbnail.kt:80-90 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/library/SeriesDetailScreen.kt:129` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (12 lines × 5) · ×1
  • Duplicated block (12 lines × 5) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:183 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:183-194 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:273-284 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:380-391 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:502-513 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:185-199 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 137 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:183` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:184` calls `clip`, `RoundedCornerShape` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:182` does not — 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.
D4 · Code Duplication · Duplicated block (12 lines × 4) · ×1
  • Duplicated block (12 lines × 4) app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:306 — app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:306-317 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:329-340 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:352-363 | app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:375-386 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/navigation/AppNavigation.kt:306` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11–12 lines × 4) · ×1
  • Duplicated block (11–12 lines × 4) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:89 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:89-100 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/LanguageSettingsScreen.kt:57-67 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:73-84 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/FrameExtractionScreen.kt:115-125 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:89` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11–12 lines × 3) · ×1
  • Duplicated block (11–12 lines × 3) app/src/main/java/com/devson/nvplayer/ui/common/components/StorageAccessRequiredDialog.kt:57 — app/src/main/java/com/devson/nvplayer/ui/common/components/StorageAccessRequiredDialog.kt:57-68 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PermissionsSettingsScreen.kt:245-255 | app/src/main/java/com/devson/nvplayer/ui/screen/vault/VaultAuthScreen.kt:141-152 — 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 — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/ui/common/components/StorageAccessRequiredDialog.kt:57` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/com/devson/nvplayer/ui/common/components/StorageAccessRequiredDialog.kt:55` calls `onDismiss`, `onPermissionRequested` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PermissionsSettingsScreen.kt:244` does not — 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.
D4 · Code Duplication · Duplicated block (11 lines × 7) · ×1
  • Duplicated block (11 lines × 7) app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:62 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:62-75 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:92-102 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/LanguageSettingsScreen.kt:59-69 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PermissionsSettingsScreen.kt:73-86 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:76-86 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt:56-69 | app/src/main/java/com/devson/nvplayer/ui/screen/tools/FrameExtractionScreen.kt:117-127 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PrivacyPolicyScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CreditsScreen.kt:62` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
D4 · Code Duplication · Duplicated block (11 lines × 4) · ×1
  • Duplicated block (11 lines × 4) app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:371 — app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:371-381 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:435-445 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:476-486 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:513-523 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/common/sheets/InformationBottomSheet.kt:371` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (10–11 lines × 3) · ×1
  • Duplicated block (10–11 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:81 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:81-90 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:165-174 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListItem.kt:76-86 — there are 3 copies across 2 file(s) — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:81` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (10–11 lines × 2) · ×1
  • Duplicated block (10–11 lines × 2) app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:420 — app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:420-430 | app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:495-504 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:507` calls `generateGcmNonce`, `wrapMasterKey` and `app/src/main/java/com/devson/nvplayer/data/security/VaultSecurityManager.kt:432` does not — 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.
D4 · Code Duplication · Duplicated block (8–11 lines × 2) · ×1
  • Duplicated block (8–11 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:602 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:602-612 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/VideoListScreen.kt:1105-1112 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×1
  • Duplicated block (10 lines × 4) app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:381 — app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt:381-390 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt:426-435 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/ChaptersSideSheet.kt:293-302 | app/src/main/java/com/devson/nvplayer/ui/common/sheets/DecoderSideSheet.kt:176-185 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/common/SubtitleSettingsSideSheet.kt` and `app/src/main/java/com/devson/nvplayer/ui/common/sheets/AudioSettingsSideSheet.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 186 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.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×1
  • Duplicated block (9–10 lines × 2) app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:374 — app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:374-382 | app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:605-614 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt:374` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7–9 lines × 3) · ×1
  • Duplicated block (7–9 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:106 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:106-112 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:203-209 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:224-232 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 111 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:106` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×1
  • Duplicated block (8 lines × 4) app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:80 — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:80-87 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt:200-207 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoGridItem.kt:55-62 | app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListItem.kt:52-59 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderListItem.kt` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 111 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/folder/FolderGridItem.kt:80` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×1
  • Duplicated block (7–8 lines × 2) app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:482 — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:482-489 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt:246-252 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 95 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 `app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:482` it does not close everything it opens, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×1
  • Duplicated block (8 lines × 3) app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:557 — app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:557-564 | app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:577-584 | app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:602-609 — 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 — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication · Duplicated block (6–7 lines × 2) · ×1
  • Duplicated block (6–7 lines × 2) app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoParser.kt:399 — app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoParser.kt:399-404 | app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoParser.kt:412-418 — both copies are in the same file, so extract the block into one function there and call it from each site — 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 `app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoParser.kt:399` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (5–6 lines × 3) · ×1
  • Duplicated block (5–6 lines × 3) app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:129 — app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:129-134 | app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:598-602 | app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:80-85 — 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 — a location they all depend on today, or a new shared one if there is none — 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 `app/src/main/java/com/devson/nvplayer/data/media/MediaStoreHelper.kt:129` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (4–5 lines × 3) · ×1
  • Duplicated block (4–5 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:248 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:248-252 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:271-275 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:680-683 — 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 — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:248` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's 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 — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×1
  • Duplicated block (9 lines × 4) app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:765 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt:765-773 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt:281-289 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:591-599 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:683-691 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/AppearanceSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/CustomProfileSettingsScreen.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 137 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 — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (15 lines × 6) · ×1
  • Duplicated block (15 lines × 6) app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:394 — app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:394-408 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:437-451 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:480-494 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:530-544 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:427-441 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt:475-489 — before extracting anything, compare `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt` and `app/src/main/java/com/devson/nvplayer/ui/screen/settings/PlayerInterfaceSettingsScreen.kt` as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 335 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 — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `app/src/main/java/com/devson/nvplayer/ui/screen/settings/GestureSettingsScreen.kt:394` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×1
  • Duplicated block (11 lines × 3) app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:448 — app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:448-460 | app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:523-535 | app/src/main/java/com/devson/nvplayer/ui/screen/settings/VaultSettingsBottomSheet.kt:457-467 — there are 3 copies across 2 file(s) — 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 `app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:448` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — 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' 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 — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it.
DM4 · Rich vs anemic model · Anemic entity · ×1
  • Anemic entity: CachedVideoMetadata app/src/main/java/com/devson/nvplayer/data/database/CachedVideoMetadata.kt:7 — `CachedVideoMetadata` is an aggregate/entity with 10 data propert(ies) but no state-changing behaviour (only data and queries) — the business logic lives in a service.
P1 · CI/CD gates · No CI pipeline · ×1
  • No CI pipeline — No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
X15 · Unvalidated length from an untrusted reader · Length read from the parsed input is spent without ever being bounded · ×1
  • Length read from the parsed input is spent without ever being bounded app/src/main/java/com/devson/nvplayer/data/security/VaultFileFormat.kt:185 — `titleLen` is read from the bytes being parsed at line 184 (`readInt`), then used to size a `ByteArray` at line 185 — and nowhere in its scope is `titleLen` bounded from above — compared to a limit, clamped, or checked against the input that remains (a zero or sign test, or the loop that counts up to it, bounds nothing). Whoever wrote those bytes therefore chooses the allocation directly: a 32-bit length asks for up to 2 GiB before a single byte of the payload is known to exist, which either exhausts the heap with an `OutOfMemoryError` or, negative, throws `NegativeArraySizeException` out of a parser whose failure path was written for malformed input, not for hostile input. Bound `titleLen` against the bytes actually remaining and a maximum the format allows before allocating.
Minor — 44 finding(s)
X10 · Duplicated predicate · Duplicated predicate · ×21
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:601 — `buffer[0] == 0x47.toByte() || (read >= 376 && buffer[188] == 0x47.toByte())` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt, app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/security/VaultFileFormat.kt:264 — `bytes[0] == 0x1A.toByte() && bytes[1] == 0x45.toByte() && bytes[2] == 0xDF.toByte() && bytes[3] == 0xA3.toByte()` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/security/VaultFileFormat.kt, app/src/main/java/com/devson/nvplayer/data/security/VaultMigrationManager.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/security/VaultFileFormat.kt:270 — `bytes[0] == 0x52.toByte() && bytes[1] == 0x49.toByte() && bytes[2] == 0x46.toByte() && bytes[3] == 0x46.toByte()` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/security/VaultFileFormat.kt, app/src/main/java/com/devson/nvplayer/data/security/VaultMigrationManager.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/security/VaultFileFormat.kt:256 — `bytes[4] == 0x66.toByte() && bytes[5] == 0x74.toByte() && bytes[6] == 0x79.toByte() && bytes[7] == 0x70.toByte()` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/security/VaultFileFormat.kt, app/src/main/java/com/devson/nvplayer/data/security/VaultMigrationManager.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:261 — `dur <= 0L && format.containsKey(android.media.MediaFormat.KEY_DURATION)` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt, app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/repository/WatchHistoryRepository.kt:31 — `entity.folderName.equals("Vault", ignoreCase = true) || entity.uri.contains(".vault_secure_media") || entity.uri.contains("vault_playback") …` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/repository/WatchHistoryRepository.kt, app/src/main/java/com/devson/nvplayer/viewmodel/HomeViewModel.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/domain/model/Video.kt:83 — `firstChar != null && firstChar.isLetter()` appears character-identically in 3 files — app/src/main/java/com/devson/nvplayer/domain/model/Video.kt, app/src/main/java/com/devson/nvplayer/domain/model/VideoFolder.kt, app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScrollSectionHelper.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:258 — `h <= 0 && format.containsKey(android.media.MediaFormat.KEY_HEIGHT)` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt, app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt:310 — `it != PlayerButton.BACK_ARROW && it != PlayerButton.VIDEO_TITLE` appears character-identically in 3 files — app/src/main/java/com/devson/nvplayer/ui/common/PlayerControls.kt, app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt, app/src/main/java/com/devson/nvplayer/ui/screen/settings/ControlLayoutEditorScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/NosvedApplication.kt:64 — `level >= ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW || level == ComponentCallbacks2.TRIM_MEMORY_MODERATE || level == ComponentCallbacks2.TR…` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/NosvedApplication.kt, app/src/main/java/com/devson/nvplayer/player/service/MediaPlaybackService.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/ui/common/components/FastScroller.kt:65 — `listState?.isScrollInProgress == true || gridState?.isScrollInProgress == true` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/ui/common/components/FastScroller.kt, app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScroller.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:193 — `mime.contains("ass", ignoreCase = true) || mime.contains("ssa", ignoreCase = true)` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt, app/src/main/java/com/devson/nvplayer/data/media/VideoMetadataExtractor.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt:596 — `mime.contains("tx3g", ignoreCase = true) || mime.contains("quicktime", ignoreCase = true)` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/media/SubtitleExtractorHelper.kt, app/src/main/java/com/devson/nvplayer/data/media/VideoMetadataExtractor.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt:183 — `mostRecentHistoryUri != null && video.uri == mostRecentHistoryUri` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/explorer/ExplorerListContent.kt, app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/video/VideoListContent.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt:142 — `parent != null && parent.absolutePath.startsWith(rootFile.absolutePath)` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/ui/screen/StorageExplorerScreen.kt, app/src/main/java/com/devson/nvplayer/ui/screen/settings/FolderPickerBottomSheet.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:169 — `playbackSettings.saveBrightnessLevel && savedBrightness >= 0f` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt, app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/ui/common/components/fab/NosvedExpressiveFab.kt:71 — `previewData != null && previewData.hasValidMedia` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/ui/common/components/fab/NosvedExpressiveFab.kt, app/src/main/java/com/devson/nvplayer/ui/common/components/fab/NosvedFabOptions.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt:217 — `searchActive && searchSuggestions.isNotEmpty()` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/ui/screen/library/LibraryHomeScreen.kt, app/src/main/java/com/devson/nvplayer/ui/screen/videolist/components/topbar/VideoListTopAppBar.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:139 — `track.language.isNotBlank() && track.language != "und"` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt, app/src/main/java/com/devson/nvplayer/ui/screen/tools/SubtitleExtractionBottomSheet.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/player/tracker/WatchTracker.kt:107 — `u.contains(".vault_secure_media") || u.contains("vault_playback") || u.contains("playback_") || p.contains(".vault_secure_media") || p.conta…` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/player/tracker/WatchTracker.kt, app/src/main/java/com/devson/nvplayer/viewmodel/PlayerViewModel.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
  • Duplicated predicate app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt:255 — `w <= 0 && format.containsKey(android.media.MediaFormat.KEY_WIDTH)` appears character-identically in 2 files — app/src/main/java/com/devson/nvplayer/data/repository/VideoRepository.kt, app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
X7 · Silent fallback defaults · Silent fallback default in catch · ×14
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/data/media/MatroskaSubtitleDemuxer.kt:648 — `readFloat` swallows every exception into `0f` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/data/mediainfo/MediaInfoOps.kt:653 — `getRotation` swallows every exception into `0` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/data/security/VaultFileManager.kt:1140 — `extractDuration` swallows every exception into `0L` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/ui/common/GestureOverlay.kt:159 — `getSystemBrightness` (in `GestureOverlay`) swallows every exception into `0.5f` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/ui/common/components/fastscroll/FastScrollSectionHelper.kt:101 — `formatTimestamp` swallows every exception into `""` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/ui/screen/HistoryScreen.kt:1118 — `formatWatchedDate` swallows every exception into `"Watched"` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:60 — `AboutScreen` swallows every exception into `"1.0"` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:701 — `getTotalRam` swallows every exception into `"Unknown"` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:711 — `getGlEsVersion` swallows every exception into `"3.2"` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:733 — `getVulkanVersion` swallows every exception into `"Vulkan 1.1"` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:755 — `getKernelVersion` swallows every exception into `"Linux"` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/ui/screen/settings/AboutScreen.kt:771 — `getDisplayInfo` swallows every exception into `"Unknown"` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/util/FormatUtils.kt:15 — `formatDate` swallows every exception into `""` — 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.
  • Silent fallback default in catch app/src/main/java/com/devson/nvplayer/util/FormatUtils.kt:42 — `formatRelativeTime` swallows every exception into `""` — 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.
AX6 · Interface segregation · Fat interface · ×3
  • Fat interface: MediaLibraryDao (35 abstract methods) app/src/main/java/com/devson/nvplayer/data/database/MediaLibraryDao.kt:11 — `MediaLibraryDao` declares 35 abstract methods: `insertSeries`, `insertSeriesList`, `getSeriesById`, `getSeriesByTitle`, `getAllSeries`, `getAllSeriesSync`, `deleteSeries`, `insertSeason`, `insertSeasons`, `getSeasonsForSeries`, `getAllSeasonsSync`, `getSeasonByNumber`, `deleteSeason`, `insertEpisode`, `insertEpisodes`, `getAllEpisodesSync`, `getEpisodesForSeason`, `getEpisodeByUri`, `updateEpisodePlayback`, `deleteEpisode`, `deleteEpisodes`, `deleteEpisodeByUri`, `insertMovie`, `insertMovies`, `getMovieByUri`, `getAllMoviesSync`, `getAllMovies`, `updateMoviePlayback`, `deleteMovie`, `deleteMovies`, `deleteSeasons`, `deleteSeriesList`, `deleteOrphanedSeasons`, `deleteOrphanedSeries`, `updateSeriesSynopsis`. 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't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: WatchHistoryDao (25 abstract methods) app/src/main/java/com/devson/nvplayer/data/database/WatchHistoryDao.kt:10 — `WatchHistoryDao` declares 25 abstract methods: `insert`, `getAllHistoryFlow`, `getAllHistorySync`, `deleteHistory`, `getHistory`, `findExistingHistory`, `deleteAll`, `getNetworkStreams`, `getStreamByUri`, `insertStream`, `getActiveHistoryFlow`, `getActiveHistorySync`, `getDeletedHistoryFlow`, `getDeletedHistorySync`, `getByHistoryId`, `getHistoryByPath`, `getLocalHistorySync`, `setDeletedStatus`, `markAsDeleted`, `restoreHistory`, `getHistoryForDate`, `getHistoryForDateFlow`, `getHistoryBetweenDates`, `getCompletedVideosFlow`, `updatePlaybackProgress`. 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't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
  • Fat interface: PlayerEngine (31 abstract methods) app/src/main/java/com/devson/nvplayer/player/engine/PlayerEngine.kt:12 — `PlayerEngine` declares 31 abstract methods: `loadVideo`, `play`, `pause`, `togglePlayback`, `seekTo`, `setPlaybackSpeed`, `cycleSubtitle`, `cycleAudio`, `selectSubtitleTrack`, `selectAudioTrack`, `selectChapter`, `setSubtitleDelay`, `setSubtitleStyle`, `applySubtitleSettings`, `seekNextSubtitle`, `seekPrevSubtitle`, `addExternalSubtitle`, `setAudioBoost`, `setMpvVolume`, `setDecoder`, `setAspectMode`, `setVideoTrackEnabled`, `stepFrameForward`, `stepFrameBackward`, `setMute`, `isMuted`, `getEstimatedFrameCount`, `getEstimatedFrameNumber`, `seekToFrame`, `setAmbientMode`, `release`. 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't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found app/build.gradle.kts:7 — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` 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 (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — 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 `docs/adr/`. ADRs are expected here because `app/build.gradle.kts` makes this repository a deployable product (line 7).
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` 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.
M2 · Architecture documentation · No architecture diagram/doc · ×1
  • No architecture diagram/doc — No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" 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 — not evidence that nobody wrote the shape down.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST — No static application security testing detected. For this repository's stack, add spotbugs with find-sec-bugs (or `semgrep --config=auto`, which runs on any language) — 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's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
P3 · Security & performance tooling · No dependency-update automation · ×1
  • No dependency-update automation app/build.gradle.kts:140 — `app/build.gradle.kts` 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 — including after an advisory is published against it. Add a `.github/dependabot.yml` with one `package-ecosystem` entry per ecosystem the tree uses (or an enabled `renovate.json`), and gate pull requests with `actions/dependency-review-action`.
P6 · Release Hygiene · No changelog · ×1
  • No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)

Appendix B — Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=0 --max-count=200" --report-format json --report-path /tmp/watchdog-gitleaks-d60647c310d440158f5fd86ecef52b94/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=200 --max-count=91" --report-format json --report-path /tmp/watchdog-gitleaks-d60647c310d440158f5fd86ecef52b94/history-1.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-1.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-d60647c310d440158f5fd86ecef52b94/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt .2artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesnone (dependency manifest found, not scanned for vulnerabilities here)—none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).0—
D31 · IaC & Container Securitytrivy—trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. semgrep could not parse 2 file(s) — `app/src/main/java/com/devson/nvplayer/ui/screen/PlayerScreen.kt`, `app/src/main/java/com/devson/nvplayer/viewmodel/VideoListViewModel.kt` — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.0—
D36 · Supply-chain Provenance & Signingprovenance—provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.0—
D37 · Vulnerability-disclosure Policydisclosure—disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciesnone (dependency manifest found, not scanned for vulnerabilities here)—none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Gradle build (build.gradle/build.gradle.kts) and a Gradle version catalogue — not scanned yet).0—

Run 01a1e822-7f4d-79f8-a695-c266f343592e · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md