Public report of jordyamc/UKIKU, 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 reportMeasured 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, 18:30 UTC · Survey ID cd_5c86559d29134eaf8fffc7fe2cd32274
jordyamc/UKIKU
Measured 17 November 2026, 18:29 UTC, at code version 82559de
First survey, so nothing to compare with yet
CAI scoreWeak
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: 47,910 lines of product code in 3 projects, tests not counted · Estimated rebuild effort: about 0.3 person-years · Weakest lens: Production Readiness, 14.7
Findings by how serious they are
11 critical502 serious63 minor
12 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
Canine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 18:29 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.
568of 576 findings point to an exact file and line, so you can open each one in the code. The other 8 concern the repository as a whole, such as missing documentation.
46dimensions across 6 lenses, read from 47,910 lines of product code in 3 projects.
jordyamc/UKIKU falls short of our standard for production because seven passwords or keys sit in the current code and we found no working pipeline that builds or tests changes to the code. It scores 40.4 out of 100 and is rated Weak, and all 11 of its critical findings are leaked passwords or keys.
Production Readiness, at 14.7, is the weakest lens and counts most in the score. The best first step is replacing the seven exposed passwords or keys and switching the old ones off, worth about 20.5 points. Raising Production Readiness to 70 would lift the score to about 61.4.
Seven passwords or keys in the code and four in the code's history are open to anyone who can read the repository. Replacing each exposed password or key would close this risk.
The product code is 47,910 lines, about €41,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 forThe 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.
If Production Readiness rose from 14.7 to 70, the lowest score rated Strong, the score would rise from 40.4 to about 61.4.
Code composition: what the lines of code are
Product code 100%Tests 0%
Rebuild cost: about €41,000 · Estimate
Cost to rebuild
€14,000 to €68,000, for 226 to 717 hours of work, about 0.3 person-years for one engineer
Difficulty of the problem
Standard, 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 40. 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.
Size
Medium: 47,910 lines of product code
What it is not
Not 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
Resolve the 7 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (4), REDACTED (3).
Raises the score by about 20.5 points · Low effort · REDACTED Scanning
2
Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md.
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.
Raises the score by about 4.8 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 €41,000 to build again, about 0.3 person-years of work. Its weakest lens is Production Readiness, at 14.7 (Critical). 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
Resolve the 7 Leaked secret finding(s) in REDACTED Scanning. Of all the actions in this report, it raises the score most for the work it takes: about 20.5 points for low effort, because it clears the 7 REDACTED Scanning findings. 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 6.5 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 4% to 8% on every change. The history of the code shows how much it changes: about 16,840 lines over the last 90 days, which is about 68,296 lines a year. At that pace, the extra work comes to an estimated 6.3 to 37.9 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.
268 modules, with 309 dependencies between them. 5 loops run through 42 of the modules, marked above the diagonal.
The table shows the 40 modules with the most connections; 228 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.
backup.framework uses backup.objects, so a change to backup.objects can break backup.framework, while a change to backup.framework can't break backup.objects.
Position
Below the diagonal: backup.framework uses a module listed above it, which is the healthy direction.
pojos.av1.RecentAV1 uses pojos.av1, so a change to pojos.av1 can break pojos.av1.RecentAV1, while a change to pojos.av1.RecentAV1 can't break pojos.av1.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
pojos.av1 uses pojos.av1.RecentAV1, so a change to pojos.av1.RecentAV1 can break pojos.av1, while a change to pojos.av1 can't break pojos.av1.RecentAV1.
Position
Below the diagonal: pojos.av1 uses a module listed above it, which is the healthy direction.
animeinfo.viewholders.AnimeChaptersHolder uses pojos.av1, so a change to pojos.av1 can break animeinfo.viewholders.AnimeChaptersHolder, while a change to animeinfo.viewholders.AnimeChaptersHolder can't break pojos.av1.
Position
Below the diagonal: animeinfo.viewholders.AnimeChaptersHolder uses a module listed above it, which is the healthy direction.
tv.TVServersFactory uses pojos.av1, so a change to pojos.av1 can break tv.TVServersFactory, while a change to tv.TVServersFactory can't break pojos.av1.
Position
Below the diagonal: tv.TVServersFactory uses a module listed above it, which is the healthy direction.
animeinfo.viewholders uses pojos.av1, so a change to pojos.av1 can break animeinfo.viewholders, while a change to animeinfo.viewholders can't break pojos.av1.
Position
Below the diagonal: animeinfo.viewholders uses a module listed above it, which is the healthy direction.
animeinfo.viewholders uses animeinfo.viewholders.AnimeChaptersHolder, so a change to animeinfo.viewholders.AnimeChaptersHolder can break animeinfo.viewholders, while a change to animeinfo.viewholders can't break animeinfo.viewholders.AnimeChaptersHolder.
Position
Below the diagonal: animeinfo.viewholders uses a module listed above it, which is the healthy direction.
24→31 animeinfo.viewholders uses animeinfopart of a loop✕
Connections
4 pairs of types, where a type in animeinfo.viewholders uses a type in animeinfo.
animeinfo.viewholders uses animeinfo, so a change to animeinfo can break animeinfo.viewholders, while a change to animeinfo.viewholders can't break animeinfo.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
animeinfo.fragments uses custom.snackbar, so a change to custom.snackbar can break animeinfo.fragments, while a change to animeinfo.fragments can't break custom.snackbar.
Position
Below the diagonal: animeinfo.fragments uses a module listed above it, which is the healthy direction.
animeinfo.fragments uses pojos.av1, so a change to pojos.av1 can break animeinfo.fragments, while a change to animeinfo.fragments can't break pojos.av1.
Position
Below the diagonal: animeinfo.fragments uses a module listed above it, which is the healthy direction.
animeinfo.fragments uses animeinfo.viewholders.AnimeChaptersHolder, so a change to animeinfo.viewholders.AnimeChaptersHolder can break animeinfo.fragments, while a change to animeinfo.fragments can't break animeinfo.viewholders.AnimeChaptersHolder.
Position
Below the diagonal: animeinfo.fragments uses a module listed above it, which is the healthy direction.
animeinfo.fragments uses animeinfo.viewholders, so a change to animeinfo.viewholders can break animeinfo.fragments, while a change to animeinfo.fragments can't break animeinfo.viewholders.
Position
Below the diagonal: animeinfo.fragments uses a module listed above it, which is the healthy direction.
27→31 animeinfo.fragments uses animeinfopart of a loop✕
Connections
4 pairs of types, where a type in animeinfo.fragments uses a type in animeinfo.
animeinfo.fragments uses animeinfo, so a change to animeinfo can break animeinfo.fragments, while a change to animeinfo.fragments can't break animeinfo.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
27→36 animeinfo.fragments uses knf.kumapart of a loop✕
Connections
2 pairs of types, where a type in animeinfo.fragments uses a type in knf.kuma.
tv.details uses tv.TVServersFactory, so a change to tv.TVServersFactory can break tv.details, while a change to tv.details can't break tv.TVServersFactory.
Position
Below the diagonal: tv.details uses a module listed above it, which is the healthy direction.
animeinfo uses animeinfo.viewholders, so a change to animeinfo.viewholders can break animeinfo, while a change to animeinfo can't break animeinfo.viewholders.
Position
Below the diagonal: animeinfo uses a module listed above it, which is the healthy direction.
animeinfo uses animeinfo.fragments, so a change to animeinfo.fragments can break animeinfo, while a change to animeinfo can't break animeinfo.fragments.
Position
Below the diagonal: animeinfo uses a module listed above it, which is the healthy direction.
backup.firestore.data uses pojos.av1, so a change to pojos.av1 can break backup.firestore.data, while a change to backup.firestore.data can't break pojos.av1.
Position
Below the diagonal: backup.firestore.data uses a module listed above it, which is the healthy direction.
profile uses backup.firestore.data, so a change to backup.firestore.data can break profile, while a change to profile can't break backup.firestore.data.
Position
Below the diagonal: profile uses a module listed above it, which is the healthy direction.
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 category
Findings
Severity
A05:2025 — Injection
17
Medium
A07:2025 — Authentication Failures
12
High / Critical
Roadmap
Top priorities: Resolve the 7 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (4), REDACTED (3); Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md; Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Resolve the 7 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (4), REDACTED (3).
Resolve the 1 `mBackgroundURI` spells `URI` where 15 names in the project spell it… finding(s) in Naming Consistency — start with GlideBackgroundManager.kt.
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.
Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
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.
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 — 11
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 — 502
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 — 63
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 12
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.9, 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
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
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, 568 of 576 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.)
Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
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.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
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 (.java, .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 (.java, .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 119 dependency(ies) and leaving 0 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-maintainer repository — bus factor is not applicable (3 contributor(s) across 324 commit(s) sampled, automation and bot accounts excluded). One of them holds 99% of the history; the other 2 hold 0.5% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
D21 Naming Consistency — 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. 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.
D21 Naming Consistency — 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. 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's deterministic call-shape rules are gated per language (docs/plans/deterministic-engine.md, P5; C# and each NeutralApiArms arm pass): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
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.
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/knf/kuma/achievements/AchievementManager.kt`, `app/src/main/java/knf/kuma/changelog/ChangelogActivity.kt`, `app/src/main/java/knf/kuma/changelog/ChangelogActivityMaterial.kt`, `app/src/main/java/knf/kuma/commons/ExtensionUtils.kt`, `app/src/main/java/knf/kuma/player/MediaCatalog.kt`, … (+2 more) 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.
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: -8.10.2-bin/a04bxjujx95o3nb99gddekhwo/gradle-8.10.2/lib/agents/gradle-instrumentation-agent-8.10.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.10.2
Please read the following process output…; runtime evidence skipped (launch chosen because app/build.gradle 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.
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 this repository's Kotlin is most of its product and 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 this repository's Kotlin is most of its product and 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.
X1 Async correctness — 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. This check's reader does not cover every language in this repository. The score describes the part it read, which is most of the product; the rest is a gap in this analyzer's language reach.
X10 Duplicated predicate — 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. 1 further occurrence(s) are not listed individually; the score already reflects all 41.
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. 23 further occurrence(s) are not listed individually; the score already reflects all 63.
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 REDACTED Scanning: REDACTED 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.
D21 Naming Consistency: Naming consistency compares each name with the convention its structural peers follow in this repository: it cannot tell whether a consistently used name is a good one, and languages other than C# and TypeScript are not measured.
D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
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.
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.
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.
18 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was AnimeChaptersAdapterMaterial.onBindViewHolder at 40. A further 9 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 AchievementManager.getIcon at 30 — they are counted neither in the figure above nor in this dimension's score. 4 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold methods was excluded, so the exclusion is disclosed nowhere in the file itself: app/src/main/java/knf/kuma/achievements/AchievementManager.kt (AchievementManager.getIcon at 30), app/src/main/java/knf/kuma/commons/EAHelper.kt (EAHelper.getTheme at 22), app/src/main/java/knf/kuma/ads/AdsUtilsBrains.kt (AdsUtilsBrainsKt.implBannerBrains at 21), app/src/main/java/knf/kuma/ads/AdsUtilsMob.kt (AdsUtilsMobKt.implBannerMob at 21). 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.
+ 13 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 18 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with AnimeChaptersAdapterMaterial.onBindViewHolder (cyclomatic 40), ConfigurationFragment.onCreatePreferences (cyclomatic 38), ConfigurationFragmentMaterial.onCreatePreferences (cyclomatic 38). — 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 18 together lifts Cyclomatic Complexity from 7.5 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
+ 42 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 5 bodies over 60 down to 60 or less in Cognitive Complexity — start with ConfigurationFragment.onCreatePreferences (cognitive 88), ConfigurationFragmentMaterial.onCreatePreferences (cognitive 88), ExplorerCreator.doMigrateDownloads (cognitive 68). — 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 5 together lifts Cognitive Complexity from 6.1 to about 6.5/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.
Do you agree with this assessment?
D3 · God Classes8.5 / 10Strong✓ 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.
Resolve the 25 MethodTooLong finding(s) in God Classes — start with CacheDB.kt (18), AchievementUnlocked.java (2), ConfigurationFragmentMaterial.kt. — One of this dimension's main actionable groups (25 warning-level).
Resolve the 6 TooManyMethods finding(s) in God Classes — start with PersistentSearchView.java, TlsOnlySocketFactory.java, AchievementUnlocked.java. — One of this dimension's main actionable groups (6 warning-level).
Resolve the 5 ClassTooLong finding(s) in God Classes — start with AchievementUnlocked.java, PersistentSearchView.java, AnimeObject.java. — One of this dimension's main actionable groups (5 warning-level).
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D4 · Code Duplication2.8 / 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.
202 duplicated block group(s) detected. 18.1 % of the production lines (8,679 of 47,910) are in a reported copy. A further 117 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.
+ 120 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 19 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with Main.kt (3), ActivityAnime.kt (2), DownloadManager.kt (2). — One of this dimension's main actionable groups (19 warning-level).
Resolve the 18 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with DownloadManager.kt (2), DetailsFragment.kt (2), ActivityAnime.kt. — One of this dimension's main actionable groups (18 warning-level).
Resolve the 16 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with FileAccessHelper.kt (2), ActivityAnime.kt (2), ExplorerPagerAdapter.kt (2). — One of this dimension's main actionable groups (16 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
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.
3 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 2 of the 3 (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).
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.
Resolve the 4 Low cohesion finding(s) in Cohesion (LCOM4) — start with AnimeChaptersAdapterMaterial.kt, RecentsAV1Adapter.kt, AnimeRow.kt. — One of this dimension's main actionable groups (4 warning-level).
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
Resolve the 7 Leaked secret finding(s) in REDACTED Scanning — start with REDACTED (4), REDACTED (3). — One of this dimension's main actionable groups (7 issue-level).
Detailed fixes: d13_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
0 of 42 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. A further 75 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.
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.
Resolve the 4 Hotspot finding(s) in Churn × Complexity Hotspots — start with AnimeChaptersAdapterMaterial.kt, FileActions.kt, FirestoreManager.kt. — One of this dimension's main actionable groups (4 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
0 deducted task-comment markers across 47910 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.
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.
0 of 1 documentation facets pass in full; short on: F2 example. 1 document(s) read across 3 unit(s).
Documentation: no build, run or usage exampleREADME.md:1
What to do
Resolve the 1 Documentation finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d19_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
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.
Resolve the 1 No ADRs found finding(s) in ADR Quality — start with build.gradle. — 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.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Seven vocabulary-free rules (N1-N7) mine each naming convention from the repository and flag a name that breaks a convention its structural peers in the same unit follow; production C# and TypeScript, each its own population. Deterministic, no model, no sample. Advisory.
1 naming inconsistencies among 16 declarations measured against a convention their peers follow.
`mBackgroundURI` spells `URI` where 15 names in the project spell it `Uri`app/src/main/java/knf/kuma/tv/GlideBackgroundManager.kt:21
What to do
Resolve the 1 `mBackgroundURI` spells `URI` where 15 names in the project spell it… finding(s) in Naming Consistency — start with GlideBackgroundManager.kt. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d21_recommendation.md · top locations in Appendix A, every location in findings.md.
1 of 2 build units (Gradle) flagged as possibly oversized/incoherent.
Projects may be oversized for their cohesionapp/build.gradle:1
What to do
Resolve the 1 Projects may be oversized for their cohesion finding(s) in Project Cohesion — start with build.gradle. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d26_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: REDACTED 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.
4 finding(s): 0 critical, 4 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 4 REDACTED finding(s) in Secrets (history) — start with REDACTED (2), REDACTED, REDACTED. — One of this dimension's main actionable groups (4 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
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).
17 finding(s): 0 critical, 0 high, 17 medium, 0 low. semgrep hit a parse error in 3 file(s) — `app/src/main/java/knf/kuma/achievements/AchievementManager.kt` (line 157, lines 159–160, line 161, …), `app/src/main/java/knf/kuma/changelog/ChangelogActivity.kt` (line 99), `app/src/main/java/knf/kuma/changelog/ChangelogActivityMaterial.kt` (line 103) — 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
What to do
Resolve the 17 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (17). — One of this dimension's main actionable groups (17 warning-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
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.
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 207 of the 469 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
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.
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.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 119 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.
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.
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.
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.
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.
`CacheDB` declares 18 abstract methods: `animeDAO`, `favsDAO`, `seenDAO`, `notificationDAO`, `downloadsDAO`, `recordsDAO`, `seeingDAO`, `explorerDAO`, `queueDAO`, `achievementsDAO`, `playerStateDAO`, `recentAV1DAO`, `directoryDAO`, `favoriteAV1DAO`, `organizerDAO`, `recordAV1DAO`, `genreRecordDAO`, `calendarBlacklistDAO`. 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/knf/kuma/database/CacheDB.kt:77
`OrganizerDao` declares 16 abstract methods: `getFlowByState`, `countByState`, `getByStatePaging`, `getSimpleByStatePaging`, `countAll`, `getByAid`, `getAllWState`, `isSeeing`, `isSeeingAll`, `isAnimeCompleted`, `isAnimeCompletedLive`, `add`, `addAll`, `update`, `remove`, `clear`. 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/knf/kuma/pojos/av1/Organizer.kt:70
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
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
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
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.
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.
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.
Do you agree with this assessment?
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.
Do you agree with this assessment?
P10 · Library API & versioning6.0 / 10Adequate✓ Tool-verified
Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.
Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language's code model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.
No explicit version was found for the Maven/Gradle library declared by `build.gradle`. This check read a `<version>` in pom.xml, or `version` in build.gradle(.kts) or gradle.properties, and a CHANGELOG/CHANGES/HISTORY/NEWS/RELEASES file with a semver heading, or release tooling (changesets, release-please, semantic-release, goreleaser, cargo-release, bump2version, standard-version, git-cliff) in the library's directory or at the repository root, or a semver release tag (or a Drupal `8.x-1.2` release tag) in the repository. A version computed where none of those can see is invisible here. A published library needs explicit semantic versioning so consumers can reason about breaking changes. — persistentsearchview/build.gradle
What to do
Declare the version where the ecosystem expects it, or keep a CHANGELOG with semver release headings, and follow semver for breaking changes.
Do you agree with this assessment?
P2 · Observability0.0 / 10Critical✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.
What to do
Write a diagnostic trail the user can hand back with a bug report: a log file under the platform's per-user data directory, switchable with a `--verbose`/`--debug` flag. Start with the error paths that emit nothing — a discarded error is the failure the user cannot describe and you cannot reproduce.
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.
`build.gradle` 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`. — build.gradle:16
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.
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.
Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.
Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.
`.openConnection(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — app/src/main/java/knf/kuma/commons/SelfServer.kt:144
`Retrofit.Builder(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — app/src/main/java/knf/kuma/news/NewsObjects.kt:158
What to do
Set connect and read timeouts on every client (`RestTemplateBuilder.connectTimeout/readTimeout`, WebClient `responseTimeout`, `HttpRequest.Builder.timeout`, `HttpURLConnection.setReadTimeout`, Feign `connectTimeout`/`readTimeout` in configuration), and wrap calls to dependencies in resilience4j `@Retry`/`@CircuitBreaker`/`@TimeLimiter` (or Spring Retry).
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.
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.
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.
Do you agree with this assessment?
X13 · Undrained process stream10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a child process that has BOTH standard streams redirected drains both — reading one to the end while the other is never read deadlocks once the child fills the unread pipe.
Method: Roslyn syntax + semantics: ProcessStartInfo launches with both streams redirected, checked for a drain of each stream across the enclosing type. 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 `spawn` imported from `child_process` whose stdout and stderr are both pipes (no options, no `stdio`, or `stdio` of `'pipe'`), bound to a local that never leaves its scope, where exactly one of the two streams is read, the other never, and the child’s `close`/`exit` (or the read stream’s end) is awaited; a shell redirect in the call’s arguments or a `kill` of the child suppresses it. The same rule reads Python’s `subprocess.Popen`, Dart’s `Process.start`, Ruby’s `Open3.popen3`, and Scala’s JDK process starts (`new ProcessBuilder(…).start()` with no `redirectErrorStream`/`redirectError`/`redirectOutput`/`inheritIO`, `Runtime.getRuntime.exec`) where one of `getInputStream`/`getErrorStream` is read and the other never while `waitFor()` is called or the read stream is read to its end. Deterministic, provable per finding. Advisory.
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.
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.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether suspend functions that make a cancellable request accept or pass on the coroutine's cancellation (adoption curve).
Method: Roslyn scan: every async method (excluding framework-fixed overrides/Blazor handlers) checked for CancellationToken parameter presence. Deterministic, adoption percentage. 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 question: every named async function that itself makes a request an AbortSignal can cancel (global `fetch`, axios and its file-local instances, ky, ofetch) counts, and it is compliant when its parameters or body name a signal or it hands one of its own parameters to the request as options; signatures a framework fixes (JSX event handlers, route and lifecycle exports, request-first handlers, `override`, `'use server'` modules, TanStack `mutationFn`) are exempt unless they take a signal. Deterministic, adoption percentage.
Only 0/6 suspend functions that make a cancellable request (Ktor, OkHttp newCall, URL streams) accept the coroutine's cancellation or pass one on, so a request keeps running after whatever wanted it has given up — a screen navigated away from, a disposed widget, a superseded search. In a suspend function, make the request with a call that suspends — Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` that cancels the `Call` — not a blocking `execute()`: `withContext(Dispatchers.IO)` moves the call off the caller's thread but does not make it cancellable; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
`loadDirectory` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`. — app/src/main/java/knf/kuma/migration/MigrationActivity.kt:102
`loadDefinitions` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`. — app/src/main/java/knf/kuma/migration/MigrationActivity.kt:116
`createList` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`. — app/src/main/java/knf/kuma/home/StaffRecommendations.kt:17
`doMigrateDownloads` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`. — app/src/main/java/knf/kuma/explorer/ExplorerCreator.kt:99
`doNetworkTests` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`. — app/src/main/java/knf/kuma/custom/ConnectionState.kt:109
`checkStatus` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`. — app/src/main/java/knf/kuma/ads/SubscriptionReceiver.kt:45
What to do
Thread the coroutine's cancellation through suspend functions that make requests, so the work stops when its caller gives up.
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.
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.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether an enhanced `for` leaves the collection it is walking alone — a body that adds to or removes from the very collection the loop is iterating invalidates the fail-fast iterator it is holding, so the next `next()` throws `ConcurrentModificationException` and the remaining elements are never seen. 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.
Do you agree with this assessment?
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.
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.
`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. (×4) — app/src/main/java/knf/kuma/Diagnostic.kt:84, app/src/main/java/knf/kuma/queue/QueueActivity.kt:227, app/src/main/java/knf/kuma/favorite/FavsSectionAdapter.kt:96, …
`catch (_: Throwable)` 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. — app/src/main/java/knf/kuma/DiagnosticMaterial.kt:86
`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. (×18) — app/src/main/java/knf/kuma/videoservers/HyperionServer.kt:43, app/src/main/java/knf/kuma/videoservers/IzanagiServer.kt:27, app/src/main/java/knf/kuma/videoservers/PixelServer.kt:28, …
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. (×11) — app/src/main/java/knf/kuma/search/GenresDialog.kt:49, app/src/main/java/knf/kuma/search/GenresDialog.kt:57, app/src/main/java/knf/kuma/news/NewsDialog.kt:53, …
`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/knf/kuma/pojos/AnimeObject.java:171, app/src/main/java/knf/kuma/pojos/AnimeObject.java:224, app/src/main/java/knf/kuma/pojos/AnimeObject.java:477, …
`catch (Throwable)` 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. — app/src/main/java/knf/kuma/pojos/AnimeObject.java:568
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.
Do you agree with this assessment?
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.
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 — 40 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
X7 Silent fallback defaults — 9 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 — 67 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 applicable: this repository's Java imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's Kotlin imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
AX2 Stateful singletons — No container singleton was found, so there is no shared instance for concurrent requests to race on. No class in this Java code is a Spring, JSR-330 or CDI singleton bean. 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: -8.10.2-bin/a04bxjujx95o3nb99gddekhwo/gradle-8.10.2/lib/agents/gradle-instrumentation-agent-8.10.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.10.2
Please read the following process output…; runtime evidence skipped (launch chosen because app/build.gradle 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 — ~67 lines of test source are present (.java, .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 119 dependency(ies) and leaving 0 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-maintainer 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.
D22 Internal API Consistency — API consistency is measured on C#, TypeScript, Go only; the exposed Java surface was not measured.
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 .java, .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
D27 Navigability — symbol resolution incomplete — navigability not assessed
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) — 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) — 7 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) — 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 Domain Modelling — applicable but not scored (2 of 3 signals for this style — below the bar we score at): 100 value object(s); 2 repository port(s) loading or saving an aggregate/entity
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
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.
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
X15 Unvalidated length from an untrusted reader — 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
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 applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X26 Unsynchronised callback handoff — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
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.
Swallowed exception (caught, then discarded) app/src/main/java/knf/kuma/Diagnostic.kt:84— `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/knf/kuma/DiagnosticMaterial.kt:86— `catch (_: Throwable)` 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/knf/kuma/videoservers/HyperionServer.kt:43— `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/knf/kuma/videoservers/IzanagiServer.kt:27— `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/knf/kuma/videoservers/PixelServer.kt:28— `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/knf/kuma/videoservers/RVServer.kt:59— `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/knf/kuma/videoservers/TransferIt.kt:44— `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/knf/kuma/videoservers/UPNServer.kt:39— `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/knf/kuma/videoservers/ZillaServer.kt:32— `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/knf/kuma/queue/QueueActivity.kt:227— `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/knf/kuma/pojos/AnimeObject.java:171— `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/knf/kuma/pojos/AnimeObject.java:224— `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/knf/kuma/pojos/AnimeObject.java:477— `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/knf/kuma/pojos/AnimeObject.java:568— `catch (Throwable)` 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/knf/kuma/pojos/AnimeObject.java:619— `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/knf/kuma/pojos/QueueObject.java:94— `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/knf/kuma/pojos/av1/DirectoryAV1.kt:528— `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/knf/kuma/jobscheduler/RecentsWork.kt:176— `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/knf/kuma/favorite/FavoriteFragment.kt:94— `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/knf/kuma/favorite/FavsSectionAdapter.kt:96— `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/knf/kuma/explorer/ExplorerChapsAdapter.kt:185— `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/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt:188— `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/knf/kuma/download/DownloadManagerCentral.kt:13— `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/knf/kuma/download/FileAccessHelper.kt:86— `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/knf/kuma/download/FileAccessHelper.kt:241— `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.
MethodTooLong: CacheDB.animeDAO app/src/main/java/knf/kuma/database/CacheDB.kt:79— MethodTooLong — animeDAO 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: CacheDB.favsDAO app/src/main/java/knf/kuma/database/CacheDB.kt:81— MethodTooLong — favsDAO runs 234 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 134 over it, 2.34× 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: CacheDB.seenDAO app/src/main/java/knf/kuma/database/CacheDB.kt:83— MethodTooLong — seenDAO runs 233 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 133 over it, 2.33× 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: CacheDB.notificationDAO app/src/main/java/knf/kuma/database/CacheDB.kt:85— MethodTooLong — notificationDAO runs 232 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 132 over it, 2.32× 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: CacheDB.downloadsDAO app/src/main/java/knf/kuma/database/CacheDB.kt:87— MethodTooLong — downloadsDAO 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: CacheDB.recordsDAO app/src/main/java/knf/kuma/database/CacheDB.kt:89— MethodTooLong — recordsDAO runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.30× 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: CacheDB.seeingDAO app/src/main/java/knf/kuma/database/CacheDB.kt:91— MethodTooLong — seeingDAO runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.29× 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: CacheDB.explorerDAO app/src/main/java/knf/kuma/database/CacheDB.kt:93— MethodTooLong — explorerDAO runs 228 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 128 over it, 2.28× 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: CacheDB.queueDAO app/src/main/java/knf/kuma/database/CacheDB.kt:95— MethodTooLong — queueDAO runs 227 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 127 over it, 2.27× 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: CacheDB.achievementsDAO app/src/main/java/knf/kuma/database/CacheDB.kt:97— MethodTooLong — achievementsDAO runs 226 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 126 over it, 2.26× 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: CacheDB.playerStateDAO app/src/main/java/knf/kuma/database/CacheDB.kt:99— MethodTooLong — playerStateDAO runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.25× 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: CacheDB.recentAV1DAO app/src/main/java/knf/kuma/database/CacheDB.kt:101— MethodTooLong — recentAV1DAO runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.24× 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: CacheDB.directoryDAO app/src/main/java/knf/kuma/database/CacheDB.kt:103— MethodTooLong — directoryDAO runs 223 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 123 over it, 2.23× 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: CacheDB.favoriteAV1DAO app/src/main/java/knf/kuma/database/CacheDB.kt:105— MethodTooLong — favoriteAV1DAO runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.22× 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: CacheDB.organizerDAO app/src/main/java/knf/kuma/database/CacheDB.kt:107— MethodTooLong — organizerDAO runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21× 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: ConfigurationFragmentMaterial.onCreatePreferences app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:79— MethodTooLong — onCreatePreferences runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21× 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: CacheDB.recordAV1DAO app/src/main/java/knf/kuma/database/CacheDB.kt:109— MethodTooLong — recordAV1DAO runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.20× 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: CacheDB.genreRecordDAO app/src/main/java/knf/kuma/database/CacheDB.kt:111— MethodTooLong — genreRecordDAO runs 219 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 119 over it, 2.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: CacheDB.calendarBlacklistDAO app/src/main/java/knf/kuma/database/CacheDB.kt:113— MethodTooLong — calendarBlacklistDAO runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18× 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: ConfigurationFragment.onCreatePreferences app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:79— MethodTooLong — onCreatePreferences runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.18× 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: Server.<init> app/src/main/java/knf/kuma/commons/SelfServer.kt:123— MethodTooLong — <init> runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53× 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: AchievementUnlocked.animateData app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:899— MethodTooLong — animateData runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23× 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: AppInfoFragment.getMaterialAboutList app/src/main/java/knf/kuma/AppInfoFragment.kt:72— MethodTooLong — getMaterialAboutList runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21× 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: AchievementUnlocked.initGlobalFields app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:278— MethodTooLong — initGlobalFields runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.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: FileActions.execute app/src/main/java/knf/kuma/videoservers/FileActions.kt:125— MethodTooLong — execute runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03× 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.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/Diagnostic.kt:348— app/src/main/java/knf/kuma/Diagnostic.kt:348-357 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:346-355 — before extracting anything, compare `app/src/main/java/knf/kuma/Diagnostic.kt` and `app/src/main/java/knf/kuma/DiagnosticMaterial.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 216 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.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/Main.kt:557— app/src/main/java/knf/kuma/Main.kt:557-566 | app/src/main/java/knf/kuma/MainMaterial.kt:501-510 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/Main.kt:596— app/src/main/java/knf/kuma/Main.kt:596-605 | app/src/main/java/knf/kuma/MainMaterial.kt:523-532 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/Main.kt:616— app/src/main/java/knf/kuma/Main.kt:616-625 | app/src/main/java/knf/kuma/MainMaterial.kt:539-548 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/SplashActivity.kt:135— app/src/main/java/knf/kuma/SplashActivity.kt:135-144 | app/src/main/java/knf/kuma/tv/ui/TVMain.kt:87-96 — 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/knf/kuma/SplashActivity.kt:135` 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/knf/kuma/SplashActivity.kt:147` calls `toastLong` and `app/src/main/java/knf/kuma/tv/ui/TVMain.kt:100` 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 (10 lines × 2) app/src/main/java/knf/kuma/ads/AdsUtils.kt:171— app/src/main/java/knf/kuma/ads/AdsUtils.kt:171-180 | app/src/main/java/knf/kuma/ads/AdsUtils.kt:194-203 — 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/knf/kuma/ads/AdsUtils.kt:171` 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/knf/kuma/animeinfo/ActivityAnime.kt:212— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:212-221 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:211-220 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:88— app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:88-97 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsMaterialHolder.kt:86-95 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt` and `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsMaterialHolder.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:88` 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/knf/kuma/cast/CastMedia.kt:32— app/src/main/java/knf/kuma/cast/CastMedia.kt:32-41 | app/src/main/java/knf/kuma/cast/CastMedia.kt:52-61 — 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/knf/kuma/cast/CastMedia.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 (10 lines × 2) app/src/main/java/knf/kuma/commons/CipherExt.kt:21— app/src/main/java/knf/kuma/commons/CipherExt.kt:21-30 | app/src/main/java/knf/kuma/commons/CipherExt.kt:69-78 — 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/knf/kuma/commons/SelfServer.kt:232— app/src/main/java/knf/kuma/commons/SelfServer.kt:232-241 | app/src/main/java/knf/kuma/commons/SelfServer.kt:301-310 — 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/knf/kuma/commons/SelfServer.kt:232` 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 (10 lines × 2) app/src/main/java/knf/kuma/download/DownloadManager.kt:93— app/src/main/java/knf/kuma/download/DownloadManager.kt:93-102 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:106-115 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/download/DownloadManager.kt:313— app/src/main/java/knf/kuma/download/DownloadManager.kt:313-322 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:327-336 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt:35— app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt:35-44 | app/src/main/java/knf/kuma/explorer/FragmentFilesRootMaterial.kt:36-45 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt` and `app/src/main/java/knf/kuma/explorer/FragmentFilesRootMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/videoservers/FileActions.kt:492— app/src/main/java/knf/kuma/videoservers/FileActions.kt:492-501 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:571-580 — 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/knf/kuma/videoservers/FileActions.kt:492` 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 first that the copies are not typed on the same thing: the declarations holding them bind `context` to `Context` in one and `Context?` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:223— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:223-232 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:222-231 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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 (10 lines × 2) app/src/main/java/knf/kuma/migration/MigrationActivity.kt:167— app/src/main/java/knf/kuma/migration/MigrationActivity.kt:167-177 | app/src/main/java/knf/kuma/migration/MigrationActivity.kt:244-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/knf/kuma/migration/MigrationActivity.kt:167` 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/knf/kuma/migration/MigrationActivity.kt:190— app/src/main/java/knf/kuma/migration/MigrationActivity.kt:190-200 | app/src/main/java/knf/kuma/migration/MigrationActivity.kt:285-294 — 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/knf/kuma/migration/MigrationActivity.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.
Duplicated block (10 lines × 2) app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:390— app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:390-399 | app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:407-416 — 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/knf/kuma/custom/AchievementUnlocked.java: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.
Duplicated block (9 lines × 2) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:325— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:325-333 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:325-333 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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.
Duplicated block (9 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:25— app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:25-33 | app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt:27-35 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt:26` calls `setSurfaceBars` and `app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:24` 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 (9 lines × 2) app/src/main/java/knf/kuma/explorer/FragmentFiles.kt:62— app/src/main/java/knf/kuma/explorer/FragmentFiles.kt:62-70 | app/src/main/java/knf/kuma/explorer/FragmentFilesMaterial.kt:61-69 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentFiles.kt` and `app/src/main/java/knf/kuma/explorer/FragmentFilesMaterial.kt` as WHOLE FILES: 88% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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 (9 lines × 2) app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt:75— app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt:75-83 | app/src/main/java/knf/kuma/explorer/FragmentFilesRootMaterial.kt:76-84 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt` and `app/src/main/java/knf/kuma/explorer/FragmentFilesRootMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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.
Duplicated block (9 lines × 2) app/src/main/java/knf/kuma/faq/FaqActivity.kt:26— app/src/main/java/knf/kuma/faq/FaqActivity.kt:26-34 | app/src/main/java/knf/kuma/faq/FaqActivityMaterial.kt:28-36 — 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/knf/kuma/faq/FaqActivity.kt:26` 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/knf/kuma/faq/FaqActivityMaterial.kt:27` calls `setSurfaceBars` and `app/src/main/java/knf/kuma/faq/FaqActivity.kt:25` 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 (9 lines × 2) app/src/main/java/knf/kuma/videoservers/WebJS.kt:108— app/src/main/java/knf/kuma/videoservers/WebJS.kt:108-116 | app/src/main/java/knf/kuma/videoservers/WebJS.kt:155-163 — 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/knf/kuma/achievements/AchievementActivity.kt:222— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:222-230 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:222-230 — before extracting anything, compare `app/src/main/java/knf/kuma/achievements/AchievementActivity.kt` and `app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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.
Duplicated block (9 lines × 2) app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeActivityHolder.kt:107— app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeActivityHolder.kt:107-115 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeActivityMaterialHolder.kt:107-115 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeActivityHolder.kt` and `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeActivityMaterialHolder.kt` as WHOLE FILES: 96% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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 (9 lines × 2) app/src/main/java/knf/kuma/download/DownloadManager.kt:439— app/src/main/java/knf/kuma/download/DownloadManager.kt:439-447 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:453-461 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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.
Duplicated block (9 lines × 2) app/src/main/java/knf/kuma/profile/TopActivity.kt:103— app/src/main/java/knf/kuma/profile/TopActivity.kt:103-111 | app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt:114-122 — before extracting anything, compare `app/src/main/java/knf/kuma/profile/TopActivity.kt` and `app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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.
Duplicated block (9 lines × 2) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:233— app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:233-241 | app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:225-233 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt` and `app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 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. 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/knf/kuma/download/DownloadManager.kt:344— app/src/main/java/knf/kuma/download/DownloadManager.kt:344-352 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:358-366 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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 (9 lines × 2) app/src/main/java/knf/kuma/explorer/DownloadingAdapter.kt:122— app/src/main/java/knf/kuma/explorer/DownloadingAdapter.kt:122-130 | app/src/main/java/knf/kuma/explorer/DownloadingAdapterMaterial.kt:117-125 — 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 (9 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt:29— app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt:29-37 | app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapterMaterial.kt:29-37 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapterMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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 (9 lines × 2) app/src/main/java/knf/kuma/animeinfo/fragments/DetailsFragment.kt:20— app/src/main/java/knf/kuma/animeinfo/fragments/DetailsFragment.kt:20-28 | app/src/main/java/knf/kuma/animeinfo/fragments/DetailsFragmentMaterial.kt:20-28 — 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 (9 lines × 2) app/src/main/java/knf/kuma/animeinfo/fragments/DetailsFragment.kt:30— app/src/main/java/knf/kuma/animeinfo/fragments/DetailsFragment.kt:30-38 | app/src/main/java/knf/kuma/animeinfo/fragments/DetailsFragmentMaterial.kt:30-38 — 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. 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/knf/kuma/changelog/ChangelogActivityMaterial.kt:63— app/src/main/java/knf/kuma/changelog/ChangelogActivityMaterial.kt:63-71 | app/src/main/java/knf/kuma/emision/EmissionActivityMaterial.kt:35-43 — 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 (9 lines × 2) app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:819— app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:819-827 | app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:1097-1105 — 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 (8 lines × 2) app/src/main/java/knf/kuma/commons/FileUtil.kt:205— app/src/main/java/knf/kuma/commons/FileUtil.kt:205-212 | app/src/main/java/knf/kuma/commons/FileUtil.kt:244-251 — 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/knf/kuma/commons/FileUtil.kt:205` 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/knf/kuma/download/FileAccessHelper.kt:376— app/src/main/java/knf/kuma/download/FileAccessHelper.kt:376-383 | app/src/main/java/knf/kuma/download/FileAccessHelper.kt:403-410 — 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/knf/kuma/download/FileAccessHelper.kt:376` 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/knf/kuma/download/FileAccessHelper.kt:481— app/src/main/java/knf/kuma/download/FileAccessHelper.kt:481-488 | app/src/main/java/knf/kuma/download/FileAccessHelper.kt:504-511 — 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/knf/kuma/download/FileAccessHelper.kt:481` 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 (8 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:65— app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:65-72 | app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt:64-71 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 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/knf/kuma/explorer/ExplorerChapsAdapter.kt:65` 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/knf/kuma/explorer/FragmentChapters.kt:57— app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:57-64 | app/src/main/java/knf/kuma/explorer/FragmentChaptersMaterial.kt:57-64 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentChapters.kt` and `app/src/main/java/knf/kuma/explorer/FragmentChaptersMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 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.
Duplicated block (8 lines × 2) app/src/main/java/knf/kuma/queue/QueueManager.kt:47— app/src/main/java/knf/kuma/queue/QueueManager.kt:47-54 | app/src/main/java/knf/kuma/queue/QueueManager.kt:76-83 — 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 (8 lines × 2) app/src/main/java/knf/kuma/recents/RecentAV1ModelsAdapter.kt:89— app/src/main/java/knf/kuma/recents/RecentAV1ModelsAdapter.kt:89-96 | app/src/main/java/knf/kuma/recents/RecentAV1ModelsAdapter.kt:147-154 — 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/knf/kuma/recents/RecentAV1ModelsAdapter.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.
Duplicated block (8 lines × 2) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:315— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:315-322 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:315-322 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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.
Duplicated block (8 lines × 2) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:183— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:183-190 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:182-189 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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 (8 lines × 2) app/src/main/java/knf/kuma/explorer/FragmentDownloads.kt:56— app/src/main/java/knf/kuma/explorer/FragmentDownloads.kt:56-63 | app/src/main/java/knf/kuma/explorer/FragmentDownloadsMaterial.kt:57-64 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentDownloads.kt` and `app/src/main/java/knf/kuma/explorer/FragmentDownloadsMaterial.kt` as WHOLE FILES: 87% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) app/src/main/java/knf/kuma/home/HomeFragment.kt:143— app/src/main/java/knf/kuma/home/HomeFragment.kt:143-150 | app/src/main/java/knf/kuma/home/HomeFragmentMaterial.kt:168-175 — before extracting anything, compare `app/src/main/java/knf/kuma/home/HomeFragment.kt` and `app/src/main/java/knf/kuma/home/HomeFragmentMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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. 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 (8 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt:55— app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt:55-62 | app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapterMaterial.kt:55-62 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapterMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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. 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 (8 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt:72— app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt:72-79 | app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapterMaterial.kt:71-78 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapterMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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 (8 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt:25— app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt:25-32 | app/src/main/java/knf/kuma/news/MaterialNewsActivity.kt:47-54 — 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 (8 lines × 2) app/src/main/java/knf/kuma/Main.kt:182— app/src/main/java/knf/kuma/Main.kt:182-189 | app/src/main/java/knf/kuma/MainMaterial.kt:184-191 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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/knf/kuma/Main.kt:182` 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/knf/kuma/pojos/DownloadObject.java:136— app/src/main/java/knf/kuma/pojos/DownloadObject.java:136-143 | app/src/main/java/knf/kuma/pojos/ExplorerObject.java:217-224 — 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/knf/kuma/Main.kt:446— app/src/main/java/knf/kuma/Main.kt:446-451 | app/src/main/java/knf/kuma/MainMaterial.kt:408-413 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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/knf/kuma/Main.kt:446` 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/knf/kuma/Main.kt:454` calls `setStartPositionFromMenuItem`, `findViewById` and `app/src/main/java/knf/kuma/MainMaterial.kt:416` 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 (6 lines × 2) app/src/main/java/knf/kuma/migration/MigrationActivity.kt:181— app/src/main/java/knf/kuma/migration/MigrationActivity.kt:181-186 | app/src/main/java/knf/kuma/migration/MigrationActivity.kt:276-281 — 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/knf/kuma/migration/MigrationActivity.kt:181` 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/knf/kuma/preferences/AdsPreferenceActivity.kt:27— app/src/main/java/knf/kuma/preferences/AdsPreferenceActivity.kt:27-32 | app/src/main/java/knf/kuma/preferences/AdsPreferenceActivity.kt:36-41 — 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 what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction — check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only.
Duplicated block (6 lines × 2) app/src/main/java/knf/kuma/SplashActivity.kt:64— app/src/main/java/knf/kuma/SplashActivity.kt:64-69 | app/src/main/java/knf/kuma/tv/ui/TVMain.kt:47-52 — 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/knf/kuma/SplashActivity.kt:64` 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/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:137— app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:137-142 | app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:129-134 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt` and `app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 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 (6 lines × 2) app/src/main/java/knf/kuma/emision/EmissionActivity.kt:56— app/src/main/java/knf/kuma/emision/EmissionActivity.kt:56-61 | app/src/main/java/knf/kuma/emision/EmissionActivityMaterial.kt:59-64 — before extracting anything, compare `app/src/main/java/knf/kuma/emision/EmissionActivity.kt` and `app/src/main/java/knf/kuma/emision/EmissionActivityMaterial.kt` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:56— app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:56-61 | app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt:58-63 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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 (6 lines × 2) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:358— app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:358-363 | app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:361-366 — before extracting anything, compare `app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt` and `app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 312 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 (6 lines × 2) app/src/main/java/knf/kuma/recents/RecentFragment.kt:87— app/src/main/java/knf/kuma/recents/RecentFragment.kt:87-92 | app/src/main/java/knf/kuma/recents/RecentModelsFragment.kt:109-114 — 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/knf/kuma/changelog/ReleaseAdapter.kt:20— app/src/main/java/knf/kuma/changelog/ReleaseAdapter.kt:20-25 | app/src/main/java/knf/kuma/changelog/ReleaseAdapterMaterial.kt:20-25 — 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/knf/kuma/home/HomeFragment.kt:46— app/src/main/java/knf/kuma/home/HomeFragment.kt:46-51 | app/src/main/java/knf/kuma/home/HomeFragmentMaterial.kt:49-54 — before extracting anything, compare `app/src/main/java/knf/kuma/home/HomeFragment.kt` and `app/src/main/java/knf/kuma/home/HomeFragmentMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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. 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 (6 lines × 2) app/src/main/java/knf/kuma/migration/MigrationActivity.kt:203— app/src/main/java/knf/kuma/migration/MigrationActivity.kt:203-208 | app/src/main/java/knf/kuma/migration/MigrationActivity.kt:211-216 — 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/knf/kuma/migration/MigrationActivity.kt:203` 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 (6 lines × 2) app/src/main/java/knf/kuma/Main.kt:504— app/src/main/java/knf/kuma/Main.kt:504-509 | app/src/main/java/knf/kuma/MainMaterial.kt:460-465 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/knf/kuma/Main.kt:512` calls `closeSearchBar` and `app/src/main/java/knf/kuma/MainMaterial.kt:468` 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 (6 lines × 2) app/src/main/java/knf/kuma/profile/TopActivity.kt:84— app/src/main/java/knf/kuma/profile/TopActivity.kt:84-89 | app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt:95-100 — before extracting anything, compare `app/src/main/java/knf/kuma/profile/TopActivity.kt` and `app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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 (12 lines × 2) app/src/main/java/knf/kuma/Diagnostic.kt:220— app/src/main/java/knf/kuma/Diagnostic.kt:220-231 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:222-233 — before extracting anything, compare `app/src/main/java/knf/kuma/Diagnostic.kt` and `app/src/main/java/knf/kuma/DiagnosticMaterial.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 216 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/knf/kuma/Diagnostic.kt:220` 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/knf/kuma/Diagnostic.kt:238— app/src/main/java/knf/kuma/Diagnostic.kt:238-249 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:240-251 — before extracting anything, compare `app/src/main/java/knf/kuma/Diagnostic.kt` and `app/src/main/java/knf/kuma/DiagnosticMaterial.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 216 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/knf/kuma/Diagnostic.kt:238` 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/knf/kuma/achievements/AchievementActivity.kt:256— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:256-267 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:256-267 — before extracting anything, compare `app/src/main/java/knf/kuma/achievements/AchievementActivity.kt` and `app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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/knf/kuma/achievements/AchievementActivity.kt:256` 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/knf/kuma/animeinfo/ActivityAnime.kt:72— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:72-83 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:71-82 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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 (12 lines × 2) app/src/main/java/knf/kuma/commons/CipherExt.kt:39— app/src/main/java/knf/kuma/commons/CipherExt.kt:39-50 | app/src/main/java/knf/kuma/commons/CipherExt.kt:55-66 — 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/knf/kuma/commons/CipherExt.kt:39` 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 (12 lines × 2) app/src/main/java/knf/kuma/commons/CipherExt.kt:87— app/src/main/java/knf/kuma/commons/CipherExt.kt:87-98 | app/src/main/java/knf/kuma/commons/CipherExt.kt:103-114 — 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/knf/kuma/commons/CipherExt.kt:87` 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 (12 lines × 2) app/src/main/java/knf/kuma/download/DownloadManager.kt:394— app/src/main/java/knf/kuma/download/DownloadManager.kt:394-405 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:408-419 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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 (12 lines × 2) app/src/main/java/knf/kuma/explorer/DownloadingAdapter.kt:40— app/src/main/java/knf/kuma/explorer/DownloadingAdapter.kt:40-51 | app/src/main/java/knf/kuma/explorer/DownloadingAdapterMaterial.kt:40-51 — 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 (12 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:35— app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:35-46 | app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt:37-48 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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/knf/kuma/explorer/ExplorerActivity.kt:35` 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 (12 lines × 2) app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:94— app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:94-105 | app/src/main/java/knf/kuma/explorer/FragmentChaptersMaterial.kt:94-105 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentChapters.kt` and `app/src/main/java/knf/kuma/explorer/FragmentChaptersMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 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/knf/kuma/explorer/FragmentChapters.kt:94` 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/knf/kuma/recommended/RankingActivity.kt:31— app/src/main/java/knf/kuma/recommended/RankingActivity.kt:31-42 | app/src/main/java/knf/kuma/recommended/RankingActivityMaterial.kt:34-45 — before extracting anything, compare `app/src/main/java/knf/kuma/recommended/RankingActivity.kt` and `app/src/main/java/knf/kuma/recommended/RankingActivityMaterial.kt` as WHOLE FILES: 90% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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/knf/kuma/recommended/RankingActivity.kt:31` 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/knf/kuma/recommended/RankingActivityMaterial.kt:33` calls `setSurfaceBars` and `app/src/main/java/knf/kuma/recommended/RankingActivity.kt:30` 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 (12 lines × 2) app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:201— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:201-212 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:201-212 — before extracting anything, compare `app/src/main/java/knf/kuma/achievements/AchievementActivity.kt` and `app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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.
Duplicated block (12 lines × 2) app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt:95— app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt:95-106 | app/src/main/java/knf/kuma/explorer/FragmentFilesRootMaterial.kt:96-107 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt` and `app/src/main/java/knf/kuma/explorer/FragmentFilesRootMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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.
Swallowed exception (empty catch) app/src/main/java/knf/kuma/search/GenresDialog.kt:49— 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/knf/kuma/search/GenresDialog.kt:57— 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/knf/kuma/news/NewsDialog.kt:53— 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/knf/kuma/news/NewsDialog.kt:62— 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/knf/kuma/explorer/DownloadingAdapter.kt:72— 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/knf/kuma/explorer/DownloadingAdapter.kt:112— 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/knf/kuma/explorer/DownloadingAdapterMaterial.kt:71— 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/knf/kuma/explorer/DownloadingAdapterMaterial.kt:107— 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/knf/kuma/download/DownloadManagerJob.kt:76— 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/knf/kuma/custom/TlsOnlySocketFactory.java:541— 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/knf/kuma/commons/ExtensionUtils.kt:133— 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.
D4 · Code Duplication· Edited copy of a member (10 corresponding lines) · ×9
Edited copy of a member (10 corresponding lines) app/src/main/java/knf/kuma/custom/ConnectionState.kt:366— app/src/main/java/knf/kuma/custom/ConnectionState.kt:366-375 | app/src/main/java/knf/kuma/custom/ConnectionState.kt:377-386 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (10 corresponding lines) app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt:348— app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt:348-357 | app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.kt:319-328 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (10 corresponding lines) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:47— app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:47-56 | app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:47-56 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (10 corresponding lines) app/src/main/java/knf/kuma/videoservers/FileActions.kt:68— app/src/main/java/knf/kuma/videoservers/FileActions.kt:68-77 | app/src/main/java/knf/kuma/videoservers/FileActions.kt:90-99 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (10 corresponding lines) persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/PersistentSearchView.java:613— persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/PersistentSearchView.java:613-622 | persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/PersistentSearchView.java:624-633 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (10 corresponding lines) app/src/main/java/knf/kuma/DiagnosticMaterial.kt:276— app/src/main/java/knf/kuma/DiagnosticMaterial.kt:276-285 | app/src/main/java/knf/kuma/Diagnostic.kt:274-283 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (10 corresponding lines) app/src/main/java/knf/kuma/tv/ui/TVMainFragment.kt:293— app/src/main/java/knf/kuma/tv/ui/TVMainFragment.kt:293-305 | app/src/main/java/knf/kuma/backup/BackUpActivity.kt:267-276 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (10 corresponding lines) app/src/main/java/knf/kuma/Main.kt:169— app/src/main/java/knf/kuma/Main.kt:169-178 | app/src/main/java/knf/kuma/MainMaterial.kt:171-180 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (10 corresponding lines) app/src/main/java/knf/kuma/SplashActivity.kt:112— app/src/main/java/knf/kuma/SplashActivity.kt:112-121 | app/src/main/java/knf/kuma/tv/ui/TVMain.kt:111-120 — These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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.
Duplicated block (11 lines × 2) app/src/main/java/knf/kuma/Diagnostic.kt:73— app/src/main/java/knf/kuma/Diagnostic.kt:73-83 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:75-85 — before extracting anything, compare `app/src/main/java/knf/kuma/Diagnostic.kt` and `app/src/main/java/knf/kuma/DiagnosticMaterial.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 216 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/knf/kuma/Diagnostic.kt:73` 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/knf/kuma/Diagnostic.kt:194— app/src/main/java/knf/kuma/Diagnostic.kt:194-204 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:196-206 — before extracting anything, compare `app/src/main/java/knf/kuma/Diagnostic.kt` and `app/src/main/java/knf/kuma/DiagnosticMaterial.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 216 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/knf/kuma/Diagnostic.kt:194` 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/knf/kuma/Main.kt:673— app/src/main/java/knf/kuma/Main.kt:673-683 | app/src/main/java/knf/kuma/MainMaterial.kt:595-605 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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/knf/kuma/Main.kt:673` 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/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:106— app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:106-116 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsMaterialHolder.kt:110-120 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt` and `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsMaterialHolder.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:106` 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/knf/kuma/updater/UpdateActivity.kt:120— app/src/main/java/knf/kuma/updater/UpdateActivity.kt:120-130 | app/src/main/java/knf/kuma/updater/UpdateActivity.kt:160-170 — 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 lines × 2) app/src/main/java/knf/kuma/Main.kt:214— app/src/main/java/knf/kuma/Main.kt:214-224 | app/src/main/java/knf/kuma/MainMaterial.kt:216-226 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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/knf/kuma/Main.kt:214` 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/knf/kuma/Main.kt:315— app/src/main/java/knf/kuma/Main.kt:315-325 | app/src/main/java/knf/kuma/MainMaterial.kt:317-327 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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/knf/kuma/Main.kt:315` 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/knf/kuma/custom/AchievementUnlocked.java:406— app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:406-416 | app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:523-533 — 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/knf/kuma/custom/AchievementUnlocked.java:406` 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/knf/kuma/custom/AchievementUnlocked.java:405` calls `setSingleLine` and `app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:522` 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 (7 lines × 2) app/src/main/java/knf/kuma/Main.kt:438— app/src/main/java/knf/kuma/Main.kt:438-444 | app/src/main/java/knf/kuma/MainMaterial.kt:400-406 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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/knf/kuma/Main.kt:438` 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/knf/kuma/ads/AdsUtilsBrains.kt:39— app/src/main/java/knf/kuma/ads/AdsUtilsBrains.kt:39-45 | app/src/main/java/knf/kuma/ads/AdsUtilsBrains.kt:81-87 — 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/knf/kuma/ads/AdsUtilsBrains.kt:39` 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/knf/kuma/animeinfo/ActivityAnime.kt:359— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:359-365 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:349-355 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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.
Duplicated block (7 lines × 2) app/src/main/java/knf/kuma/custom/GenericActivity.kt:113— app/src/main/java/knf/kuma/custom/GenericActivity.kt:113-119 | app/src/main/java/knf/kuma/tv/ui/TVMain.kt:153-159 — 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/knf/kuma/custom/GenericActivity.kt:113` 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/knf/kuma/animeinfo/ActivityAnime.kt:196— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:196-202 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:195-201 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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. 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 (7 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:48— app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:48-54 | app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt:50-56 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 34 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. 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 (7 lines × 2) app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt:66— app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt:66-72 | app/src/main/java/knf/kuma/explorer/FragmentFilesRootMaterial.kt:67-73 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt` and `app/src/main/java/knf/kuma/explorer/FragmentFilesRootMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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 (7 lines × 2) app/src/main/java/knf/kuma/recents/RecentFragment.kt:95— app/src/main/java/knf/kuma/recents/RecentFragment.kt:95-101 | app/src/main/java/knf/kuma/recents/RecentModelsFragment.kt:117-123 — 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. 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 × 2) app/src/main/java/knf/kuma/Diagnostic.kt:259— app/src/main/java/knf/kuma/Diagnostic.kt:259-272 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:261-274 — before extracting anything, compare `app/src/main/java/knf/kuma/Diagnostic.kt` and `app/src/main/java/knf/kuma/DiagnosticMaterial.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 216 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.
Duplicated block (14 lines × 2) app/src/main/java/knf/kuma/ads/AdsUtilsLovin.kt:57— app/src/main/java/knf/kuma/ads/AdsUtilsLovin.kt:57-70 | app/src/main/java/knf/kuma/ads/AdsUtilsMob.kt:53-66 — 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/knf/kuma/ads/AdsUtilsLovin.kt:57` 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/knf/kuma/download/DownloadManager.kt:325— app/src/main/java/knf/kuma/download/DownloadManager.kt:325-338 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:339-352 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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.
Duplicated block (14 lines × 2) app/src/main/java/knf/kuma/download/DownloadManager.kt:423— app/src/main/java/knf/kuma/download/DownloadManager.kt:423-436 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:437-450 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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.
Duplicated block (14 lines × 2) app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:107— app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:107-120 | app/src/main/java/knf/kuma/explorer/FragmentChaptersMaterial.kt:107-120 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentChapters.kt` and `app/src/main/java/knf/kuma/explorer/FragmentChaptersMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 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/knf/kuma/explorer/FragmentChapters.kt:107` 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/knf/kuma/recommended/RankingActivity.kt:61— app/src/main/java/knf/kuma/recommended/RankingActivity.kt:61-74 | app/src/main/java/knf/kuma/recommended/RankingActivityMaterial.kt:64-77 — before extracting anything, compare `app/src/main/java/knf/kuma/recommended/RankingActivity.kt` and `app/src/main/java/knf/kuma/recommended/RankingActivityMaterial.kt` as WHOLE FILES: 90% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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/knf/kuma/recommended/RankingActivity.kt:61` 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 (14 lines × 2) app/src/main/java/knf/kuma/widgets/emision/WEListProvider.kt:89— app/src/main/java/knf/kuma/widgets/emision/WEListProvider.kt:89-102 | app/src/main/java/knf/kuma/widgets/emision/WEmisionProvider.kt:81-94 — 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/knf/kuma/widgets/emision/WEListProvider.kt:89` 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/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:215— app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:215-227 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersMaterialHolder.kt:213-225 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt` and `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersMaterialHolder.kt` as WHOLE FILES: 92% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:215` 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/knf/kuma/explorer/ExplorerChapsAdapter.kt:139— app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:139-151 | app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt:142-154 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 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.
Duplicated block (13 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt:15— app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt:15-27 | app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapterMaterial.kt:15-27 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapter.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerPagerAdapterMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 38 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.
Duplicated block (13 lines × 2) app/src/main/java/knf/kuma/explorer/creator/DocumentFileCreator.kt:26— app/src/main/java/knf/kuma/explorer/creator/DocumentFileCreator.kt:26-38 | app/src/main/java/knf/kuma/explorer/creator/SimpleFileCreator.kt:30-42 — 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/knf/kuma/explorer/creator/DocumentFileCreator.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.
Duplicated block (13 lines × 2) app/src/main/java/knf/kuma/faq/FaqActivity.kt:47— app/src/main/java/knf/kuma/faq/FaqActivity.kt:47-59 | app/src/main/java/knf/kuma/faq/FaqActivityMaterial.kt:50-62 — 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/knf/kuma/faq/FaqActivity.kt:47` 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/knf/kuma/queue/QueueManager.kt:184— app/src/main/java/knf/kuma/queue/QueueManager.kt:184-196 | app/src/main/java/knf/kuma/queue/QueueManager.kt:202-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/knf/kuma/queue/QueueManager.kt:184` 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/knf/kuma/animeinfo/AnimeRelatedAdapterMaterial.kt:31— app/src/main/java/knf/kuma/animeinfo/AnimeRelatedAdapterMaterial.kt:31-43 | app/src/main/java/knf/kuma/tv/cards/RelatedCardView.kt:27-39 — 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.
TooManyMethods: PersistentSearchView persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/PersistentSearchView.java:47— TooManyMethods — 72 methods. The bar is 30 methods; this is 42 over it, 2.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: DelegateSSLSocket app/src/main/java/knf/kuma/custom/TlsOnlySocketFactory.java:234— TooManyMethods — 62 methods. The bar is 30 methods; this is 32 over it, 2.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: AchievementUnlocked app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:78— TooManyMethods — 52 methods. The bar is 30 methods; this is 22 over it, 1.73× 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: FileAccessHelper app/src/main/java/knf/kuma/download/FileAccessHelper.kt:43— TooManyMethods — 38 methods. The bar is 30 methods; this is 8 over it, 1.27× 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: Main app/src/main/java/knf/kuma/Main.kt:100— TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.10× 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: PreferenceFragmentCompat app/src/main/java/knf/kuma/custom/PreferenceFragmentCompat.java:107— TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.10× 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· Edited copy of a member (7 corresponding lines) · ×6
Edited copy of a member (7 corresponding lines) app/src/main/java/knf/kuma/download/FileAccessHelper.kt:92— app/src/main/java/knf/kuma/download/FileAccessHelper.kt:92-98 | app/src/main/java/knf/kuma/download/FileAccessHelper.kt:100-108 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (7 corresponding lines) app/src/main/java/knf/kuma/recents/RecentFragment.kt:49— app/src/main/java/knf/kuma/recents/RecentFragment.kt:49-55 | app/src/main/java/knf/kuma/recents/RecentModelsFragment.kt:69-78 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (7 corresponding lines) app/src/main/java/knf/kuma/home/RecommendedAdapter.kt:38— app/src/main/java/knf/kuma/home/RecommendedAdapter.kt:38-44 | app/src/main/java/knf/kuma/home/SearchAdapterMaterial.kt:41-47 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (7 corresponding lines) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:102— app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:102-112 | app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:102-108 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (7 corresponding lines) app/src/main/java/knf/kuma/tv/streaming/TVMultiSelectionFragment.kt:27— app/src/main/java/knf/kuma/tv/streaming/TVMultiSelectionFragment.kt:27-33 | app/src/main/java/knf/kuma/tv/streaming/TVServerSelectionFragment.kt:37-44 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (7 corresponding lines) app/src/main/java/knf/kuma/videoservers/FileActions.kt:518— app/src/main/java/knf/kuma/videoservers/FileActions.kt:518-524 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:405-411 — These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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) · ×6
Edited copy of a member (9 corresponding lines) app/src/main/java/knf/kuma/custom/ConnectionState.kt:325— app/src/main/java/knf/kuma/custom/ConnectionState.kt:325-334 | app/src/main/java/knf/kuma/custom/ConnectionState.kt:356-364 — 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/knf/kuma/achievements/AchievementAdapter.kt:31— app/src/main/java/knf/kuma/achievements/AchievementAdapter.kt:31-39 | app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.kt:71-79 — 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/knf/kuma/custom/ConnectionState.kt:252— app/src/main/java/knf/kuma/custom/ConnectionState.kt:252-260 | app/src/main/java/knf/kuma/custom/ConnectionState.kt:262-271 — 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/knf/kuma/download/DownloadHlsWorker.kt:296— app/src/main/java/knf/kuma/download/DownloadHlsWorker.kt:296-305 | app/src/main/java/knf/kuma/download/DownloadService.kt:185-193 — 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/knf/kuma/download/DownloadManager.kt:471— app/src/main/java/knf/kuma/download/DownloadManager.kt:471-480 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:485-493 — 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/knf/kuma/tv/directory/TVDirFragment.kt:41— app/src/main/java/knf/kuma/tv/directory/TVDirFragment.kt:41-49 | app/src/main/java/knf/kuma/tv/search/TVTagFragment.kt:43-51 — 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.
Duplicated block (5 lines × 2) app/src/main/java/knf/kuma/backup/BackUpActivity.kt:197— app/src/main/java/knf/kuma/backup/BackUpActivity.kt:197-201 | app/src/main/java/knf/kuma/backup/BackUpActivity.kt:218-222 — 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 (5 lines × 2) app/src/main/java/knf/kuma/commons/FileUtil.kt:164— app/src/main/java/knf/kuma/commons/FileUtil.kt:164-168 | app/src/main/java/knf/kuma/commons/FileUtil.kt:244-248 — 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/knf/kuma/commons/FileUtil.kt:164` 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/knf/kuma/favorite/FavoriteFragment.kt:120— app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:120-124 | app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:190-194 — 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 first that the copies are not typed on the same thing: the declarations holding them bind `name` to `String?` in one and `String` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (5 lines × 2) app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:157— app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:157-161 | app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:191-195 — 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/knf/kuma/favorite/FavoriteFragment.kt:157` 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/knf/kuma/explorer/ExplorerFilesAdapter.kt:43— app/src/main/java/knf/kuma/explorer/ExplorerFilesAdapter.kt:43-47 | app/src/main/java/knf/kuma/explorer/ExplorerFilesAdapterMaterial.kt:40-44 — 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/knf/kuma/explorer/ExplorerFilesAdapter.kt:43` 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/knf/kuma/explorer/FragmentDownloads.kt:34— app/src/main/java/knf/kuma/explorer/FragmentDownloads.kt:34-38 | app/src/main/java/knf/kuma/explorer/FragmentDownloadsMaterial.kt:35-39 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentDownloads.kt` and `app/src/main/java/knf/kuma/explorer/FragmentDownloadsMaterial.kt` as WHOLE FILES: 87% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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/knf/kuma/explorer/FragmentDownloads.kt:34` 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.
X2 · Cancellation propagation· Suspend function with a blocking request · ×6
Suspend function with a blocking request: loadDirectory app/src/main/java/knf/kuma/migration/MigrationActivity.kt:102— `loadDirectory` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`.
Suspend function with a blocking request: loadDefinitions app/src/main/java/knf/kuma/migration/MigrationActivity.kt:116— `loadDefinitions` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`.
Suspend function with a blocking request: createList app/src/main/java/knf/kuma/home/StaffRecommendations.kt:17— `createList` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`.
Suspend function with a blocking request: doMigrateDownloads app/src/main/java/knf/kuma/explorer/ExplorerCreator.kt:99— `doMigrateDownloads` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`.
Suspend function with a blocking request: doNetworkTests app/src/main/java/knf/kuma/custom/ConnectionState.kt:109— `doNetworkTests` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`.
Suspend function with a blocking request: checkStatus app/src/main/java/knf/kuma/ads/SubscriptionReceiver.kt:45— `checkStatus` suspends, but makes its request with `URL(…).readText()`, which blocks: its caller's cancellation cannot reach the request, so it runs to its end after whatever wanted it has given up — `withContext(Dispatchers.IO)` moves it off the caller's thread and does not change that. Make the request with a call that suspends: Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` over `enqueue` that cancels the `Call` in `invokeOnCancellation`.
ClassTooLong: AchievementUnlocked app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:78— ClassTooLong — 989 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 589 over it, 2.47× 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: PersistentSearchView persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/PersistentSearchView.java:47— ClassTooLong — 694 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 400 significant lines; this is 294 over it, 1.74× 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: AnimeObject app/src/main/java/knf/kuma/pojos/AnimeObject.java:50— ClassTooLong — 440 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 40 over it, 1.10× 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: Main app/src/main/java/knf/kuma/Main.kt:100— ClassTooLong — 431 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 31 over it, 1.08× 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: ServersFactory app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:58— ClassTooLong — 416 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 16 over it, 1.04× 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.
FileTooLong: custom/AchievementUnlocked.java app/src/main/java/knf/kuma/custom/AchievementUnlocked.java— FileTooLong — 1041 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: AchievementUnlocked (78-1658). The bar is 500 significant lines; this is 541 over it, 2.08× 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: persistentsearch/PersistentSearchView.java persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/PersistentSearchView.java— FileTooLong — 736 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: PersistentSearchView (47-1157). 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: commons/ExtensionUtils.kt app/src/main/java/knf/kuma/commons/ExtensionUtils.kt— FileTooLong — 539 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 39 over it, 1.08× 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: download/FileAccessHelper.kt app/src/main/java/knf/kuma/download/FileAccessHelper.kt— FileTooLong — 533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 33 over it, 1.07× 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: kuma/Main.kt app/src/main/java/knf/kuma/Main.kt— FileTooLong — 528 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: Main (100-692). The bar is 500 significant lines; this is 28 over it, 1.06× 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.
D4 · Code Duplication· Edited copy of a member (23 corresponding lines) · ×5
Edited copy of a member (23 corresponding lines) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:71— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:71-93 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:70-92 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (23 corresponding lines) app/src/main/java/knf/kuma/recommended/RankingActivity.kt:28— app/src/main/java/knf/kuma/recommended/RankingActivity.kt:28-50 | app/src/main/java/knf/kuma/recommended/RankingActivityMaterial.kt:30-53 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (23 corresponding lines) app/src/main/java/knf/kuma/custom/SingleFragmentActivity.kt:22— app/src/main/java/knf/kuma/custom/SingleFragmentActivity.kt:22-44 | app/src/main/java/knf/kuma/custom/SingleFragmentMaterialActivity.kt:23-46 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (23 corresponding lines) app/src/main/java/knf/kuma/commons/JsExtractor.kt:48— app/src/main/java/knf/kuma/commons/JsExtractor.kt:48-70 | app/src/main/java/knf/kuma/commons/JsExtractor.kt:72-97 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (23 corresponding lines) app/src/main/java/knf/kuma/custom/snackbar/SnackProgressBarLayout.kt:244— app/src/main/java/knf/kuma/custom/snackbar/SnackProgressBarLayout.kt:244-266 | app/src/main/java/knf/kuma/custom/snackbar/SnackProgressBarLayout.kt:269-291 — These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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) · ×5
Edited copy of a member (11 corresponding lines) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:335— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:335-345 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:335-346 — 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.
Edited copy of a member (11 corresponding lines) app/src/main/java/knf/kuma/Diagnostic.kt:54— app/src/main/java/knf/kuma/Diagnostic.kt:54-64 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:55-66 — 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.
Edited copy of a member (11 corresponding lines) app/src/main/java/knf/kuma/queue/QueueManager.kt:132— app/src/main/java/knf/kuma/queue/QueueManager.kt:132-142 | app/src/main/java/knf/kuma/queue/QueueManager.kt:144-154 — 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.
Edited copy of a member (11 corresponding lines) app/src/main/java/knf/kuma/pojos/RecentObject.java:78— app/src/main/java/knf/kuma/pojos/RecentObject.java:78-89 | app/src/main/java/knf/kuma/pojos/AnimeObject.java:442-452 — 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.
Edited copy of a member (11 corresponding lines) app/src/main/java/knf/kuma/emision/EmissionActivity.kt:63— app/src/main/java/knf/kuma/emision/EmissionActivity.kt:63-73 | app/src/main/java/knf/kuma/emision/EmissionActivityMaterial.kt:66-76 — 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.
Duplicated block (16 lines × 2) app/src/main/java/knf/kuma/Main.kt:629— app/src/main/java/knf/kuma/Main.kt:629-644 | app/src/main/java/knf/kuma/MainMaterial.kt:552-567 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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.
Duplicated block (16 lines × 2) app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:67— app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:67-82 | app/src/main/java/knf/kuma/explorer/FragmentChaptersMaterial.kt:67-82 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentChapters.kt` and `app/src/main/java/knf/kuma/explorer/FragmentChaptersMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 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.
Duplicated block (16 lines × 2) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:366— app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:366-381 | app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:369-384 — before extracting anything, compare `app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt` and `app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 312 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/knf/kuma/preferences/ConfigurationFragment.kt:366` 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/knf/kuma/videoservers/ServersFactory.kt:459— app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:459-474 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:509-524 — 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/knf/kuma/videoservers/ServersFactory.kt:459` 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 (16 lines × 2) app/src/main/java/knf/kuma/commons/Encryption.java:121— app/src/main/java/knf/kuma/commons/Encryption.java:121-136 | app/src/main/java/knf/kuma/commons/Encryption.java:204-219 — 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. 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.
Hotspot: app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt:103— app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in AnimeChaptersAdapterMaterial.onBindViewHolder at line 103. 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-06-17..2026-09-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-17 15:39:56 -06:00' --until='2026-09-15 15:39:56 -06:00' --full-history --no-merges -- app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.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/knf/kuma/videoservers/FileActions.kt app/src/main/java/knf/kuma/videoservers/FileActions.kt:125— app/src/main/java/knf/kuma/videoservers/FileActions.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in FileActions.execute at line 125. 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-06-17..2026-09-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-17 15:39:56 -06:00' --until='2026-09-15 15:39:56 -06:00' --full-history --no-merges -- app/src/main/java/knf/kuma/videoservers/FileActions.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/knf/kuma/backup/firestore/FirestoreManager.kt app/src/main/java/knf/kuma/backup/firestore/FirestoreManager.kt:79— app/src/main/java/knf/kuma/backup/firestore/FirestoreManager.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in FirestoreManager.start at line 79. 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-06-17..2026-09-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-17 15:39:56 -06:00' --until='2026-09-15 15:39:56 -06:00' --full-history --no-merges -- app/src/main/java/knf/kuma/backup/firestore/FirestoreManager.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/knf/kuma/tv/TVServersFactory.kt app/src/main/java/knf/kuma/tv/TVServersFactory.kt:188— app/src/main/java/knf/kuma/tv/TVServersFactory.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in TVServersFactory.get at line 188. 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-06-17..2026-09-15, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-06-17 15:39:56 -06:00' --until='2026-09-15 15:39:56 -06:00' --full-history --no-merges -- app/src/main/java/knf/kuma/tv/TVServersFactory.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.
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/knf/kuma/Main.kt:181— app/src/main/java/knf/kuma/Main.kt:181-224 | app/src/main/java/knf/kuma/Main.kt:628-644 | app/src/main/java/knf/kuma/MainMaterial.kt:183-226 | app/src/main/java/knf/kuma/MainMaterial.kt:551-567 — 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/knf/kuma/Main.kt:671— app/src/main/java/knf/kuma/Main.kt:671-683 | app/src/main/java/knf/kuma/MainMaterial.kt:593-605 | app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:234-245 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:233-244 — 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/knf/kuma/commons/CipherExt.kt:36— app/src/main/java/knf/kuma/commons/CipherExt.kt:36-50 | app/src/main/java/knf/kuma/commons/CipherExt.kt:52-66 | app/src/main/java/knf/kuma/commons/CipherExt.kt:84-98 | app/src/main/java/knf/kuma/commons/CipherExt.kt:100-114 — 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/knf/kuma/custom/ConnectionState.kt:273— app/src/main/java/knf/kuma/custom/ConnectionState.kt:273-282 | app/src/main/java/knf/kuma/custom/ConnectionState.kt:284-312 | app/src/main/java/knf/kuma/custom/ConnectionState.kt:314-323 | app/src/main/java/knf/kuma/custom/ConnectionState.kt:336-354 — 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· Edited copy of a member (25 corresponding lines) · ×4
Edited copy of a member (25 corresponding lines) app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:22— app/src/main/java/knf/kuma/explorer/ExplorerActivity.kt:22-46 | app/src/main/java/knf/kuma/explorer/ExplorerActivityMaterial.kt:23-48 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (25 corresponding lines) app/src/main/java/knf/kuma/Diagnostic.kt:193— app/src/main/java/knf/kuma/Diagnostic.kt:193-217 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:195-219 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (25 corresponding lines) app/src/main/java/knf/kuma/Main.kt:356— app/src/main/java/knf/kuma/Main.kt:356-380 | app/src/main/java/knf/kuma/MainMaterial.kt:357-381 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (25 corresponding lines) app/src/main/java/knf/kuma/commons/ExtensionUtils.kt:285— app/src/main/java/knf/kuma/commons/ExtensionUtils.kt:285-314 | app/src/main/java/knf/kuma/commons/ExtensionUtils.kt:320-344 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (15 corresponding lines) · ×4
Edited copy of a member (15 corresponding lines) app/src/main/java/knf/kuma/profile/TopActivity.kt:81— app/src/main/java/knf/kuma/profile/TopActivity.kt:81-95 | app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt:91-106 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (15 corresponding lines) app/src/main/java/knf/kuma/download/DownloadManager.kt:393— app/src/main/java/knf/kuma/download/DownloadManager.kt:393-407 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:407-421 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (15 corresponding lines) app/src/main/java/knf/kuma/videoservers/FileActions.kt:487— app/src/main/java/knf/kuma/videoservers/FileActions.kt:487-501 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:565-580 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (15 corresponding lines) app/src/main/java/knf/kuma/commons/CipherExt.kt:20— app/src/main/java/knf/kuma/commons/CipherExt.kt:20-34 | app/src/main/java/knf/kuma/commons/CipherExt.kt:68-82 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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.
Duplicated block (17 lines × 2) app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:126— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:126-142 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:126-142 — before extracting anything, compare `app/src/main/java/knf/kuma/achievements/AchievementActivity.kt` and `app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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.
Duplicated block (17 lines × 2) app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:235— app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:235-251 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersMaterialHolder.kt:233-249 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt` and `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersMaterialHolder.kt` as WHOLE FILES: 92% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:235` 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/knf/kuma/custom/snackbar/SnackProgressBarLayout.kt:245— app/src/main/java/knf/kuma/custom/snackbar/SnackProgressBarLayout.kt:245-261 | app/src/main/java/knf/kuma/custom/snackbar/SnackProgressBarLayout.kt:270-286 — 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/knf/kuma/custom/snackbar/SnackProgressBarLayout.kt:245` 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/knf/kuma/Main.kt:193— app/src/main/java/knf/kuma/Main.kt:193-209 | app/src/main/java/knf/kuma/MainMaterial.kt:195-211 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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/knf/kuma/Main.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.
Low cohesion: ChapterImgHolder (LCOM4 6) app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt:410— ChapterImgHolder's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — 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 6 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: ItemHolder (LCOM4 5) app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.kt:363— ItemHolder'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: AnimeRow (LCOM4 4) app/src/main/java/knf/kuma/tv/AnimeRow.kt:5— AnimeRow'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.
Low cohesion: TVMain (LCOM4 4) app/src/main/java/knf/kuma/tv/ui/TVMain.kt:33— TVMain'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.
ServersFactory.start (cognitive 17) app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:441— ServersFactory.start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (ServersFactory.start, ServersFactory.start) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
ServersFactory.start (cognitive 17) app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:476— ServersFactory.start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (ServersFactory.start, ServersFactory.start) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
ServersFactory.start (cognitive 17) app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:526— ServersFactory.start has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (ServersFactory.start, ServersFactory.start) have the same decision points, in the same order, at the same nesting depths — so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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.
D4 · Code Duplication· Edited copy of a member (26 corresponding lines) · ×3
Edited copy of a member (26 corresponding lines) app/src/main/java/knf/kuma/explorer/FragmentDownloads.kt:29— app/src/main/java/knf/kuma/explorer/FragmentDownloads.kt:29-54 | app/src/main/java/knf/kuma/explorer/FragmentDownloadsMaterial.kt:30-55 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (26 corresponding lines) app/src/main/java/knf/kuma/download/FileAccessHelper.kt:370— app/src/main/java/knf/kuma/download/FileAccessHelper.kt:370-395 | app/src/main/java/knf/kuma/download/FileAccessHelper.kt:397-429 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (26 corresponding lines) app/src/main/java/knf/kuma/explorer/creator/DocumentFileCreator.kt:19— app/src/main/java/knf/kuma/explorer/creator/DocumentFileCreator.kt:19-44 | app/src/main/java/knf/kuma/explorer/creator/SimpleFileCreator.kt:22-56 — These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (19 corresponding lines) · ×3
Edited copy of a member (19 corresponding lines) app/src/main/java/knf/kuma/Main.kt:496— app/src/main/java/knf/kuma/Main.kt:496-515 | app/src/main/java/knf/kuma/MainMaterial.kt:452-470 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (19 corresponding lines) app/src/main/java/knf/kuma/faq/FaqActivity.kt:41— app/src/main/java/knf/kuma/faq/FaqActivity.kt:41-59 | app/src/main/java/knf/kuma/faq/FaqActivityMaterial.kt:43-62 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (19 corresponding lines) app/src/main/java/knf/kuma/profile/TopActivity.kt:59— app/src/main/java/knf/kuma/profile/TopActivity.kt:59-79 | app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt:61-79 — These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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) · ×3
Edited copy of a member (27 corresponding lines) app/src/main/java/knf/kuma/faq/FaqActivity.kt:62— app/src/main/java/knf/kuma/faq/FaqActivity.kt:62-88 | app/src/main/java/knf/kuma/faq/FaqActivityMaterial.kt:65-93 — 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.
Edited copy of a member (27 corresponding lines) app/src/main/java/knf/kuma/Main.kt:459— app/src/main/java/knf/kuma/Main.kt:459-490 | app/src/main/java/knf/kuma/MainMaterial.kt:420-446 — 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.
Edited copy of a member (27 corresponding lines) app/src/main/java/knf/kuma/SplashActivity.kt:131— app/src/main/java/knf/kuma/SplashActivity.kt:131-157 | app/src/main/java/knf/kuma/tv/ui/TVMain.kt:83-109 — 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 copy of a member (22 corresponding lines) · ×3
Edited copy of a member (22 corresponding lines) app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:255— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:255-276 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:255-276 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (22 corresponding lines) app/src/main/java/knf/kuma/Main.kt:333— app/src/main/java/knf/kuma/Main.kt:333-354 | app/src/main/java/knf/kuma/MainMaterial.kt:334-355 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (22 corresponding lines) app/src/main/java/knf/kuma/custom/HiddenOverlay.kt:30— app/src/main/java/knf/kuma/custom/HiddenOverlay.kt:30-51 | app/src/main/java/knf/kuma/custom/SeenAnimeOverlay.kt:30-52 — These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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) · ×3
Edited copy of a member (17 corresponding lines) app/src/main/java/knf/kuma/queue/QueueManager.kt:180— app/src/main/java/knf/kuma/queue/QueueManager.kt:180-196 | app/src/main/java/knf/kuma/queue/QueueManager.kt:198-214 — 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.
Edited copy of a member (17 corresponding lines) app/src/main/java/knf/kuma/Main.kt:313— app/src/main/java/knf/kuma/Main.kt:313-331 | app/src/main/java/knf/kuma/MainMaterial.kt:316-332 — 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.
Edited copy of a member (17 corresponding lines) app/src/main/java/knf/kuma/pojos/DownloadObject.java:53— app/src/main/java/knf/kuma/pojos/DownloadObject.java:53-71 | app/src/main/java/knf/kuma/pojos/DownloadObject.java:74-90 — 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 (18 corresponding lines) · ×3
Edited copy of a member (18 corresponding lines) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:114— app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:114-135 | app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:110-127 — 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.
Edited copy of a member (18 corresponding lines) app/src/main/java/knf/kuma/explorer/FragmentFiles.kt:42— app/src/main/java/knf/kuma/explorer/FragmentFiles.kt:42-59 | app/src/main/java/knf/kuma/explorer/FragmentFilesMaterial.kt:41-58 — 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.
Edited copy of a member (18 corresponding lines) app/src/main/java/knf/kuma/recommended/RankingActivity.kt:57— app/src/main/java/knf/kuma/recommended/RankingActivity.kt:57-74 | app/src/main/java/knf/kuma/recommended/RankingActivityMaterial.kt:60-77 — 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 (3 members, 11+ corresponding lines) · ×3
Edited copies of one member (3 members, 11+ corresponding lines) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:280— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:280-290 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:269-279 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:293-303 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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.
Edited copies of one member (3 members, 11+ corresponding lines) app/src/main/java/knf/kuma/explorer/ExplorerFilesAdapter.kt:41— app/src/main/java/knf/kuma/explorer/ExplorerFilesAdapter.kt:41-51 | app/src/main/java/knf/kuma/explorer/ExplorerFilesAdapterMaterial.kt:38-48 | app/src/main/java/knf/kuma/queue/QueueAnimesAdapter.kt:41-51 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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.
Edited copies of one member (3 members, 11+ corresponding lines) app/src/main/java/knf/kuma/commons/BypassUtil.kt:97— app/src/main/java/knf/kuma/commons/BypassUtil.kt:97-107 | app/src/main/java/knf/kuma/commons/BypassUtil.kt:109-119 | app/src/main/java/knf/kuma/commons/BypassUtil.kt:121-131 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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 (13 corresponding lines) · ×3
Edited copy of a member (13 corresponding lines) app/src/main/java/knf/kuma/download/FileAccessHelper.kt:110— app/src/main/java/knf/kuma/download/FileAccessHelper.kt:110-123 | app/src/main/java/knf/kuma/download/FileAccessHelper.kt:125-137 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (13 corresponding lines) app/src/main/java/knf/kuma/recommended/BlacklistDialog.kt:21— app/src/main/java/knf/kuma/recommended/BlacklistDialog.kt:21-33 | app/src/main/java/knf/kuma/search/GenresDialog.kt:32-44 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (13 corresponding lines) app/src/main/java/knf/kuma/commons/ExtensionUtils.kt:247— app/src/main/java/knf/kuma/commons/ExtensionUtils.kt:247-259 | app/src/main/java/knf/kuma/commons/ExtensionUtils.kt:261-273 — These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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.
Duplicated block (30 lines × 2) app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:94— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:94-123 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:94-123 — before extracting anything, compare `app/src/main/java/knf/kuma/achievements/AchievementActivity.kt` and `app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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/knf/kuma/achievements/AchievementActivity.kt:94` 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/knf/kuma/achievements/AchievementActivityMaterial.kt:92` calls `setSurfaceBars` and `app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:92` 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 (30 lines × 2) app/src/main/java/knf/kuma/download/DownloadManager.kt:281— app/src/main/java/knf/kuma/download/DownloadManager.kt:281-310 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:295-324 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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.
Duplicated block (30 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:79— app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:79-108 | app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt:82-111 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 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/knf/kuma/explorer/ExplorerChapsAdapter.kt:79` 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 (29 lines × 2) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:59— app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:59-87 | app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:59-87 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt` and `app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 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/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:59` 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 (29 lines × 2) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:383— app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:383-411 | app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:386-414 — before extracting anything, compare `app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt` and `app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 312 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/knf/kuma/preferences/ConfigurationFragment.kt:383` 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 (29 lines × 2) app/src/main/java/knf/kuma/tv/TVServersFactory.kt:203— app/src/main/java/knf/kuma/tv/TVServersFactory.kt:203-231 | app/src/main/java/knf/kuma/tv/TVServersFactory.kt:239-267 — 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/knf/kuma/tv/TVServersFactory.kt:203` 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 (26 lines × 2) app/src/main/java/knf/kuma/Diagnostic.kt:379— app/src/main/java/knf/kuma/Diagnostic.kt:379-404 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:377-402 — before extracting anything, compare `app/src/main/java/knf/kuma/Diagnostic.kt` and `app/src/main/java/knf/kuma/DiagnosticMaterial.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 216 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.
Duplicated block (26 lines × 2) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:206— app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:206-231 | app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:198-223 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt` and `app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 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/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:206` 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 (26 lines × 2) app/src/main/java/knf/kuma/custom/ConnectionState.kt:118— app/src/main/java/knf/kuma/custom/ConnectionState.kt:118-143 | app/src/main/java/knf/kuma/custom/ConnectionState.kt:145-170 — 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 (25 lines × 2) app/src/main/java/knf/kuma/Main.kt:466— app/src/main/java/knf/kuma/Main.kt:466-490 | app/src/main/java/knf/kuma/MainMaterial.kt:422-446 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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/knf/kuma/Main.kt:466` 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 (25 lines × 2) app/src/main/java/knf/kuma/download/DownloadManager.kt:367— app/src/main/java/knf/kuma/download/DownloadManager.kt:367-391 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:381-405 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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.
Duplicated block (25 lines × 2) app/src/main/java/knf/kuma/ads/AdsUtilsBrains.kt:104— app/src/main/java/knf/kuma/ads/AdsUtilsBrains.kt:104-128 | app/src/main/java/knf/kuma/ads/AdsUtilsMob.kt:119-143 — 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 (23 lines × 2) app/src/main/java/knf/kuma/download/FileAccessHelper.kt:561— app/src/main/java/knf/kuma/download/FileAccessHelper.kt:561-583 | app/src/main/java/knf/kuma/download/FileAccessHelper.kt:587-609 — 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/knf/kuma/download/FileAccessHelper.kt:561` 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 (23 lines × 2) app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:127— app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:127-149 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsMaterialHolder.kt:132-154 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt` and `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsMaterialHolder.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:127` 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/knf/kuma/home/QueueAdapter.kt:42— app/src/main/java/knf/kuma/home/QueueAdapter.kt:42-64 | app/src/main/java/knf/kuma/home/QueueAdapterMaterial.kt:42-64 — before extracting anything, compare `app/src/main/java/knf/kuma/home/QueueAdapter.kt` and `app/src/main/java/knf/kuma/home/QueueAdapterMaterial.kt` as WHOLE FILES: 92% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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 (19 lines × 2) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:135— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:135-153 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:134-152 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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/knf/kuma/animeinfo/ActivityAnime.kt:135` 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 (19 lines × 2) app/src/main/java/knf/kuma/custom/HiddenOverlay.kt:33— app/src/main/java/knf/kuma/custom/HiddenOverlay.kt:33-51 | app/src/main/java/knf/kuma/custom/SeenAnimeOverlay.kt:33-51 — 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/knf/kuma/custom/HiddenOverlay.kt:33` 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 (19 lines × 2) app/src/main/java/knf/kuma/videoservers/FileActions.kt:196— app/src/main/java/knf/kuma/videoservers/FileActions.kt:196-214 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:282-300 — 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/knf/kuma/videoservers/FileActions.kt:196` 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/knf/kuma/animeinfo/ActivityAnime.kt:160— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:160-177 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:159-176 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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.
Duplicated block (18 lines × 2) app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt:47— app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt:47-64 | app/src/main/java/knf/kuma/explorer/FragmentFilesRootMaterial.kt:48-65 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/FragmentFilesRoot.kt` and `app/src/main/java/knf/kuma/explorer/FragmentFilesRootMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 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.
Duplicated block (18 lines × 2) app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:1423— app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:1423-1440 | app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:1457-1474 — 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/knf/kuma/custom/AchievementUnlocked.java:1423` 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/knf/kuma/commons/SelfServer.kt:214— app/src/main/java/knf/kuma/commons/SelfServer.kt:214-228 | app/src/main/java/knf/kuma/commons/SelfServer.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/knf/kuma/commons/SelfServer.kt:214` 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/knf/kuma/emision/EmissionActivity.kt:35— app/src/main/java/knf/kuma/emision/EmissionActivity.kt:35-49 | app/src/main/java/knf/kuma/emision/EmissionActivityMaterial.kt:38-52 — before extracting anything, compare `app/src/main/java/knf/kuma/emision/EmissionActivity.kt` and `app/src/main/java/knf/kuma/emision/EmissionActivityMaterial.kt` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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/knf/kuma/emision/EmissionActivity.kt:35` 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/knf/kuma/emision/EmissionActivityMaterial.kt:37` calls `setSurfaceBars` and `app/src/main/java/knf/kuma/emision/EmissionActivity.kt:34` 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 (15 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:122— app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:122-136 | app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt:125-139 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 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.
Duplicated block (8 lines × 3) app/src/main/java/knf/kuma/commons/BypassUtil.kt:100— app/src/main/java/knf/kuma/commons/BypassUtil.kt:100-107 | app/src/main/java/knf/kuma/commons/BypassUtil.kt:112-119 | app/src/main/java/knf/kuma/commons/BypassUtil.kt:124-131 — 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/knf/kuma/commons/BypassUtil.kt:100` 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 (8 lines × 3) app/src/main/java/knf/kuma/download/DownloadHlsWorker.kt:274— app/src/main/java/knf/kuma/download/DownloadHlsWorker.kt:274-281 | app/src/main/java/knf/kuma/download/DownloadManager.kt:400-407 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:414-421 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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/knf/kuma/download/DownloadHlsWorker.kt:274` 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 × 3) persistentsearchview/src/main/java/io/codetail/widget/RevealFrameLayout.java:86— persistentsearchview/src/main/java/io/codetail/widget/RevealFrameLayout.java:86-93 | persistentsearchview/src/main/java/io/codetail/widget/RevealLinearLayout.java:86-93 | persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/RevealViewGroup.java:86-93 — before extracting anything, compare `persistentsearchview/src/main/java/io/codetail/widget/RevealFrameLayout.java` and `persistentsearchview/src/main/java/io/codetail/widget/RevealLinearLayout.java` as WHOLE FILES: 89% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication· Edited copy of a member (59 corresponding lines) · ×2
Edited copy of a member (59 corresponding lines) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:95— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:95-153 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:94-152 — These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (59 corresponding lines) app/src/main/java/knf/kuma/videoservers/FileActions.kt:321— app/src/main/java/knf/kuma/videoservers/FileActions.kt:321-384 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:93-151 — These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (39 corresponding lines) · ×2
Edited copy of a member (39 corresponding lines) app/src/main/java/knf/kuma/migration/MigrationActivity.kt:228— app/src/main/java/knf/kuma/migration/MigrationActivity.kt:228-266 | app/src/main/java/knf/kuma/migration/MigrationActivity.kt:268-307 — 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.
Edited copy of a member (39 corresponding lines) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:58— app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:58-96 | app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:58-96 — 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, 19+ corresponding lines) · ×2
Edited copies of one member (3 members, 19+ corresponding lines) app/src/main/java/knf/kuma/updater/UpdateActivity.kt:119— app/src/main/java/knf/kuma/updater/UpdateActivity.kt:119-137 | app/src/main/java/knf/kuma/updater/UpdateActivity.kt:139-157 | app/src/main/java/knf/kuma/updater/UpdateActivity.kt:159-177 — 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.
Edited copies of one member (3 members, 19+ corresponding lines) app/src/main/java/knf/kuma/ads/AdsUtilsBrains.kt:38— app/src/main/java/knf/kuma/ads/AdsUtilsBrains.kt:38-56 | app/src/main/java/knf/kuma/ads/AdsUtilsBrains.kt:58-78 | app/src/main/java/knf/kuma/ads/AdsUtilsBrains.kt:80-98 — 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 copies of one member (3 members, 9+ corresponding lines) · ×2
Edited copies of one member (3 members, 9+ corresponding lines) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:314— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:314-322 | app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:347-356 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:314-322 — 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.
Edited copies of one member (3 members, 9+ corresponding lines) app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:56— app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:56-64 | app/src/main/java/knf/kuma/explorer/FragmentChaptersMaterial.kt:56-64 | app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:69-80 — 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· Edited copy of a member (8 corresponding lines) · ×2
Edited copy of a member (8 corresponding lines) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:358— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:358-365 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:348-355 — 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.
Edited copy of a member (8 corresponding lines) app/src/main/java/knf/kuma/Diagnostic.kt:417— app/src/main/java/knf/kuma/Diagnostic.kt:417-424 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:415-422 — 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.
Duplicated block (32 lines × 2) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:96— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:96-127 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:95-126 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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/knf/kuma/animeinfo/ActivityAnime.kt:96` 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 (32 lines × 2) persistentsearchview/src/main/java/io/codetail/animation/SupportAnimatorLollipop.java:57— persistentsearchview/src/main/java/io/codetail/animation/SupportAnimatorLollipop.java:57-88 | persistentsearchview/src/main/java/io/codetail/animation/SupportAnimatorPreL.java:53-84 — before extracting anything, compare `persistentsearchview/src/main/java/io/codetail/animation/SupportAnimatorLollipop.java` and `persistentsearchview/src/main/java/io/codetail/animation/SupportAnimatorPreL.java` as WHOLE FILES: 89% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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 (28 lines × 2) app/src/main/java/knf/kuma/Main.kt:227— app/src/main/java/knf/kuma/Main.kt:227-254 | app/src/main/java/knf/kuma/MainMaterial.kt:229-256 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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/knf/kuma/Main.kt:227` 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 (28 lines × 2) app/src/main/java/knf/kuma/custom/FSGridRecyclerView.kt:28— app/src/main/java/knf/kuma/custom/FSGridRecyclerView.kt:28-55 | app/src/main/java/knf/kuma/custom/GridRecyclerView.kt:30-57 — before extracting anything, compare `app/src/main/java/knf/kuma/custom/FSGridRecyclerView.kt` and `app/src/main/java/knf/kuma/custom/GridRecyclerView.kt` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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/knf/kuma/custom/FSGridRecyclerView.kt:28` 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 (27 lines × 2) app/src/main/java/knf/kuma/home/HomeFragment.kt:115— app/src/main/java/knf/kuma/home/HomeFragment.kt:115-141 | app/src/main/java/knf/kuma/home/HomeFragmentMaterial.kt:140-166 — before extracting anything, compare `app/src/main/java/knf/kuma/home/HomeFragment.kt` and `app/src/main/java/knf/kuma/home/HomeFragmentMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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/knf/kuma/home/HomeFragment.kt:115` 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 (27 lines × 2) app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:154— app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:154-180 | app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt:157-183 — before extracting anything, compare `app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt` and `app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 93 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.
Duplicated block (21 lines × 2) app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:233— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:233-253 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:233-253 — before extracting anything, compare `app/src/main/java/knf/kuma/achievements/AchievementActivity.kt` and `app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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/knf/kuma/achievements/AchievementActivity.kt:233` 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 × 2) app/src/main/java/knf/kuma/animeinfo/AnimePagerAdapter.kt:14— app/src/main/java/knf/kuma/animeinfo/AnimePagerAdapter.kt:14-34 | app/src/main/java/knf/kuma/animeinfo/AnimePagerAdapterMaterial.kt:14-34 — 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 (19–20 lines × 2) app/src/main/java/knf/kuma/ads/AdsUtilsLovin.kt:100— app/src/main/java/knf/kuma/ads/AdsUtilsLovin.kt:100-119 | app/src/main/java/knf/kuma/ads/AdsUtilsMob.kt:95-113 — 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. 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 (19–20 lines × 2) app/src/main/java/knf/kuma/custom/SingleFragmentActivity.kt:26— app/src/main/java/knf/kuma/custom/SingleFragmentActivity.kt:26-44 | app/src/main/java/knf/kuma/custom/SingleFragmentMaterialActivity.kt:27-46 — before extracting anything, compare `app/src/main/java/knf/kuma/custom/SingleFragmentActivity.kt` and `app/src/main/java/knf/kuma/custom/SingleFragmentMaterialActivity.kt` as WHOLE FILES: 84% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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/knf/kuma/custom/SingleFragmentActivity.kt:26` 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/knf/kuma/custom/SingleFragmentMaterialActivity.kt:26` calls `setSurfaceBars` and `app/src/main/java/knf/kuma/custom/SingleFragmentActivity.kt:24` 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 (20 lines × 2) app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:189— app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:189-208 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsMaterialHolder.kt:178-197 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt` and `app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsMaterialHolder.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 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.
Duplicated block (20 lines × 2) app/src/main/java/knf/kuma/download/DownloadManager.kt:450— app/src/main/java/knf/kuma/download/DownloadManager.kt:450-469 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:464-483 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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.
Duplicated block (5 lines × 4) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:269— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:269-273 | app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:281-285 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:270-274 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:294-298 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind `animeObject` to `Recommended` in one and `Relation` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (5 lines × 4) app/src/main/java/knf/kuma/custom/ConnectionState.kt:275— app/src/main/java/knf/kuma/custom/ConnectionState.kt:275-279 | app/src/main/java/knf/kuma/custom/ConnectionState.kt:286-291 | app/src/main/java/knf/kuma/custom/ConnectionState.kt:316-320 | app/src/main/java/knf/kuma/custom/ConnectionState.kt:338-342 — 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/knf/kuma/custom/ConnectionState.kt:286` 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.
Outbound HTTP without resilience app/src/main/java/knf/kuma/commons/SelfServer.kt:144— `.openConnection(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
Outbound HTTP without resilience app/src/main/java/knf/kuma/news/NewsObjects.kt:158— `Retrofit.Builder(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
AnimeChaptersAdapterMaterial.onBindViewHolder (cyclomatic 40) app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt:103— AnimeChaptersAdapterMaterial.onBindViewHolder 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.
ConfigurationFragment.onCreatePreferences (cyclomatic 38) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:79— ConfigurationFragment.onCreatePreferences 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.
ConfigurationFragmentMaterial.onCreatePreferences (cyclomatic 38) app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:79— ConfigurationFragmentMaterial.onCreatePreferences 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.
RecentsAV1Adapter.onBindViewHolder (cyclomatic 31) app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.kt:85— RecentsAV1Adapter.onBindViewHolder 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.
FileAccessHelper.checkNoMedia (cyclomatic 29) app/src/main/java/knf/kuma/download/FileAccessHelper.kt:246— FileAccessHelper.checkNoMedia 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.
Diagnostic.runMainTest (cyclomatic 28) app/src/main/java/knf/kuma/Diagnostic.kt:72— Diagnostic.runMainTest has cyclomatic complexity 28 (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.
DiagnosticMaterial.runMainTest (cyclomatic 28) app/src/main/java/knf/kuma/DiagnosticMaterial.kt:74— DiagnosticMaterial.runMainTest has cyclomatic complexity 28 (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.
FileActions.execute (cyclomatic 28) app/src/main/java/knf/kuma/videoservers/FileActions.kt:125— FileActions.execute has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
AchievementUnlocked.animateData (cyclomatic 25) app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:899— AchievementUnlocked.animateData 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.
ConnectionState.doNetworkTests (cyclomatic 23) app/src/main/java/knf/kuma/custom/ConnectionState.kt:109— ConnectionState.doNetworkTests 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.
ServersFactory.start (cyclomatic 23) app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:230— ServersFactory.start 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.
FirestoreManager.start (cyclomatic 22) app/src/main/java/knf/kuma/backup/firestore/FirestoreManager.kt:79— FirestoreManager.start 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.
TVServersFactory.get (cyclomatic 21) app/src/main/java/knf/kuma/tv/TVServersFactory.kt:188— TVServersFactory.get 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.
ExplorerCreator.doMigrateDownloads (cyclomatic 19) app/src/main/java/knf/kuma/explorer/ExplorerCreator.kt:99— ExplorerCreator.doMigrateDownloads 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.
ChaptersFragment.onActivityResult (cyclomatic 17) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:144— ChaptersFragment.onActivityResult 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.
ChaptersFragmentMaterial.onActivityResult (cyclomatic 17) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:136— ChaptersFragmentMaterial.onActivityResult 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.
RecentAV1ModelsAdapter.onBindViewHolder (cyclomatic 17) app/src/main/java/knf/kuma/recents/RecentAV1ModelsAdapter.kt:58— RecentAV1ModelsAdapter.onBindViewHolder 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.
BVListener.onTouch (cyclomatic 16) app/src/main/java/knf/kuma/player/BVListener.kt:37— BVListener.onTouch 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.
ConfigurationFragment.onCreatePreferences (cognitive 88) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:79— ConfigurationFragment.onCreatePreferences has cognitive complexity 88 (threshold 15). Drivers by points: if/else 39 (72 pts), error handling 2 (6 pts), boolean chains 5, match/switch 2 (5 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConfigurationFragmentMaterial.onCreatePreferences (cognitive 88) app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:79— ConfigurationFragmentMaterial.onCreatePreferences has cognitive complexity 88 (threshold 15). Drivers by points: if/else 39 (72 pts), error handling 2 (6 pts), boolean chains 5, match/switch 2 (5 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ExplorerCreator.doMigrateDownloads (cognitive 68) app/src/main/java/knf/kuma/explorer/ExplorerCreator.kt:99— ExplorerCreator.doMigrateDownloads has cognitive complexity 68 (threshold 15). Drivers by points: if/else 21 (59 pts), error handling 1 (6 pts), boolean chains 3 (nesting depth added 43). 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.
AnimeChaptersAdapterMaterial.onBindViewHolder (cognitive 66) app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt:103— AnimeChaptersAdapterMaterial.onBindViewHolder has cognitive complexity 66 (threshold 15). Drivers by points: if/else 39 (55 pts), match/switch 3 (8 pts), boolean chains 3 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileActions.execute (cognitive 61) app/src/main/java/knf/kuma/videoservers/FileActions.kt:125— FileActions.execute has cognitive complexity 61 (threshold 15). Drivers by points: if/else 24 (53 pts), loops 2 (4 pts), boolean chains 2, error handling 1, match/switch 1 (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.
ChaptersFragment.onActivityResult (cognitive 53) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:144— ChaptersFragment.onActivityResult has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (35 pts), error handling 4 (13 pts), loops 1 (3 pts), boolean chains 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.
ChaptersFragmentMaterial.onActivityResult (cognitive 53) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:136— ChaptersFragmentMaterial.onActivityResult has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (35 pts), error handling 4 (13 pts), loops 1 (3 pts), boolean chains 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.
ServersFactory.start (cognitive 52) app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:230— ServersFactory.start has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (44 pts), loops 2 (4 pts), boolean chains 2, error handling 1, match/switch 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TVServersFactory.get (cognitive 51) app/src/main/java/knf/kuma/tv/TVServersFactory.kt:188— TVServersFactory.get has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (44 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RecentsAV1Adapter.onBindViewHolder (cognitive 48) app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.kt:85— RecentsAV1Adapter.onBindViewHolder has cognitive complexity 48 (threshold 15). Drivers by points: if/else 24 (35 pts), boolean chains 13 (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.
FileAccessHelper.checkNoMedia (cognitive 43) app/src/main/java/knf/kuma/download/FileAccessHelper.kt:246— FileAccessHelper.checkNoMedia has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 11, loops 2 (5 pts), error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FirestoreManager.start (cognitive 42) app/src/main/java/knf/kuma/backup/firestore/FirestoreManager.kt:79— FirestoreManager.start has cognitive complexity 42 (threshold 15). Drivers by points: if/else 22 (33 pts), boolean chains 6, loops 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.
MigrationActivity.migrateFavoritesInitial (cognitive 32) app/src/main/java/knf/kuma/migration/MigrationActivity.kt:134— MigrationActivity.migrateFavoritesInitial has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (23 pts), error handling 3 (9 pts) (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.
BVListener.onTouch (cognitive 32) app/src/main/java/knf/kuma/player/BVListener.kt:37— BVListener.onTouch has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (31 pts), match/switch 1 (nesting depth added 19). 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.
AchievementUnlocked.animateData (cognitive 32) app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:899— AchievementUnlocked.animateData has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22 (25 pts), ternaries 4 (5 pts), boolean chains 2 (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.
ConnectionState.doNetworkTests (cognitive 27) app/src/main/java/knf/kuma/custom/ConnectionState.kt:109— ConnectionState.doNetworkTests has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4, match/switch 2 (4 pts), error handling 1 (2 pts) (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.
Server.serveFile (cognitive 26) app/src/main/java/knf/kuma/commons/SelfServer.kt:182— Server.serveFile has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (21 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Server.serveFile (cognitive 25) app/src/main/java/knf/kuma/commons/SelfServer.kt:254— Server.serveFile has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (20 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DownloadingAdapter.onBindViewHolder (cognitive 25) app/src/main/java/knf/kuma/explorer/DownloadingAdapter.kt:32— DownloadingAdapter.onBindViewHolder has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 1 (3 pts), boolean chains 2, error handling 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.
DownloadingAdapterMaterial.onBindViewHolder (cognitive 25) app/src/main/java/knf/kuma/explorer/DownloadingAdapterMaterial.kt:33— DownloadingAdapterMaterial.onBindViewHolder has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), error handling 2 (3 pts), boolean chains 2, match/switch 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.
ConfigurationFragment.onActivityResult (cognitive 25) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:365— ConfigurationFragment.onActivityResult has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ConfigurationFragmentMaterial.onActivityResult (cognitive 25) app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:368— ConfigurationFragmentMaterial.onActivityResult has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RecentAV1ModelsAdapter.onBindViewHolder (cognitive 24) app/src/main/java/knf/kuma/recents/RecentAV1ModelsAdapter.kt:58— RecentAV1ModelsAdapter.onBindViewHolder has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), match/switch 3 (7 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileActions.processSelectedServer (cognitive 24) app/src/main/java/knf/kuma/videoservers/FileActions.kt:321— FileActions.processSelectedServer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (13 pts), error handling 2 (5 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 8). 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.
Main.subscribeBadges (cognitive 23) app/src/main/java/knf/kuma/Main.kt:226— Main.subscribeBadges has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (3 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MainMaterial.subscribeBadges (cognitive 23) app/src/main/java/knf/kuma/MainMaterial.kt:228— MainMaterial.subscribeBadges has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (3 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileActions.showServerList (cognitive 23) app/src/main/java/knf/kuma/videoservers/FileActions.kt:264— FileActions.showServerList has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ActivityImgFull.searchInMAL (cognitive 22) app/src/main/java/knf/kuma/animeinfo/img/ActivityImgFull.kt:44— ActivityImgFull.searchInMAL has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), error handling 2 (6 pts), loops 2 (6 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.
SnackProgressBarLayout.onMeasure (cognitive 22) app/src/main/java/knf/kuma/custom/snackbar/SnackProgressBarLayout.kt:160— SnackProgressBarLayout.onMeasure has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 1, 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.
TVMain.onActivityResult (cognitive 22) app/src/main/java/knf/kuma/tv/ui/TVMain.kt:152— TVMain.onActivityResult has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 11). 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.
ModelsViewHolder.setUpDownloadIndicators (cognitive 21) app/src/main/java/knf/kuma/recents/RecentAV1ModelsAdapter.kt:290— ModelsViewHolder.setUpDownloadIndicators has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 9). 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.
ItemHolder.setDownloadState (cognitive 21) app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.kt:434— ItemHolder.setDownloadState has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
AchievementUnlocked.initGlobalFields (cognitive 21) app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:278— AchievementUnlocked.initGlobalFields has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JsExtractor.extractBalanced (cognitive 20) app/src/main/java/knf/kuma/commons/JsExtractor.kt:156— JsExtractor.extractBalanced has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FavoriteFragment.showNewCategoryInit (cognitive 20) app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:272— FavoriteFragment.showNewCategoryInit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ServersFactory.showServerList (cognitive 20) app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:153— ServersFactory.showServerList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
NewsDataSource.load (cognitive 19) app/src/main/java/knf/kuma/news/NewsObjects.kt:93— NewsDataSource.load has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 2, boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ServersFactory.processSelectedServer (cognitive 19) app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:93— ServersFactory.processSelectedServer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, match/switch 2 (5 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 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.
Diagnostic.runMainTest (cognitive 18) app/src/main/java/knf/kuma/Diagnostic.kt:72— Diagnostic.runMainTest has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 5, match/switch 5, error handling 4, if/else 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.
DiagnosticMaterial.runMainTest (cognitive 18) app/src/main/java/knf/kuma/DiagnosticMaterial.kt:74— DiagnosticMaterial.runMainTest has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 5, match/switch 5, error handling 4, if/else 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.
FileAccessHelper.deletePath (cognitive 17) app/src/main/java/knf/kuma/download/FileAccessHelper.kt:397— FileAccessHelper.deletePath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, 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.
AnimeDetailsHolder.populate (cognitive 16) app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:71— AnimeDetailsHolder.populate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), 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.
FavoriteFragment.showAddToCategory (cognitive 16) app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:212— FavoriteFragment.showAddToCategory has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
BasicExoplayer.addMedia (cognitive 16) app/src/main/java/knf/kuma/player/BasicExoplayer.kt:136— BasicExoplayer.addMedia has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TopActivity.onOptionsItemSelected (cognitive 16) app/src/main/java/knf/kuma/profile/TopActivity.kt:113— TopActivity.onOptionsItemSelected has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, match/switch 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.
TopActivityMaterial.onOptionsItemSelected (cognitive 16) app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt:124— TopActivityMaterial.onOptionsItemSelected has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, match/switch 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.
D4 · Code Duplication· Near-duplicate member family (3 members, 14 shared lines) · ×1
Near-duplicate member family (3 members, 14 shared lines) app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:448— app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:448-474 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:484-524 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:532-558 — These 3 members are variants of one another: a block of 14 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 3 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 3 times.
Near-duplicate member pair (258 shared lines) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:79— app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:79-356 | app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:79-359 — These two members are variants of one another: 258 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.
Near-duplicate member pair (50 shared lines) app/src/main/java/knf/kuma/videoservers/FileActions.kt:125— app/src/main/java/knf/kuma/videoservers/FileActions.kt:125-262 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:230-333 — These two members are variants of one another: 50 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.
Near-duplicate member pair (44 shared lines) app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:71— app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsHolder.kt:71-172 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeDetailsMaterialHolder.kt:69-168 — 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· Edited copy of a member (86 corresponding lines) · ×1
Edited copy of a member (86 corresponding lines) app/src/main/java/knf/kuma/Main.kt:226— app/src/main/java/knf/kuma/Main.kt:226-311 | app/src/main/java/knf/kuma/MainMaterial.kt:228-313 — These two members are one piece of code written twice and then edited apart: 86 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (88 corresponding lines) · ×1
Edited copy of a member (88 corresponding lines) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:144— app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:144-231 | app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:136-223 — These two members are one piece of code written twice and then edited apart: 88 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 (89 corresponding lines) · ×1
Edited copy of a member (89 corresponding lines) app/src/main/java/knf/kuma/home/HomeFragment.kt:53— app/src/main/java/knf/kuma/home/HomeFragment.kt:53-141 | app/src/main/java/knf/kuma/home/HomeFragmentMaterial.kt:56-166 — These two members are one piece of code written twice and then edited apart: 89 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (79 corresponding lines) · ×1
Edited copy of a member (79 corresponding lines) app/src/main/java/knf/kuma/explorer/DownloadingAdapter.kt:32— app/src/main/java/knf/kuma/explorer/DownloadingAdapter.kt:32-116 | app/src/main/java/knf/kuma/explorer/DownloadingAdapterMaterial.kt:33-111 — These two members are one piece of code written twice and then edited apart: 79 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 (64 corresponding lines) · ×1
Edited copy of a member (64 corresponding lines) app/src/main/java/knf/kuma/Diagnostic.kt:72— app/src/main/java/knf/kuma/Diagnostic.kt:72-135 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:74-137 — These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (68 corresponding lines) · ×1
Edited copy of a member (68 corresponding lines) app/src/main/java/knf/kuma/commons/SelfServer.kt:182— app/src/main/java/knf/kuma/commons/SelfServer.kt:182-252 | app/src/main/java/knf/kuma/commons/SelfServer.kt:254-321 — These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (52 corresponding lines) · ×1
Edited copy of a member (52 corresponding lines) app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:64— app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapter.kt:64-115 | app/src/main/java/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt:63-118 — These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (47 corresponding lines) · ×1
Edited copy of a member (47 corresponding lines) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:365— app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:365-411 | app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:368-414 — These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (48 corresponding lines) · ×1
Edited copy of a member (48 corresponding lines) app/src/main/java/knf/kuma/Diagnostic.kt:137— app/src/main/java/knf/kuma/Diagnostic.kt:137-184 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:139-186 — These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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/knf/kuma/Diagnostic.kt:219— app/src/main/java/knf/kuma/Diagnostic.kt:219-256 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:221-258 — 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 (24 corresponding lines) · ×1
Edited copy of a member (24 corresponding lines) app/src/main/java/knf/kuma/Main.kt:433— app/src/main/java/knf/kuma/Main.kt:433-457 | app/src/main/java/knf/kuma/MainMaterial.kt:395-418 — 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 (34 corresponding lines) · ×1
Edited copy of a member (34 corresponding lines) app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:90— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:90-123 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:89-123 — These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (31 corresponding lines) · ×1
Edited copy of a member (31 corresponding lines) app/src/main/java/knf/kuma/videoservers/FileActions.kt:430— app/src/main/java/knf/kuma/videoservers/FileActions.kt:430-462 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:335-365 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (29 corresponding lines) · ×1
Edited copy of a member (29 corresponding lines) app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:1422— app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:1422-1454 | app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:1456-1484 — 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 (36 corresponding lines) · ×1
Edited copy of a member (36 corresponding lines) app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:85— app/src/main/java/knf/kuma/explorer/FragmentChapters.kt:85-120 | app/src/main/java/knf/kuma/explorer/FragmentChaptersMaterial.kt:85-120 — These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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/knf/kuma/Main.kt:123— app/src/main/java/knf/kuma/Main.kt:123-167 | app/src/main/java/knf/kuma/MainMaterial.kt:118-169 — 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 (28 corresponding lines) · ×1
Edited copy of a member (28 corresponding lines) app/src/main/java/knf/kuma/pojos/DownloadObject.java:133— app/src/main/java/knf/kuma/pojos/DownloadObject.java:133-160 | app/src/main/java/knf/kuma/pojos/ExplorerObject.java:212-239 — 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 copies of one member (3 members, 28+ corresponding lines) · ×1
Edited copies of one member (3 members, 28+ corresponding lines) app/src/main/java/knf/kuma/commons/EAHelper.kt:162— app/src/main/java/knf/kuma/commons/EAHelper.kt:162-189 | app/src/main/java/knf/kuma/commons/EAHelper.kt:192-219 | app/src/main/java/knf/kuma/commons/EAHelper.kt:222-249 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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, 27+ corresponding lines) · ×1
Edited copies of one member (3 members, 27+ corresponding lines) app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:114— app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:114-148 | app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:150-182 | app/src/main/java/knf/kuma/favorite/FavoriteFragment.kt:184-210 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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, 22+ corresponding lines) · ×1
Edited copies of one member (3 members, 22+ corresponding lines) app/src/main/java/knf/kuma/download/FileAccessHelper.kt:444— app/src/main/java/knf/kuma/download/FileAccessHelper.kt:444-478 | app/src/main/java/knf/kuma/download/FileAccessHelper.kt:480-501 | app/src/main/java/knf/kuma/download/FileAccessHelper.kt:503-524 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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 (37 corresponding lines) · ×1
Edited copy of a member (37 corresponding lines) app/src/main/java/knf/kuma/custom/FSGridRecyclerView.kt:19— app/src/main/java/knf/kuma/custom/FSGridRecyclerView.kt:19-55 | app/src/main/java/knf/kuma/custom/GridRecyclerView.kt:21-57 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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) · ×1
Edited copy of a member (20 corresponding lines) app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:145— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:145-164 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:145-164 — 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 (21 corresponding lines) · ×1
Edited copy of a member (21 corresponding lines) app/src/main/java/knf/kuma/changelog/ChangelogActivity.kt:60— app/src/main/java/knf/kuma/changelog/ChangelogActivity.kt:60-80 | app/src/main/java/knf/kuma/changelog/ChangelogActivityMaterial.kt:62-84 — These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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, 18+ corresponding lines) · ×1
Edited copies of one member (4 members, 18+ corresponding lines) app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:209— app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:209-227 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:229-251 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersMaterialHolder.kt:208-225 | app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersMaterialHolder.kt:227-249 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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 copies of one member (3 members, 18+ corresponding lines) · ×1
Edited copies of one member (3 members, 18+ corresponding lines) app/src/main/java/knf/kuma/cast/CastMedia.kt:24— app/src/main/java/knf/kuma/cast/CastMedia.kt:24-41 | app/src/main/java/knf/kuma/cast/CastMedia.kt:43-61 | app/src/main/java/knf/kuma/cast/CastMedia.kt:63-80 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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 (4 members, 12+ corresponding lines) · ×1
Edited copies of one member (4 members, 12+ corresponding lines) app/src/main/java/knf/kuma/download/DownloadHlsWorker.kt:267— app/src/main/java/knf/kuma/download/DownloadHlsWorker.kt:267-281 | app/src/main/java/knf/kuma/download/DownloadHlsWorker.kt:283-294 | app/src/main/java/knf/kuma/download/DownloadManager.kt:409-420 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:423-434 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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 copies of one member (5 members, 13+ corresponding lines) · ×1
Edited copies of one member (5 members, 13+ corresponding lines) app/src/main/java/knf/kuma/ads/AdsUtils.kt:128— app/src/main/java/knf/kuma/ads/AdsUtils.kt:128-140 | app/src/main/java/knf/kuma/ads/AdsUtils.kt:142-154 | app/src/main/java/knf/kuma/ads/AdsUtils.kt:156-168 | app/src/main/java/knf/kuma/ads/AdsUtils.kt:170-191 | app/src/main/java/knf/kuma/ads/AdsUtils.kt:193-214 — These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 20+ corresponding lines) · ×1
Edited copies of one member (4 members, 20+ corresponding lines) app/src/main/java/knf/kuma/ads/AdsUtilsLovin.kt:56— app/src/main/java/knf/kuma/ads/AdsUtilsLovin.kt:56-75 | app/src/main/java/knf/kuma/ads/AdsUtilsLovin.kt:77-97 | app/src/main/java/knf/kuma/ads/AdsUtilsMob.kt:52-71 | app/src/main/java/knf/kuma/ads/AdsUtilsMob.kt:73-92 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 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 copies of one member (4 members, 10+ corresponding lines) · ×1
Edited copies of one member (4 members, 10+ corresponding lines) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:268— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:268-278 | app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:292-301 | app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:303-312 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:281-291 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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 (12 corresponding lines) · ×1
Edited copy of a member (12 corresponding lines) app/src/main/java/knf/kuma/faq/FaqActivity.kt:23— app/src/main/java/knf/kuma/faq/FaqActivity.kt:23-34 | app/src/main/java/knf/kuma/faq/FaqActivityMaterial.kt:24-36 — 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· Edited copy of a member (16 corresponding lines) · ×1
Edited copy of a member (16 corresponding lines) app/src/main/java/knf/kuma/widgets/emision/WEListProvider.kt:87— app/src/main/java/knf/kuma/widgets/emision/WEListProvider.kt:87-102 | app/src/main/java/knf/kuma/widgets/emision/WEmisionProvider.kt:79-94 — 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 (14 corresponding lines) · ×1
Edited copy of a member (14 corresponding lines) persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/PersistentSearchView.java:860— persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/PersistentSearchView.java:860-873 | persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/PersistentSearchView.java:881-894 — 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 (5 corresponding lines) · ×1
Edited copy of a member (5 corresponding lines) app/src/main/java/knf/kuma/pojos/AnimeObject.java:485— app/src/main/java/knf/kuma/pojos/AnimeObject.java:485-489 | app/src/main/java/knf/kuma/pojos/ExplorerObject.java:242-246 — These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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, 5+ corresponding lines) · ×1
Edited copies of one member (3 members, 5+ corresponding lines) app/src/main/java/knf/kuma/tv/cards/RecentsCardView.kt:19— app/src/main/java/knf/kuma/tv/cards/RecentsCardView.kt:19-23 | app/src/main/java/knf/kuma/tv/cards/RecordCardView.kt:19-23 | app/src/main/java/knf/kuma/tv/cards/RelatedCardView.kt:21-25 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' 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 (3 corresponding lines) · ×1
Edited copy of a member (3 corresponding lines) app/src/main/java/knf/kuma/emision/EmissionAdapter.kt:33— app/src/main/java/knf/kuma/emision/EmissionAdapter.kt:33-35 | app/src/main/java/knf/kuma/queue/QueueAllAdapter.kt:24-26 — These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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 (4 corresponding lines) · ×1
Edited copy of a member (4 corresponding lines) app/src/main/java/knf/kuma/profile/TopActivity.kt:97— app/src/main/java/knf/kuma/profile/TopActivity.kt:97-100 | app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt:108-111 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it 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.
Duplicated block (89 lines × 2) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:96— app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:96-184 | app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:99-187 — before extracting anything, compare `app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt` and `app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 312 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/knf/kuma/preferences/ConfigurationFragment.kt:96` 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 (71 lines × 2) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:286— app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:286-356 | app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:289-359 — before extracting anything, compare `app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt` and `app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 312 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/knf/kuma/preferences/ConfigurationFragment.kt:286` 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 (65 lines × 2) app/src/main/java/knf/kuma/profile/TopActivity.kt:114— app/src/main/java/knf/kuma/profile/TopActivity.kt:114-178 | app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt:125-189 — before extracting anything, compare `app/src/main/java/knf/kuma/profile/TopActivity.kt` and `app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 86 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/knf/kuma/profile/TopActivity.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 (61 lines × 2) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:196— app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:196-256 | app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:199-259 — before extracting anything, compare `app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt` and `app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 312 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/knf/kuma/preferences/ConfigurationFragment.kt:196` 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 (60 lines × 2) app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:145— app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:145-204 | app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt:137-196 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragment.kt` and `app/src/main/java/knf/kuma/animeinfo/fragments/ChaptersFragmentMaterial.kt` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 130 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/knf/kuma/animeinfo/fragments/ChaptersFragment.kt:145` 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 (51 lines × 2) app/src/main/java/knf/kuma/Diagnostic.kt:85— app/src/main/java/knf/kuma/Diagnostic.kt:85-135 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:87-137 — before extracting anything, compare `app/src/main/java/knf/kuma/Diagnostic.kt` and `app/src/main/java/knf/kuma/DiagnosticMaterial.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 216 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/knf/kuma/Diagnostic.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.
Duplicated block (49 lines × 2) app/src/main/java/knf/kuma/Main.kt:263— app/src/main/java/knf/kuma/Main.kt:263-311 | app/src/main/java/knf/kuma/MainMaterial.kt:265-313 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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/knf/kuma/Main.kt:263` 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 (41 lines × 2) app/src/main/java/knf/kuma/Diagnostic.kt:138— app/src/main/java/knf/kuma/Diagnostic.kt:138-178 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:140-180 — before extracting anything, compare `app/src/main/java/knf/kuma/Diagnostic.kt` and `app/src/main/java/knf/kuma/DiagnosticMaterial.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 216 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/knf/kuma/Diagnostic.kt:138` 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 (31 lines × 2) app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:168— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:168-198 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:168-198 — before extracting anything, compare `app/src/main/java/knf/kuma/achievements/AchievementActivity.kt` and `app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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.
Duplicated block (28–29 lines × 2) app/src/main/java/knf/kuma/home/HomeFragment.kt:86— app/src/main/java/knf/kuma/home/HomeFragment.kt:86-114 | app/src/main/java/knf/kuma/home/HomeFragmentMaterial.kt:92-119 — before extracting anything, compare `app/src/main/java/knf/kuma/home/HomeFragment.kt` and `app/src/main/java/knf/kuma/home/HomeFragmentMaterial.kt` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 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 (24–28 lines × 2) app/src/main/java/knf/kuma/Diagnostic.kt:290— app/src/main/java/knf/kuma/Diagnostic.kt:290-317 | app/src/main/java/knf/kuma/DiagnosticMaterial.kt:292-315 — before extracting anything, compare `app/src/main/java/knf/kuma/Diagnostic.kt` and `app/src/main/java/knf/kuma/DiagnosticMaterial.kt` as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 216 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.
Duplicated block (33 lines × 2) app/src/main/java/knf/kuma/custom/StateView.kt:35— app/src/main/java/knf/kuma/custom/StateView.kt:35-67 | app/src/main/java/knf/kuma/custom/StateViewMaterial.kt:36-68 — before extracting anything, compare `app/src/main/java/knf/kuma/custom/StateView.kt` and `app/src/main/java/knf/kuma/custom/StateViewMaterial.kt` as WHOLE FILES: 91% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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 (22–23 lines × 2) app/src/main/java/knf/kuma/commons/ExtensionUtils.kt:289— app/src/main/java/knf/kuma/commons/ExtensionUtils.kt:289-310 | app/src/main/java/knf/kuma/commons/ExtensionUtils.kt:322-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/knf/kuma/commons/ExtensionUtils.kt:289` 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 (20–23 lines × 2) app/src/main/java/knf/kuma/commons/SelfServer.kt:191— app/src/main/java/knf/kuma/commons/SelfServer.kt:191-210 | app/src/main/java/knf/kuma/commons/SelfServer.kt:260-282 — 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/knf/kuma/commons/SelfServer.kt:191` 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.
Duplicated block (22 lines × 2) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:258— app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:258-279 | app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:261-282 — before extracting anything, compare `app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt` and `app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 312 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/knf/kuma/preferences/ConfigurationFragment.kt:258` 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 (12–21 lines × 6) app/src/main/java/knf/kuma/tv/TVServersFactory.kt:198— app/src/main/java/knf/kuma/tv/TVServersFactory.kt:198-218 | app/src/main/java/knf/kuma/tv/TVServersFactory.kt:234-254 | app/src/main/java/knf/kuma/videoservers/FileActions.kt:156-167 | app/src/main/java/knf/kuma/videoservers/FileActions.kt:176-187 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:242-253 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:262-273 — there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart.
Duplicated block (15–18 lines × 2) app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:80— app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt:80-94 | app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt:80-97 — before extracting anything, compare `app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt` and `app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.kt` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 312 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/knf/kuma/preferences/ConfigurationFragment.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.
Duplicated block (14–18 lines × 2) app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.kt:203— app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.kt:203-220 | app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.kt:271-284 — 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/knf/kuma/recents/RecentsAV1Adapter.kt:203` 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.
Duplicated block (9–17 lines × 2) app/src/main/java/knf/kuma/download/FileAccessHelper.kt:448— app/src/main/java/knf/kuma/download/FileAccessHelper.kt:448-464 | app/src/main/java/knf/kuma/download/FileAccessHelper.kt:483-491 — 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/knf/kuma/download/FileAccessHelper.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.
Duplicated block (14–15 lines × 2) app/src/main/java/knf/kuma/ads/AdsUtilsLovin.kt:78— app/src/main/java/knf/kuma/ads/AdsUtilsLovin.kt:78-92 | app/src/main/java/knf/kuma/ads/AdsUtilsMob.kt:74-87 — 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/knf/kuma/ads/AdsUtilsLovin.kt:78` 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–15 lines × 2) app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt:296— app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt:296-308 | app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.kt:267-281 — 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/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.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 (14 lines × 3) app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:453— app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:453-466 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:503-516 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:537-550 — 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/knf/kuma/videoservers/ServersFactory.kt:453` 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. 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 (15–16 lines × 2) app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:148— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:148-162 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:148-163 — before extracting anything, compare `app/src/main/java/knf/kuma/achievements/AchievementActivity.kt` and `app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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 (24 lines × 2) app/src/main/java/knf/kuma/changelog/ChangelogActivity.kt:89— app/src/main/java/knf/kuma/changelog/ChangelogActivity.kt:89-112 | app/src/main/java/knf/kuma/changelog/ChangelogActivityMaterial.kt:93-116 — before extracting anything, compare `app/src/main/java/knf/kuma/changelog/ChangelogActivity.kt` and `app/src/main/java/knf/kuma/changelog/ChangelogActivityMaterial.kt` as WHOLE FILES: 93% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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 (11 lines × 3) app/src/main/java/knf/kuma/Main.kt:277— app/src/main/java/knf/kuma/Main.kt:277-287 | app/src/main/java/knf/kuma/MainMaterial.kt:279-289 | app/src/main/java/knf/kuma/emision/EmissionViewModel.kt:26-36 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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 (10 lines × 4) app/src/main/java/knf/kuma/Main.kt:672— app/src/main/java/knf/kuma/Main.kt:672-681 | app/src/main/java/knf/kuma/MainMaterial.kt:594-603 | app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:235-244 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:234-243 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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 (9 lines × 4) app/src/main/java/knf/kuma/commons/CipherExt.kt:37— app/src/main/java/knf/kuma/commons/CipherExt.kt:37-45 | app/src/main/java/knf/kuma/commons/CipherExt.kt:53-61 | app/src/main/java/knf/kuma/commons/CipherExt.kt:85-93 | app/src/main/java/knf/kuma/commons/CipherExt.kt:101-109 — 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 (9 lines × 3) app/src/main/java/knf/kuma/download/DownloadHlsWorker.kt:286— app/src/main/java/knf/kuma/download/DownloadHlsWorker.kt:286-294 | app/src/main/java/knf/kuma/download/DownloadManager.kt:412-420 | app/src/main/java/knf/kuma/download/DownloadManagerJob.kt:426-434 — before extracting anything, compare `app/src/main/java/knf/kuma/download/DownloadManager.kt` and `app/src/main/java/knf/kuma/download/DownloadManagerJob.kt` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 170 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/knf/kuma/download/DownloadHlsWorker.kt:286` 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 × 6) app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:283— app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:283-290 | app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:294-301 | app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt:305-312 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:272-279 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:284-291 | app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt:296-303 — before extracting anything, compare `app/src/main/java/knf/kuma/animeinfo/ActivityAnime.kt` and `app/src/main/java/knf/kuma/animeinfo/ActivityAnimeMaterial.kt` as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 163 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/knf/kuma/animeinfo/ActivityAnime.kt:283` 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 first that the copies are not typed on the same thing: the declarations holding them bind `animate` to `Boolean = true` in one and `Boolean` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
Duplicated block (7–8 lines × 2) app/src/main/java/knf/kuma/migration/MigrationActivity.kt:156— app/src/main/java/knf/kuma/migration/MigrationActivity.kt:156-162 | app/src/main/java/knf/kuma/migration/MigrationActivity.kt:235-242 — 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/knf/kuma/migration/MigrationActivity.kt:156` 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/knf/kuma/migration/MigrationActivity.kt:162` calls `recordAV1DAO`, `addChapter`, `asRecord` and `app/src/main/java/knf/kuma/migration/MigrationActivity.kt:242` 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 (7 lines × 4) app/src/main/java/knf/kuma/Main.kt:215— app/src/main/java/knf/kuma/Main.kt:215-221 | app/src/main/java/knf/kuma/Main.kt:633-639 | app/src/main/java/knf/kuma/MainMaterial.kt:217-223 | app/src/main/java/knf/kuma/MainMaterial.kt:556-562 — before extracting anything, compare `app/src/main/java/knf/kuma/Main.kt` and `app/src/main/java/knf/kuma/MainMaterial.kt` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 253 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 (4–7 lines × 3) app/src/main/java/knf/kuma/tv/TVServersFactory.kt:194— app/src/main/java/knf/kuma/tv/TVServersFactory.kt:194-197 | app/src/main/java/knf/kuma/videoservers/FileActions.kt:149-155 | app/src/main/java/knf/kuma/videoservers/ServersFactory.kt:235-241 — 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/knf/kuma/tv/TVServersFactory.kt:194` 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–7 lines × 2) app/src/main/java/knf/kuma/videoservers/FileActions.kt:438— app/src/main/java/knf/kuma/videoservers/FileActions.kt:438-443 | app/src/main/java/knf/kuma/videoservers/FileActions.kt:453-459 — 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/knf/kuma/videoservers/FileActions.kt:453` 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 (6 lines × 5) app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:214— app/src/main/java/knf/kuma/achievements/AchievementActivity.kt:214-219 | app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt:214-219 | app/src/main/java/knf/kuma/commons/EAHelper.kt:385-390 | app/src/main/java/knf/kuma/profile/TopActivity.kt:51-56 | app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt:54-59 — before extracting anything, compare `app/src/main/java/knf/kuma/achievements/AchievementActivity.kt` and `app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.kt` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 154 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `app/src/main/java/knf/kuma/profile/TopActivity.kt:58` calls `OptIn` and `app/src/main/java/knf/kuma/profile/TopActivityMaterial.kt:61` 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 × 3) persistentsearchview/src/main/java/io/codetail/widget/RevealFrameLayout.java:97— persistentsearchview/src/main/java/io/codetail/widget/RevealFrameLayout.java:97-113 | persistentsearchview/src/main/java/io/codetail/widget/RevealLinearLayout.java:97-113 | persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/RevealViewGroup.java:97-113 — before extracting anything, compare `persistentsearchview/src/main/java/io/codetail/widget/RevealFrameLayout.java` and `persistentsearchview/src/main/java/io/codetail/widget/RevealLinearLayout.java` as WHOLE FILES: 89% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — 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 (11 lines × 4) app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:468— app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:468-478 | app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:487-497 | app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:506-516 | app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:524-534 — 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/knf/kuma/custom/AchievementUnlocked.java:468` 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/knf/kuma/custom/AchievementUnlocked.java:485` calls `findViewWithTag` and `app/src/main/java/knf/kuma/custom/AchievementUnlocked.java:522` 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.
No structured logging — No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page — but when a run fails on a user's machine, neither they nor you have anything to read.
Duplicated predicate persistentsearchview/src/main/java/io/codetail/widget/RevealFrameLayout.java:87— `mRevealInfo != null && mRevealInfo.hasTarget() && !mRunning` appears character-identically in 3 files — persistentsearchview/src/main/java/io/codetail/widget/RevealFrameLayout.java, persistentsearchview/src/main/java/io/codetail/widget/RevealLinearLayout.java, persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/RevealViewGroup.java. 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 persistentsearchview/src/main/java/io/codetail/widget/RevealFrameLayout.java:97— `mRunning && child == mRevealInfo.getTarget()` appears character-identically in 3 files — persistentsearchview/src/main/java/io/codetail/widget/RevealFrameLayout.java, persistentsearchview/src/main/java/io/codetail/widget/RevealLinearLayout.java, persistentsearchview/src/main/java/org/cryse/widget/persistentsearch/RevealViewGroup.java. 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/knf/kuma/videoservers/FileActions.kt:223— `!MultipleDownloadManager.isLoading || MultipleDownloadManager.langSelected == -1` appears character-identically in 2 files — app/src/main/java/knf/kuma/videoservers/FileActions.kt, app/src/main/java/knf/kuma/videoservers/ServersFactory.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/knf/kuma/achievements/AchievementActivity.kt:127— `!PrefsUtil.isAchievementsOmitted && !Settings.canDrawOverlays(this)` appears character-identically in 2 files — app/src/main/java/knf/kuma/achievements/AchievementActivity.kt, app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.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/knf/kuma/SplashActivity.kt:151— `!PrefsUtil.isSecurityUpdated && FirebaseCrashlytics.getInstance().didCrashOnPreviousExecution()` appears character-identically in 2 files — app/src/main/java/knf/kuma/SplashActivity.kt, app/src/main/java/knf/kuma/tv/ui/TVMain.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/knf/kuma/achievements/AchievementActivity.kt:187— `!achievement.isSecret && !achievement.isUnlocked && achievement.goal > 0` appears character-identically in 2 files — app/src/main/java/knf/kuma/achievements/AchievementActivity.kt, app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.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/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:123— `!chapter.fileWrapper(anime!!).exist && (downloadObject == null || !downloadObject.isDownloading)` appears character-identically in 2 files — app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt, app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersMaterialHolder.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/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:162— `!fileWrapper.exist && (downloadObject == null || !downloadObject.isDownloading)` appears character-identically in 2 files — app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt, app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersMaterialHolder.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/knf/kuma/download/DownloadManager.kt:372— `!isPaused || downloadObject.eta.toLong() == -2L` appears character-identically in 2 files — app/src/main/java/knf/kuma/download/DownloadManager.kt, app/src/main/java/knf/kuma/download/DownloadManagerJob.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/knf/kuma/achievements/AchievementActivity.kt:223— `Backups.type != Backups.Type.NONE && Backups.type != Backups.Type.FIRESTORE` appears character-identically in 2 files — app/src/main/java/knf/kuma/achievements/AchievementActivity.kt, app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.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/knf/kuma/download/FileAccessHelper.kt:94— `Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q || PrefsUtil.downloadType == "1"` appears character-identically in 3 files — app/src/main/java/knf/kuma/download/FileAccessHelper.kt, app/src/main/java/knf/kuma/videoservers/FileActions.kt, app/src/main/java/knf/kuma/videoservers/ServersFactory.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/knf/kuma/preferences/ConfigurationFragment.kt:236— `BuildConfig.DEBUG || PrefsUtil.isSubscriptionEnabled` appears character-identically in 2 files — app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt, app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.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/knf/kuma/preferences/ConfigurationFragment.kt:331— `PrefsUtil.isSubscriptionEnabled || !AdsUtils.remoteConfigs.getBoolean("ads_forced")` appears character-identically in 2 files — app/src/main/java/knf/kuma/preferences/ConfigurationFragment.kt, app/src/main/java/knf/kuma/preferences/ConfigurationFragmentMaterial.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/knf/kuma/videoservers/FileActions.kt:275— `PrefsUtil.rememberServer && lasServer != null && names.contains(lasServer) && useLast` appears character-identically in 2 files — app/src/main/java/knf/kuma/videoservers/FileActions.kt, app/src/main/java/knf/kuma/videoservers/ServersFactory.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/knf/kuma/commons/BypassUtil.kt:33— `PrefsUtil.useDefaultUserAgent && !PrefsUtil.alwaysGenerateUA` appears character-identically in 2 files — app/src/main/java/knf/kuma/commons/BypassUtil.kt, app/src/main/java/knf/kuma/commons/ExtensionUtils.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/knf/kuma/achievements/AchievementActivity.kt:168— `achievement.isSecret && !achievement.isRevealed && !achievement.isUnlocked` appears character-identically in 2 files — app/src/main/java/knf/kuma/achievements/AchievementActivity.kt, app/src/main/java/knf/kuma/achievements/AchievementActivityMaterial.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/knf/kuma/custom/FSGridRecyclerView.kt:21— `adapter != null && layoutManager is GridLayoutManager` appears character-identically in 2 files — app/src/main/java/knf/kuma/custom/FSGridRecyclerView.kt, app/src/main/java/knf/kuma/custom/GridRecyclerView.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/knf/kuma/profile/TopActivity.kt:125— `checked.isEmpty() || checked.length <= 3` appears character-identically in 2 files — app/src/main/java/knf/kuma/profile/TopActivity.kt, app/src/main/java/knf/kuma/profile/TopActivityMaterial.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/knf/kuma/profile/TopActivity.kt:88— `current != null && currentPosition > PrefsUtil.topCount - 1` appears character-identically in 2 files — app/src/main/java/knf/kuma/profile/TopActivity.kt, app/src/main/java/knf/kuma/profile/TopActivityMaterial.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/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt:500— `downloadObject != null && PrefsUtil.showProgress()` appears character-identically in 2 files — app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt, app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.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/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt:509— `downloadObject.getEta() == -2L || PrefsUtil.downloaderType == 0` appears character-identically in 2 files — app/src/main/java/knf/kuma/animeinfo/AnimeChaptersAdapterMaterial.kt, app/src/main/java/knf/kuma/recents/RecentsAV1Adapter.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/knf/kuma/explorer/DownloadingAdapter.kt:82— `downloadObject1 == null || downloadObject1.state == DownloadObject.COMPLETED` appears character-identically in 2 files — app/src/main/java/knf/kuma/explorer/DownloadingAdapter.kt, app/src/main/java/knf/kuma/explorer/DownloadingAdapterMaterial.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/knf/kuma/explorer/DownloadingAdapter.kt:103— `downloadObject1.getEta() == -2L || PrefsUtil.downloaderType == 0` appears character-identically in 2 files — app/src/main/java/knf/kuma/explorer/DownloadingAdapter.kt, app/src/main/java/knf/kuma/explorer/DownloadingAdapterMaterial.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/knf/kuma/SplashActivity.kt:69— `favs > 0 || history > 0 || seen > 0 || seeing > 0` appears character-identically in 2 files — app/src/main/java/knf/kuma/SplashActivity.kt, app/src/main/java/knf/kuma/tv/ui/TVMain.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/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt:164— `fileWrapper.exist || downloadObject?.isDownloading == true` appears character-identically in 2 files — app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersHolder.kt, app/src/main/java/knf/kuma/animeinfo/viewholders/AnimeChaptersMaterialHolder.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.
Silent fallback default in catch app/src/main/java/knf/kuma/commons/SelfServer.kt:147— `getSize` 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/knf/kuma/custom/ConnectionState.kt:220— `doCookiesTest` swallows every exception into `-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/knf/kuma/custom/FSRecyclerView.kt:18— `scrollToPositionAtProgress` 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/knf/kuma/explorer/ExplorerChapsAdapter.kt:185— `getItemCount` 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/knf/kuma/explorer/ExplorerChapsAdapterMaterial.kt:188— `getItemCount` 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/knf/kuma/favorite/FavoriteFragment.kt:94— `getSpanSize` (in `onViewCreated`) swallows every exception into `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/knf/kuma/videoservers/RVServer.kt:59— `getHtml` 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/knf/kuma/pojos/AnimeObject.java:568— `chaptersToString` swallows every exception into `return "{}"` — 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 Javadoc, and the row stops firing.
Silent fallback default in catch app/src/main/java/knf/kuma/pojos/AnimeObject.java:540— `stringToRelated` swallows every exception into `return new ArrayList<>()` — 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 Javadoc, and the row stops firing.
Fat interface: CacheDB (18 abstract methods) app/src/main/java/knf/kuma/database/CacheDB.kt:77— `CacheDB` declares 18 abstract methods: `animeDAO`, `favsDAO`, `seenDAO`, `notificationDAO`, `downloadsDAO`, `recordsDAO`, `seeingDAO`, `explorerDAO`, `queueDAO`, `achievementsDAO`, `playerStateDAO`, `recentAV1DAO`, `directoryDAO`, `favoriteAV1DAO`, `organizerDAO`, `recordAV1DAO`, `genreRecordDAO`, `calendarBlacklistDAO`. 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: OrganizerDao (16 abstract methods) app/src/main/java/knf/kuma/pojos/av1/Organizer.kt:70— `OrganizerDao` declares 16 abstract methods: `getFlowByState`, `countByState`, `getByStatePaging`, `getSimpleByStatePaging`, `countAll`, `getByAid`, `getAllWState`, `isSeeing`, `isSeeingAll`, `isAnimeCompleted`, `isAnimeCompletedLive`, `add`, `addAll`, `update`, `remove`, `clear`. 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.
Documentation: no build, run or usage example README.md:1— the repository holds project manifests and neither `README.md` nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet.
No ADRs found app/build.gradle:1— 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` makes this repository a deployable product (line 1).
D21 · Naming Consistency· `mBackgroundURI` spells `URI` where 15 names in the project spell it `Uri` · ×1
`mBackgroundURI` spells `URI` where 15 names in the project spell it `Uri` app/src/main/java/knf/kuma/tv/GlideBackgroundManager.kt:21— 15 of 16 names in project app spell the token `Uri` (15 of 16; unit: names in project app containing `Uri`). Peers: AppInfoFragment.paypalUri (app/src/main/java/knf/kuma/AppInfoFragment.kt:36); FileUtil.getFullPathFromTreeUri (app/src/main/java/knf/kuma/commons/FileUtil.kt:63); FileUtil.getFullPathFromTreeUri(treeUri) (app/src/main/java/knf/kuma/commons/FileUtil.kt:63); FileUtil.getVolumeIdFromTreeUri (app/src/main/java/knf/kuma/commons/FileUtil.kt:132); FileUtil.getVolumeIdFromTreeUri(treeUri) (app/src/main/java/knf/kuma/commons/FileUtil.kt:132). Rename to `mBackgroundUri`. [rule N6]
D26 · Project Cohesion· Projects may be oversized for their cohesion · ×1
Projects may be oversized for their cohesion app/build.gradle:1— `app` (45521 LoC, 818 module-visible types across 66 directories) overshoots its size bounds. 1 of 2 build unit(s) (Gradle) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Review these for cohesion — draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers.
D28 · Secrets (history)· Rotate the exposed credentials · ×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.
P10 · Library API & versioning· No explicit versioning · ×1
No explicit versioning persistentsearchview/build.gradle— No explicit version was found for the Maven/Gradle library declared by `build.gradle`. This check read a `<version>` in pom.xml, or `version` in build.gradle(.kts) or gradle.properties, and a CHANGELOG/CHANGES/HISTORY/NEWS/RELEASES file with a semver heading, or release tooling (changesets, release-please, semantic-release, goreleaser, cargo-release, bump2version, standard-version, git-cliff) in the library's directory or at the repository root, or a semver release tag (or a Drupal `8.x-1.2` release tag) in the repository. A version computed where none of those can see is invisible here. A published library needs explicit semantic versioning so consumers can reason about breaking changes.
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.
No dependency-update automation build.gradle:16— `build.gradle` 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`.
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.)
X2 · Cancellation propagation· Not all suspend functions that make a request accept the coroutine's cancellation · ×1
Not all suspend functions that make a request accept the coroutine's cancellation — Only 0/6 suspend functions that make a cancellable request (Ktor, OkHttp newCall, URL streams) accept the coroutine's cancellation or pass one on, so a request keeps running after whatever wanted it has given up — a screen navigated away from, a disposed widget, a superseded search. In a suspend function, make the request with a call that suspends — Ktor, OkHttp's `executeAsync()`, or a `suspendCancellableCoroutine` that cancels the `Call` — not a blocking `execute()`: `withContext(Dispatchers.IO)` moves the call off the caller's thread but does not make it cancellable; where nothing could ever cancel the call, omitting it is a deliberate choice — judge against how the function is used.
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.
none (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) — not scanned yet).
trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
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 7 file(s) — `app/src/main/java/knf/kuma/achievements/AchievementManager.kt`, `app/src/main/java/knf/kuma/changelog/ChangelogActivity.kt`, `app/src/main/java/knf/kuma/changelog/ChangelogActivityMaterial.kt`, `app/src/main/java/knf/kuma/commons/ExtensionUtils.kt`, `app/src/main/java/knf/kuma/player/MediaCatalog.kt`, … (+2 more) — so the PII/GDPR sweep did not cover the unparsed regions of them; rows reported elsewhere in those files are real.
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.
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.
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.
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.
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.
none (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) — not scanned yet).
0
—
Run 01a1eac5-835a-7020-9dc5-4d6aca302673 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 11 · Warnings: 502 · Recommendations: 63 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 17-11-2026 @ 18:29 UTC.
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.